Lid |
|
op V1 ben ik een nieuwssysteem tegengekomen (http://www.sitemasters.be/V1/index.php?action=scripten&id=416/) wat mij handig leek, maar als ik het wil installeren, krijg ik een hele rits foutmeldingen:
Warning: fopen(config.php): failed to open stream: Permission denied in /home/santonman.nl/www/test/nieuws/installatie.php on line 37
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 38
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 39
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 40
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 41
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 42
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 43
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 44
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 45
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 46
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 47
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 48
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 49
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 50
Warning: fwrite(): supplied argument is not a valid stream resource in /home/santonman.nl/www/test/nieuws/installatie.php on line 51
Warning : fopen(config .php ): failed to open stream : Permission denied in /home /santonman .nl /www /test /nieuws /installatie .php on line 37 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 38 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 39 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 40 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 41 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 42 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 43 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 44 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 45 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 46 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 47 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 48 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 49 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 50 Warning : fwrite(): supplied argument is not a valid stream resource in /home /santonman .nl /www /test /nieuws /installatie .php on line 51
Er wordt verwezen naar deze regels:
$bestand=fopen($bestand,"w");
fwrite($bestand,"<?PHPn");
fwrite($bestand,"mysql_connect("".$host."\", \"".$user."\", \"".$pass."\") or die (mysql_error());\n");
fwrite($bestand,"mysql_select_db(\"".$database."\") or die (mysql_error());\n");
fwrite($bestand,'$tabelkleur1="#659FE0";');
fwrite($bestand,"\n");
fwrite($bestand,'$tabelkleur2="#FFFFFF";');
fwrite($bestand,"\n");
fwrite($bestand,'$inputtext="class=normalfield";');
fwrite($bestand,"\n");
fwrite($bestand,'$inputsubmit="class=normalbutton";');
fwrite($bestand,"\n");
fwrite($bestand,'$tabel="class=mediumtext";');
fwrite($bestand,"\n");
fwrite($bestand,"?>");
$bestand=fopen($bestand,"w"); fwrite($bestand,"<?PHPn"); fwrite($bestand,"mysql_connect("".$host."\", \"".$user."\", \"".$pass."\") or die (mysql_error());\n"); fwrite($bestand,"mysql_select_db(\"".$database."\") or die (mysql_error());\n"); fwrite($bestand,'$tabelkleur1="#659FE0";'); fwrite($bestand,'$tabelkleur2="#FFFFFF";'); fwrite($bestand,'$inputtext="class=normalfield";'); fwrite($bestand,'$inputsubmit="class=normalbutton";'); fwrite($bestand,'$tabel="class=mediumtext";');
Wat doe ik fout? De gegevens die ik moet invullen; kloppen zeker weten. De tabellen worden ook wel aangemaakt, maar config.php niet. Dus na installatie krijg ik daar meldingen over:
Warning: main(config.php): failed to open stream: No such file or directory in /home/santonman.nl/www/test/nieuws/index.php on line 4
Warning: main(config.php): failed to open stream: No such file or directory in /home/santonman.nl/www/test/nieuws/index.php on line 4
Warning: main(): Failed opening 'config.php' for inclusion (include_path='.:/ext/php4/lib/php') in /home/santonman.nl/www/test/nieuws/index.php on line 4
Warning : main (config .php ): failed to open stream : No such file or directory in /home /santonman .nl /www /test /nieuws /index .php on line 4 Warning : main (config .php ): failed to open stream : No such file or directory in /home /santonman .nl /www /test /nieuws /index .php on line 4 Warning: main(): Failed opening 'config.php' for inclusion (include_path='.:/ext/php4/lib/php') in /home/santonman.nl/www/test/nieuws/index.php on line 4
Veel tekst en code, maar ik hoop dat iemand mij kan helpen..
|