Jump to content

Archived

This topic is now archived and is closed to further replies.

Mutley

Creating folders via PHP?

Recommended Posts

How do you create folders using PHP? Like you would via FTP? Able to give it a name to?

Share this post


Link to post
Share on other sites
http://ca.php.net/manual/en/function.mkdir.php

Share this post


Link to post
Share on other sites
quick example for you.

[code]
<?php
if(isset($_POST['submit'])){

$name=$_POST['name'];

@mkdir($name);

}

?>

<form method="POST" action="test_name.php">
<br>
please tell me your dir name
<br>
<input type="text" name="name">
<br>
<input type="submit" name="submit" value="send">
[/code]

The rest read the link ok.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.