Skip to content

Instantly share code, notes, and snippets.

@ahmeti
Created July 21, 2021 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmeti/29df6d351ed6770d46ba81b84d101712 to your computer and use it in GitHub Desktop.
Save ahmeti/29df6d351ed6770d46ba81b84d101712 to your computer and use it in GitHub Desktop.
<?php
# YANLIŞ
shell_exec(‘python test.py’)
<?php
# DOĞRU
putenv(‘PATH=/Users/KULLANICI_ADINIZ/bin:/usr/local/bin:/usr/local/sbin:/Users/KULLANICI_ADINIZ/.composer/vendor/bin:$PATH’);
shell_exec(‘python test.py’)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment