Using a .php5 extension - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Using a .php5 extension (/showthread.php?tid=3701) |
Using a .php5 extension - El Forum - 10-17-2007 [eluser]Unknown[/eluser] On my host, in order to use PHP5, I have to have the extension php5 on the index.php file. When I rename it index.php5, it seems to think all the includes or whatever should be php5 also. For example, I get an error about not finding system/codeigniter/CodeIgniter.php5. If I rename that, it complains about another. I expect I could simply rename everything with a php5 extension and it would work, but I hope there is a better (more expected) way of handling this that would upgrade more easily among other things. Anybody know how to do this? Am I simply not finding a config option in the code or documentation? Using a .php5 extension - El Forum - 10-17-2007 [eluser]gunter[/eluser] hm, there is this in the index.php between line 80 and 90... Code: | EXT - The file extension. Typically ".php" and in each file CI uses this EXT constant...... so it should/could work already, but why it doesn´t?? does it work if you overwrite it with this? Code: define('EXT', '.php5'); Using a .php5 extension - El Forum - 10-17-2007 [eluser]Unknown[/eluser] Yes, thank you. That's exactly what I was looking for. :-) Works like a charm! |