04152005 0750 GMT-6

Ok. Scratch that.... still doesnt work.

I have my include('session.php'); at the top of every page.
In that page is this: session_save_path('/sessions');
But Im still getting the errors.
I contacted Yahoo weeks ago about this and they responded finally last 
night. They said that I can write sessions to any place that I want 
within my directory structure. That they suggest /tmp but that I can use 
anything with the save path function. Ok. That is what Im doing.

Any suggestions?

Wade



Wade wrote:

> 04162005 1923 GMT-6
>
> I think its a linux/unix box. Its hosted at Yahoo so Im thinking not a
> windows box.
>
> I changed it do ('sessions'); and it worked.
>
> Though - I am having other errors. Please see my next message.
>
> Wade
>
>
>
> Mike Brandonisio wrote:
>
> > Hi,
> >
> > Is this by chance on a windows box. If so you have to give the folder
> > read/write permissions to iuser_. This the user account that IIS and
> > php run
> > as. Also the path is not relative to the public web fold. It a full
> > have on
> > the server file system. On a Linux box permissions should be set for 
> what
> > ever apache runs as.
> >
> > Mike
> > --
> > Mike Brandonisio          *    Web Hosting
> > Tech One Illustration     *    Database Applications
> > tel (630) 759-9283        *    e-Commerce
> > [EMAIL PROTECTED]    *    http://www.jikometrix.net
> >
> >     JIKOmetrix - Reliable web hosting
> >
> >
> > on 4/14/05 6:28 PM, Wade at [EMAIL PROTECTED] scribbled:
> >
> > >
> > > 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+xm
> > >>>>
> > 
> l,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: [email protected]
> > >>>> 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=g
> > >>>>
> > 
> roups/S=1705005703:HM/EXP=1111965503/A=2593423/R=0/SIG=11el9gslf/*http://ww
> > >>>> w.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: [email protected]
> > >>> 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: [email protected]
> > >> 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=gro
> > >>
> > 
> ups/S=1705005703:HM/EXP=1111979396/A=2593423/R=0/SIG=11el9gslf/*http://www.ne
> > >> tflix.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: [email protected]
> > > 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
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > Community email addresses:
> >   Post message: [email protected]
> >   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]
> >       <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.9.10 - Release Date: 4/14/2005
> > 
> >
>
>
> [Non-text portions of this message have been removed]
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   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]
>       <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.9.10 - Release Date: 4/14/2005
>  
>


[Non-text portions of this message have been removed]



Community email addresses:
  Post message: [email protected]
  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/
 



Reply via email to