Results 1 to 10 of 10
-
26th Feb 2012, 08:02 AM #1OPMember
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
-
26th Feb 2012, 08:55 AM #2BannedWebsite's:
worldwidexs.com.auYou want the function to operate through a specific IP or what exactly did you mean?
-
26th Feb 2012, 09:08 AM #3It 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.
-
26th Feb 2012, 11:02 AM #4OPMember
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 :/
-
26th Feb 2012, 11:10 AM #5BannedWebsite's:
xsl.tel xsltel.comHello,
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
-
26th Feb 2012, 11:16 AM #6OPMember
No, I'm looking to bind outgoing ip.
-
26th Feb 2012, 11:51 AM #7BannedWebsite's:
xsl.tel xsltel.comok 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
-
26th Feb 2012, 02:49 PM #8It 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.
-
26th Feb 2012, 02:55 PM #9(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comCURLOPT_INTERFACE.
If you edit the code.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
2nd Mar 2012, 01:01 PM #10OPMember
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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 5 users browsing this thread. (0 members and 5 guests)
Similar Threads
-
Curl to Uploaded.to
By skinner in forum Web Development AreaReplies: 18Last Post: 12th Feb 2012, 07:05 AM -
Curl IPB help
By xwarlordx in forum Web Development AreaReplies: 3Last Post: 23rd Aug 2011, 06:33 AM -
Php cUrl Help Needed
By warezrock in forum Web Development AreaReplies: 3Last Post: 4th Aug 2011, 11:51 PM -
cURL Pro Coders.
By kohkindachi in forum Completed TransactionsReplies: 2Last Post: 5th Dec 2010, 12:30 AM -
How to install CURL in WHM
By ken in forum Technical Help Desk SupportReplies: 2Last Post: 22nd Sep 2010, 01:46 PM
themaManager - edit and manage...
Version 4.19 released. Open older version (or...