You are here: Re: [PHP] file function « PHP « IT news, forums, messages
Re: [PHP] file function

Posted by Joseph Lee on 07/11/05 20:31

I see. Now I know how it works. Thank you, all, for
your great help.

Joe

--- Burhan Khalid <phplist@meidomus.com> wrote:

> Joseph Lee wrote:
> > Hi,
> >
> > I tried file() in the following lines:
> >
> > <?php
> > $authFile = file("/tmp/authenticate.txt");
> > print "authFile = $authFile";
> > ?>
> >
> > However, it only gave me
> > authFile = Array
> >
> > What's wrong with this file function? I tried
> single
> > quotes, but got the same answer, too.
>
> Nothing. You need to read the documentation. What
> you probably wanted was:
>
> print "authFile = ".implode("",$authFile);
>
> or file_get_contents().
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>




__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

 

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

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