I have this code in php:
$var = "something";
$result = exec("python /somePath/someFile.py $var");
print $result;
and my someFile.py is like this:
import functions as f
x = f.removeSpace("hey there")
print x
Now, without the import functions everything is ok, but when I try to import another module then php screws. I have included sys.stderr = sys.stdout in my python file, and when I run my php code then it returns:
AttributeError: 'module' object has no attribute 'removeSpace'
Any suggestions?