Running CodeIgniter on Non-apache systems

#1
[eluser]@li[/eluser]
Hi,

I'm building an application which would be run on many different computers. I'm thinking it might be possible that some of these computers are not running Apache, and they're using windows server or any other technology to run PHP. (This is just my own thought, it hasn't been confirmed by the client yet).

I was thinking that on the 'Installation' page of the application (which sets up the database etc for the users), I ask them if they are running apache, have mod_rewrite access, or they are not running apache.

If they select apache with mod_rewrite, the script would build the .htaccess file for them. If they select apache without mod_rewrite, it would build the script using the index.php/controller/function approach, and if they select no apache, then it would remove the search engine friendly URLs, so it instead uses the index.php?c=controller&f=function approach.

Can someone advise me if this is a good idea or not? Should I stick to .htaccess or index.php, and forget about the 'no apache' option, since the index.php would work on every system?

#2
[eluser]Grahack[/eluser]
PHP code is portable, that's a good beginning. I guess that our guru Rick thought about a way to make his framework (and our CI code) portable too if you don't tweak it too much. I guess that out of the box, CI should run everywhere.
Keep us informed!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.