You are here: weird error with file() and implode() « PHP Programming Language « IT news, forums, messages
weird error with file() and implode()

Posted by Stephen Kay on 03/29/06 22:29

Maybe I don't understand how to use this yet, but I was using (example):

$html = implode('', file('http://www.mysite.com/transbar.html'));
echo $html;


This works.

But if I try it on a .php file:


$html = implode('', file('http://www.mysite.com/transbar.php'));



I get this error:

Warning: file("http://www.mysite.com/transbar.php") - Success in
/home/cust1/usr2345/html/setuptransbar.php on line 47

Warning: Bad arguments to implode() in
/home/cust1/usr2345/html/setuptransbar.php on line 47


Can't you read in a php file this way?

Thanks,
--
Stephen Kay
Karma-Lab sk@karma-lab.NOSPAM.com
^^^^^^^

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация