@Howard
> [...] my guess is that most people write their scripts
> using short tags. So the default setting should be set
> to short. Any reason to keep it set to off?? Security
> Reason??
I do not agree.
Older versions of the php engine (or older system configurations)
could be able to understand
Thanks Massimo
Your suggestion helped. It was the Short Tag setting was turned off.
The only changed I made was to turn it on, and restart Apache. Voila and
there
is the PHP info page.
I can't remember seeing the any info in the directions about setting this
tag.
It seems to be omitted since i
Yes, the closing tag is optional and PHP tends to ignore additional
whitespace. HOWEVER, if you put white space in the middle of a token
(i.e. "? >" or "phpin fo();"), PHP will die.
-jim
-Original Message-
From: M. Sokolewicz [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 3:0
"Howard" <[EMAIL PROTECTED]> wrote:
> I wrote in Notepad the script ,
> and saved the page as test.php
Try
This should work correctly. You used the "short open tags" syntax,
often disabled in your php.ini configuration;
is the most correct, *common* and portable syntax.
Best regards
--
Massim
actually, the closing tag is optional in php; it's not required(!) and
PHP also doesn't mind a ton of whitespaces, it ignores them
I would also suggest checking your display_errors value in your php.ini,
make sure it's On.
- tul
Howard wrote:
Error Reporting is set as you show.
I changed
Did you name your script with a .php extension? Also, did you configure
http.conf to recognize php files? You have to set up the different file
types. Check the install file for how to do that. It gives the
instructions verbatim.
sean
On Thu, 2006-01-26 at 18:15 -0800, Howard wrote:
> Error R
Error Reporting is set as you show.
I changed the script to what you show, and it still doesn't work.
Apache recognizes PHP but for some reason doesn't run scripts. I even
tried the "Hello World" script in an html file.
More likely than not you have notices/warnings turned off in your
php.ini f
More likely than not you have notices/warnings turned off in your
php.ini file. Check
error_reporting = E_ALL
set. The problem with your test.php script is probably that you do not
have a proper closing tag. You said your script is:
when it should look more like:
The main difference here