473,394 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Included PHP code not parsed!?!

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
1 1784
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: aa | last post by:
Is a PHP variable supposed to be seen in a .js file included into a .php file? I have a client side javascript code stored in a .js file which is included into a PHP file using <script...
26
by: TomB | last post by:
I have a function on an "included" page. For reasons unknown to me I frequently will get an error - to the effect that the function can't be found. If I hit refresh/F5 it loads the page just...
1
by: Larry | last post by:
Given the "includer" xml file: <?xml version="1.0"?> <test-includer xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:testns="http://www.w3.org/TR/REC-xml-names"...
6
by: Abubakar | last post by:
Hi, I'm working on a project in unmanaged c++. I was writing all (most of) my code in header files, that is, no seperation of code in header and cpp files, as usually is done in c++. I feel pretty...
4
by: ssaammee | last post by:
I have legacy ADA and C++ code, and I need to export this code into an XML format so I can create a tool to analyze and work with it. I tried various tree-dump-* commands with g++ and didn't find...
27
by: Jon Slaughter | last post by:
Can I modify code that I have included using <?php include("../Index.php"); ?> The Index.php file contains links that need to be modified to work. Index.php is basically an html file uses a...
3
by: Pietro Cerutti | last post by:
Hi Group, suppose test1.c, test2.c and test.h /*** BEGIN TEST.H ***/ #ifndef _TEST_H #define _TEST_H typedef struct {
0
by: Borse, Ganesh | last post by:
Hi, Can someone please help me in the following question? On the web page http://olympus.het.brown.edu/cgi-bin/info2www?(python2.3-api)Very+High+Level+Layer, I got the following information: ...
28
by: Joey Martin | last post by:
One of my servers got hacked with the SQL injection due to poor coding. So, I had someone write a stored procedure and new code. But, to me, it looks just as flawed, even using the stored...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.