How to create a text file in PHP?
Answer / Vibhav Kumar Gaurav
To create a text file in PHP, you can use the `fopen()`, `fwrite()`, and `fclose()` functions:n- `$fp = fopen('filename.txt', 'w')` to open the file for writing.n- `fwrite($fp, $content)` to write content to the file.n- `fclose($fp)` to close the file.
| Is This Answer Correct ? | 0 Yes | 0 No |
i want the different aptitude questions on interview way
Why does php need server?
How to check an key is exists in array?
What are php variables?
How do you put a space in html?
at present am learning lamp course sir ..i want to know the carrer prospectus in php ...is there any companies recruiting freshers in chennai ..for freshers how much can i demand as a fresher in php ....?i finished my mca ..please sugggest me to face interview in php asking salary details and all please suggest me how much can i ask as a fresher in php ? and also tel is there any openings in chennai for recruting php freshers send their emails and company info please ? please send ur valuable suggestions to kiranpulsar2007@gmail.com i hope u wil reply to my question thank u guys bye take care see u soon all the best to everyone
Tell us how can we access the data sent through the url with the post method?
How do you clear environment variables?
what is interface in java.
How can we submit a form without a submit button?
What is string and its function?
What is properties of class?