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 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 wrote:
>>
>> 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
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to