 |

websting
Novice
Jan 7, 2006, 8:51 AM
Post #1 of 5
(1461 views)
Shortcut
|
I use php includes for my headers and footers when designing websites. This makes it much easier to control the navigation of the site. I have Page Publisher installed and am doing my php includes in my usual manner, but Page Publisher will not display the page. It will display the page for a half a second and then refresh to an error message. I read some strings about the page.dat file but was unclear if this is what I need to do. For me it would be much easier to just do everything with the php includes. Is this even possible in Page Publisher? If it is I am assuming that I might have the path set incorrectly for my includes, but I tried several different possible paths and none work. The most confusing thing is that it actually works properly for that half a second until the error pops up "The requested document was not found on this server." Any suggestions?
|
|
|  |
 |

MikeB
Staff
/ Moderator

Jan 7, 2006, 2:14 PM
Post #2 of 5
(1455 views)
Shortcut
|
Hi websting, Thanks for the post! Without having a look at your site it's tough to know exactly what might be causing the problem with your PHP includes. Page Publisher is designed to allow users to make changes to content on static pages so once you're viewing the page in your browser this will be the actual .php file you'll be looking at rather than anything controlled by Page Publisher. Also, the software will only allow users to make changes to certain parts of the page so it shouldn't interfere with any of your existing includes. If you could direct me to the page you're using the includes on or attach a copy of that file to your next forum post I'd be happy to have a look at it and see if anything stands out. If you're just going to attach the file to your post it would be great if you could also let me know which file is mentioned in the "Not Found" error so I could narrow down which include may not be working. I hope this helps and I look forward to hearing from you. If you have any other questions in the meantime, just let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

websting
Novice
Jan 7, 2006, 9:09 PM
Post #3 of 5
(1441 views)
Shortcut
|
Hi, The page that I am testing this out at is... http://www.websting.ws/phptest.php You will be able to see the error message there and it just refreshes to the error page. Thanks for your help.
|
|
Attachments:
|
phptest.php
(0.40 KB)
|
|
|
header.html
(0.43 KB)
|
|
|  |
 |

ross
Staff
/ Moderator

Jan 8, 2006, 9:55 AM
Post #4 of 5
(1435 views)
Shortcut
|
Hi websting. Thanks for the update! There are actually two things causing this page to give you that error message. The first is that there is a meta refresh tag on it that redirects it to another page. The second problem is that the url that it’s redirecting to isn’t actually a valid link. You can see this as well by quickly viewing the page source before it redirects. To get this page working again you’ll want to just remove the meta refresh from the top of the page. It looks like this: http://<meta http-equiv="REFRESH" content="0;url=pp/pp/pp.cgi"> Let me know how that works for you. If you need a hand with anything else, let me know as well . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

websting
Novice
Jan 9, 2006, 6:32 AM
Post #5 of 5
(1415 views)
Shortcut
|
I stared at that code for hours and did not see the refresh tag I had in there. The php includes works fine. Sometimes you just need a second set of eyes. Thanks
|
|
|  |
|