PHP code doesn't work |
Post Reply |
Author | |
YayJoh
Newbie Joined: Feb 12 2020 Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: Feb 12 2020 at 3:24pm |
When I add a block of PHP code, like this: for( n = 0; n < 5; n++ ) { echo("A"); } I get this: Parse error: syntax error, unexpected '=', expecting ';' in E:\Web\OpenElement PHP\index.php on line 22 Can you help me solve this? By the way: when I publish the site on my domain, I get this: ForbiddenYou don't have permission to access this resource. Which obviously seems to have to do with the FTP function. Maybe you can help me get over this too? |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
php variable names must start with a $
|
|
YayJoh
Newbie Joined: Feb 12 2020 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Haha, thank you! I should have knon Well, and the FTP issue.. I think I'll fix that on my own. Thanks!
|
|
YayJoh
Newbie Joined: Feb 12 2020 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
So problem 1 is solved. Problem 2 is that I can't upload the page to a webserver. Come in please :)
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |