04142005 1824 GMT-6 Ok. I posted this a while back and thought I had fixed this but Im getting errors again: */*/
/*/*Warning: session_start(): open(/sessions/sess_0031954682b91532d7e7a4d68cc6e16a, O_RDWR) failed: Permission denied (13) in /html/login.php on line 48 And this is the directory setup: HTML/sessions/ I used the session_save_path("/sessions"); but Im still getting the error. Wade Brandon Smith wrote: > Wade, > > You can use ini_set to set the session save path whereever you want. It > looks like the /tmp path isn't writable to PHP. This is probably Yahoo's > fault. It is advisable to set the save path to somewhere in your own > account, so that other users on the server won't find your session data > there. Make a directory in your account called sessions, and store your > sessions in there. You'd need to specify the save path in every script, > I use a common layout script that sets that, and includes the relavant > content scripts. > > You can also use a database to store your sessions. > > Brandon > > Wade wrote: > > >03262005 1923 GMT-6 > > > >I did some searching and fixed the first errors. > >Now its the session stuff. > >I read in the php.ini about the location of the ;session.save_path = /tmp > >I checked the hosting site and /tmp is specified - on my system its not. > >So, arent sessions written to /tmp from the settings in the php.ini? I > >have nothing to specify on my code right? > > > >Wade > > > >[27-Mar-2005 00:51:55] PHP Warning: session_start(): > open(/tmp/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No > such file or directory (2) in /test/login.php on line 55 > >[27-Mar-2005 00:51:55] PHP Warning: Unknown(): > open(/tmp/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No > such file or directory (2) in Unknown on line 0 > >[27-Mar-2005 00:51:55] PHP Warning: Unknown(): Failed to write > session data (files). Please verify that the current setting of > session.save_path is correct (/tmp) in Unknown on line 0 > > > > > > > > > >Wade wrote: > > > > > > > >>03262005 1707 GMT-6 > >> > >>Posted below is the scripts.log from a pages uploaded to a site Im > >>working on. I checked the phpinfo and found out that the php version is > >>4.3.6 and the server api is CGI. I dont know if this makes a difference > >>or not for my question. My local machine uses php version 5.0.3 and the > >>server api is Apache 2.0 Handler. > >> > >>Im working on test pages right now and this is hosted at Yahoo. > >> > >>My first question is about the first and second line. > >> > >>To connect to any db I use > >> $db_name="dbname"; > >> $connection=mysql_connect('localhost', 'user', 'pass'); > >> $db=mysql_select_db($db_name, $connection); > >> > >>Can someone give me a pointer to this? > >> > >>Wade > >> > >>[26-Mar-2005 23:03:09] PHP Warning: mysql_connect(): Can't connect to > >>local MySQL server through socket '/tmp/mysql.sock' (46) in > >>/test/login.php on line 44 > >>[26-Mar-2005 23:03:09] PHP Warning: mysql_select_db(): supplied > >>argument is not a valid MySQL-Link resource in /test/login.php on > line 45 > >>[26-Mar-2005 23:03:09] PHP Warning: mysql_query(): supplied argument > >>is not a valid MySQL-Link resource in /test/login.php on line 53 > >>[26-Mar-2005 23:03:09] PHP Warning: session_start(): > >>open(/tmp/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No > >>such file or directory (2) in /test/login.php on line 55 > >>[26-Mar-2005 23:03:09] PHP Warning: Unknown(): > >>open(/tmp/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No > >>such file or directory (2) in Unknown on line 0 > >>[26-Mar-2005 23:03:09] PHP Warning: Unknown(): Failed to write > >>session data (files). Please verify that the current setting of > >>session.save_path is correct (/tmp) in Unknown on line 0 > >>%% [Sat Mar 26 15:03:14 2005] GET /test/personal_information.php > HTTP/1.1 > >>%% 500 /z/dr/a_cats_desire/us1/test/personal_information.php > >>%request > >>Accept: > >>application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 > >>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > >>Accept-Encoding: gzip,deflate > >>Accept-Language: en-us,en;q=0.5 > >>Connection: keep-alive > >>Host: acatsdesire.com > >>Keep-Alive: 300 > >>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) > >>Gecko/20040803 > >>%response > >>%stderr > >>Invalid owner:/test/personal_information.php > >> > >> > >> > >> > >>[Non-text portions of this message have been removed] > >> > >> > >> > >>Community email addresses: > >> Post message: php-list@yahoogroups.com > >> Subscribe: [EMAIL PROTECTED] > >> Unsubscribe: [EMAIL PROTECTED] > >> List owner: [EMAIL PROTECTED] > >> > >>Shortcut URL to this page: > >> http://groups.yahoo.com/group/php-list > >> > >> > >>*Yahoo! Groups Sponsor* > >>ADVERTISEMENT > >>click here > >><http://us.ard.yahoo.com/SIG=1293qqs0m/M=298184.6191685.7192823.3001176/D=groups/S=1705005703:HM/EXP=1111965503/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> > >> > > >> > >> > >> > >>------------------------------------------------------------------------ > >>*Yahoo! Groups Links* > >> > >> * To visit your group on the web, go to: > >> http://groups.yahoo.com/group/php-list/ > >> > >> * To unsubscribe from this group, send an email to: > >> [EMAIL PROTECTED] > >> <mailto:[EMAIL PROTECTED]> > >> > >> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > >> Service <http://docs.yahoo.com/info/terms/>. > >> > >> > >>------------------------------------------------------------------------ > >> > >>No virus found in this incoming message. > >>Checked by AVG Anti-Virus. > >>Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 3/25/2005 > >> > >> > >> > >> > > > > > >[Non-text portions of this message have been removed] > > > > > > > >Community email addresses: > > Post message: php-list@yahoogroups.com > > Subscribe: [EMAIL PROTECTED] > > Unsubscribe: [EMAIL PROTECTED] > > List owner: [EMAIL PROTECTED] > > > >Shortcut URL to this page: > > http://groups.yahoo.com/group/php-list > >Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > --------------------------------- > * Brandon Smith > * programmer / web designer > * http://sproutworks.com > > > > Community email addresses: > Post message: php-list@yahoogroups.com > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > > > *Yahoo! Groups Sponsor* > ADVERTISEMENT > click here > <http://us.ard.yahoo.com/SIG=129ee3p1n/M=298184.6191685.7192823.3001176/D=groups/S=1705005703:HM/EXP=1111979396/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> > > > > > ------------------------------------------------------------------------ > *Yahoo! Groups Links* > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/php-list/ > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 3/25/2005 > > [Non-text portions of this message have been removed] Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/