|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Index.php and index.htm
Can someone please help! I have been searching the net for about 4 days now non-stop. What I would like to know is on my server I have a index.php file but no index.htm file. I want to edit my site and when I import the home page to a web edititor I get the page index.htm come up. I can modify this but have tried to upload it to my server over 50 times now and no luck. Do I put it in the public_html file on my server. I have tried this and left the index.php there as well but still the same. I have even tried removing the index.php and uploading the index.htm file only that doesnt work. Could someone please help me with this. I think I have gained a few grey hairs in all this. Any help would be most appreciated.
Thankyou! |
|
#2
|
||||
|
||||
|
this isnt a php coding question....
__________________
When I die, I want to go peacefully like my Grandfather did, in his sleep -- not screaming, like the passengers in his car. |
|
#3
|
||||
|
||||
|
the files themselves will not upload? Or they won't render?
__________________
life is a game.... Have fun ----------------------------- http://www.phpwomen.org strength in unity PHPCommunity IRC #phpc on freenode |
|
#4
|
|||
|
|||
|
Quote:
sssh... Replacing the 'index.php' file, with 'index.htm' or anything else, may mess your site up, in a number of ways. To edit a 'php' file, you need to download it, using an FTP client, and open it, in a text editor; not a word processor. When saving, ensure the extension is 'php'; 'index.php.txt' won't work. An incorrect extension can be remedied, on the server, by "renaming" the file. Also, it's a good idea to rename the existing file, on the server, to 'whatever.php_old', before uploading an edited file, in case your edits don't work and you can't remember how to undo them. There's a possibility whatever you want to edit is coded, in the 'index.php' file and you may be able to do whatever it is you're trying to do just by downloading and editing the 'index.php' file. It's more likely, though, that the content you see, when you access 'index.php' is obtained from other files or a database and your edits would have to be made in the source. Without knowing what you have, on your site, and what you want to edit, it's not possible to help you, beyond the general information. |
|
#5
|
|||
|
|||
|
first, old thread.
second, not a php coding problem, a server setup problem or more likely a "i don't know how to download a php file through ftp" problem, so maybe it should be in the php installation because it kind of goes with setup. A coding problem would be more like "what does this function do" or "how do I do this in code". |
|
#6
|
|||
|
|||
|
I think you can setup somewhere in the webpanel what's gonna be rendered, .htm or .php
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Index.php and index.htm |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|