Posted by Jean Pierre Daviau on 07/24/07 21:04
Hi,
I created an include file with a listing of paths.
--- snip ----
global $autoexec;
$autoexec = "C:\backJP\autoexec.bat";
ect;
--- snip ----
require_once('paths.inc');
function updateFichier(){
if (!$myBool = fopen ($autoexec, "a")) {
echo "Cant create($autoexec)";
exit;
....
}
The include file is printed on screen
The function exit with Cant create the file
If I write
function updateFichier(){
global $autoexec;
$autoexec = "autoexec.bat";
.......
it works . . .
Why?
Thanks for your attention.
Jean Pierre Daviau
--
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
Navigation:
[Reply to this message]
|