Jump to content

trp

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

trp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. trp

    Posting to URL

    Cheers guys, thats really helpful, works a treat too
  2. trp

    Posting to URL

    I'll show you the code echo "<tr>"; echo "<td align=center colspan=2> <form method=\"post\" action=\"{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}&$actionone\"> <input type=\"submit\" value = \"$actionone\"> </form> </td> <td></td>"; echo "</tr>"; echo "<tr>"; echo "<td align=center colspan=2> <form method=\"post\" action=\"{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}&$actiontwo\"> <input type=\"submit\" value = \"$actiontwo\"> </form> </td> <td></td>"; echo "</tr>"; echo "<tr>"; echo "<td align=center colspan=2> <form method=\"post\" action=\"{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}&$actionthree\"> <input type=\"submit\" value = \"$actionthree\"> </form> </td> <td></td>"; echo "</tr>"; Then picked up by annother query using if isset, but as the url can easily look like &whatever&something it will do both..
  3. Hey, I am using some forms that post things to the URL (such as &update) for me to use within an 'if isset' statement. The thing is I have one page with more than one form, each with different outputs, the first one adds to the url and any action after that also involves running the first request again. Does anyone know a resolution for this? Thanks, TRP
  4. trp

    Sorting a file

    That is awesome, really helpful!! Thanks so much for the fast reply and brilliant help TRP
  5. Hi guys, I am using Windows Server 2003, Apache and PHP5. I have created a text file using 'nmap' the file looks like this: Host: 192.168.0.1 () Status: Up Host: 192.168.0.2 () Status: Down Host: 192.168.0.3 () Status: Down I am wanting to record ONLY the IP's that have the status of "Up" in a MySQL database. If anyone can help me it would be really great! Thanks, TRP
  6. trp

    shell_exec();

    I am now using the following code with great success. Thanks for the tips however! For reference: launchBackgroundProcess('start /b something.bat'); function launchBackgroundProcess($call) { $task = popen($call,'r'); pclose($task); }
  7. trp

    shell_exec();

    I forgot to add, I am using Windows Server 2003. I have found this: http://gnuwin32.sourceforge.net/packages/coreutils.htm Which adds nohup functionality to Windows, it works fine when run directly from command prompt on the machine. However, the page calling shell_exec('nohup something.bat'); still hangs, if you have any further advice that would be great! TRP
  8. Hi guys, I am using shell_exec to call a batch script, I don't need the batch to put any output on the page and - as it takes some time to run - I would love it to run in the background, however currently the page hangs untill the script has completed.. can any suggest how to run shell_exec in the background or other methods of running the script without the page hanging? Thanks in advance! TRP
  9. trp

    snmpget()

    Hey guys, Time to start this one up again, having had some time off I am now back on working on this. Current code is as follows: $current_ip = "192.168.1.1"; $scan = snmpget($current_ip, "public", "1.3.6.1.2.1.2.2.1.7"); echo $scan; This is a valid IP on the network (it's a Linksys Wireless N router) and I have tried it with others. The MIB is extracted from the following website - MRTG: http://oss.oetiker.ch/mrtg/doc/mrtg-mibhelp.en.html Descriptor: ifAdminStatus Identifier: 1.3.6.1.2.1.2.2.1.7 ASN.1 Syntax: INTEGER Enumeration: up 1, down 2, testing 3 There is simply no output from the function, what am I doing wrong here? I am pulling my hair out!
  10. trp

    snmpget()

    OK, that at least means the page doesn't just "break" stupid oversight! I still get no useful information back, it takes a few seconds to load the page (I assume while it does the snmpget operation) but does not echo anything back, I am trying different MIBS etc but if anyone can see an obvious hole in what I am doing / would be able to take a closer look with me, that would be great. Thanks for your help so far
  11. trp

    snmpget()

    Ok then, maybe a stupid problem, how do I run something like "./configure --with-snmp" when compiling PHP as it is already compiled and running.. ?
  12. trp

    snmpget()

    Just noticed that there is no mention of SNMP in the phpinfo file.. should there be if it is all working correctly? As there isn't, what do I need to do?
  13. trp

    snmpget()

    bump. Anyone got any idea's how I can pull this off? Even just to get some useful output would be good.. currently, even when running it with a MIB it just 'breaks' the rest of the page..
  14. trp

    snmpget()

    I am looking for *any* SNMP object on the network, basically I want it to create a device list of clients / PC's on my network.. So I am unsure how to set such a number, especially when it looks as if it will be quite specific..?
×
×
  • 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.