开发者

Python Cookies and PHP virtual()

I narrowed down the problem:

os.environ.get('HTTP_COOKIE')

This always seems to be None when calling the Python file with that 开发者_JAVA技巧line using PHP's virtual(). Does anyone know why this is?

I'm using Python 2.7 because of how much I need the Python Imaging Library.

EDIT: Never mind, it's been fixed. It was because I'm an idiot and didn't know I had to set the cookie's path to /, causing it only to work where the cookie was generated.


Try to set cookies by your own with apache_setenv function.
But if the only thing that you need from python is PIL, then you probably don't need python at all. PHP have very powerful tools like MagickWand, a frontend to image magick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