PHPmill Home Page PHPmill Forums

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Datafeed-to-MySQL Version 2.1 Supports Cron Jobs

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHPmill Forums Forum Index -> Datafeed-to-MySQL
View previous topic :: View next topic  
Author Message
PHPmill



Joined: 22 Apr 2005
Posts: 40

PostPosted: Thu Aug 11, 2005 11:49 pm    Post subject: Datafeed-to-MySQL Version 2.1 Supports Cron Jobs Reply with quote

New features of version 2.1 of Datafeed-to-MySQL make it more powerful.

Version 2.1 - Released 8/11/05.
- Allows bypass of login screen.
- Allows bypass of submit form button.
- Script can be run by entering default form values into the configure.php file and visiting the url of the script.
- Can use automation to run the script by merely accessing it's url. e.g via Cron Job.
- Allows custom table name that is different from filename.
Back to top
View user's profile Send private message
BFG 9000



Joined: 10 Aug 2005
Posts: 3

PostPosted: Tue Aug 16, 2005 11:27 am    Post subject: Reply with quote

Hi Guys,

Thanks for 2.1 - I like it a lot.
Would it be possible to have the script redirect to a url or another script when it's completed i.e. when it displays 'The requested actions were performed'?

TTFN

BFG
Back to top
View user's profile Send private message
PHPmill



Joined: 22 Apr 2005
Posts: 40

PostPosted: Tue Aug 16, 2005 4:25 pm    Post subject: Not Supported Reply with quote

Not Supported.

You can turn off redirection by editing configure.php at line 81:
define('DATA_COUNTER', '1000000');

- SET THIS TO A VALUE LARGER THAN THE SIZE OF YOUR DATAFEED IN BYTES. IF YOU DO NOT SET THIS HIGH ENOUGH, THE ENTIRE DATAFEED WILL NOT BE PARSED IN ONE SHOT.

Next open index.php. In line 42 find the following:

$V2bd79aa0 = '<META HTTP-EQUIV=Refresh CONTENT="' . REFRESH_TIME . '; URL=http://' . $_SERVER['HTTP_HOST'] . HTTP_PATH . FILENAME_INDEX . '?page=' . $V38eedc42 . '&qc=' . $V0e5477d4 . '&fs=' . $V6eda31cc . '&rt=' . $Vc40a3f0c . '&st=' . $V37b0979a . '&p=' . $V31501723 . '&rc=' . $V4e719dfa . '&cm=' . $Vc7016f76 . '&ec=' . $V254b00ee . '">' . "\r\n";

- MOVE THIS DOWN TO ITS OWN LINE AND ADD // (TWO SLASHES) IN FRONT OF $V2bd79aa0. OR, EDIT THE URL TO ONE OF YOUR CHOICE.

Note that these suggestions have not been tested and will not be supported, they may or may not work. The file index.php is intended to be used as-is. Editing this file may have unpredictable or undesirable effects. If these suggestions do not work for you, we do not have a solution for you at this time. If you edit index.php, you do so at your own risk. Backup your database and files before making any edits. Thank you.
Back to top
View user's profile Send private message
nx7t



Joined: 16 Jul 2007
Posts: 1

PostPosted: Mon Jul 16, 2007 3:23 pm    Post subject: Re: Datafeed-to-MySQL Version 2.1 Supports Cron Jobs Reply with quote

Just looking at PHPMIll for the first time. I need a script that will do this with cron, my question is can it be made to change the imported file name based on the date. [b] The files I need imported to MySQL change file name daily and include the date as the last six characters before extension.[/b]

[quote="PHPmill"]New features of version 2.1 of Datafeed-to-MySQL make it more powerful.

Version 2.1 - Released 8/11/05.
- Allows bypass of login screen.
- Allows bypass of submit form button.
- Script can be run by entering default form values into the configure.php file and visiting the url of the script.
- Can use automation to run the script by merely accessing it's url. e.g via Cron Job.
- Allows custom table name that is different from filename.[/quote]
Back to top
View user's profile Send private message
PHPmill



Joined: 22 Apr 2005
Posts: 40

PostPosted: Mon Jul 16, 2007 5:14 pm    Post subject: Reply with quote

No, the filename must be the same. What you could do with another script is grab the file from the remote location, download it to the proper folder and have the script change it's name to the name stored in Datafeed-to-MySQL. We have done custom setups where this is done automatically with one cron job. Datafeed-to-MySQL is versatile and can be included in another script that does things before and/or after the program itself runs.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHPmill Forums Forum Index -> Datafeed-to-MySQL All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP