Is there any way different from using C / program file /../../ htdocs / test.txt c / test / test.txt I am using the following code: Many thanks in advance! When you computer either you can use a relative or full path like this: point to both of those files at one place file_put_contents I mean instead? < Blockquote>
$ date = current_date; $ File = "test_" $ date ".txt"; $ Contents = "testtest"; File_put_contents ($ file, $ content);
// full path $ file = "C: /temp/test.txt"; // relative paths from C: / program files / wamp / htdocs / index.php $ file = "../../temp/test.txt";
No comments:
Post a Comment