View Single Post
  #5 (permalink)  
Old 03-30-2008, 11:28 AM
kgun's Avatar
kgun kgun is online now
WebProWorld 1,000+ Club
 

Join Date: May 2005
Location: Norway
Posts: 5,120
kgun RepRank 3kgun RepRank 3
Default Re: Web Design: the next level.

Quote:
Originally Posted by chandrika View Post
Does installing PHP 5 on server cause any problems with older versions of PHP, or is it all backwards compatible?
You may have problems. There are some new reserved words in PHP 5.*

like this. P.H.P. below 5 was not OO, so the this variable was not needed.

and the devil may be in the detalis:

Question

For the latest on PHP, see the last link in my signature, especially in the upper right corner along the right menu.

PHP 6.0 is said, by some people at SitePoint, to be just around the corner.

Test your configuration etc. with configtest.php

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Configuration testing</title>
</head>
<body>
<?php
echo ( '<pre>' );
echo 'PHP info = ' . phpinfo() ;
echo ( '</pre>' );
echo ( '<pre>' );
echo 'DOCUMENT_ROOT = ' . $_SERVER['DOCUMENT_ROOT'] ;
echo ( '</pre>' );
echo ( '<pre>' );
echo 'Include_path = ' .  ini_get('include_path') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'Magic_quotes = ' .  ini_get('magic_quotes_gpc') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'Short_open_tag = ' .  ini_get('short_open_tag') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'register_globals = ' .  ini_get('register_globals') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'post_max_size = ' . ini_get('post_max_size') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'display_errors = ' . ini_get('display_errors') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n"; 
echo ( '</pre>' );
require_once ('config.php');
echo ( '<pre>' );
echo 'Include_path = ' .  ini_get('include_path') . "\n";
echo ( '</pre>' );
echo ( '<pre>' );
echo 'Magic_quotes_runtime = ' .  ini_get('magic_quotes_runtime') . "\n";
echo ( '</pre>' );  
//$inis = ini_get_all();
//print_r($inis);
?>
</body>
</html>
Like this (no perma link):

Configuration testing

PHP 5.2.5 is the last stable version and you see that my hoster have 5.2.4 installed.

Last edited by kgun : 03-30-2008 at 12:19 PM.
Reply With Quote