Top "Php-5.2" questions

PHP 5.2 (now past End of Life) is the successor to PHP 5.1. It was released on November 2, 2006.

Get current domain

I have my site on the server http://www.myserver.uk.com. On this server I have two domains: one.…

php url php-5.2
Assigning the return value of new by reference is deprecated

I've just got an error. When I try to assign an object like this: $obj_md = new MDB2(); The error …

php php-5.2
How to get protected property of object in PHP

I have a object having some protected property that I want to get and set. The object looks like Fields_…

php object protected php-5.2
Creating DateTime from timestamp in PHP < 5.3

How do you create a DateTime from timestamp in versions less than < 5.3? In 5.3 it would be: $date = DateTime::createFromFormat(…

php datetime timestamp php-5.2
Parse error: syntax error, unexpected '[', expecting ')'

I have this linecode $media = $dc->thumbnail->attributes()['url']; runs fine on my local (WAMP) php 5.4.3 but when …

php syntax-error php-5.2
php to detect browser

Ive got an odd css fault that i cant seem to fix, its only occuring in safari, not chrome so …

php cross-browser browser-detection php-5.2
What can use for DateTime::diff() for PHP 5.2?

Is there any function equivalent to DateTime::diff() in PHP 5.2? My local server is PHP 5.3 and using DateTime::diff(). then …

php php-5.2
PHP HTTP-Request

I have MAMP Pro installed running php 5.2.13. When I try to initialize a HTTP-Request $r = new HttpRequest('http://example.com/…

php http httprequest php-5.2
PHP Shorthand ternary operator "?:" Parse error unexpected ":"

I've just uploaded some old PHP files to a new server and am getting parse errors (Unexpected ':') on …

php syntax ternary-operator php-5.2
How to Run PHP on IIS7.5 Express?

I have Win XP SP3 and have installed IIS7.5 Express and want to run PHP on it. I am able …

iis-7.5 iis-express mysql5 php-5.2 windows-xp-sp3