Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th January 2005, 01:08 PM
avswamy Offline
Registered User
 
Join Date: Dec 2004
Posts: 7
fedora php-ping.php script not working

php-ping.php script is not working and i am not getting the output, only blank page is showing. While file upload script is working fine. why this is happening, can any one is having any idea. My fedora is Fedora Rc2




<?php
$max_count = "10"; //maximum count for ping command
$cmd = "ping -t"; // unix (unix means all flavors of linux as well)

If (isset($_POST['submit'])) {
If ($_POST['count'] > $max_count)
{
echo 'Maximum for count is '.$max_count;
echo '<a href="10.10.0.12">Back</a>';
$again = True;
}
else
{
If (ereg(" ",$_POST['host']))
{
echo 'No Space in Host field allowed !';
echo '<a href="10.10.0.12">Back</a>';
$again= True;
}
else
{
echo("<b><font color=\"00cf10\">Connectivity Test to a Subscriber in Zone I Output:</font></b><br>");
echo("<pre>");
// $host = escapeshellarg($_POST['host']);
// $count = escapeshellarg($_POST['count']);
$host = $_POST['host'];
$count = $_POST['count'];
// print"$cmd $count $host";
system("$cmd $count $host", $list);
echo("</pre>");
}
}
}
else
{

?>

<html>
<title>This site is Designed and Maintained by Swamy</title>
<body>
<h3><font color=\"00cf10\">Connectivity Test to a Subscriber in Zone I</font></h3>
<h4><font color=\"00cf8\">IP Address in Banjara Hills, series should be ---172.25.0.0</font></h4>
<h4><font color=\"00cf8\">IP Address in Khairatabad/Somajiguda/Erramanzil, series should be ----172.26.0.0</font></h4>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>">
Enter IP or Host <input type="text" name="host"></input>
Enter Count <input type="text" name="count" size="2" value="4"></input>
<input type="submit" name="submit" value="Test"></input>
</form>
<?php
}
?>
<a href="/downloads/index.php"><img src=images/alerts.gif width=36 height=35 border=1 alt="Downloads"></a>
</body></html>
Reply With Quote
Reply

Tags
fedora, phppingphp, script, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ping working but internet not working from dhcp clients green-cat-fed Servers & Networking 3 3rd August 2009 01:11 PM
Xp can ping fedora10 but fedora can't ping xp. atifshakeel Servers & Networking 8 22nd May 2009 09:36 AM
ping script for nagios machielr Servers & Networking 2 23rd January 2008 10:36 AM
bash script to check for ping hiberphoptik Using Fedora 3 4th March 2007 02:52 PM
fedora php ping not working avswamy Using Fedora 5 7th January 2005 12:30 PM


Current GMT-time: 18:26 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat