Having the same issue - did anyone resolve this? (works on command line but not on web server)
On Wednesday, February 29, 2012 at 5:16:16 AM UTC, Chirag wrote: > > 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 Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/736065ad-a06a-464a-ae12-bd9b8a19c910%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.