Activity Stream
48,167 MEMBERS
62400 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default Binding an ip to php curl

    Is there a way to bind an ip to php's curl functions without editing the source code of the script? Is it possible to that just by editing php.ini or apache's conf?
    masterb56 Reviewed by masterb56 on . Binding an ip to php curl Is there a way to bind an ip to php's curl functions without editing the source code of the script? Is it possible to that just by editing php.ini or apache's conf? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    worldwidexs.com.au
    You want the function to operate through a specific IP or what exactly did you mean?

  4.     
    #3
    It begins...
    You can either edit the script, or you can use 'route' on the server. But using 'route' will bind all operations on the server to that IP address, and not just a specific script/file.

  5.     
    #4
    Member
    Ah but the thing is I just want it to be with that specific application - php. I'm running other apps on a different ip. Apache's listen config only changes the incoming ip but not the outgoing :/

  6.     
    #5
    Banned
    Website's:
    xsl.tel xsltel.com
    Hello,

    if you need to bind php script to another IP incoming traffic only (outgoing will be handled by main server IP) then you will have to bind Apache as subdomain (sub.domain.com) on the another IP.

    and put the script on that subdomain .

    well at least that what I understood from your last post

    Highest Regards
    Mohammed H

  7.     
    #6
    Member
    No, I'm looking to bind outgoing ip.

  8.     
    #7
    Banned
    Website's:
    xsl.tel xsltel.com
    ok then nginx with fastcgi_bind to php script can do that for you

    or if you have apache take a look at this tut
    http://blog.nachtarbeiter.net/2008/0...ic-ip-address/

    didn't try it though but comments seems ok for me.

    Highest Regards
    Mohammed H

  9.     
    #8
    It begins...
    You could, alternatively, create a VM on the main server and host the php app on that. But that's a wasteful method, since VMs are redundant if you're only going to use them for one application.

    Route or curl's ip bind function are your best options.

  10.     
    #9
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    CURLOPT_INTERFACE.

    If you edit the code.
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

  11.     
    #10
    Member
    Well I didn't resolve the problem but just went around it. I didn't create a VM as LT suggested as that would waste too much resources so I just went with aria2's bind interface capability instead of php's curl func

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 guests)

Similar Threads

  1. Curl to Uploaded.to
    By skinner in forum Web Development Area
    Replies: 18
    Last Post: 12th Feb 2012, 07:05 AM
  2. Curl IPB help
    By xwarlordx in forum Web Development Area
    Replies: 3
    Last Post: 23rd Aug 2011, 06:33 AM
  3. Php cUrl Help Needed
    By warezrock in forum Web Development Area
    Replies: 3
    Last Post: 4th Aug 2011, 11:51 PM
  4. cURL Pro Coders.
    By kohkindachi in forum Completed Transactions
    Replies: 2
    Last Post: 5th Dec 2010, 12:30 AM
  5. How to install CURL in WHM
    By ken in forum Technical Help Desk Support
    Replies: 2
    Last Post: 22nd Sep 2010, 01:46 PM

Tags for this Thread

BE SOCIAL