Hacker Timesnew | past | comments | ask | show | jobs | submit | oltmans's commentslogin

EDITED TO ADD:

Most web hosts support PHP4 or PHP5? Any ideas on this one?


I run a little web hosting business myself and from what I know about the industry most hosts should offer both at this point (with PHP5 as the default). If PHP4 is the default on your host, you can try adding this to an .htaccess file in the root directory of your site:

   AddHandler application/x-httpd-php5 .php
If your host is running the latest version of CPanel, you should be able to access your control panel and change the default version yourself: Software Services -> PHP Configuration.

If that doesn't work, complain to your host and demand PHP5!


Thanks. Still confused about the framework. Not sure why CodeIgniter doesn't support PHP 5 :(


From here: http://codeigniter.com/user_guide/overview/at_a_glance.html

"CodeIgniter is written to be compatible with PHP 4. Although we would have loved to take advantage of the better object handling in PHP 5 since it would have simplified some things we had to find creative solutions for (looking your way, multiple inheritance), at the time of this writing PHP 5 is not in widespread use, which means we would be alienating most of our potential audience. Major OS vendors like RedHat are moving slowly to support PHP 5, and they are unlikely to do so in the short term, so we felt that it did not serve the best interests of the PHP community to write CodeIgniter in PHP 5.

Note: CodeIgniter will run on PHP 5. It simply does not take advantage of any native features that are only available in that version."


Hmmm, interesting. I didn't read that. Thank you, thorax.


if you are looking into Code Igniter, i suggest that you look into http://kohanaphp.org/home - it is a fork of CodeIgniter.

CodeIgniter does support PHP5. But you will have to turn off warnings, etc.


Thanks!


Thanks! I think PhpED isn't free :(


Thank you.


Thanks!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: