0

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"

1
  • 1
    Include the PHP code that 1. Generates the ruby command to call 2. Actually executes the ruby command. If the code is too long to post, you didn't spend enough time trying to isolate the issue. Commented Sep 1, 2009 at 0:04

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.