flyinavacuum Posted March 4, 2015 Share Posted March 4, 2015 really weird. running PHP Version 5.5.12-2ubuntu4.2 on php-fpm/nginx. I have many php files that work without issue. the following code throws an error <?php $inputFileName = "./test.ods"; ?> this is the error 2015/03/04 16:15:01 [error] 17543#0: *31 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '"./test.ods"' (T_CONSTANT_ENCAPSED_STRING) in /usr/share/nginx/html/getcsv.php on line 2" while reading response header from upstream, client: 127.0.0.1, server: justyouandi.ca, request: "GET /getcsv.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost" no clue whats happening. i've declared variables thousands of times and never had this issue. Quote Link to comment Share on other sites More sharing options...
Solution flyinavacuum Posted March 4, 2015 Author Solution Share Posted March 4, 2015 somehow it had something to do with the line itself (which was copy-pasta'd) erasing the whole line and writing it out again gets rid of the error. idfk Quote Link to comment 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.