What I'm trying to do is to make an installation file where the user enters the database, username, password, and host as a first step in a php system installation.
Go to File > Save As… and save the file as "helloworld2. php", and open it in your browser by using the address: http://localhost/helloworld2.php. The output is the same as before, but this time the text is in bold. Make sure you save the file to your "server's" document root directory.
php" is neccessary if you want to write the php code, otherwise you can write the html only in php file without "<? php" .
It is same as you are creating other files but just add the extension .php
$fp=fopen('filename.php','w');
fwrite($fp, 'data to be written');
fclose($fp);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With