upload and execute

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
okiesplace
Forum Newbie
Posts: 2
Joined: Tue May 20, 2008 7:19 pm

upload and execute

Post by okiesplace »

A little help if possible pls...

I have several remote servers that upload sql file to website
files are received using the following code...

<?php
$uploaddir = "filelist/";
$file = $uploaddir . $_FILES['uploadfile']['name'];
move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)
?>

Having received these files, i would like to auto add the $conn code to file
and then auto execute it.
when executed and data inputted into database. then delete the file.

Would appreciate some advise. I have very little knowledge of PHP

Keith
okiesplace
Forum Newbie
Posts: 2
Joined: Tue May 20, 2008 7:19 pm

Re: upload and execute

Post by okiesplace »

To add to above.

All files received are called xxxxxx-logfile.sql

Thanks
Post Reply