Re: GetCampaigns.php working in Command line but not not in browser

2014-09-27 Thread Sage Lewis
Commenting out these lines instantly made my script run in a browser. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Re: GetCampaigns.php working in Command line but not not in browser

2013-02-03 Thread Evgeniy Bogdanov
Probably your server configuration uses FastCGI or something else SAPI, which not initializes PHP_SELF correctly. If this is possible can you post var_dump($_SERVER); here? среда, 30 января 2013 г., 18:08:33 UTC+4 пользователь Alan Coleman написал: > > If comment out the return line in the follo

Re: GetCampaigns.php working in Command line but not not in browser

2013-01-30 Thread Alan Coleman
If comment out the return line in the following, then the script works: // Don't run the example if the file is being included. if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { //return; } Does anyone know why this is? Many thanks On Tuesday, January 29, 2013 6:07:36 PM UTC, Alan Coleman wro

GetCampaigns.php working in Command line but not not in browser

2013-01-30 Thread Alan Coleman
Hello, I'm running *aw_api_php_lib_3.2.2 on localhost* I'm able to run GetCampaigns.php in the command line and return my data from Adwords. However running the same file through a browser returns a blank screen and no errors. Does anyone have any ideas? Many thanks -- -- =~=~=~=~=~=~=~=