I need to create a script which will parse some data from a url and then insert it into a database. I was wondering whether a perl cgi script or a php script is more suited for this purpose. I would have to run this script every ten minutes or so.
Asked
Active
Viewed 397 times
2 Answers
1
Anything that gets the job done is "suited" to the purpose. Personally I'd go with PHP but that's just because I know PHP and not Perl. Ultimately it's up to you - if you can do it in Perl, do so. If you prefer PHP, do it in PHP.
Niet the Dark Absol
- 311,322
- 76
- 447
- 566
1
Either PHP or Perl will do the job just fine. I'd send you in the direction of PHP just because it's easier to use out of the box and has a lot more examples geared toward people just getting started.
-
It is possible to run a php script every 10 mintes or so right? – user1667307 Sep 23 '12 at 02:01
-
i believe you would need to set up a cron job for that – kennypu Sep 23 '12 at 02:08
-
Yes -- either way (PHP or Perl), you would need access to a cron job or something similar for something like this to work. – tdlm Sep 23 '12 at 02:10