Jump to content

T_CONSTANT_ENCAPSED_STRING ?


flyinavacuum

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/295108-t_constant_encapsed_string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.