Call to undefined function session_start, what's wrong ?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Call to undefined function session_start, what's wrong ?

    I have installed PHP 5.0.1 on FreeBSD 5.2.1 With Apache 2.0.50.
    I have a working phpinfo()
    However when i add session_start();
    I receive this:

    Fatal error: Call to undefined function session_start() in
    /usr/local/www/data-dist/test.php on line 2

    Help.
    --------------------------------------------------------------------------------------------
    [url]www.guide.be[/url] * [url]www.gids.be[/url] * [url]www.guide.fr[/url] * [url]www.shop.fr[/url]
    --------------------------------------------------------------------------------------------
    / \ sarl GUIDE (sdet)
    --- the GUIDE, de GIDS, TELESHOP, SHOP
    __ | __ 128, rue du faubourg de Douai
    | / | \ | FR-59000 Lille, La France
    / \ | / \ Tél/Fax +32 59 26.91.51 Mobile +32 479 34.58.76
    /|______\|/______|\ Site [url]http://sarl.guide.fr[/url]
    \| /|\ |/ N° TVA FR-55.440.243.988
    |\ / | \ /| RC Lille 74075/2001B01478
    |__\ | /__| Siret 440 243 988 00027
    | Compte BE: KREDBEBB (BIC) BE56.466-5571951-88 (IBAN)
    --- Compte FR: CMCIFR2A (BIC) FR76.1562-9027-0200-0455-1870-127 (IBAN)
    \ / Conditions (terms): [url]http://sarl.guide.fr/conditions.php[/url]
    --------------------------------------------------------------------------------------------
    [url]www.teleshop.fr[/url] * [url]www.teleshop.be[/url] * [url]www.teleshop.biz[/url] * [url]www.teleshop.info[/url] * [url]www.teleshop.name[/url]
    --------------------------------------------------------------------------------------------
    DEBO Jurgen E. G. Guest

  2. Similar Questions and Discussions

    1. #40742 [NEW]: Call to undefined function preg_replace()
      From: mirko dot viviani at gmail dot com Operating system: FreeBSD 6.2-STABLE PHP version: 5.2.1 PHP Bug Type: *Regular...
    2. Can't call method <function> on an undefined value at <module>
      I want to reference a variable in a module that was created in the module consuming program. ---------- The module looks like this: #!...
    3. Fatal error: Call to undefined function
      I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook....
    4. newbie: PHP 4.3.3: Call to undefined function: imagecreatefrompng()
      I typed in the a program from Programming PHP, p. 14. Fatal error: Call to undefined function: imagecreatefrompng() in...
    5. Call to undefined function: myformvalidate()
      Steven wrote: Why do you have require twice?
  3. #2

    Default Re: Call to undefined function session_start, what's wrong ?


    Did you compile it yourself? Session support can be excluded at compile
    time. To check, in your phpinfo() page what do you see under
    Session/Session Support?

    ---
    Steve

    Steve Guest

  4. #3

    Default Re: Call to undefined function session_start, what's wrong ?

    On 14 Sep 2004 02:24:19 -0700, "Steve" <googlespam@nastysoft.com>
    wrote:
    >
    >Did you compile it yourself? Session support can be excluded at compile
    >time. To check, in your phpinfo() page what do you see under
    >Session/Session Support?
    >
    >---
    >Steve

    There isn't a Session section at all. No single mention of Session in
    phpinfo()

    I installed PHP from the FreeBSD ports. Seems the port does not work
    as it should. Back to source compiling, I presume ?

    Seems I messed up some things in upgrading and to try to install
    Zend Studio.

    It's prety hard to configure Zend Optimizer/Studio. I think
    I have to look forward to the Open Source plugin Xdebug
    debug my php projects with Komodo.

    My projects become prety large, and I look desperate for a good debug
    environment.

    How do You debug ? Is there a dual screen solution ?

    Thanks Steve.


    DEBO Jurgen E. G. Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139