| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | fopen a secure area What I'm trying to do is something like this: PHP Code: Any help is much appreciated |
| |
| | #2 (permalink) |
| Buy my domains. | 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 08:45 PM. |
| |
| | #3 (permalink) |
| Senior Member | 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:
__________________ || VPSByte Virtual & Dedicated Solutions || True 24/7/365 support with a 1 hour guaranteed response time! || We offer budget, yet powerful dedicated servers and vps solutions. || All servers come w/ 10Mbps unmetered bandwidth & lite management standard. Last edited by Camron; 05-20-2007 at 08:53 PM. |
| |
| | #5 (permalink) | |
| Senior Member | Quote:
Thanks for your help, rep coming your way!
__________________ || VPSByte Virtual & Dedicated Solutions || True 24/7/365 support with a 1 hour guaranteed response time! || We offer budget, yet powerful dedicated servers and vps solutions. || All servers come w/ 10Mbps unmetered bandwidth & lite management standard. | |
| |
| | #7 (permalink) | |
| Senior Member | Quote:
Thanks!
__________________ || VPSByte Virtual & Dedicated Solutions || True 24/7/365 support with a 1 hour guaranteed response time! || We offer budget, yet powerful dedicated servers and vps solutions. || All servers come w/ 10Mbps unmetered bandwidth & lite management standard. | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |