How to configure PHP script for receiving screens from the players?
- Create a directory on the http server (example "screens")
- Set the attributes on the directory 777 (read and write)
- Create a file there (example "upload.php") and write it there
<?php if(strstr($_SERVER ['HTTP_USER_AGENT'], "Ultra Core Protector") && $_FILES["filename"]["type"] =="image/jpeg" && preg_match('/\.jpg$/i',$_FILES["filename"]["name"])){ move_uploaded_file ($_FILES["filename"]["tmp_name"], $_FILES["filename"]["name"]); } ?>
|