| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jan 2006 Location: Portland, Oregon
Posts: 2,102
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | fopen a secure area What I'm trying to do is something like this: PHP Code: ????: NamePros.com http://www.namepros.com/programming/330116-resolved-fopen-a-secure-area.html Any help is much appreciated |
| |
| | #2 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | http://www.namepros.com/code/257265-curl-class.html $curl->set_userpass("user:pass"); $data = $curl->get("http://domain.com/something.cgi"); I think that should work (and what you did should work, too?).
Last edited by Dan; 05-20-2007 at 09:45 PM.
|
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jan 2006 Location: Portland, Oregon
Posts: 2,102
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Doesn't seem to be working, included the class & used the above example but it doesn't seem to be doing anything at all. Doesn't even show any errors on the page. I thought fopen should work, but it doesn't for some reason. Edit, this is the error I get using fopen (I don't get anything using your curl class) Code: Warning: fopen(http://...@<domain>/<file>.cgi) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized in /file/folder/reboot.php on line 44 PHP Code: ASS@domain.com/file.cgi) and it loads just fine.
__________________ HostingFuze.com Premium Master Reseller Services | 99.9% Uptime Guaranteed SLA | Starting at $4.95/mo Basic Reseller Hosting @ HostFz.com - Services starting as low as $1.95/mo!
Last edited by Camron; 05-20-2007 at 09:53 PM.
|
| |
| | THREAD STARTER #5 (permalink) | ||||
| Senior Member Join Date: Jan 2006 Location: Portland, Oregon
Posts: 2,102
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=330116 Thanks for your help, rep coming your way!
__________________ HostingFuze.com Premium Master Reseller Services | 99.9% Uptime Guaranteed SLA | Starting at $4.95/mo Basic Reseller Hosting @ HostFz.com - Services starting as low as $1.95/mo! | ||||
| |
| | THREAD STARTER #7 (permalink) | ||||
| Senior Member Join Date: Jan 2006 Location: Portland, Oregon
Posts: 2,102
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks!
__________________ HostingFuze.com Premium Master Reseller Services | 99.9% Uptime Guaranteed SLA | Starting at $4.95/mo Basic Reseller Hosting @ HostFz.com - Services starting as low as $1.95/mo! | ||||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |