domaintrader Posted April 21, 2006 Share Posted April 21, 2006 question i have a sever with 7 ip addresess, i have 7 domains each assigned a different ip. i have a php script running on each domain name. what i need is to force those scripts to run off a certain ip address these small php scripts submit small bits of info to a bunch of sites that record submitted info and recored the submitters ip address, thats why i need each set of scripts to be forced to use a certain ip so i can submit multiable times to the same site.if anyone know how to make this happen i would be willing to pay for the working info. or hire you to do the work. Quote Link to comment Share on other sites More sharing options...
domaintrader Posted April 21, 2006 Author Share Posted April 21, 2006 i have herd to use a http header request or the ip's are static store them in a DB or text file and use an if query to make sure that ip matches for the scriptcan some one help me please Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 21, 2006 Share Posted April 21, 2006 Sorry but all that was not ultimately clear howerver.....you could simply run a cron job on one server that has accessto all the databases and any directories where you need to grab files and let that run on just the one site. Quote Link to comment Share on other sites More sharing options...
redarrow Posted April 21, 2006 Share Posted April 21, 2006 What a wast of ip address, i dont beleve that a php programmer would wast 7 ip's on 7 scripts well shocked had to reply.What you should of done is have 1 ip on one computer and use apache to proxy the 7 domain names to the php scripts.Unless i got it all wrong sorry but ip address are getting so scerce in todays world and unless your useing all your ips to serve 7 diffrent computers to do 7 diffrent jobs your well wasting your money.example:1 ip address can provide unlimited sub domains very shocked.good luck look up your sever manual to lookup proxy server ok and then inplement the above surgestion. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.