Current location: Hot Scripts Forums » Programming Languages » Perl » n00b: perl to execute a php file


n00b: perl to execute a php file

Reply
  #1 (permalink)  
Old 04-07-05, 05:30 PM
-[OnTarget]- -[OnTarget]- is offline
Newbie Coder
 
Join Date: Mar 2005
Location: Orlando, Florida
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
n00b: perl to execute a php file

Trying to use cron to execute a php file is there a way to do that, or is there a way to write a perl (.pl) script that i can have the cron job run to execute that php script.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 04-10-05, 12:59 PM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Try google: http://www.google.com/search?q=execute+php+with+cron. The first few links have what you need. While you can do this in Perl:


Code:
perl -MLWP::Simple -e 'getprint "http://www.domain.com/script.php"'
I think wget or curl might be just as easy here.

Thats from the LWP::Simple[1] docs1

~Charlie

[1] http://search.cpan.org/~gaas/libwww-.../LWP/Simple.pm
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my largest perl script. Grabbing data from a file. Sunnmann Perl 2 04-23-08 03:27 AM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 08:26 AM
Saving php generated file as html file GS300 PHP 0 12-29-04 03:34 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
Use PHP to download .html file from another site (Like LWP::Simple in Perl) ? kevin PHP 4 07-03-03 01:57 AM


All times are GMT -5. The time now is 04:03 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.