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?
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?
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.
A classic script to see if php works, and its test.php which contains the code:
If you got a blank page, php is not working; but if you got a big table with lots of info, then its ok.PHP Code:
<?php
phpinfo();
?>
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?
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'];
?>
Bookmarks