קוד:
<form method="POST">
<input type="hidden" name="post" value="1">
<input name="url" size="26"> <input type="submit" value="Shortcut >>">
</form>
<?php
if($_POST['post'] == "1") {
$rand = rand(1111, 9999);
mkdir("$rand", 0777);
fopen("$rand/index.txt", "MA KOrE?");
}
?>
עשיתי ככה,
זה יוצר תיקיה.. אבל לא את הקובץ.
ציטוט:
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 749 is not allowed to access /home/startzero/domains/startzero.net/public_html/u/3685 owned by uid 100 in /home/startzero/domains/startzero.net/public_html/u/url.php on line 12
Warning: fopen(3685/index.txt) [function.fopen]: failed to open stream: No such file or directory in /home/startzero/domains/startzero.net/public_html/u/url.php on line 12
|