Re: [PHP] Re: session expired - how to know if the session is newor old

2004-02-25 Thread Urb LeJeune
At 05:45 AM 2/25/04, Seba wrote: It means that the session_start function has not changed (has restored the old value) the session id value. Set your browser to do not accept cookies, and it will work. That's not an option, people other than myself have to log in and I have no control over

[PHP] session_start

2004-02-24 Thread Urb LeJeune
I would appreciate some help to save my few remaining hairs. I have an administrative program starting with session_start() It starts by asking for userid and password. It's been working for over a year with no problems. Within the last couple of day something strange has been

[PHP] chown() despiration

2003-01-23 Thread Urb LeJeune
I could do this in perl but I'm being stubborn :-) When I run the following code as a regular user, everything fails. When I run it as root the directory is created and the chmod works. However, chown reports: chown failed: Operation not permitted Here is the code. $Directory2Create =

[PHP] chown()

2003-01-22 Thread Urb LeJeune
Has anyone had success in changing the ownership of a directory for within a PHP script? I am running as root an have tries exec() passthru() ``back ticks system() This works fine in a Perl script: `chown egovdemo:nobody /home/e-govdemo/htdocs`; They are back ticks. Same line in the PHP

Re: [PHP] chown()

2003-01-22 Thread Urb LeJeune
what does posix_getlogin() return? perhaps you aren't really running the script as root... posix_getlogin() return a empty string. However, the script is definitely running as root. The same script is creating directories in another user's account using mkdir() If the script

[PHP] cookies

2001-11-27 Thread Urb LeJeune
Speaking of cookies, is there a way using session control to modify the expiration date of a cookie? I would like to add a check box in a login dialog that says remember me Thanks Urb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Session script hangs page on Windows

2001-11-27 Thread Urb LeJeune
Don't run PWS. Go to nusphere.com and get the complete package of Apache, PHP, Perl, and MySQL works like a champ. At 05:17 PM 11/27/01 -0500, MM wrote I am a newbie running 4.06 on PWS in Win 98. Any sample script about sessions I can find just hangs in Personal Web Server. Session id gets

Re: [PHP] Newbie Image uplaod question

2001-11-27 Thread Urb LeJeune
Im new to PHP and am trying to upload images to the server and store the file name into mySQL database.. but i dont have a clue how to do this... all i know is i need to use Input Type=File other than that im lost. # Function MakeUploadForm()

Re: [PHP] How to find the browser type in HTML or PERL??

2001-09-22 Thread Urb LeJeune
Look at $HTTP_USER_AGENT. Urb Anybody know how to code in HTML or perl to find the browser say if Iexplore { do this } else if Netscape { do this } Thanks and regards -Balaji -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] How do they do that.

2001-09-22 Thread Urb LeJeune
This is sharp. http://php.net/fopen actually bring up: http://www.php.net/manual/en/function.fopen.php Is there any documentation on how they do that? Urb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] writting into a text file

2001-09-22 Thread Urb LeJeune
for submit buttons... I think that escaping from standard form look and feel can improve the site layout ... Respectively disagree. That's like saying let put the ignition on the arm rest to improve the layout. Much research has been done and users almost universally like things that

Re: [PHP] Unix problem

2001-05-20 Thread Urb LeJeune
Bingo, he said as he slapped his forehead with open palm. Thanks a 10**6 Urb At 10:42 AM 5/20/01 +0200, Christian Reiniger wrote: readdir returns the file/directory name without path, is_file and is_dir expect a complete filenam with path. So unless you only examine your

[PHP] more on problem

2001-05-19 Thread Urb LeJeune
As a follow up on my last post, the following works on my Windows system but not on my Unix system: $Type = filetype($Directory); On Unix it always returns a null value. Urb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] mail() problem

2001-05-19 Thread Urb LeJeune
Below the code i use. Everything works, the $mailto variable is buils up from a database and contains more then one email adresses. Now my question: how can i make the receivers of my message NOT to see the email addresses of all the receivers, so then can't reply to all? Send the

Re: [PHP] Unix problem

2001-05-19 Thread Urb LeJeune
while ($Directory=readdir($DirHandle)) { $IsFile = is_file($Directory); $IsDir = is_dir($Directory); echo is file=$IsFile - is dir=$IsDir\n; Works fine on Windows box, on a Unix box (RedHat) both is_file() and is_dir() return null no matter what the contents of $Directory is.