Re: [PHP] File - Success Warning Message
On Thu, 4 Dec 2003 01:54:31 -0800 (PST), you wrote: Warning: file(http://webmail.juicemarketing.net;) - Success in /me notes this is a pyramid scam site Don't know about the rest of you... but there are some people I'd prefer /not/ to do free consultancy for. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File - Success Warning Message
Hello everyone! I'm getting this weird warning message when I include a file. I was hoping someone could point me in the right direction. ==The Code== $_html = implode('',file('http://myaddress.com')); print_r($_html); === This code gives the following error: Begin Error-- Warning: file(http://webmail.juicemarketing.net;) - Success in /home/sites/site38/web/webbrowser.php on line 3 Warning: Bad arguments to implode() in /home/sites/site38/web/webbrowser.php on line 3 ---End Error - $_html is empty, even though the remote page exist and is working properly. What is causing that warning? Am I misssing something? I am using php 4.0.6 (*don't ask...I'm trying to get the ISP to upgrade...) with allow_url_fopen set to '1'. OS: LInux PHP: 4.0.6 =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File - Success Warning Message
Hello [-^-!-%-, Thursday, December 4, 2003, 9:54:31 AM, you wrote: $_html = implode('',file('http://myaddress.com')); Sorry, just noticed you're bringing it back via file which (should) convert it to an array. In which case the bad argument would be the lack of a delimeter (the first value). Try setting it to \n or something? -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File - Success Warning Message
Hello [-^-!-%-, Thursday, December 4, 2003, 9:54:31 AM, you wrote: $_html = implode('',file('http://myaddress.com')); Warning: Bad arguments to implode() in $_html is empty, even though the remote page exist and is working properly. implode creates a string from an array. Your web page is not an array! The Bad arguments warning is trying to tell you this. That is why $_html is empty. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php