Re: PHP strangeness

From: evla (ericvlaanderen_at_zonnet-dot-nl.no-spam.invalid)
Date: 08/31/04


Date: 31 Aug 2004 17:46:49 -0400


> Jacques Thoorenswrote:
Kevin & Theresa Miller a écrit :
> I'm trying to set up phprojekt on 9.1 and get the following error:
>
> ============================================================
> Fatal error: Call to undefined function: session_start() in
> /srv/www/htdocs/phprojekt/setup.php on line 8
> ============================================================
>
> Running phpinfo.php (in phpMyAdmin) I get this:
>
> ...
>
> Note the '--disable-session' option. Apparently SuSE compiled PHP
with
> sessions turned off. The default is on. They also compiled
> '--without-mysql' but in the /etc/php.ini file you can enable it as
an
> extension. I've googled all over the place, but can't find out
> where/how to enable sessions support. Can it be done w/o
downloading
> the source and recompiling? It worked under 9.0, but that's a big
step
> backwards. There are a number of session options/parameters that
can be
> set in the php.ini file, but none of them look like it will do the
trick
> to me, but I don't really know anything about PHP so the answer may
be
> staring me in the face and I just don't know it.
>
> Thanks...
>
> ...Kevin
>
I agree with you this is a strange choice! Whoever can use PHP without

mySQL nor sessions ? I thought I had to recompile again PHP (I did it

once years ago, it took over an hour after downloading the source).

Fortunately, I had the idea to run YAST and found there was some
modules
for PHP4 to activate (make a research with PHP). Two of them will be
of
interest for you : mySQL and session. After installing them, you just

have to restart Apache and go...

Maybe you have found it by yourselves since posting your message. I
send
this advise in case somebody else needs the trick.

Hi

I have the same problem. I am running Suse 9.1, with PHP and MySQL. I
need session support but I am pretty new to Linux. Can you tell me
how to enable sessions on my PHP server (which packages do I need and
where can I find them)

Happy PHP programming.

Jacques THOORENS[/quote:59f1f72c93]

==============
Posted through www.w00tlinux.com/bb - free access to Linux newsgroups.



Relevant Pages

  • Re: register_globals - turning on
    ... >>default because of the history of PHP. ... >Sessions contain persistent data, ... >>paths are a tad confusing as well. ... >In the case of session data, the web server needs to be able ...
    (comp.lang.php)
  • Session Variables Disappear and Reappear
    ... New to PHP and I've checked previous posts and haven't seen similar problem. ... I can also destroy sessions. ... message will disappear showing the "Please Login Form". ...
    (php.general)
  • Re: register_globals - turning on
    ... >>an Apache module. ... >So basically using the .htaccess is a safe way of enabling sessions to ... >>Stick this file on the beginning of every PHP page processed. ... >>In the case of session data, the web server needs to be able ...
    (comp.lang.php)
  • RE: [PHP] Clearing POST variable on page refresh
    ... [PHP] Clearing POST variable on page refresh ... Since you don't want to use sessions, ... Less than a week on an ultra busy server. ... This is most likely not a php thing, but would there be a way to refresh the ...
    (php.general)
  • Re: [PHP] Passing variables between pages
    ... It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is ... discussing the differences in storing variables in SESSIONS as compared to ... storing them in MySQL when using this technique would not require either. ...
    (php.general)