CodeIgniter Forums
php code are display while i running my code in codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: php code are display while i running my code in codeigniter (/showthread.php?tid=33143)



php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]goldensona[/eluser]
Hi

When i run my code in the code igniter in my machine some of the php code are displayed in home page itself , but in another machine it displayed correctly. i don't know why it happen, can any one guide me to solve this issue.

Thanks
sona


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]victorche[/eluser]
I don't think this is a CI bug. If you read your post, you will find the possible problem. The same piece of code is working on one machine and not on another. Which means... There is a problem/wrong configuration with the second machine.


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]goldensona[/eluser]
thanks for your reply. how do i find the problem ,can u suggest


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]WanWizard[/eluser]
The second machine doesn't have PHP installed, or the webserver configuration is missing the statement that .php files should be processed by the PHP engine, so it is sent out as text.


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]goldensona[/eluser]
Thanks for your suggestion wanwizard
my machine already have php installation. because i done many application in it. but when i run my code using CI php coding are displayed in screen


Thanks
sona


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]WanWizard[/eluser]
Missing <?php tag at the beginning? Using short tags ( <? ) but your PHP installation doesn't support it?

CI doesn't have anything to do with it, since you webserver is serving the code as text, nothing is executed, the code isn't handed over to the PHP engine. So it's a webserver problem.


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]goldensona[/eluser]
Hi i find the reason in my system i disabled the short_open_tag so all text appeared thanks for all who reply to my post. sorry for the inconvenience.


php code are display while i running my code in codeigniter - El Forum - 08-17-2010

[eluser]goldensona[/eluser]
Thanks wanwizard