Forums

PHP

This topic is locked

Five e-a-s-y warnings

Posted 28 Aug 2001 08:13:03
1
has voted
28 Aug 2001 08:13:03 Roman Uzdowski posted:
I try to start Log In page, which is based on MySQL simple db and PHP generated by Phakt 1.0.1.
When I start to preview, there are five lines at the form page...
The first two warnings are:
- cannot send session cookie
- cannot send session cache limiter
Next warning - in matter of fact, the first on the list - access denied for user blabla@localhost (using password=YES)
Fourth warning - Cannot add header information - header already sent by (output started - etc.)
And the winner is - this is realy tricky - open(tmp/sess_308ed5b13369389c629988324b6f19ed, O_RDWR) failed: m(2) and the number of line...
Looks like seven Egyptian plagues - without two.

Replies

Replied 28 Aug 2001 10:17:50
28 Aug 2001 10:17:50 Bruno Mairlot replied:
These errors results from two points :

But, without your page code, it's hard to see. Though, my suggestion is that :

1. PHP cannot send headers (like cookie, or session), because you already have some output. Make sure your first tag <?php is the very first character of your file. Sometimes, even a newline is too much.

2. PHP cannot access you /tmp directory. Make sure that it exists, and that you have write permission on it. If you're using Windows, check your php.ini and change it according to your settings.

"First they laugh at you, then they fight you, then you Win..." Ghandi
Replied 28 Aug 2001 12:21:15
28 Aug 2001 12:21:15 chief monkey replied:
Go to your PHP info file and look for the following line.
session.save_path = /tmp
in my case(I am running win 2000) the line looks like this.
session.save_path = /WINNT/tmp
I created a new folder called tmp with my WINNT folder to match this line.
HTH
George

Everybody has got to be somewhere
Replied 29 Aug 2001 07:50:48
29 Aug 2001 07:50:48 Roman Uzdowski replied:
Many thanks. Ev'thing works good.

Reply to this topic