ahs10 Posted September 16, 2008 Share Posted September 16, 2008 i don't understand, with this example from php.net - $handle = fopen("http://www.example.com/", "r"); and i get - Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING what's different about this server that i can't use fopen like i'm used to? Link to comment https://forums.phpfreaks.com/topic/124442-fopen-t_constant_encapsed_string-error/ Share on other sites More sharing options...
Mchl Posted September 16, 2008 Share Posted September 16, 2008 The cause of the error might be above this line. For example missing ". Link to comment https://forums.phpfreaks.com/topic/124442-fopen-t_constant_encapsed_string-error/#findComment-642634 Share on other sites More sharing options...
Garethp Posted September 16, 2008 Share Posted September 16, 2008 $Url = "http://www.example.com/"; $handle = fopen($Url, "r"); Link to comment https://forums.phpfreaks.com/topic/124442-fopen-t_constant_encapsed_string-error/#findComment-642639 Share on other sites More sharing options...
JasonLewis Posted September 16, 2008 Share Posted September 16, 2008 Is that all the code? Link to comment https://forums.phpfreaks.com/topic/124442-fopen-t_constant_encapsed_string-error/#findComment-642645 Share on other sites More sharing options...
ahs10 Posted September 16, 2008 Author Share Posted September 16, 2008 thank you for your help, yes that was all the code, just that one line gave me an error. that's why i was so stumped. i discovered it was because somehow there was bizarre character in my code. i couldn't see the character in bbedit, but when i opened it in dw on a different system it appeared. thanks again for your help. Link to comment https://forums.phpfreaks.com/topic/124442-fopen-t_constant_encapsed_string-error/#findComment-643175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.