Jump to content

please help? PHP CGI and CLI different versions?


ArthurLee

Recommended Posts

I installed PHP on my home computer (Mac) and phpinfo when invoked through a web browser states that I am running 5.3.4 which is what I installed. Lately I have been doing a lot of work with the command line and I first noticed a discrepency when I received an error when trying to use a context parameter in file_get_contents (this parameter is supported since 5.0.0) I ran phpinfo from the command line and it stated that I have 4.4.8. What is going on???

 

A possible workaround is using the CURL functions to do the same as file_get_contents, but it's only a matter of time before I will need some of the more powerful functions of PHP 5.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.