Is it ok to run multiple PHP cURL scripts via windows command line? -
lets 5 different curl
scripts each running on different cmd window
@ same time on same machine. ok? act same running different tabs on browser?
i add of scripts have php simple html dom parser
in them. change anything?
all thoughts on appreciated.
yes, can that. code perspective, same having 5 different users load site @ once. same server perspective. in fact, pretty simplistic way test simulated load on page , see how handles it. not best way far, quick , dirty.
just careful when generating these 5 scripts don't end in runaway situation 5 have not finished , exited before run more. overload own server/site if end dozens or hundreds of scripts running.
also aware if you're doing heavy processing in scripts, may hit php/mysql/apache timeouts, keep eye on that.
make sure these calls thoroughly protected public too, or else send thousands of calls it, crashing site.
if need heavy processing it's best command line php script triggered cron job. gives more control , security.
Comments
Post a Comment