Php Fatal Error Call To Undefined Function Session_start
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might
Fatal Error: Call To Undefined Function Php
have Meta Discuss the workings and policies of this site About php session Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function session_start() up vote 2 down vote favorite I'm trying to start a session with php, but I always get this error: Fatal error: Call to undefined function session_start() in /www/test/test.php on line 2 My Code (Copied form http://php.net/manual/en/session.examples.basic.php): In my php.ini I got extension=session.so . Further, my settings in session section are: [Session] session.save_handler = files session.save_path = "/tmp" session.use_cookies = 1 ;session.cookie_secure = session.use_only_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.cookie_httponly = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 100 session.gc_maxlifetime = 1440 session.bug_compat_42 = On session.bug_compat_warn = On session.referer_check = session.entropy_length = 0 ;session.entropy_file = /dev/urandom session.entropy_file = ;session.entropy_length = 16 session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 session.hash_function = 0 session.hash_bits_per_character = 4 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" I'm using PHP Version 5.4.17. The server is running on an Arduino Yun (Linux). Anyone can help me, or give ma a hint? :) Thanks! php session fatal-error share|improve this question edited Dec 11 '14 at 17:11 jww 35.7k21113225 asked Dec 11 '14 at 17:02 marius 92210 2 Check your erro
ability to create new accounts for the forums. Please feel free to open a support ticket through out client area with any support issues. You can also search the forums for answers to many questions. Cookies NEW ACCOUNTS DISABLED Call to undefined function: session_start() Discussion in 'General Support' started by arnovdw, Sep 28, 2004. Thread Status: Not open for further replies. arnovdw New Member Hello I'm running FBSD 5.2.1 with php 4.0.5. I get his error, it http://stackoverflow.com/questions/27428424/call-to-undefined-function-session-start happened rigt after i added the license. Fatal error: Call to undefined function: session_start() in /usr/local/www/phpnuke/html/escal/setup/index.php on line 38 Any help is appreciated. Thanks Arno Last edited: Oct 5, 2004 arnovdw, Sep 28, 2004 #1 Brian EPC Developer Staff Member session_start is a built-in function of PHP. It would seem that there is an issue with the PHP installation http://easyphpcalendar.com/forums/index.php?threads/call-to-undefined-function-session_start.2667/ on your server or session support is not configured correctly for the server. Please check with your web host provider. They would be best at troubleshooting this issue. Brian, Sep 28, 2004 #2 arnovdw New Member Resolved For the people out there running FreeBSD, simply installing the php4 port is not enough. I resolved my session issue by installing this port: php4-extensions Hope this helps someone. arnovdw, Oct 5, 2004 #3 arnovdw New Member Make sure the extension is loaded in php.ini Make sure the extension is loaded in php.ini extension=session.so arnovdw, Oct 29, 2004 #4 ciotog New Member arnovdw said: For the people out there running FreeBSD, simply installing the php4 port is not enough. I resolved my session issue by installing this port: php4-extensions Hope this helps someone.Click to expand... Thanks very much for noting this, I googled for the session_start() error and found this. Many thanks for posting your solutions. ciotog, Feb 17, 2005 #5 (You must log in or sign up to reply here.) Show Ignored Content Thread Stat
Call to undefined function: session_start() The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse existing content. You http://www.sitepoint.com/forums/showthread.php?267971-PHP-Fatal-error-Call-to-undefined-function-session_start() can find out more information about the move and how to open a new http://board.phpbuilder.com/showthread.php?10316852-Undefined-function-session_start account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum fatal error that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 4 of 4 Thread: PHP Fatal error: Call to undefined function: session_start() Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 30, 2005,09:50 #1 photo312 View Profile View Forum Posts SitePoint Evangelist Join Date Mar 2004 Location Fort Lauderdale Posts 522 Mentioned call to undefined 0 Post(s) Tagged 0 Thread(s) PHP Fatal error: Call to undefined function: session_start() I just upgraded to php 4.3.11 from 4.3.10 on Unix box. Freebsd 4.11 I am using session_start(); at the top of my code. I dont understand why I am geting this error: PHP Fatal error: Call to undefined function: session_start() Paul May 30, 2005,09:53 #2 evilone View Profile View Forum Posts SitePoint Addict Join Date Oct 2004 Location Estonia Posts 213 Mentioned 0 Post(s) Tagged 0 Thread(s) give us the code May 30, 2005,10:02 #3 photo312 View Profile View Forum Posts SitePoint Evangelist Join Date Mar 2004 Location Fort Lauderdale Posts 522 Mentioned 0 Post(s) Tagged 0 Thread(s) I can tell you dont know much of php. I just said. I do session_start() on top and that line throws an error. U need no code, since no code is parsed after the error is thrown!!!!! May 30, 2005,10:09 #4 photo312 View Profile View Forum Posts SitePoint Evangelist Join Date Mar 2004 Location Fort Lauderdale Posts 522 Mentioned 0 Post(s) Tagged 0 Thread(s) the problem was that the session extension was not loaded and needed to be added to the extension.ini file for php its fixed now Quick Navigation PHP Top Site Areas Settings Private Messages Subscriptio
visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 8 of 8 Thread: Undefined function session_start Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 01-30-2006,02:53 PM #1 afern03 View Profile View Forum Posts Junior Member Join Date Jan 2006 Posts 4 Undefined function session_start Hi everyone. I am currently working on making a local web server to do testing for our site before uploading. I have never had to install or configure anything before. So this whole project is a big learning experience for me. I am currently getting an error on our test site: Fatal error: Call to undefined function session_start() I have installed Apache 2.2, FreeBSD 6.0, PHP5, PHP5-extensions, MySQL 5.0.17. These were installed using the ports on FreeBSD. There have been a few people who said that session.so is not loaded, but I installed PHP5-extensions, which is what was suggested and still no luck. I checked my /php/extensions.ini file and I found the line: extension=session.so I checked my php.ini file and the extension_dir is set to /usr/local/lib/php/, which is where my extensions.ini file is located. When I change it to /usr/local/lib/php/20050922-debug/, which is where my .so files are located, the test site doesn't even pull up. I installed php through the freebsd ports, so I did not use the ./configure command. I tried to do a ./configure --help, but got an error message saying that the ./configure command was not found. Here is my ./configure on the phpinfo() './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs' '--enable-debug' '--enable-zend-multibyte' '--prefix=/