Jump to content

How to make a page to complete the updating.


mister X

Recommended Posts

Hi,

 

Im currently doing a project which help users to configure routers and switches through a web site. However, while im testing out the updating part for 1 configuration, it cant seem to update it. This is due to the long loading time. which cant load finish completely. Can anyone help? If you need the code, do pm me. Thanks

Okay. I got the error message after i tried to save. Below is the msg.

 

Forbidden

You don't have permission to access /terminalserver-soft/5r4 Router/<br /><b>Notice</b>: Undefined variable: PHP_SELF in <b>C:/Program Files/Apache Group/Apache2/htdocs/terminalserver-soft/5r4 Router/Routing.php</b> on line <b>270</b><br /> on this server.

 

 

--------------------------------------------------------------------------------

 

Apache/2.0.63 (Win32) PHP/5.2.9-2 Server at localhost Port 80

okay.. i found out. the program can only excuted to configuration terminal in command prompt.

below is the coding. Do help to see, is there any mistake or how can i improve on it.. thanks

 

if($control == "enable" || $control == "disable")

{

fputs ($fp, "config t\n");

if($protocolType == "RIP")

{

if($control == "enable" && $networkAdd != "")

{

fputs ($fp, "router ".$protocolType."\n");

fputs ($fp, "network ".$networkAdd."\n");

$moredetails .= fgets ($fp, 4096);

$moredetails .= fgets ($fp, 4096);

}

elseif($control == "disable" && $networkAdd == "")

{

fputs ($fp, "no router ".$protocolType."\n");

$moredetails .= fgets ($fp, 4096);

}

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.