0

I cannot seem to get this to work:

shell_exec("/anaconda/bin/scrapy crawl script_v5 -a calln=D5 -o output_D5.csv");

I suspect commands manually installed don't work.

In addition, I was trying to dump the $PATH to know where it searches, but

shell_exec("echo $PATH");

returns NULL.

Why is this so, and how do I solve it?

By the way, I ran the script from a browser calling to localhost where MAMP is running.

forgodsakehold
  • 870
  • 10
  • 26

1 Answers1

0

Most of the server disabled this function because of high-risk security issue

shell_exec();

so you should read the file and then get your output. using

fopen()
Himel Rana
  • 666
  • 5
  • 14