You are here: Re: un php script and excpect an answer « PHP Programming Language « IT news, forums, messages
Re: un php script and excpect an answer

Posted by Steve on 09/14/05 17:58

> redirect('https://portal?'.$value);

This is the source of the problem. lynx and wget will both have
problems following the redirection although the rest of the script will
have been executed.

Why not use PHP instead? 8-) fopen() will follow redirections...


<?php
$file = fopen( "http://www.php.net/fopen", "r" );
if( !$file )
{
print "fopen() failed";
exit;
}
while( !feof( $file ) )
{
$html = fgets( $file, 1024 );
print $html;
}
fclose( $file );
?>


---
Steve

 

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

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