Re: calling a php script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



try

$fp = fopen (http://www.example.com/otherscript.php?a=1&b=2, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);

then preg_match $contents for any output.


"Gerardo Rojas" <grojas@strategicinc.com> wrote in message
F0EDCD6B96C14741A2F6B0BE6EB7D9CF4BC3D1@scsprdm.strategicinc.com">news:F0EDCD6B96C14741A2F6B0BE6EB7D9CF4BC3D1@scsprdm.strategicinc.com...
I'm trying to call a php script from another php script.  I have the script
name in a variable.  Any suggestions on how to implement this?  I tried the
"back-tick" and the exec.  I even tried doing it with a *.bat file.  Nothing
seems to work.  I'm on W2k and php 4.3.3

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux