tags:

views:

40

answers:

1

so i have ruby script that simply writes to a test.txt file with "hello"

i have a php script that executes this ruby script, when a user clicks a link.

i find that test.txt is empty.

however when i run by itself

$> ruby sayhi.rb

test.txt is filled with "hello"

+2  A: 

It's quite probably that your webserver does not have permissions to write to that file. Trying using chmod -R 777 on the folder containing the text file.

too much php
thanks this is very helpful.