Jump to content

Parse Error


r_honey

Recommended Posts

I wrote some sample PHP code, & tested it thoroughly on my local machine, before uploading it to the server.

It worked fine locally, but gave the following error when uploaded:

 

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in layout.php on line 5

 

The line 5 referenced by the above error is the Stylesheet line in the following code:

class layout

{

private $Stylesheet = "/style/layout.css";

public $ImagePath = "/images";

More code below...

 

 

Can anyone help me find out the problem with the above code???

Link to comment
https://forums.phpfreaks.com/topic/56052-parse-error/
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.