Re: Re: Freshmeat question
| From: | De deco | Date: | Mon, 20 Jan 2003 21:16:09 +0000 |
| Subject: | Re: Re: Freshmeat question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132290@lists.php.net to get a copy of this message | ||
Thanks Martin.
This is great. :)
I am not new to programming, just to scripting languages. I have seen that Perl has some high
advanced sintaxes for string processing, for example, but I don't know if the same level can
also be achieved in PHP...?
As for the script below, could I run it inside a (my) browser? This could be in any browser?
---Original Message---
Date: Mon, 20 Jan 2003 15:51:05 +0100
From: Martin Thoma <martin@radiok2r.de>
Subject: Re: Freshmeat question
To: php-general@lists.php.net
Well, it's quite easy: Just write a php-script and start it with php
myscript.php. Thats all.
You could fetch a web-page with fopen:
$fp = fopen("http://www.mydomain.com/",
"r");
$line = "";
while(!feof($fp))
{ $line .= fgets($fp, 4096);
}
fclose($fp);
print $line;
If you are new in programming, I think PHP is easyier to learn than
Perl.
Martin
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife