asdfasdf
asdfasdf

Reputation:

ruby script executed from php not working, but ruby script works fine alone

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

Answers (1)

too much php
too much php

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

Related Questions