03262005 2139 GMT-6 Ok. Im a little baffeled. I made a few changes to see what I can do and its odd. Im not sure now that I even understand the directory structure. When you log into the yahoo File Manger, there are 21 folders. One of those folders I created and named sessions. Im using another folder named test to test pages out. Now, I assume that these 21 folders are in the 'main directory' and thus the sessions folder would go there. However, if I put a sessions folder under test and then assign the session_save_path to that location, it doesnt work.
[27-Mar-2005 03:37:59] PHP Warning: session_start(): open(test/sessions/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: No such file or directory (2) in /test/login.php on line 58 Wade Wade wrote: > 03262005 2123 GMT-6 > > I just took another look at something. > I looked up the O-RDWR and its a 'direct io function'. > I created the session folder but you'll see it states access denied. > Not sure what the (13) stands for. > > [27-Mar-2005 03:22:14] PHP Warning: session_start(): > open(session/sess_5a7bd61287e582a3a6cba501a196e44f, O_RDWR) failed: > Permission denied (13) in /test/login.php on line 56 > > Wade > > > > Wade wrote: > > > 03262005 2117 GMT-6 > > > > Thanks Brandon. > > > > I read the php documentation on this but I wasnt clear on it. > > Would this be the correct way to set that: > > session_save_path("/sessions"); > > session_start(); > > > > 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 Sponsor* > > ADVERTISEMENT > > click here > > > <http://us.ard.yahoo.com/SIG=12993q2qs/M=298184.6191685.7192823.3001176/D=groups/S=1705005703:HM/EXP=1111979930/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 Sponsor* > ADVERTISEMENT > click here > <http://us.ard.yahoo.com/SIG=12945snrm/M=298184.6191685.7192823.3001176/D=groups/S=1705005703:HM/EXP=1111980306/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/