Click here to Skip to main content
16,016,022 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
I need to create a prolog file in php, because i want to save a response comming from it.

Note: i use linux ubuntu

thanks
Posted

1 solution

A prolog source code file contains plain text. The entire file content is a string. The file_put_contents function offers the simplest approach to writing a string to the file system:

file_put_contents ( $name_of_output_file, $string_content_of_prolog_source_code );

(PHP) file_put_contents: http://www.php.net/manual/en/function.file-put-contents.php[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900