Hoi ik zoek een script waarmee ik via een textbox iets kan schrijven en dat het dan direct wordt opgeslagen als .php in de Public_html
is dit mogelijk zonder database?
is dit mogelijk zonder database?
Dit is webwereld. Ik vraag om hulp niet om te betalen. Als het noodzakelijk is dan laat ik het maken.
hoe is hij gemaakt? met html/php
Christopher schreef:html en php, 0.5p voor gebruikerslicentie demo in PMHoeveel kost hijhoe is hij gemaakt? met html/php
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]new[/COLOR][COLOR= #007700]])){[/COLOR]
[COLOR= #0000BB]$file[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bestand[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]inhoud[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$file[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<form action="" method="post">
Bestandnaam: <input type="text" name="bestand" /><br />
Inhoud <textarea name="inhoud" rows="10" cols="70"></textarea>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Eleky schreef:Je moet je, zoals rik al zij, gewoon even simpel gaan verdiepen in fopen, close en write.
De simpelste vorm hiervan is:
Blabla