Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Section 10 - Working with Files July 08, 2012 10:31PM |
Registered: 11 years ago Posts: 62 Rating: 0 |
Re: Section 10 - Working with Files July 10, 2012 10:07PM |
Registered: 11 years ago Posts: 99 Rating: 0 |
Anonymous User
Re: Section 10 - Working with Files July 23, 2012 07:20PM |
Rating: 0 |
Re: Section 10 - Working with Files July 25, 2012 10:38PM |
Registered: 11 years ago Posts: 100 Rating: 0 |
Language: PHP<?php $fhandle = fopen("testFile.txt", "a"); $fcontents = "did it change?"; file_put_contents($fhandle, $fcontents); fclose($fhandle); print "file created and written to"; ?>
Re: Section 10 - Working with Files July 26, 2012 06:54AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Section 10 - Working with Files July 26, 2012 02:58PM |
Registered: 11 years ago Posts: 100 Rating: 0 |
Re: Section 10 - Working with Files July 27, 2012 08:01PM |
Registered: 11 years ago Posts: 100 Rating: 0 |
Language: PHP<?php $fhandle = "testFile.txt"; //file to be edited $fcontents = "Lets hope it works"; //contents to be added $path = realpath("testFile.txt"); //test text file path echo $path."<br>"; $file = realpath("TestwriteToFile.php"); //test php page path echo $file."<br>"; file_put_contents($fhandle, $fcontents); echo "file created and written to"; ?>
Re: Section 10 - Working with Files July 30, 2012 07:17AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Section 10 - Working with Files August 06, 2012 05:32PM |
Registered: 11 years ago Posts: 43 Rating: 0 |
Re: Section 10 - Working with Files August 07, 2012 02:57AM |
Registered: 15 years ago Posts: 79 Rating: 0 |
Re: Section 10 - Working with Files August 07, 2012 07:24AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Section 10 - Working with Files August 07, 2012 07:17PM |
Registered: 12 years ago Posts: 131 Rating: 0 |
Re: Section 10 - Working with Files August 08, 2012 11:28AM |
Registered: 11 years ago Posts: 43 Rating: 0 |
Re: Section 10 - Working with Files September 29, 2012 04:05PM |
Registered: 11 years ago Posts: 35 Rating: 0 |