does fopen() never stop trying to open a file ? (on a server

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
mcandrey
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Mar 25, 2003 3:59 am
Location: bucharest-romania
Contact:

Post by mcandrey » Tue Mar 25, 2003 4:31 am

try socket_set_timeout

mcandrey
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Mar 25, 2003 3:59 am
Location: bucharest-romania
Contact:

Post by mcandrey » Tue Mar 25, 2003 4:33 am

or:

<?php
error_reporting(E_ALL);

/* Add redirection so we can get stderr. */
$fp = popen('x.php', 'r');
echo "'$fp'; " . gettype($fp) . "\n";
$read = fread($fp, 2096);
echo $read;
pclose($fp);
?>

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests