i am in my 3rd year college and i want to learn the PHP programming language. i have a background on other programming languages like HTML, JAVA and Visual Basic which i study both in school and via online.
and when i come to research on PHP i have learned that it is need to be configured on my web server. and so i search for more article and i found this site on how to check if my web server supports PHP.
1st it make me do a simple info.php (containing this code: <?php phpinfo(); ?> ) -- the result is blank. just a white page, no error. nothing..
the 2nd is this test.php containing this code:
- Code: Select all
<?php
// Start Session
session_start();
// Show banner
echo '<b>Session Support Checker</b><hr />';
// Check if the page has been reloaded
if(!isset($_GET['reload']) OR $_GET['reload'] != 'true') {
// Set the message
$_SESSION['MESSAGE'] = 'Session support enabled!<br />';
// Give user link to check
echo '<a href="?reload=true">Click HERE</a> to check for PHP Session Support.<br />';
} else {
// Check if the message has been carried on in the reload
if(isset($_SESSION['MESSAGE'])) {
echo $_SESSION['MESSAGE'];
} else {
echo 'Sorry, it appears session support is not enabled, or you PHP version is to old. <a href="?reload=false">Click HERE</a> to go back.<br />';
}
}
?>
and the result is this. http://i1161.photobucket.com/albums/q501/DarnJhud/Untitled.png
(i used FTP client (FileZilla Server) to upload those file. and i open them using my browser.)
does this mean that my web server dont support PHP?
if not what should i do to make my web server support PHP?
thanks in advance


