Discussion: Re: include
Afficher un message
Vieux 25/07/2007, 15h32   #2
Jean Pierre Daviau
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: include

It seems that the include path are not considered as files.
is_file($autoexec) returns false

I changed this:
--- inc file ----
$autoexec = "auto.bat";
$path = "\n%path%=%path%;c:\php\php.exe";
----

> --- snip ----

require_once('paths.inc');

function updateFichier(){
global $autoexec, $path;
> 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



  Réponse avec citation
 
Page generated in 0,06125 seconds with 9 queries