Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- William van Zwanenberg
September 25, 2006, 2:31 am
rate this thread
I wonder if you guys can help.
I'm currently experiencing some coding problems what with trying to use PHP
objects of any given page within the web site I'm building to dyanamically
perfectly when used in isolation via a flat XHTML page however it's when I try
to use that same code in PHP rendered pages where the content derives from a
PHP include, that problems arise and it just doesn't appear to work at all.
So as to explain this ina alittle more detail let me say that my website is
built around a 3 collumn format with a header and footer. With this 3
collumns, you have a left-hand navigation bar and a righ-hand navigation bar.
It is within the middle and largest collumn, that content is displayed.
At the moment, the XHTML for the header and footer is included via a PHP
include. The the 3 central collumns are established via a PHP template and it
is into the middle collum that content is dynamically inserted via yet another
PHP include. These includes either retrive content from a databse lookup of a
MySQL database or from a series of plain text files.
used in flat XHTML pages, is included via the header PHP include code and is
contained within the <head> ... </head> tags. What I want to know is why, if
not access and therefore chnage the page elements if these page elements are
introduced via a PHP include?
I can see no obvious reason why this shouldn't work so if anyone has any
suggestions or advice on how to get this to work, I'd be very grateful
Please reply to: firstname.lastname@example.org
By the time the client sees your page, it doesn't make any difference
how the page was generated - PHP, Perl, ASP, or static. The browser
never sees any of the scripting code.
You need to look at the source at your browser and determine what's
different between the working and the non-working. Then fix it accordingly.
Remove the "x" from my email address
JDS Computer Training Corp.
If you aren't already using Firefox, try doing so as it has a wonderful
be going on.
Just make sure that your browser source is displaying the included lines
debugger will help.