Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: RebelTex
Hi Egon - thanks for the Linux PHP script. Still have'nt figured out how to run it, so I've given up for now - maybe try again when I have more time.

Sorry I can't be of more help. Still a beginner at this Linux stuff. I'll be watching that thread to see what they come up with, and incorporate it into the help page wherever possible.

I know that the PHP interpreter we're using is able to be invoked just by running the script at the command line. I suspect that the magic is in the first line of the script, which tells the shell where to find the interpreter for the script.

Once you're able to successfully run the script from the command-line, that's where cron comes in. You'll basically create a crontab that will automatically kick off the script on a regular schedule. I've almost got enough information to write that section of the help file now.

As the installation of PHP seems to vary between the flavors of Linux and the installers available (sounds like you're using Synaptec, whereas I use Aptitude) and the availability of different PHP interpreters, I'm not sure I can successfully integrate that into help.

I've figured out that curl and libcurl components are the mechanisms by which the information is actually transmitted via HTTP.

Someone in that thread mentioned the option of creating a shell script to accomplish the same functionality. Not sure that would work. While a shell script could possibly grep the information out of the unitinfo.txt file, I don't think it has the sophistication to wrap the info in XML, let alone send it via HTTP.

37 posted on 04/05/2006 7:27:12 AM PDT by Egon (We are number one! All others are number two... or lower.)
[ Post Reply | Private Reply | To 35 | View Replies ]


To: Egon

Fedex just got here with my new PC! With a processor >5x faster than my old one I should finally be able to pull my weight around here.


38 posted on 04/05/2006 8:50:48 AM PDT by Straight Vermonter (The Stations of the Cross in Poetry ---> http://www.wayoftears.com)
[ Post Reply | Private Reply | To 37 | View Replies ]

To: Egon

Just a bumping by....


39 posted on 04/05/2006 11:29:15 AM PDT by abner (Looking for a new tagline- Next outrage please!- Got it! PRIVATE PROPERTY RIGHTS LOST IN THE USA!)
[ Post Reply | Private Reply | To 37 | View Replies ]

To: Egon

"...cron...crontab,,,Synaptec...Aptitude...PHP interpreters...curl and libcurl...HTTP...grep...XML..."

There you go speaking Greek, again. LOL   Man, I don't know about all that new fangled stuff - guess I'll just have to find an old Fortran or Cobal compiler & write something to make it work. (just kidding, as if I really could, LOL)

I do have Synaptic, but I think my main problem is that I don't have curl & libcurl installed.  I think I'll wait for your updated help file before I try tackling it again.   Thanks for all your hard work.

BTW - seeing the points on the FAHUpload page was really neat.  Congrats & thanks for getting that on there.

RT

46 posted on 04/05/2006 11:38:55 PM PDT by RebelTex (Help cure diseases: http://www.freerepublic.com/focus/f-news/1548372/posts)
[ Post Reply | Private Reply | To 37 | View Replies ]

To: Egon
I just checked your help page and only the top half of the page loaded & the following error was given:

"Step 2: Edit the script
Microsoft VBScript runtime error '800a004c'

Path not found

/fah/FAHHelp.asp, line 137"

Thought you'd want to know.

RT

49 posted on 04/06/2006 7:06:37 AM PDT by RebelTex (Help cure diseases: http://www.freerepublic.com/focus/f-news/1548372/posts)
[ Post Reply | Private Reply | To 37 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson