lococobra Posted May 19, 2009 Share Posted May 19, 2009 I'm having a very strange problem. This: <?php session_start(); ?> Is giving me the error: Fatal error: Call to undefined function phpsession_start() in /blah/blah/blah.php on line 1 However, the following code executes with no errors: <? session_start(); ?> Anyone know what could possibly be the problem? It doesn't matter what the function I run is... running "echo 'Hello, World!';" gives me an unexpected T_CONSTANT_ENCAPSED_STRING error. Quote Link to comment https://forums.phpfreaks.com/topic/158794-solved-error-when-starting-a-script-with/ Share on other sites More sharing options...
papaface Posted May 19, 2009 Share Posted May 19, 2009 It may be interpreting it like: <?phpsession_start();?> try: <?php session_start(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/158794-solved-error-when-starting-a-script-with/#findComment-837511 Share on other sites More sharing options...
lococobra Posted May 19, 2009 Author Share Posted May 19, 2009 Ah, it is in fact Notepad++ failing me! What I am seeing as line-breaks, the server is not seeing at all. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/158794-solved-error-when-starting-a-script-with/#findComment-837516 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.