On localhost webserver its working , in exe file it isnt.
I can import textfiles and show them in a textarea with the following code:
My readfile.php
My showfile.php contains this
on localhost i have no problems but in the exe the textarea is empty
I can import textfiles and show them in a textarea with the following code:
My readfile.php
Code:
<form action="index.php" method="POST">
<input name="file" type="file" /> <input type="submit" value="Import File" />
</form>
Code:
<textarea name="txtscript" id="txtscript" cols="45" rows="15"><?php echo htmlspecialchars($script); ?><?php $filename = $_POST'file']; $file = fopen($filename, "r"); echo htmlspecialchars(fread($file, filesize($filename))); fclose($file); ?></textarea><br />
Last edited: