Using a .php5 extension

#1
[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?

#2
[eluser]gunter[/eluser]
hm, there is this in the index.php between line 80 and 90...
Code:
| EXT        - The file extension.  Typically ".php"


define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));

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');

#3
[eluser]Unknown[/eluser]
Yes, thank you. That's exactly what I was looking for. :-) Works like a charm!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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