| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
|
|
#6 (permalink) |
|
Web Designer
Join Date: Mar 2007
Location: Yorkshire
Posts: 41
|
Try replacing: Code:
with: Code:
Also, with you not having any script embeded within banner_and_links it could actually be saved with a .html extention. |
|
|
|
#7 (permalink) | |
|
Junkie[scum]
Join Date: Oct 2006
Location: location, location
Posts: 1,647
|
Quote:
|
|
|
|
|
#8 (permalink) |
|
geek
|
require and include do the exact same thing except require will terminate the script and produce and error. My suggestions maybe try deleting everything before and including: Code:
The retype it. It's possible someone inadvertently added some odd character codes to the file. ie alt+some random numbers or some stupid thing like that. or if you don't execute and php in the included file and is just html you could try file(), readfile(), file_get_contents(), fread(). they all do pretty much the same thing reading a file to a string or array. |
|
|
|
#9 (permalink) |
|
Web Developer
|
change the extension of the include to .html and load it up in your browser so you can do a "view source" or whatever to see if it is a php issue or there is just a duff character in there. If you then find where that character is and delete all the whitespace before and after it, and rewrite a bit of the html around it, then you may find it was just some random typo. |
|
![]() |
||
LinkBacks (?)
LinkBack to this Thread: http://www.designerstalk.com/forums/programming/24936-php-inlcude-prob.html
|
|||
| Posted By | For | Type | Date |
| php inlcude prob | This thread | Refback | 08-04-2007 19:20 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
![]() |