php error: <?PHP include('top/bottom.txt'); ?> doesnt work

wfarr_0817

New Member
Messages
5
Reaction score
0
Points
0
help me please, the code in the title, i have had in my site for months, and i moved from my old server to x10hosting and it isnt working anymore.

thanks,
wfarr_0817

ps: PHP must hate me, or im just stupid.
 

khopcraft77

New Member
Messages
80
Reaction score
0
Points
0
I wouldn't be surprised if the problem lay in the top/bottom.txt. It is case sensitive, so for example if it is name Bottom.txt, a lower case b will not work. Also, make sure its extension is in fact txt.
 

Jonathan

New Member
Messages
32
Reaction score
0
Points
0
Including a .txt is fine. The include command doesn't care what file extension you use, it will simply pull the text out of the file and "paste" it where you have the command and will then be parsed accordingly.

Are you getting back a PHP error message? If not check your error_log in cPanel and see if it has any entries relating to this.
 

wfarr_0817

New Member
Messages
5
Reaction score
0
Points
0
I wouldn't be surprised if the problem lay in the top/bottom.txt. It is case sensitive, so for example if it is name Bottom.txt, a lower case b will not work. Also, make sure its extension is in fact txt.

i have the coding the right way. i kno that the include is just that picky but, i have it in the right cases. This is what the page looks like on:
http://teheataofsoulz.net63.net/lyrics-month.htm<- on my old server
http://teheataofsoulz.elementfx.com/lyrics-month.htm<- x10hosting server


Including a .txt is fine. The include command doesn't care what file extension you use, it will simply pull the text out of the file and "paste" it where you have the command and will then be parsed accordingly.

Are you getting back a PHP error message? If not check your error_log in cPanel and see if it has any entries relating to this.

im not getting an error, its just that its not showing up the way i want it to, i have all the right coding.

i thought u must change the TXT file into PHP file

nope. you just leave it as a *.* (*=anything) and it should work with the page....
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Change the .html file to .php. x10hosting servers do not parse .html files as PHP.
 
Top