printglobal - viewing globals from the telnet session

uPHP Scripting language related questions
mitra
Posts: 1
Joined: Fri Feb 20, 2015 11:17 pm

printglobal - viewing globals from the telnet session

Postby mitra » Fri Feb 27, 2015 12:18 am

Since the runonce, widget and cron tasks communicate via the $_GLOBAL array I find myself always wanting to know what the values are so that i can track bugs down between the two.

I put the attached script together ... put it in your /shell folder

Usage:

>printglobal foo bar

Will print out the values of foo and bar, (array, number or string).

>printglobal *

Prints out the global array (like /scripts/tests/globals)

Feel free to improve and repost :-)
Attachments
printglobal.cgi
(687 Bytes) Downloaded 399 times

User avatar
Jeffrey
Posts: 2
Joined: Thu Jun 18, 2015 11:34 am
Contact:

Re: printglobal - viewing globals from the telnet session

Postby Jeffrey » Tue Feb 21, 2017 11:22 am

I found the file /shell/mitralib.inc doesn't exist on my Wattmons. Evidently, the getargv function has been incorporated into /shell/taillog.cgi.
Jeffrey Alan Klute - Data Vision Services
202 W Third ST, Rayville, MO 64084 ... 816-615-1381


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests

cron