Professional Web Applications Themes

Call to undefined function session_start, what's wrong ? - PHP Development

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 |\ / ...

  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. #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

  3. #3

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

    On 14 Sep 2004 02:24:19 -0700, "Steve" <googlespamnastysoft.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

Similar Threads

  1. #40742 [NEW]: Call to undefined function preg_replace()
    By mirko dot viviani at gmail dot com in forum PHP Bugs
    Replies: 1
    Last Post: March 6th, 09:13 PM
  2. Replies: 2
    Last Post: June 27th, 09:32 PM
  3. Fatal error: Call to undefined function
    By gc in forum PHP Development
    Replies: 3
    Last Post: August 30th, 07:33 AM
  4. newbie: PHP 4.3.3: Call to undefined function: imagecreatefrompng()
    By David Stevenson in forum PHP Development
    Replies: 0
    Last Post: August 30th, 09:10 PM
  5. Call to undefined function: myformvalidate()
    By Marcus in forum PHP Development
    Replies: 2
    Last Post: July 4th, 08:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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