Connecting to a server in CRON...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mertero
Forum Newbie
Posts: 2
Joined: Mon Oct 01, 2007 1:10 am

Connecting to a server in CRON...

Post by mertero »

Hello guys.

I question... I'm using a cron job to update some caches in our database. To update the cache I use curl to connect to some APIs from 3rd party servers and get data.

We have several such cron job running at the same time (each at its own interval, anyway...).

Is it problematic if those cron connect to the same server in the same time? I mean, can I use HTTP (with the curl library) to connect with the same machine to another same server in the same time? Or will I have a problem?

Thanks!

Ron
jeffery
Forum Contributor
Posts: 105
Joined: Mon Apr 03, 2006 3:13 am
Location: Melbourne, Australia
Contact:

Post by jeffery »

As far as the HTTP server is concerned, it is just another HTTP request. I don't see a problem there.
mertero
Forum Newbie
Posts: 2
Joined: Mon Oct 01, 2007 1:10 am

Post by mertero »

Jeffery,

Thanks. That was quick ;-)

I was just wondering because I find that in my own personal computer when I try to connect to the same machine and it seems like it is stuck till the first machine has finished with my http request.

THanks!

Ron.
Post Reply