Timeout fopen

Dibatalkan Disiarkan Jun 30, 2008 Dibayar semasa penghantaran
Dibatalkan Dibayar semasa penghantaran

I need in PHP a script that opens the following URL:

[url removed, login to view];q=god

However, you must perform the following 3 actions. If you can show the script you will be selected with great feedback.

1. You must set a "timeout" on the fopen, if it does not return in number of seconds that I set, then it must abort and try the Yahoo keword searc URL

2. If it does Open, the set the timeout for "the read" operation, if the read does not return in a certain time, then abort and try the Yahoo URL, again testing its fopen and read with timeout

3. Print the results of keyword search to the browser.

Here is an example with fsockopen. HOWEVER!!!!! do NOT use fsockopen with timeout, the POINT of the project to use fopen.

$fp = @fsockopen($url, 80, $errno, $errstr, $timeout);

Budget $20.

thank you

PHP

ID Projek: #280964

Tentang projek

Projek jarak jauh Aktif Jun 30, 2008