Official End of Support for PHP4

Official end of support for PHP4?

PHP4 is already way past the support. I think support ended more than a year ago.

php4 vs php5 support

I would just stick with PHP5 only.

Who still uses v4 anyway ;)

Don't try to support both since it would mean more work for you :)

web service call in php4

Use NuSOAP.

NuSOAP is a rewrite of SOAPx4, provided by NuSphere and Dietrich Ayala. It is a set of PHP classes - no PHP extensions required - that allow developers to create and consume web services based on SOAP 1.1, WSDL 1.1 and HTTP 1.0/1.1.

php4 vs php5 support

I would just stick with PHP5 only.

Who still uses v4 anyway ;)

Don't try to support both since it would mean more work for you :)

How to make a class property private in PHP4?

You could approach this with a distinct syntax that clearly discourages the usage of such properties. You could borrow the python syntax of starting the method name with an underscore to define it as private.

This doesn't block anyone from using it, of course, but its usage will be discouraged.

Php unexpected T_String on php4 webhost but not on php5 localhost

This weird kind of parse errors may happen in PHP4 if you use PHP5 specific things, like the public keyword, which was introduced with PHP5.

You maybe should have a look at the official PHP5 backward incompatibilties list when planning to run the very same source code under PHP4 and PHP5.

Excerpt:

Backward Incompatible Changes

Although most existing PHP 4 code should work without changes, you
should pay attention to the following backward incompatible changes:

  • There are some new reserved keywords.
  • strrpos() and strripos() now use the entire string as a needle.
  • Illegal use of string offsets causes E_ERROR instead of E_WARNING.

:

where the heck is this php.ini file anyways?

Finding php.ini on a dedicated server can be done easily by phpinfo (as others said)

But I think you're using a shared hosting environment (so you can not edit php.ini) and actually need to turn off magic_quotes_gpc. (Am I right?)
If so, simply create a file named .htaccess in the web root (or phpMyAdmin root) and put the following line in that.

php_flag magic_quotes_gpc off  

Hope to help :-)



Related Topics



Leave a reply



Submit