Parse error: syntax error, unexpected '$y' (T_VARIABLE)

iphone4life128

New Member
Messages
3
Reaction score
0
Points
0
I get this "Parse error: syntax error, unexpected '$y' (T_VARIABLE) in download.php on line 1"
Code:
PHP:
<?php
$y=6;

?>
How do you fix it?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
I don't see anything wrong with the syntax.

How did you create the file?
 

iphone4life128

New Member
Messages
3
Reaction score
0
Points
0
I made a new file on windows desktop then uploaded it to the server. I think something is wrong with x10?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Go to cPanel --> FileManager and create another file and type in the same code. Do not copy/paste.

Windowz often puts in stuff that makes *nix choke.
 
Top