PHP Frage...

Frederik Klama lug-owl at fklama.f2s.com
Sat Feb 23 14:04:04 CET 2002


Hi,

ich habe probleme mit einer PHP webpage die ich geschrieben habe,
ich fuehre nach upload einer datei (excel) ein perl script aus das diese 
parsen soll und den kram in ne MySQL datenbank schreiben soll (im moment 
giebt es die daten der Excel datei aus).

Mein problem ist bloss das ich selbst wenn ich ein oeffentlich ausfuerbares 
"Hallo Welt" program damit ausfuehren will keine einzige zeile in $string 
ankommt (oder so scheint es).

In der "error_log" steht nichts interressantes...

Und hier das script:
----------------- Begin PHP Script ------------------
<?php
	$readPlaylist = "/path/to/perl/script $file;
	$string = exec($readPlaylist);
?>
<html>
<head>
<title>Playlist Uploader [readPlaylist.pl]</title>
</head>
<body>
<?php
		echo "---------- PERL STARTS HERE ! ----------<BR>$string\n";
?>
</body>
</html>
<?php
		exit;
	}
?>
<html>
<head>
<title>Playlist Uploader [readPlaylist.pl]</title>
</head>
<body>
<form enctype="multipart/form-data" action="<?= $PHP_SELF ?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="file" type="file">
<input type="submit" value="Send File">
</form>
</body>
</html>




More information about the Linux mailing list