Jump to content

[SOLVED] Quick question regarding uploading files


forumnz

Recommended Posts

I am going to write a script to upload a text file - my question is, how can I take the contents of that file and set it as a variable.

 

For example, the file is a text file that reads "The quick brown fox jumps over the lazy dog". When the file dog.txt is submitted the script should take the file and set:

 

<?
$var = "The quick brown fox jumps over the lazy dog";
?>

 

This is probably a really dumb question but if you can help then thanks a lot!

 

Sam :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.