Reply to php wget: Return an empty file

Your name:

Reply:


Posted by Chris Blake on 04/08/05 10:47

Greetings PHP(eople),

I have a wget process that runs to download a file from a web site,
however, if no file exists at the location I`m pulsing, how do I get it
to abort ?

Here is the code :

<?php
$getfile = 'wget -dv -o log.txt http://www.somesite.co.za/somefile.php';
$get = shell_exec($getfile);
?>

I looked at filesize(), but if no file is brought back then there is
nothing for the function to check.

If someone could point me to the right PHP function, or a link
somewhere...

Regards

--
Chris Blake
Cell: 082 775 1492
Work: +27 11 782 0840
Fax : +27 11 782 0841
Mail: chris@pixcel.co.za

I have a very good DENTAL PLAN. 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

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