Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving from linux to windows 1

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
I'm moving a site from a linux dev server to windows because to run linux, I must do it with VMware. I noticed one peculiar thing with my php files. Windows doesn't always recognize the <? (needs <?php instead and sometimes that doesn't even work). Is this a common issue? Does it indicate a problem with my coding of the files? Should I be asking this as an Apache issue?
 
This more likely comes down to whether or not your php.ini on widows is set to have short tags on or off:

short_open_tag boolean

Tells whether the short form (<? ?> ) of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use <?xml ?> inline. Otherwise, you can print it with PHP, for example: <?php echo '<?xml version="1.0"'; ?> . Also if disabled, you must use the long form of the PHP open tag (<?php ?> ).

With that said, I find it strange that the full tag has problems also.




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi

vacunita said:
With that said, I find it strange that the full tag has problems also.
Maybe mufka changed all short open tags...
Code:
<?=$var ?> [gray]--[/gray][red]/[/red][gray]-->[/gray] [s]<?php=$var ?>[/s]
           [gray]----->[/gray] <?php echo $var; ?>

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top