| | |||||
| ||||||||
| 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: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP and FTP I am trying to echo the logfiles on my server onto a page but I get the following error messages: Code: Connected as yarrt.com@ftp.yarrt.com Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 17 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051013.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 17 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 18 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051014.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 18 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 19 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051015.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 19 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 20 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051016.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 20 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 21 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051017.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 21 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 22 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051018.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 22 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 23 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051019.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 23 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 24 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051020.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 24 Warning: fopen(): php_hostconnect: connect failed in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 25 Warning: fopen(ftp://yarrt.com/logfiles/W3SVC1164009808/ex051021.log): failed to open stream: Bad file descriptor in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 25 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 27 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 28 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 29 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 30 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 31 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 32 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 33 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 34 Warning: fread(): supplied argument is not a valid stream resource in e:\domains\y\yarrt.com\user\htdocs\statstest\index.php on line 35 PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | nope, tried that, I looked in FTP surfer and the url is ftp://yarrt.com |
| |
| | #4 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | tried that host using an ftp client and it did not work so they must not have an ftp at that address unless it is down. Did try what primacomputer suggested as well which DID work. Looking at your code why are you 1 minute using ftp.yarrt.com and in the rest using ftp://yarrt.com that is most likely where your problem is. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| •Host Unlimited Websites - Only $5/Month +cPANEL|WHM|FANTASTICO ~ Shared & Reseller ~ | Hoobastank68 | Web Hosting Offers | 0 | 10-03-2005 09:08 PM |
| RESELLER WEB HOSTING - $9.99/MONTH For 4GB HD & 30GB BW! CPanel, PHP, MySQL & MORE! | IncognitoNet | Web Hosting Offers | 0 | 09-17-2005 07:40 AM |
| PHP Designer 2005 | dgridley | Free Resources | 16 | 09-09-2005 07:50 PM |
| WEB HOSTING - $4.99/MONTH For 1GB HD & 25GB BW! CPanel, PHP, MySQL & MORE! | IncognitoNet | Web Hosting Offers | 0 | 09-02-2005 07:20 PM |