Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Confirmation about my web server if it support PHP

General discussions related to php

Moderators: macek, egami, gesf

Confirmation about my web server if it support PHP

Postby DarnJhud » Wed Jun 06, 2012 8:43 am

hi everyone,

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 :)
DarnJhud
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Jun 06, 2012 8:04 am

Re: Confirmation about my web server if it support PHP

Postby Emy » Wed Jun 06, 2012 8:27 pm

are u in local machine?
Emy
New php-forum User
New php-forum User
 
Posts: 16
Joined: Sat Jun 02, 2012 8:16 pm

Re: Confirmation about my web server if it support PHP

Postby ejsexton82 » Sat Jun 09, 2012 10:16 pm

It does not look like your web server has PHP.

To make your web server support PHP, you probably need to install it:


I hope that helps. Good luck!
User avatar
ejsexton82
New php-forum User
New php-forum User
 
Posts: 86
Joined: Mon Jun 04, 2012 10:05 pm
Location: Ankara, Turkey


Return to PHP General

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.