Asked • 05/22/19

How to enable PHP short tags?

I have a web application on a Linux server which starts with `<?` I needed to copy this application to a windows environment and everything is working fine except that an SQL statement is being rendered differently. I don't know if this has to do with the script beginning with `<?php` instead of `<?` because I don't know from where to enable the `<?` from the `PHP.ini` so I changed it to `<?php` I know that these 2 statements are supposed to mean the same but I need to test it with `<?` in order to ensure that the application is exactly the same. This way I can eliminate another possibility. Thanks

1 Expert Answer


Sajan P. answered • 11/02/20

New to Wyzant

Linux System Administrator and PHP Developer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.