Results 1 to 5 of 5

Thread: How to display a php page for test

  1. #1
    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?

  2. #2
    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.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    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.

  4. #4
    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?

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    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'];
    ?>

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,569,853.83205 seconds with 16 queries