473,386 Members | 1,835 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,386 software developers and data experts.

print or store '<?php' tags

bilibytes
128 100+
Hi,

I am wondering how to print '<?php'

when y try or to store '<?php' string or to print it, there is no output

i think this is or a php.ini directive or a httpd.conf one

does someone know how to make that possible?


thank you very much

bilibytes
Dec 1 '08 #1
5 2672
Atli
5,058 Expert 4TB
Printing "<?php" into your HTML would make it invalid. < has special meaning in HTML and XML documents and using it to try to show the < symbol would cause a parse error.

If you want to display that symbol in a HTML or XML page, then you should use the HTML replacement for it: &lt;

Like, for example, if you wanted to print: "1 < 2", then you would print: "1 &lt; 2".

You could also try running the string through the htmlentites function. That should convert it so it can be put into a HTML document without causing errors.
Dec 1 '08 #2
bilibytes
128 100+
Thank you Atli, but the problem is from the server side.

if it was a browser problem, when i read source code, the <?php should be written there and it is not...

i will dig deeper into it, thanks any way
Dec 1 '08 #3
pbmods
5,821 Expert 4TB
Heya, bilibytes.

What's your code look like?
Dec 2 '08 #4
make sure you close off the tag

<?php

contents

?>
Apr 27 '10 #5
Markus
6,050 Expert 4TB
@greninm
How would that remedy the problem?
Apr 27 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: wing | last post by:
Hi, I'm now doing web programming using PHP. I need to use <?php instead of <? for PHP scripts. How do I configure PHP so that it can recognize <? as well?? Thanks in advance Wing
6
by: ubccis | last post by:
What are the differences between using these? <?= and <?php and <?
3
by: Jens Kristensen | last post by:
I have a problem displaying a divbox containing a html-textarea - everything works fine with "normal" characters. However, when the textarea contains special chars like <P> or ' , the box fails to...
0
by: wizardworkz | last post by:
Hello All! Having a bit of a problem combining php with javascript here. What I have is a store with images (There will be a smaller image of each item, and a larger image of each item, but I want...
5
by: mahesr | last post by:
I want to match some particular text between <tr>and </tr> or <td>and </td>.... in PHP. like below............ <table><tr> CATEGORY: <td><font face="Verdana" size="1" color="#A000A0"> Wedding...
6
by: damod.php | last post by:
<?php ...<? both are the php tags whats the diff b/w name of the tag??? then i write the code using <? this tag full coding , but the server can not accept my (<?)tag,, its only used <? php tag...
7
by: Michael | last post by:
I'm new to PHP. Evidently my ISP's server does not recognize <?php ... ?>, but it does recognize <script language="php"... </script>, which would imply that <?php ... ?is not portable. If in...
14
by: Michael | last post by:
Since the include function is called from within a PHP script, why does the included file have to identify itself as a PHP again by enclosing its code in <?php... <?> One would assume that the...
14
by: jerrygarciuh | last post by:
Hi folks, I recently ran into a PHP5 install that rejects the idiom, <? // code ? Yikes! The sysadmins could not say why this was but suggested it was a PHP5 thing. So my question to you:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.