开发者

PHP: mkdir on buttonclick?

开发者 https://www.devze.com 2023-01-06 21:33 出处:网络
i sor开发者_开发百科t of want to create a little backend of a small website. i wonder how i make a button that creates a folder on my server?

i sor开发者_开发百科t of want to create a little backend of a small website. i wonder how i make a button that creates a folder on my server?

mkdir should work! however how can i trigger the mkdir event on a buttonclick?


Yes -- you will have to either submit with the button click or use AJAX (I suggest using a javascript library such as jQuery). That will then get you on the server side where you can execute mkdir().

0

精彩评论

暂无评论...
验证码 换一张
取 消