You are here: Re: include « PHP Language « IT news, forums, messages
Re: include

Posted by Jean Pierre Daviau on 07/25/07 16:31

----------- auto.inc --------

$autoexec = "auto.bat";
$path = "\n%path%=%path%;c:\php\php.exe";

------------------
<?

//"C:\Program Files\EasyPHP1-8\php\php.exe" -check-f auto.php


require_once('auto.inc');


function updateFichier(){
global $autoexec, $path;

if (!$myBool = fopen ($autoexec, "a")) {
echo "Impossible de crιer le fichier ($autoexec)";
exit;
}

if (is_writable($autoexec)) {
if (fwrite($myBool, $path) === FALSE) {
echo "Impossible d'ιcrire dans le fichier ($autoexec)";
exit;
}

fclose($myBool);
}else{
echo "Le fichier $autoexec n'est pas accessible en
ιcriture.";
}
return $autoexec;
}

$file = updateFichier();
$handle = fopen ($file, "r");
echo "\n\n";
echo fread ($handle, filesize ($file));
?>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация