Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Can't Edit Index, in file manager
khalilo
post 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?
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
shadowx
post 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.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Jul 18 2007, 03:35 AM
Post #4


Desperately seeking "any key" to continue...
Group Icon

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. 500 Mb Free File Host!(18)
  2. My File Manager Is Working(2)
  3. Import From Excel File Into Mysql Database(7)
  4. The Next Best Generation Download Manager!(43)
  5. Transfer File Of Any Size Using Winsock Control(5)
  6. B.net Clan Manager(9)
  7. How To: Make A Simple Php Site(21)
  8. Simple C File Handling In Action(3)
  9. How To Put Music In The Background Of A Powerpoint Presentation(9)
  10. Linux Question: Amarok And File Permissions(4)
  11. How To Open A .daa File(36)
  12. A Trap17 How-to Guide For Beginners(12)
  13. Read File (.txt) On Another Website Using Jsp?(3)
  14. Test Our New Free File Hosting! The Fastest In The World! Check It :)(12)
  15. Hate Trying To Do File Sharing On Vista(2)
  1. Windows Ntfs Folder And File Compression. Good Or Bad?(6)
  2. Bmi (body Mass Index Calculator)(1)
  3. Question Regarding File Transfer!(4)
  4. Php Configuration File(16)
  5. Qoodaa Successfully Solved Video Downloading Problems(0)
  6. Defraggler - Free Software To Defrag Your File(12)
  7. A Good File Explorer For Windows Xp?(6)
  8. File Manager Not Working(2)
  9. Debug Exe Files(4)
  10. Where Is The Bookmarks File Stored With Ff2?(4)
  11. Free Software For File Recovery(3)
  12. 1350 Great Free Logos (jpg + Psd)(7)
  13. Internal File Transfer(5)


 



- Lo-Fi Version Time is now: 25th July 2008 - 07:56 PM