Jump to content


Photo

Not truely a PHP question


  • Please log in to reply
3 replies to this topic

#1 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 15 April 2006 - 04:38 PM

Nice day, sun is shining, birds are singing and the old man is thinking outside the box again.

I realize that this is not really a PHP question; however, I truely respect the knowledge that many of the people on his forum have (people like Toplay, Barand, AndyB, gizmola etc). So on to the question.

Is it possible to 'run' a program/application on one's web site? ie.

there is a free python program called webswoon, that seems to do what many recently have asked about here. It takes a 'snapshot' of a url and saves it as a jpg file.

Obviously, one could set windows task manager to (1) start the program (2) save the jpg (3) start an ftp program to upload the jpg to one's web site. BUT....

Thanks,

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#2 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 15 April 2006 - 05:26 PM

hi
seems there are a handful of php functions to run programs you have on your server

[a href=\"http://uk.php.net/exec\" target=\"_blank\"]http://uk.php.net/exec[/a]

Cheers
Mark
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#3 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,025 posts

Posted 15 April 2006 - 11:18 PM

Can it be run from a command line?
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#4 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 16 April 2006 - 02:41 PM

First, Happy Easter!

Thank you for the responses.

According to the webswoon site, it can be run from the command line; however, the documentation does not indicate the procedure. As such, I have sent an email to the author requesting information regarding the command line syntax as well as the feasibilty of using the program on my hosting server.

Of course, taking the sledge-hammer approach, one could

on the local computer
use a task scheduler to
(1) start apache and php
(2) automatically modify the url file list
(3) start webswoon
(4) use an automated ftp client to transfer the
resulting images to a remote host.

Just looking for a simpler, more elegant solution.

Will keep you posted.

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users