[PHP] $REMOTE_ADDR subnet consistency?

2001-06-30 Thread Nathan
Hi PHP heads,     I have question regarding $REMOTE_ADDRes consistency. I am developing a custom session library and I need a way to uniquely identify each http client. Hasn’t this has been a never-ending struggle for web developers? Anyways, I’m using the variables $HTTP_USER_AGEN

Re: [PHP] Week Number

2001-06-30 Thread Data Driven Design
I didn't see anything built in but you might try (date("z")/7) +1 Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Matt "TrollBoy" Wiseman <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

RE: [PHP] What does this error mean?

2001-06-30 Thread scott [gts]
it means that the script doesn't have write permission to write the "logs/993700800.log" file... most probably the directory or the file itself are not owned by the webserver user. it also looks like the authour of the script did a real shoddy job of checking for errors, and tried to pass the inv

[PHP] newbie has include path error

2001-06-30 Thread Daniel Goldin
I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box. Compiled them all from source and was very proud, as I am at best an amateur programmer. In other words, I love this stuff, but it doen't come naturally. Recently I've been fiddling with networking (to little avail), instal

Re: [PHP] Week Number

2001-06-30 Thread Matt \"TrollBoy\" Wiseman
Thanks to all of you that responded, I was so busy searching the manual for that specific function I forgot all about figuring it myself from date("z")... I really gotta lay off that crack pipe. Thanks again guys. Also, another item, I know the list is back up now, but this was mail was sent a so

RE: [PHP] What does this error mean?

2001-06-30 Thread Mark Roedel
> -Original Message- > From: Jimi Malcolm [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 2:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] What does this error mean? > > > I'm trying to from a file in a directory called 'logs'. I've > never seen > this error before. What do

[PHP] Question on Commercial Offerings

2001-06-30 Thread Thomas Deliduka
I don't know quite how to word that subject but here's what we want to do. We have a shopping cart softwre (like a million others out there) which based in windows NT with a COM+ object to guard the source code. We mainly offer this product to our hosting customers as an add-on solution to their

Re: [PHP] newbie has include path error

