Im using wamp server 2 in my pc, I have created some php files and used php short tags inside it, but whenever I run a file it always show me error. Please give some suggestion.

Recommended Answers

All 3 Replies

Either use long tags, or adjust the configuration. Click the taskbar icon, go to php.ini, edit the setting, restart.

pritaeas thanks for your suggestion i have changed the setting of php.ini file and now all files are running fine.

its better to use long tags, short tags mean the file is not portable, between servers,
The ISP can always change the configuration of the server without notice and the short tag script will cease to function, long tags always work
short tags are common between languages, can cause errors where xml is used

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.