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

 

Link to comment
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.