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. 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(); ?> 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. 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
Archived
This topic is now archived and is closed to further replies.