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

php ignoring code after greater than sybmol

new to php -- please help.

it seems like php is treating any '>' character as the end of my code
segment, even when it's embedded in a string, as shown

<?
$s="THIS IS MY TEST STRING";
?>

please advise -- it seems like something stupid. i'm running with PHP
5.1.4 + PECL on Apache 2.0.58.

thanks!

Aug 18 '06 #1
4 1363
de*************@gmail.com wrote:
new to php -- please help.

it seems like php is treating any '>' character as the end of my code
segment, even when it's embedded in a string, as shown

<?
$s="THIS IS MY TEST STRING";
?>

please advise -- it seems like something stupid. i'm running with PHP
5.1.4 + PECL on Apache 2.0.58.

thanks!
Are you sure it's ignoring anything after the '>'? Or is in not working
because short tags is off?

Try using <?php to start your PHP code instead.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 18 '06 #2
it was the short tags thing. i found it in php.ini.

thanks!!!
Jerry Stuckle wrote:
de*************@gmail.com wrote:
new to php -- please help.

it seems like php is treating any '>' character as the end of my code
segment, even when it's embedded in a string, as shown

<?
$s="THIS IS MY TEST STRING";
?>

please advise -- it seems like something stupid. i'm running with PHP
5.1.4 + PECL on Apache 2.0.58.

thanks!

Are you sure it's ignoring anything after the '>'? Or is in not working
because short tags is off?

Try using <?php to start your PHP code instead.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 18 '06 #3
de*************@gmail.com wrote:
it was the short tags thing. i found it in php.ini.

thanks!!!
Jerry Stuckle wrote:
>>de*************@gmail.com wrote:
>>>new to php -- please help.

it seems like php is treating any '>' character as the end of my code
segment, even when it's embedded in a string, as shown

<?
$s="THIS IS MY TEST STRING";
?>

please advise -- it seems like something stupid. i'm running with PHP
5.1.4 + PECL on Apache 2.0.58.

thanks!

Are you sure it's ignoring anything after the '>'? Or is in not working
because short tags is off?

Try using <?php to start your PHP code instead.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

NP.

It's not a good idea to run with short tags on. For one thing, it will
conflict with XML code.

Also, please don't top post. This group uses bottom posting as a standard.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 18 '06 #4
also you should use &gt; instead of specially in xhtml pages

Aug 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Srijit Kumar Bhadra | last post by:
Hello, Here is some sample code with pywin32 build 203 and ctypes 0.9.6. Best regards, /Srijit File: SharedMemCreate_Mutex_win32all.py # This application should be used with...
2
by: Paul Bramscher | last post by:
What are the mechanisms to make words like a/an/the in text and varchar character fields ignored when performing SELECT and utilizing ORDER BY in SQL queries? I've done some hunting around into...
4
by: Srikanth | last post by:
Hi Can any one say how to check a hashtable by ignoring the case of key supplied. I want the following requirement It should not allow the user to do the following Hashtable table = new...
5
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
24
by: Gaijinco | last post by:
I found one of that problems all of us have solve when they begin programming: given 3 numbers print the greater and the lesser one of the set. I was trying to remember the if-then-else...
8
by: wastedhello | last post by:
ok. here are a list of things i cant fix. ive been trying for way to long now. 1. if more then 1000 values are told, will still continue with program. 2. if -max, min, average etc run, and 2...
1
by: pramodmc4u | last post by:
hi, please help me,,,,,, a newbie.......send me code for a programme in which the computer tell u the number that u guessed............
2
by: alex23 | last post by:
On Jul 30, 1:56 pm, koblas <kob...@gmail.comwrote: Well, the snarky response is most Python developers are too busy working on actual real world projects :) A more measured response would be...
4
by: responsible | last post by:
Hi, Digging through the STL source code, i found this gem.. template <class _Operation, class _Tp> inline binder2nd<_Operation> bind2nd(const _Operation& __fn, const _Tp& __x) { typedef...
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...
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?
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,...

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.