Search found 5 matches

by andreas_d
Mon Jun 21, 2004 1:07 pm
Forum: PHP - Code
Topic: absolute vs relative paths
Replies: 3
Views: 408

wow that went completely over my head. is file a parameter i should substitute, if so what file and what is DIRECTORY_SEPARATOR? thanks for the post
by andreas_d
Mon Jun 21, 2004 12:17 pm
Forum: PHP - Code
Topic: absolute vs relative paths
Replies: 3
Views: 408

absolute vs relative paths

hi, this is a follow up to a question i posted yesterday. I'm a newbie when it comes to php so this may be very basic i don't know. i have a flash movie sending certain vars to a php script that in turn copies them to a .txt file. the PHP script looks like this <?php $value0 = $_POST['value0']; $val...
by andreas_d
Sun Jun 20, 2004 7:15 pm
Forum: PHP - Code
Topic: php targeting txt file somewhere else on harddrive
Replies: 8
Views: 1042

I'm actually working with os X so i'm not sure how much it differs from windows in terms of targeting files. So far i have enabled php in my 'server type' folder and have been using the browser to open execute the php scripts with the address http://pesonalHD.local/~andreas/info/savesunset.php I'm n...
by andreas_d
Sun Jun 20, 2004 6:36 pm
Forum: PHP - Code
Topic: php targeting txt file somewhere else on harddrive
Replies: 8
Views: 1042

thanks for the post. that was really quick. I just have a couple of more questions. With the example you gave : fopen("/home/html/tim.txt", "r"); does that mean the txt file is still in a folder within the same folder as the php script? ex. folder 'A' contains: php script and the...
by andreas_d
Sun Jun 20, 2004 5:46 pm
Forum: PHP - Code
Topic: php targeting txt file somewhere else on harddrive
Replies: 8
Views: 1042

php targeting txt file somewhere else on harddrive

hi, i am a bit of a novice when it comes to php, i was hoping someone could help me out. If i want the php script to say, fopen and fwrite into a text file that is in a completely different folder on my computer how could i do it? how would i direct the php script to it.?