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]
|