By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,109 Members | 1,007 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,109 IT Pros & Developers. It's quick & easy.

Included PHP code not parsed!?!

P: n/a
Y
On a hired webserver, the php code that is in the files included with
'include_once' and 'include' command is not parsed. The php file which
includes these parses just fine.

The included php is also parsed just fine on my test apache.

Example:

Request 'www.myurl.com/page.php' on the browser, it runs correctly,
including the file 'menubar.inc' into the outputted content.

The file menubar.inc contains html and php, in the following manner:

<img src="img/LogoV<? echo $tmp; ?>.png" border="0" />

On my test server that would be parse to, for example:
<img src="img/LogoV4.png" border="0" />

Thus displaying an image.

BUT, on the webmotel the html comes out without parsing, as:
<img src="img/LogoV<? echo $tmp; ?>.png" border="0" />

:( ???

I would ask the customer service, but I know it will take +10 days to get
the answer.

Any ideas?

Thanks,
Y
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Y wrote:
Example:

Request 'www.myurl.com/page.php' on the browser, it runs correctly,
including the file 'menubar.inc' into the outputted content.

The file menubar.inc contains html and php, in the following manner:

<img src="img/LogoV<? echo $tmp; ?>.png" border="0" />

On my test server that would be parse to, for example:
<img src="img/LogoV4.png" border="0" />

Thus displaying an image.

BUT, on the webmotel the html comes out without parsing, as:
<img src="img/LogoV<? echo $tmp; ?>.png" border="0" />


Don't use short_open_tag (<?) or asp-style tags (<%)
Use <?php

--
Tommy

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.