Hi Eric,

We can able to run example from Command line but we are facing issue when 
we are not able implementing new examples with code.
if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
  return;
}

Thanks,
Chirag

On Wednesday, February 29, 2012 1:52:21 AM UTC+5:30, Eric Koleda wrote:
>
> Hi All,
>
> You can run examples from the command line by installing the CLI version 
> of PHP and executing "php GetCampaigns.php".
>
> Best,
> - Eric
>
> On Tuesday, February 28, 2012 2:26:02 AM UTC-5, Chirag wrote:
>>
>> Hi Eric,
>> I am running example from web server.
>>
>> Thanks,
>> chirag
>>
>> On Tuesday, February 28, 2012 2:53:45 AM UTC+5:30, Eric Koleda wrote:
>>>
>>> Hi Chirag,
>>>
>>> Are you running these examples from the command line or a web server?
>>>
>>> Best,
>>> - Eric
>>>
>>> On Sunday, February 26, 2012 11:28:03 PM UTC-5, Chirag wrote:
>>>>
>>>> Hello Eric,
>>>>
>>>> I am also getting :-
>>>> realpath($_SERVER['PHP_SELF'])  is empty.
>>>>
>>>> Thanks,
>>>> chirag
>>>>
>>>> On Friday, February 24, 2012 9:22:16 PM UTC+5:30, Eric Koleda wrote:
>>>>>
>>>>> Hi Vipin,
>>>>>
>>>>> It's strange that realpath() isn't working correctly on that relative 
>>>>> path.  For now it's fine to just comment out those lines.
>>>>>
>>>>> Regarding the OAuth problems, are you running the example in a web 
>>>>> browser or on the command line?  The example required user input, so it 
>>>>> must be run from the command line.
>>>>>
>>>>> Best,
>>>>> - Eric
>>>>>
>>>>
>>>> On Friday, February 24, 2012 9:22:16 PM UTC+5:30, Eric Koleda wrote:
>>>>>
>>>>> Hi Vipin,
>>>>>
>>>>> It's strange that realpath() isn't working correctly on that relative 
>>>>> path.  For now it's fine to just comment out those lines.
>>>>>
>>>>> Regarding the OAuth problems, are you running the example in a web 
>>>>> browser or on the command line?  The example required user input, so it 
>>>>> must be run from the command line.
>>>>>
>>>>> Best,
>>>>> - Eric
>>>>>
>>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to