Reputation:
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"
Upvotes: 0
Views: 116
Reputation: 91088
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.
Upvotes: 3