Script werkt niet .. fout op regel 10 :S
bjorn
08/01/2007 10:34:00Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$data = $_POST['data'];
$site = $_POST['site'];
$myFile = "$site";
$pagina1 = '<?php
$text = "';
$pagina2 = '";
?>
<?php
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $pagina1);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $data);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $pagina2);
fclose($fh);
print "Klaar!";
require("terugknop.php");
?>
dit werkt niet hij geeft error op regel 10 maar ik snap niet waarom .. hij geeft trouwens deze error :
Parse error: syntax error, unexpected T_STRING in /home/webshop/domains/goodgame.bc-inf.nl/public_html/test3/verwerken.php on line 10
$data = $_POST['data'];
$site = $_POST['site'];
$myFile = "$site";
$pagina1 = '<?php
$text = "';
$pagina2 = '";
?>
<?php
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $pagina1);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $data);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $pagina2);
fclose($fh);
print "Klaar!";
require("terugknop.php");
?>
dit werkt niet hij geeft error op regel 10 maar ik snap niet waarom .. hij geeft trouwens deze error :
Parse error: syntax error, unexpected T_STRING in /home/webshop/domains/goodgame.bc-inf.nl/public_html/test3/verwerken.php on line 10
PHP hulp
04/12/2024 09:25:01Willem Jan Z
08/01/2007 10:41:00bjorn
10/01/2007 13:35:00Joren de Wit
10/01/2007 13:37:00Derk Janssen
10/01/2007 13:39:00ik weet niet wat de bedoeling is
Code (php)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
<?php
$data = $_POST['data'];
$site = $_POST['site'];
$myFile = "$site";
$pagina1 = "'";
$text = "'";
$pagina2 = "'";
?>
$data = $_POST['data'];
$site = $_POST['site'];
$myFile = "$site";
$pagina1 = "'";
$text = "'";
$pagina2 = "'";
?>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $pagina1);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $data);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $pagina2);
fclose($fh);
print "Klaar!";
require("terugknop.php");
?>
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $pagina1);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $data);
fclose($fh);
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $pagina2);
fclose($fh);
print "Klaar!";
require("terugknop.php");
?>