Jump to content

T_CONSTANT_ENCAPSED_STRING ?


Go to solution Solved by 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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.