Jump to content

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

Hm.. I dont think so. Here the paragraph that uses the $PHP_SELF

 

<!--LEFT COLUMN: DISPLAY INFORMATION & SETTINGS-->

<tr><td align="center">

<form name="Password" method="post" action="<?php echo $PHP_SELF; ?>" onSubmit="return Routingcheck();">

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);

}

}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.