Hi,
Are you getting the 404 error when you try to run the PHP code? If so, please try to do this:
- Open your custom PHP file and add replace the "<?php" at the top with this:
<?php
/*
Template Name: Custom Script
*/
- Now go to Dashboard > Pages, create a new page and assign the Custom Script template to that page using the template dropdown. Open the page url in your browser (you click on Show Page in admin bar) and the custom script will be run.
Let me know if that helps you. Thanks!