Thread: include
View Single Post

  #1 (permalink)  
Old 07-24-2007
Jean Pierre Daviau
 
Posts: n/a
Default include

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


Reply With Quote