You are here: Re: Session_start not working « All PHP « IT news, forums, messages
Re: Session_start not working

Posted by Flamer on 10/11/94 11:53

tony kidd wrote:

> Hi All
>
> I've got a probelm! I keep getting this message:
>
> Fatal error: Call to undefined function: session_start() in
> /srv/www/htdocs/page1.php on line 4
>
> It seems to me that the solution is the following:
>
> As the previous note said, the session_start() function needs a
> directory to write to.
>
> You can get Apache plus PHP running in a normal user account. Apache
> will then of course have to listen to an other port than 80 (for
> instance, 8080).
>
> Be sure to do the following things:
> - create a temporary directory PREFIX/tmp
> - put php.ini in PREFIX/lib
> - edit php.ini and set session.save_path to the directory you just created
>
> Otherwise, your scripts will seem to 'hang' on session_start().
> ...
>
> The above came from php.net at http://au.php.net/session_start.
>
> The problem is that I don't understand the answer. Can someone please
> tell me where the PREFIX/tmp folder is (or should be)? I'm running PHP
> from /svr/www rather than from a user directory (incase that makes any
> difference).
>
> Sorry if it's a dumb question but I'm new to this!

Hello, what you want do to is, create a php file with <?php phpinfo();
?> and run that in a webbrowser, it outputs your configuration
settings, have a look at the variable session_save_path normally its
tmp\ or something, make sure that directory has read/write access, if
there is no value in the configuration edit your php.ini and find the
session_save_path and enter tmp/ as the value, make sure the folder
exists c:\tmp and that there is write access on it.

Flamer.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация