I use the following command to save some configuration:
then config.php should look like something like this:
but it does looks like this:
can anyone tell me what's the error and maybe fix it
?
thanks in advance
//golles
| Code: |
| $file = fopen("config.php", "r+") or die("<p class=\"red\">Fout met openen van het bestand!</p>");
$file_out = fwrite($file, "<?php\n$title = \"{$_POST['title']}\";\n$banner = \"{$_POST['banner']}\";\n$backgroundimg = \"{$_POST['backgroundimg']}\";\n?>") or die("<p class=\"red\">Fout met schrijven naar config.php!<br/>Kijk a.u.b. of de CHmod goed is ingesteld!</p>"); fclose($file); |
then config.php should look like something like this:
| Code: |
| <?php
$title = "Bier drinken doe je samen"; $banner = ""; $backgroundimg = "images/heineken7_1024x768.jpg"; ?> |
but it does looks like this:
| Code: |
| <?php
= "Bier drinken doe je samen"; = ""; = "images/heineken7_1024x768.jpg"; ?>es/heineken7_1024x768.jpg"; ?> |
can anyone tell me what's the error and maybe fix it
thanks in advance
//golles
