SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    running php scripts through proxy server or different location?

    I am writing a web monitoring script as a side project... everything is working great except that I want to add the functionality of checking a site from multiple locations... Is there a way I can call a site through a proxy server and get correct results? Or do I need to have my scripts running on servers that are physically in different locations that send info to my central server?

    If the second option is the right route, how do coordinate all the scripts with a single cron job on the central server?

  2. #2
    SitePoint Addict bronze trophy vectorialpx's Avatar
    Join Date
    Dec 2012
    Location
    Bucharest
    Posts
    219
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    To run from a proxy server you may use http://php.net/curl and use options like:
    CURLOPT_PROXY, CURLOPT_PROXYPORT, CURLOPT_PROXYUSERPWD ("userass")
    There are examples on the web https://www.google.com/search?q=php+curl+proxy

    Update // Never used, I cannot say I'm an expert it's just a hint.

  3. #3
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by carpekd View Post
    bump.... is this even a php issue? I really would like to know how to do this...
    Hi carpekd, please don't bump threads on SitePoint. If you are not getting an answer it is likely that either people don't have an answer, don't understand what you are asking or haven't see it yet. @vectorialpx did respond but next time Instead of bumping try asking your question in a different way.
    ictus==""


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •