Hi I'm installing php on a laptop and when i make a file phpinfo.php with content: <? echo phpinfo() ?> and open the page, the source shows "<? echo phpinfo() ?>" instead of the usual page with the php info. when i change the source to <?php echo phpinfo() ?> i get all the info... How can i make it so that apache/php recognizes my <? ?> tags ? Because on my other pc all my php code is made with these tags.
<?php /"\ |\./| | | | | |>~<| | | /'\| |/'\.. /~\| | | | \ | =[@]= | | \ | | | | | \ | ~ ~ ~ ~ |` ) | / \ / \ / \ _____ / |--//''`\--| | (( +==)) | |--\_|_//--| ?> Code (markup): calm down - it's just a joke... Just saw you changed your post. Figured I would leave the finger anyways, took a lot of work.
In php.ini, make sure you have the line short_open_tag = On Code (markup): Chances are it is currently set to "Off". Don't forget to restart Apache after making the change!