Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-10-2009
Member
 
Join Date: Sep 2009
Posts: 143
How to display a php page for test

I try to change the website of my webmaster subscriber which is absent and I want to view my php page to change it easily. Do you know an app as simple as possible because I change the page by notepad but I just want to see what it will look like?
Reply With Quote
  #2  
Old 30-10-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: How to display a php page for test

A PHP page is not real. To be precise, it is a PHP file that generates an HTML page through a module referenced in an Apache or another.

So, all you need PHP, Apache and a browser. If everything is installed on one PC (it is often possible to achieve), then we can use a local address for testing.
Reply With Quote
  #3  
Old 30-10-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: How to display a php page for test

A classic script to see if php works, and its test.php which contains the code:
PHP Code:
<?php
  phpinfo
();
?>
If you got a blank page, php is not working; but if you got a big table with lots of info, then its ok.
Reply With Quote
  #4  
Old 30-10-2009
Member
 
Join Date: Sep 2009
Posts: 143
Re: How to display a php page for test

Thank you for the info, but the php page is a map of India with links to 4 cities. I want to change a link of Mumbai to Chennai. Is there someone who could do this for me by chance?
Reply With Quote
  #5  
Old 30-10-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: How to display a php page for test

Simply hold the values in session variables, for example as shown below:

PHP Code:
<?php 
session_start
();
$_SESSION['city_name'] = $_POST['city_name'];
$_SESSION['location'] = $_POST['location']
?>


//USE THE BELOW CODE TO VIEW IT
<?php 
session_start
();
echo 
$_SESSION['city_name'];
echo 
$_SESSION['location'];
?>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to display a php page for test"
Thread Thread Starter Forum Replies Last Post
Printing test page using Dell printer Lennon Norris Hardware Peripherals 1 25-03-2012 02:33 PM
HP 2100 printer only prints test page Heather5 Hardware Peripherals 4 13-02-2010 09:35 AM
How to Print a Test Page to a Printer? Pratap Gad Networking & Security 3 24-02-2009 10:39 AM
Test Page Failed to Print Benjamin Windows XP Support 3 04-08-2008 06:08 AM


All times are GMT +5.5. The time now is 02:39 PM.