CodeIgniter Forums
PHP code revealed when viewed on iPad2? - 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 revealed when viewed on iPad2? (/showthread.php?tid=47907)



PHP code revealed when viewed on iPad2? - El Forum - 12-27-2011

[eluser]Sven Delle[/eluser]
I'm testing development on a MacBook Air. And the codeigniter basic site works fine. But when I connect to my localhost (and the right website directory) from an iPad2 all I see it the php code of the index.php file.

And yes, it is the ... :

Code:
<?php

/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
... part I see.

Now, what went wrong here? I thought the MacBook apache2 server would just simply feed the output of the file. I wouldn't expect to have to make specific changes to the setup of the iPad to view a simple website. Something must have gone terribly wrong.

Anyone have any ideas?