|
|
|
|
![]() ![]() |
Jul 17 2007, 08:56 AM
Post
#1
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 48 Joined: 21-June 07 From: lebanon Member No.: 45,185 |
when i open my sight, www.blockwars.trap17.com
i get Parse error: syntax error, unexpected T_STRING in /home/khalilo/public_html/index.php on line 6 I don't even have an index.php file O_o I have a index.html its coding is: CODE <html> <head> <title></title> </head> <body bgcolor= black> <font color=red>welcome</font> </body> </html> but why isn't it being opened O_o? |
|
|
|
Jul 17 2007, 01:38 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,882 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
use the cpanel file manager and click on the icons beside the directory or file to check to see if there is an index.php there by mistake. then you can select to edit or delete or rename the errant file.
|
|
|
|
Jul 17 2007, 02:45 PM
Post
#3
|
|
|
A clever man learns from his own mistakes, a WISE man learns from those of OTHERS ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 884 Joined: 12-April 06 From: Essex, UK Member No.: 21,719 |
I tried to access the index.html file by going to your url then "/index.html" and it couldnt find this file, i would imagine that you might have put it in the wrong place. remember that all files you want to be seen by visitors need to be in either "WWW" or "public_html", they are both the same folder, one is just a shortcut to the actual folder so both folder links will take you the same place.
Put your index.html file in the WWW directory and also while there check for the "index.php" file because it seems you have one in this folder which is where the error is coming from. I got major confused with the WWW and public_html folders. Just remember that all your web pages and folders that you want visitors to see need to be in WWW or public_html. Both lead to the same folder so it doesnt matter whether you click WWW or the other. |
|
|
|
Jul 18 2007, 03:35 AM
Post
#4
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,434 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
khalilo,
Looks like you haven't changed anything. Try the above steps. To simplify, 1) go to your directory (either via cPanel or FTP) and enter public_html folder 2) delete index.php 3) upload index.html (or new index page) to the same folder (public_html) Looks like you've been uploading to your home directory. You have to upload to public_html or WWW (a short cut to public_html) as described by previous post. Thank you. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 25th July 2008 - 07:56 PM |