The script is called php-ping and it is taken from theworldsend.net
I modified it so that instead of ping he will execute another command called scr
witch telnets to a switch and changes the vlan on an interface
the telnet script:
ex scr $1(ip) $2(interface)
ex: scr 10.10.10.1 0/2
telnets to 10.10.10.1 and chamges the vlan on the interface 0/2
The php script
Instead of ping i changed to scr command
The problem is that i don't know how to modifiy it so that it reads the interface ($2)
Thank you
Last edited by otheus; 03-05-2009 at 01:03 PM..
Reason: added code tags
iam geting a error with this index script. heres the error
Parse error: parse error in c:\phpdev\www\dev\compulearn\in work\index.php on line 39
Whats wrong??
------------------------
<?php
//display header and left bars
include ('header.php');
include ('left.php');
//connect... (13 Replies)
Okay, I'm new to this PHP and MySQL stuff, so help would be VERY much appreciated. :)
On my iMac runnning Panther, it has MySQL and PHP installed.
Yet when I view a PHP file from the iMac or another computer at my house, I get the source code.
What's wrong? (11 Replies)
Hi frnds
I installed phpmyadmin for OTRS but when ever i tried to open the phpMyAdmin-2.6.2/index.php page i m getting the following error
" urldecode the db name if (isset($lightm_db)) { // no longer urlencoded because of html entities in the db name // $db =... (8 Replies)
hello guys,
well as i mentioned first i have a serious problem, i need your help.
i have a hosting plan with linux, apache and php.
i have a script (that have my UID=32256) inside my web site (in the panel folder -see below-) that creates new scripts (in the pages folder) (the new scripts... (0 Replies)
Hi,
I've configured a server with Debian Etch 4.0. I followed these instructions:
Install and Configure Apache2 with PHP5 and SSL Support in Debian Etch -- Debian Admin
But when I try to launch a php script with phpinfo() in my browser, It showed me the download manager window.(i.e. wanna to... (9 Replies)
i want to store the output of date into a variable and be able to echo out that variable in a sentence. but the below isn't working.
<?php
#$date_time = date('Y-m-d H:i:s');
putenv("TZ=US/Eastern");
date_time = "date('h:i:s')."\n"";
echo ("<li>Today's date is: ($date_time)</li>\n");
... (1 Reply)
hi am senthil,
i want to install php 5 in my solaris 10 x86server..
i already enabled apache
and my mysql 5 is woking fine..
i want to know the procedure to install php..
i googled it and got some info ..
i have doubt in the following thing
/configure -with-apache2=/opt/httpd-2.0.49... (1 Reply)
hi am senthil,
am trying to install PHP in my solaris 10 x86 ...
i installed oracle,apache,tomcat,mysql ..
the only thing am missing is PHP..
i tried to install php using ./configure ..
my ./configure command..
./configure \
--with-apxs=/usr/apache/bin/apxs \... (4 Replies)
hi,
while separated they produce the usual mail alert and i can see the output...
if i write into the php script:
<?php
system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script1.php');
system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script2.php');
system('php -f... (0 Replies)
$result = shell_exec("/sbin/checkscript.sh jdoe");
echo "$result" ;
i am running a script through php. the script is /sbin/checkscript jdoe.
this script is supposed to output something similar to this:
################################
#### Welcome John Doe... (0 Replies)