2001-06-30 Thread CC Zona
In article <001a01c100cd$3146be20$033a22c7@daniel>, [EMAIL PROTECTED] ("Daniel Goldin") wrote: > Warning: Failed opening '/etc/httpd/php/prepend.php' for > inclusion (include_path=") in unknown in line 0. > > I've tried putting in this include path in my php.ini file to no effect.

RE: [PHP] I want to get the input of keyboard

2001-06-30 Thread scott [gts]
php://stdin php://stdout php://stderr are also for console input/output... > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] I want to get the input of keyboard > > $file = fopen('php://input', 'r'); > $char = fread($file, 1); > -- PHP Genera

[PHP] FTP Functions

2001-06-30 Thread Michelle
I was wondering what security risks there are when using FTP functions. I created a browser-based management site for my clients so they may write and upload files to the server. I had to use FTP functions because there was some problem with file owner/permission being set to 'nobody'. Supposed

[PHP] win 98 + php4 + pws4

2001-06-30 Thread cmoehle
Mein system win98se php4 pws4 ich habe den pws4 installiert und die auf den Seiten beschriebenen Einstellungen durchgeführt. Jedoch funktioniert bei mir kein Test mit der erstellten phptest.php datei. Wie muss bei pws4 + php4 die php.ini konfiguriert werden und wie die registry und wo muss ich m

[PHP] Auto submit form, How?

2001-06-30 Thread Fates
How do I auto load or auto submit a form on the same page? I don't want to have to press the submit button instead just click on a value in the drop down form and it loads (I am lazy). Using php4.something -- This email was sent using w3mail. -- PHP General Mailing List (http://www.php.net

[PHP] 4.0.6 + mcrypt = segmentation fault

2001-06-30 Thread Robert Mena
Hi, I've recently downloaded and instaled PHP4.0.6 in my linux box. Eveything seems fine expect by the fact that my mcrypt scripts started to cause a segmentation fault in apache. libmcrypt 2.4.4 php 4.0.6 Linux RedHat 7.0 + updates ldd libphp4.so libpam.so.0 => /lib/libpam.so.0 (0x4014f000)

[PHP] session.gc_probablity

2001-06-30 Thread Damian Sobieralski
Hi, I am running PHP 4.0.5 as an Apache Module (with Zend Optimizer) on NT 4.0 SP6 and have been very happy with it. Until we think about using Easysoft solution the only method we have to get into our HP3000 is a Windows' based ODBC one (which works well). Okay, so I explained why I am run

Re: [PHP] Auto submit form, How?

2001-06-30 Thread Peter Dudley
http://www.devguru.com/Technologies/ecmascript/quickref/select.html Javascript. Use onBlur or onChange and call document.formname.submit(). Pete. "Fates" <[EMAIL PROTECTED]> wrote in message 20010629125135.ELXV13240.femail10.sdc1.sfba.home.com@localhost">news:20010629125135.ELXV13240.femail10.

RE: [PHP] Mail slow

2001-06-30 Thread Don Read
On 29-Jun-01 Tim Ward wrote: > That sounds like a unix answer, I should probably have said that my web > server is NT running Apache. > > Tim Ward > Senior Systems Engineer Yes it was, but the principle is the same. mail() can't go any faster than the MTA (Mail Transport Agent). Te

RE: [PHP] Week Number

2001-06-30 Thread Don Read
On 28-Jun-01 Matt \"TrollBoy\" Wiseman wrote: > Does know of anyway to get PHP to return the week number? > As in there are 52 weeks in a year and this is week x? don't bet on it. > If there is no internal feature, perhaps something built into PHPLib? date('z') / 7; strftime('%U %V %W'); Re

RE: [PHP] closing window after submit

2001-06-30 Thread Jason Lustig
use onsubmit = "somefunction();" in the tag, and make the somefunction() function close the window. --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

[PHP] Capturing output of shell script.

2001-06-30 Thread Charles Williams
Hello all, I have an .sh shell script being executed from a php4 call. I need to capture the string return and work with that in the php script. The only problem is that the call works but I cannot get the returned string. I've tried using exec, passthru, ``, system, and escapeshellcommand. N

Re: [PHP] pc/mac and ie/nav

2001-06-30 Thread Tyler Longren
use the $HTTP_USER_AGENT variable. Search through it to see if it contains Mac.  If it does, then it's a Mac.   Tyler - Original Message - From: Wilbert Enserink To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 7:07 AM Subject: [PHP] pc/mac and ie/nav Hi a

Re: [PHP] shared object not open

2001-06-30 Thread Martin Schmidt
Richard Lynch wrote: I had ldconfig running several times (editing ld.so.conf in between by even changing the sequence in the ld.so.conf) but it doesn't help me. Thanks Martin > > Try running ldconfig from your command line. > > I think you just run it and it does things, and it all then works

[PHP] Printing a string issue

2001-06-30 Thread Craig Simon
Greetings everyone.  I have been lurking for a while now, and now I am developing my first application with PHP.  I am running into an issue that I would love some help with.   I am writing an application to handle phonelists and such.  Now I am creating a wireless version of the search p

[PHP] Postcard/Tell a friend app

2001-06-30 Thread Michael O'Neal
Hi, First of all, thanks to all that answered my Auction question a few days ago. It looks like http://www.phpauction.org/ was the clear winner. So, on to the next question. Has anyone seen an app that can send digital cards, where a user can choose their picture, and add whatever text and fon

[PHP] perl and php data-structure interoperability

2001-06-30 Thread scott [gts]
i've been working on a method of handling sessions that would be portable and easy to implement in PHP and Perl. i've got everything working fine except the interoperability of serialized data. the reason it's important is becuase my session table basically looks like this: (i left out the 't

RE: [PHP] closing window after submit

2001-06-30 Thread Jerry Lake
onMouseUp="window.close()" Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 3:57 PM To: php Subject: [PH

Re: [PHP] Re: Regular Expression help

2001-06-30 Thread J Smith
Clayton Dukes wrote: > Okay, here's what I have so far: > > ---snip--- > if ((!$email) >|| ($email=="") >|| (!eregi("^[_\.0-9a-z-]+@domain.+[a-z]",$email)) >) > $stop = ""._ERRORINVEMAIL.""; > ---snip--- > > This works, but how can I add a second domain? > ie: > Tr

[PHP] newbie help!

2001-06-30 Thread McShen
hi I wrote a script to display all file in a directory. Here is my script --- This is working fine. But it displays all files in 1 single page. Here is what i wanna do, but i don't know how to do it. I wanna display 15 files names at once, and have prev. and next buttons and the end, w

[PHP] IMAP Question.

2001-06-30 Thread Yan Lam
Does the IMAP functionalities require UW IMAP server since compiling PHP requires the libraries and header files from UW IMAP server. Does it work with Cyrus IMAP server? Thank you, Yan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Zend core object creation

2001-06-30 Thread Dean Hall
Okay, perhaps I need to spend some more time studying language compilers/interpreters, but I've got a question regarding object creation in the PHP core. Basically, what, internally, is part of a PHP object (class instantiation)? I know Zend started using reference counting a while back, so I gue

[PHP] (slightly OT) the bad and the good (hosting recommentations)

2001-06-30 Thread Justin French
hi all, i'm about to change ISPs, and i'll probably be moving to a US based server, on Unix, with Apache, PHP4, CGI, Perl 5, MySQL, etc etc. so far the best I can find (price/service level/features) is experthost.com.au. Has anyone got a bad experience with these guys, or a good experience with

Re: [PHP] newbie help!

2001-06-30 Thread Hugh Bothwell
> I wrote a script to display all file in a directory. Here is my script (snip) > This is working fine. But it displays all files in 1 single page. Here is > what i wanna do, but i don't know how to do it. > I wanna display 15 files names at once, and have prev. and next buttons and > the end, whe

Re: [PHP] win 98 + php4 + pws4

2001-06-30 Thread Hugh Bothwell
I really suggest you get rid of PWS and install Apache, which is a much better server all 'round. "cmoehle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Mein system win98se php4 pws4 ich habe den pws4 installiert und die auf den Seiten beschriebenen Einstellu

Re: [PHP] how to flip an image using GD?

2001-06-30 Thread Hugh Bothwell
I don't see any function for this in GD; it looks like you'll have to either find a third-party library or do it pixel-by-pixel, something like (obviously, a library would be faster, but would essentially do the same thing). ""Noah Spitzer-Williams"" <[EMAIL PROTECTED]> wrote in message 9hi9v6

Re: [PHP] Function No Longer works

2001-06-30 Thread Hugh Bothwell
Look for 'allow_url_fopen' in your config file. ""Black S."" <[EMAIL PROTECTED]> wrote in message 9hi6hi$2s9$[EMAIL PROTECTED]">news:9hi6hi$2s9$[EMAIL PROTECTED]... > I have found the problem with my previous post and PHP functions no longer > working. It seems the code: > > include("http://www.d

Re: [PHP] extract data from html

2001-06-30 Thread Hugh Bothwell
> > > 1. Open the html file in read only mode > > > 2. Start reading the html file till I encounter a tag (I don't know > > > how to do this) > > > 3. Grab that data after the tag (and then what?) > > > > See and > >

Re: [PHP] Week Number

2001-06-30 Thread Hugh Bothwell
How about this? $today = getdate(); $week = (int) ($today["yday"] / 7); Note: I'm not sure whether $today["yday"] begins with 0 or 1. ""Matt "TrollBoy" Wiseman"" <[EMAIL PROTECTED]> wrote in message 009801c10009$2a68c720$[EMAIL PROTECTED]">news:009801c10009$2a68c720$[EMAIL PROTECTED]... > Does

RE: [PHP] PHP and Windows XP

2001-06-30 Thread David Price
Windows XP is the combination of the two lines. -Original Message- From: Young C. Fan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 5:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP and Windows XP ""elias"" <[EMAIL PROTECTED]> wrote in message 9heq8k$e6$[EMAIL PROTECTED]

Re: [PHP] how to determine size of gz-handler output

2001-06-30 Thread teo
Hi Sebastian! On Fri, 29 Jun 2001, Sebastian Stadtlich wrote: > Hi all > > I'd like to know how small my content gets when i use > ob_gzhandler. > so far i tried > $cont=ob_get_contents(); > $length=strlen($cont); try using $length = ob_get_length(); instead. > echo "\n"; > > but it outputs

Re: [PHP] Question on Commercial Offerings

2001-06-30 Thread teo
Hi Thomas! On Fri, 29 Jun 2001, Thomas Deliduka wrote: > I don't know quite how to word that subject but here's what we want to do. > > We have a shopping cart softwre (like a million others out there) which > based in windows NT with a COM+ object to guard the source code. > > We mainly offer

[PHP] Adding 1 to a whole number

2001-06-30 Thread Richard Kurth
Way is this doing this Starting with 1000 all I what to do is increse this number by one the first time I run it it adds 1 to the number 10001 second time it 10001002 Shouldn't it just add 1 to the number 1000,1001,1002,1003 Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP

RE: [PHP] Creating domain and default page

2001-06-30 Thread E K L
It's understood that when creating new domain, the user has to be root. But, the problem is the user of script is nobody when program is running if i'm not mistaken. So, how to solve this kind of permission stuff? >From: "scott [gts]" <[EMAIL PROTECTED]> >To: "php" <[EMAIL PROTECTED]> >Subject

[PHP] trying to get started in PHP

2001-06-30 Thread Eric
Hi I Installed PHP configered as per instructions, and a simple PHP file saved as *.HTML would not work from a PWS (personnel web server) on windows 98. Is there a Tutorial to get started somewhere all the tutorials find is PHP theory NOT how to get started, from a PWS or has anybody got a sampl

[PHP] makeing a post

2001-06-30 Thread Eric
Hi How do you make a posting is group PHP >From Eric --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.262 / Virus Database: 132 - Release Date: 12-Jun-01 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] Week Number

2001-06-30 Thread Delbono
You can use Date_Calc class http://www.phpinsider.com/php/code/Date_Calc/ - Original Message - From: "Don Read" <[EMAIL PROTECTED]> To: "Matt "TrollBoy" Wiseman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 29, 2001 10:19 PM Subject: RE: [PHP] Week Number > > On 2

[PHP] Auto submit form

2001-06-30 Thread David
How do I autoload a selection from a drop down menu form based on the selection without having to click a submit button? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administr

Re: [PHP] Convert

2001-06-30 Thread teo
Hi Roman! On Fri, 29 Jun 2001, Roman wrote: > Have you some program for convert Microsoft Access Database (*.mdb) to the > MySQL database ? > Search on MySQL site : dbf2mysql or mssql2mysql on windows you can move your data from Access to a MS-SQL, or to export it as DBF. -- teodor -- PHP Gen

Re: [PHP] Problems upgrading APACHE/PHP/Mysql on remote server

2001-06-30 Thread teo
Hi M! On Thu, 28 Jun 2001, M wrote: > Complete msg subject is "what can developer do when server provider > upgrades any of Apache/PHP/Mysql softwares to newer version and this > causes crash on already working transactions?" > I am posting this also into MySql discussion list. MySQL transation

Re: [PHP] passwd in php....

2001-06-30 Thread Julia A. Case
I don't think this is going to work, passwd requires you to input the passwword, not just pass it as an option on the command line. On top of that, you have to be root to change a password other than yours. Julia Quoting Bruno Freire ([EMAIL PROTECTED]): > Hi... > > My name is Bruno. > > Som

Re: [PHP] Please Help......

2001-06-30 Thread Julia A. Case
This could be difficult or not even possible... first you would need to add entries to the DNS zone file (and update the serial number) and then reload the DNS database, and this is only if you run your own DNS and not have your provider do it for you, like many of us do. Then you would have

Re: [PHP] ADD a user in linux using PHP

2001-06-30 Thread Charles Williams
ADD a user in linux using PHPsure, I use a small C program I wrote and set to setuid root. that way I can hide it and it all works good with an exec call from php. I wouldn't advise setting setuid adduser to root. It's way too dangerous. chuck - Original Message - From: Bruno F

Re: [PHP] PHP & ImageMagick

2001-06-30 Thread Richard Lynch
> In PHP I try to run a shell command with the following source code: > > $fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill > white -draw "text 5,5 VERKOCHT" image.jpg image2.jpg'; > exec($fotonaam); > > PHP runs the program but the -draw "text 5,5 VERKOCHT" is not executed > (t

Re: [PHP] how to determine size of gz-handler output

2001-06-30 Thread Richard Lynch
>I'd like to know how small my content gets when i use >ob_gzhandler. >so far i tried >$cont=ob_get_contents(); >$length=strlen($cont); >echo "\n"; > >but it outputs > > >while apache says in its logfile: >217.81.41.121 - - [29/Jun/2001:12:43:59 +0200] "GET / HTTP/1.1" 200 2028 [WILD GUESS ALERT!

RE: [PHP] $REMOTE_ADDR subnet consistency?

2001-06-30 Thread Jason Murray
> BUT I WAS WONDERING, and now here comes my question, do the first > two subnets of an IP address (i.e. 204.57.x.x) typically stay the > same, so that they could be relied upon for general authenticity? In practice, I would say yes. However, theoretically, AOL may suddenly use switch your co

RE: [PHP] Convert

2001-06-30 Thread Jason Murray
> Have you some program for convert Microsoft Access Database > (*.mdb) to the MySQL database ? http://www.google.com/ Type in "convert database access mysql". Press "I'm feeling lucky". You'd find the answers a lot faster than asking on a mailing list for PHP. Jason -- PHP General Mailing

[PHP] Compiling PHP with IMAP

2001-06-30 Thread Sagar Chand
Hiall, I am compiling php4.0.5 with imap support as a DSO for APache. with ./configure --with-apxs. --with-imap And I got an error saying rfc822.h missing. So I downloaded the latest Imap Beta 2001 tilldate And cp'd the c-client to /usr/include And after compiling the imapd and ipop3d I cp'd

[PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Jason Lustig
This is really weird. Very, very, very weird. I have the following code in a script: if (!empty(trim($rowData[3]))) { $tdStr.= trim($rowData[3]); } Now, when I run it, I get the following error: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\server\wwwroot\contributor

Re: [PHP] Mail()'s not playing nicely :(

2001-06-30 Thread Robin Chen
Instead of \n try \r\n Robin Jamie Thompson wrote: > > ok so i got > > mail("[EMAIL PROTECTED]", "$message", "sms alert", "Return-Path: $email > <$email>\nFrom: $email <$email>\nReply-To: $email <$email>\nX-Mailer: " . > phpversion()); > > the email appears as from [EMAIL PROTECTED] istead of

Re: [PHP] Please Help......

2001-06-30 Thread Kurth Bemis
I think that maybe when somebody subs to the list they get a info-email. mostly saying "THIS IS PHP ONLY. Not a clueless linux newbie list. that's why they have LUGS." Do any of you agree with me? I think that its neededbasically saying - look at the manual first..then ask on the list

[PHP] Automatic backup application

2001-06-30 Thread rodrigo
Hello. I was wondering if there was a free app that will: a) Backup my entire Mysql Database (via a dump, I guess). b) Backup the entire directory where my pages are, preferrably to a different location (say a remote server by FTP or Mail). Thanks in advance. --

Re: [PHP] Convert

2001-06-30 Thread Henrik Hansen
"Roman" <[EMAIL PROTECTED]> wrote: > Have you some program for convert Microsoft Access Database (*.mdb) to the > MySQL database ? take a look at mysqlfront, mysqlfront.de, which can import data from ODBC-datasources. you can also convert your db to csv files and import it to mysql that way.

AW: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread Bill Rausch
Sebastian Stadtlich said: >there is an option in php ini : > >session.referer_check = > >which should fit your needs > >not sure how to use it, but probably one of the php-developers on this >list can assist... I looked at this thing and can't figure out that it does very much. If someone m

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Justin Farnsworth
You are trying to add the output of a function call, called twice, BTW, to a string, apparantly. You don't saw what $tdStr is, really, in the scope. Jason Lustig wrote: > > This is really weird. Very, very, very weird. I have the following code in a > script: > > if (!empty(trim($rowData[3]))

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread Jason Brooke
> > I want to use PHP4 sessions for authentication, > > Ok, stop right there. Sessions and authentication have nothing to do with > each other. To create a secure authenticated site you should be using > HTTP-based authentication over SSL. Sessions are simply for maintaining > state across http

[PHP] extracting element for TOC

2001-06-30 Thread Chris Komlenic
I have a directory with many small html files...which I'd like to return the text within the tags for the purpose of creating a table of contents (TOC). I currently have a script which reads the directory, and returns all the files which I'd like to open. I'm a bit lost on how to write a loop w

RE: [PHP] php / apache

2001-06-30 Thread Jason Lustig
Why would you want to do that? I don't think it's really possible... unless you do something wacky with Apache... --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ

RE: [PHP] PHP & ImageMagick

2001-06-30 Thread Chadwick, Russell
Did you try the escapeshellcmd () function ? - Russ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message- From: Jeffrey Barendse [mailto:[EMAIL PROTECTED]] Sent: Thursday, J

Re: [PHP] Parse error: Needs T_VARIABLE or $

2001-06-30 Thread Delbono
Try this: $r = trim($rowData[3]); if ( !empty( $r ) ) { $tdStr.= trim($rowData[3]); } I tokk a look at the manual: 1. Note: empty() is a language construct. so: !empty is like to say !if or !while : so it's wrong- 2. Note that this is meaningless when used on anything which isn't a varia

RE: [PHP] ENC: ADD a user in linux using PHP

2001-06-30 Thread Chadwick, Russell
http://expect.nist.gov/ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message- From: Bruno Freire [mailto:[EMAIL PROTECTED]]

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:28, richard greene wrote: > Bill > > I grabed this function from the www.php.net manual and it works great, it > covers all your bases, except that it will show you > http://www.something.com for http://www.something.com or www.something.com. > If somone knows how to modify

[PHP] Help with custom session handler

2001-06-30 Thread Aral Balkan
I'm writing a custom session handler that saves sessions using Manuel Lemos' excellent Metabase library. The problem is, although I've got the session_set_save_handler function pointing to the correct start, end, read, write, destroy and garbage collection functions, when I call session_start and

Re: [PHP] closing window after submit

2001-06-30 Thread DAve Goodrich
on 6/28/01 3:57 PM, Richard Kurth at [EMAIL PROTECTED] wrote: > I have a form that is in a pop up window it has an image for a submit > button how can I close the pop up after submitting. I know I can do it > with javascript with a standard submit button. but how can I do it when > I use an image

Re: [PHP] Question on Commercial Offerings

2001-06-30 Thread James Moore
Thomas Deliduka wrote: > > I don't know quite how to word that subject but here's what we want to do. > > We have a shopping cart softwre (like a million others out there) which > based in windows NT with a COM+ object to guard the source code. > > We mainly offer this product to our hosting cu

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread adam (dahamsta)
Hi Rasmus, nice to see you still watching over us on the lists. I feel like I've been ticked off by my dad though... :) Rasmus Lerdorf <[EMAIL PROTECTED]> said: > > I want to use PHP4 sessions for authentication, > > Ok, stop right there. Sessions and authentication have nothing to do with >

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread Rasmus Lerdorf
I wasn't trying to be overly critical, I just worry that new users are reading these posts and see these insecure solutions to this problem and don't realize that they are inherently insecure. > What I'm asking is basically "What's the best and easiest way to go about > this?" I have come up with

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread adam (dahamsta)
Hi Richard, Richard Lynch <[EMAIL PROTECTED]> said: > > I want to use PHP4 sessions for authentication, but I'm having difficulty > > If it's as important as all that, go with SSL. > Ah, I'll be using SSL for the original authentication anyway. But the users will be browsing using regular HTT

RE: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread Robert Klinkenberg
Depends on what you want to do, first you have to define what are valid sessions, So think of things like this - One Session can only come from one IP address - A session ID that was created n minutes ago is no longer valid - A user using Netscape x can't be using IExplorer y After a user co

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-30 Thread adam (dahamsta)
Hi again Rasmus, thanks for your reply. Rasmus Lerdorf <[EMAIL PROTECTED]> said: > I wasn't trying to be overly critical, I just worry that new users are > reading these posts and see these insecure solutions to this problem and > don't realize that they are inherently insecure. > I understand

[PHP] setting up / configuring mail()

2001-06-30 Thread James Cox
hey does anyone know any good resource sites or documents about configuring the mail services for php so it works? Thanks, James Cox. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . James Cox :: Creative Director :: AWP imaJes t: +44 (0)7968 349990 | f: +44 (0)1992

[PHP] ½Ãµð ÆË´Ï´Ù

2001-06-30 Thread ¼ºÀ±±â
¿©·¯ºÐ¿¡°Ô °¡Àå ÇÊ¿äÇϰí À¯ÀÍÇÑ ÄÄÇ»ÅÍ °ü·ÃÇÁ·Î±×·¥À» ÆÄ°ÝÀûÀ¸·Î ½Ñ °¡°Ý¿¡ °ø±ÞÇÕ´Ï´Ù ÃֽŰÔÀÓ. À¯Æ¿°ü·ÃÇÁ·Î±×·¥. MP3. ºñµð¿À½Ãµð µîµî ¸ðµç ÇÁ·Î±×·¥À» ÆÇ¸ÅÇÕ´Ï´Ù. 6¿ù ÃֽŸ®½ºÆ®ÀÔ´Ï´Ù ¹°·Ð ½Å¿ë °ÆÁ¤À» ÀüÇô ½Å°æ¾²Áö ¸¶½Ê½Ã¿ä ÀÌ ¸ÞÀÏÀ» º¸³½ ¾ÆÀ̵ð·Î´Â ¿¬¶ôÀÌ µÇÁö ¾Ê½À´Ï´Ù. ¾ÐÃàÈ­Àϼӿ¡ ¿¬¶ôó°¡ ÀÖ

RE: [PHP] Capturing output of shell script.

2001-06-30 Thread Don Read
On 29-Jun-01 Charles Williams wrote: > Hello all, > > I have an .sh shell script being executed from a php4 call. I need to > capture the string return and work with that in the php script. The only > problem is that the call works but I cannot get the returned string. I've > tried using exec

Re: [PHP] Auto submit form

2001-06-30 Thread Justin French
David wrote: > How do I autoload a selection from a drop down menu form based on the > selection without having to click a submit button? Everything to do with forms is either to do with hitting a submit button (call to a server) or without (which means that the browser/client is handling it), s

[PHP] ImageCopy

2001-06-30 Thread Jeff Lewis
I am creating an image on the fly based on newest entries in one my mySQL tables. In this created image I am trying to add a small one to it. Now I am TRYING to use the below code: $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image,

[PHP] reading records alphebetically

2001-06-30 Thread Jamie Saunders
Hi, I have a MySQL database set-up containing a few hundred records. I'm trying to make a script that reads the 'name' field of the records and displays only the records of which the name field begins with a specific letter: if ($letter = A) { display all records of which field 'name' being

[PHP] Telnet and PHP

2001-06-30 Thread jon
I was doing some research on creating a webbased telnet client and I am unsatisfied with Java applets. I would like to create a server side telnet client, so the user side is only required to have a working web browser that supports HTML. Thus, I turned to PHP. I found one example, but it does

Re: [PHP] Pricing Advice Needed

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: > I think in general it's about $100-$150/hour for programming/database work. Yankee dollars? Gawwd... I AM being exploited due to geographic disadvantage! Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria

Re: [PHP] Pricing Advice Needed

2001-06-30 Thread teo
Hi Brad! On Sat, 30 Jun 2001, Brad Hubbard wrote: > On Fri, 29 Jun 2001 01:42, Thomas Deliduka wrote: > > > I think in general it's about $100-$150/hour for programming/database work. > > Yankee dollars? > > Gawwd... I AM being exploited due to geographic disadvantage! > to make you feel

Re: [PHP] reading records alphebetically

2001-06-30 Thread Ethan Schroeder
You can either select the letter you want through mysql with "SELECT * FROM table WHERE name LIKE '$letter%' Or you can select everything: $result = mysql_query("SELECT * FROM table order by name"); while ($row = mysql_fetch_array($result)) { extract($row); $first_letter = strtolower($name[

RE: [PHP] Telnet and PHP

2001-06-30 Thread Warren Vail
By "active user input", I would assume that you mean every time the user makes a keystroke, the keystroke is sent to the host machine. This is not a characteristic of html which only sends information to the host machine when some form of submit is clicked. The advantage of the applet for this s

RE: [PHP] Adding 1 to a whole number

2001-06-30 Thread Don Read
On 30-Jun-01 Richard Kurth wrote: > Way is this doing this Starting with 1000 all I what to do is increse > this number by one the first time I run it it adds 1 to the number 10001 > second time it 10001002 > Shouldn't it just add 1 to the number 1000,1001,1002,1003 > strings don't add well, g

Re: [PHP] Telnet and PHP

2001-06-30 Thread jon
Instead of performing a send for each stroke, the user code type in a whole string in a text box, and then submit that string. I have found this code at http://www.phpbuilder.com/mail/php-general/2001051/1479.php: sock = fsockopen($host,$port); socket_set_timeout($this->sock,2,0);

Re: [PHP] Urgent Help: Problem with apache+php

2001-06-30 Thread teo
Hi Imran! On Sat, 30 Jun 2001, Imran Hussain wrote: > hi > > Iam running Freebsd4.3 i hv installed apache-1.3.20,php4.0.5 and > postgres-6.5.3. there was no problem with the configuration of all > the above packages, My problem is when i start apache it gives me this error. > > hub#/usr/

RE: [PHP] reading records alphebetically

2001-06-30 Thread Warren Vail
If you are planning to have a lot of records, you may want to create a column with just that letter and index it, followed by the full name. SELECT name from Table WHERE first_letter = "$letter" ORDER by name should produce pretty fast results if "first_letter, name" is indexed. Warren Vail --

Re: [PHP] reading records alphebetically

2001-06-30 Thread Julia A. Case
Try using a query like select * from table_name where name like '$letter%'; Julia Quoting Jamie Saunders ([EMAIL PROTECTED]): > Hi, > > I have a MySQL database set-up containing a few hundred records. I'm trying > to make a script that reads the 'name' field of the records and displays > only

Re: [PHP] Auto submit form, How?

2001-06-30 Thread Henrik Hansen
Fates <[EMAIL PROTECTED]> wrote: > How do I auto load or auto submit a form on the same page? I don't want > to have to press the submit button instead just click on a value in the > drop down form and it loads (I am lazy). > use javascript, to find you answer look here http://www.devel

Re: [PHP] reading records alphebetically

2001-06-30 Thread Jack Sasportas
Since you only have a few records, creating a second index with the first letter doesn't apply to you, but is a good idea in a huge db scheme. The simplest & fastest way is to take the suggestions a few people made which is SELECT * FROM table WHERE name LIKE '$letter%' I would not suggest this

Re: [PHP] Re: Regular Expression help

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 23:43, Clayton Dukes wrote: > Okay, here's what I have so far: > > ---snip--- > if ((!$email) > >|| ($email=="") >|| (!eregi("^[_\.0-9a-z-]+@domain.+[a-z]",$email)) > >) > $stop = ""._ERRORINVEMAIL.""; > ---snip--- > > This works, but how can I add a

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
On Fri, 29 Jun 2001 01:28, richard greene wrote: > Bill > > I grabed this function from the www.php.net manual and it works great, it > covers all your bases, except that it will show you > http://www.something.com for http://www.something.com or www.something.com. > If somone knows how to modify

Re: [PHP] newbie has include path error

2001-06-30 Thread Justin French
Hi, If you can "surf" local host for standard HTML pages and other php pages (without includes in them) eg: http://localhost/file.html Then the problem isn't the server really, it seems to me that the server document root for your files should be something like: /usr/local/apache/ not /etc/htt

[PHP] php code security problem?

2001-06-30 Thread Jack
hi everyone, Does anyone know the best way to secure php source code so it is not group/world readable? I can read other users' php source code by writing a simple php script. Thanks. Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] php code security problem?

2001-06-30 Thread Rasmus Lerdorf
> Does anyone know the best way to secure php source code so it is not > group/world readable? > I can read other users' php source code by writing a simple php script. Turn on safe-mode. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

  1   2   >