Forum: PHP Jul 23rd, 2008 |
| Replies: 14 Views: 449 Re: Another Problem Ok, now maybe I will just have to open files the way you did. Can you explain how this part of the code works?
<?php
$file="testFile.txt";
$fp = fopen($file, "a+");
?> |
Forum: PHP Jul 23rd, 2008 |
| Replies: 14 Views: 449 Re: Another Problem Alright, I think it just worked, I changed the name of the text file, ran the php file again, and there was another text file named testFile.txt. The script outputted: file opened The file is empty |
Forum: C++ Jul 23rd, 2008 |
| Replies: 12 Views: 729 Re: making a simple c++ game I'm not a C++ type person, but at line 44 where you start the if statement, there are no brackets starting and ending that. Also, I think you need brackets for the else statements too. I don't know... |
Forum: PHP Jul 23rd, 2008 |
| Replies: 14 Views: 449 |
Forum: PHP Jul 23rd, 2008 |
| Replies: 14 Views: 449 Re: Another Problem It worked, and inside the text file I put in the words Hi, and this is what was outputted:
file opened Hi
So opening files work if it's already there, but I can't create new ones for some reason |
Forum: C++ Jul 23rd, 2008 |
| Replies: 11 Views: 541 |
Forum: Game Development Jul 22nd, 2008 |
| Replies: 2 Views: 498 |
Forum: IT Professionals' Lounge Jul 22nd, 2008 |
| Replies: 5 Views: 796 |
Forum: PHP Jul 22nd, 2008 |
| Replies: 14 Views: 449 |
Forum: PHP Jul 22nd, 2008 |
| Replies: 14 Views: 449 Re: Another Problem Do you mean this?
Directive Local Value Master Value
allow_url_fopen On On
Or this one:
disable_functions no value no... |
Forum: IT Professionals' Lounge Jul 22nd, 2008 |
| Replies: 6 Views: 472 Re: Help What kind of file is the one that you want them to see? |
Forum: PHP Jul 22nd, 2008 |
| Replies: 14 Views: 449 Re: Another Problem Alright, your idea (buddylee) worked, by telling me that the file did not open, but how can I get the file to open? This is the big problem that I have been having. |
Forum: PHP Jul 22nd, 2008 |
| Replies: 14 Views: 449 Another Problem I can't seem to get the fopen thing to work, or otherwise, I'm just stupid if it is but I don't know it.
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 11 Views: 541 Re: Visual C++ and C++? Alright, just one last thing (even though this should be solved), the coding used in code::blocks is the same as in Visual Studio Express? |
Forum: C++ Jul 22nd, 2008 |
| Replies: 11 Views: 541 |
Forum: C++ Jul 22nd, 2008 |
| Replies: 11 Views: 541 |
Forum: C++ Jul 22nd, 2008 |
| Replies: 11 Views: 541 Visual C++ and C++? Hello,
I've been wanting to learn C++ but I don't know the difference between Visual C++ and C++, is there really even a difference? Also, what would be the best compiler for me to start off with if... |
Forum: PHP Jul 21st, 2008 |
| Replies: 4 Views: 257 Re: Help with FOpen Ok, sorry for the double post, but I think I got it right. Here is the code to open, write, and close a new file I have:
<?php
$newfile = fopen("http://mydomain.org/php/Practice/mydata.txt",... |
Forum: PHP Jul 21st, 2008 |
| Replies: 4 Views: 257 Re: Help with FOpen Just making sure though, is this what I would do if I didn't have a file named text.txt, and I wanted to create one? And is this what I would use for the... |
Forum: PHP Jul 20th, 2008 |
| Replies: 4 Views: 257 Help with FOpen Hello, I am new here, and hope to learn and contribute a lot. Recently, I started learning PHP (about 2 weeks), and now I am coming to the fopen() function. Say that I wanted to create a new file for... |