Reply to Re: file()

Your name:

Reply:


Posted by cmk128 on 04/02/07 03:32

On 4月1日, 下午11時40分, Andy Hassall <a...@andyh.co.uk> wrote:
> On 1 Apr 2007 02:07:27 -0700, cmk...@hotmail.com wrote:
>
> >$lines = file('http://google.com');
> >echo $lines[0];
>
> >it doesn't work,
>
> In what way does it not work? It works here:
>
> andyh@server ~/public_html $ php -q test.php
> <html><head><meta http-equiv="content-type" content="text/html;
> charset=ISO-8859-1"><title>Google</title><style><!--
>
> Saying "doesn't work" on its own is completely unhelpful; what did you expect?
> What actually happened?
>
> >i want to echo the first line, how to?
>
> You just did. Perhaps you want to do something else? Try being more precise;
> first line of what?
>
> --
> Andy Hassall :: a...@andyh.co.uk ::http://www.andyh.co.ukhttp://www.andyhsoftware.co.uk/space:: disk and FTP usage analysis tool

thank you

[Back to original 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

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