Jump to content

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING


qwertzpoi

Recommended Posts

Hello I have one problem with fwrite() I have one script to get width and height from javascript and echo it with PHP.

echo "Screen width is: ". $_GET['width'] ."<br />\n";
echo "Screen height is: ". $_GET['height'] ."<br />\n";

It works but i want to store the result in a file

fwrite($info,"Height: $_GET['height'] <br />");

But then I get error Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING

////////////////////////

it would be even better if I don't have to print the values but directly store them in $iinfo

sorry if something similar was soved but those examples were different or i was unable to transform it to solve my problem

 

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.