WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Plugin Admin Page: How To Call a PHP script using AJAX? (1 post)

  1. John Peden
    Member
    Posted 1 year ago #

    I've written a plugin that creates a backup of wp-content and zips it too. At the moment, its basically just a PHP form and the user can select what they want to back up.

    On some hosting systems, the plugin encounters php_max_execution_time and halts. Additionally, the admin page has to wait for the script to run before it can load which doesn't look particularly nice.

    How can I use AJAX to call the PHP script to run the backup/restore process without the user leaving/reloading the admin page? How can I also ensure the process is carried-out in small chunks which avoid timeouts?

Topic Closed

This topic has been closed to new replies.

About this Topic