galen / PHP-Instagram-API

PHP 5.3+ wrapper for the Instagram API
338 stars 159 forks source link

Codeing is according to java Should be in PHP #19

Open vishnudutttest opened 11 years ago

vishnudutttest commented 11 years ago

I just saw an issue with the library. That there problem to create objects of classes because the code is here are like java. And I am unable to use your library. error are showing like this

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mytestse/public_html/instagram/Instagram/Auth.php on line 52

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mytestse/public_html/instagram/Instagram/Auth.php on line 52

Parse error: syntax error, unexpected T_STRING, expecting '&' or T_VARIABLE in /home/mytestse/public_html/instagram/Instagram/Auth.php on line 52

Thanks Vishnu Dutt

galen commented 11 years ago

what version of php are you running?

On Wednesday, June 5, 2013, vishnudutttest wrote:

I just saw an issue with the library. That there problem to create objects of classes because the code is here are like java. And I am unable to use your library. error are showing like this

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mytestse/public_html/instagram/Instagram/Auth.php on line 52

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mytestse/public_html/instagram/Instagram/Auth.php on line 52

Parse error: syntax error, unexpected T_STRING, expecting '&' or T_VARIABLE in /home/mytestse/public_html/instagram/Instagram/Auth.php on line 52

Thanks Vishnu Dutt

— Reply to this email directly or view it on GitHubhttps://github.com/galen/PHP-Instagram-API/issues/19 .

vishnudutttest commented 11 years ago

I am using 5.2.17 PHP

galen commented 11 years ago

You need php 5.3. It says it at the top of the readme.

On Wednesday, June 5, 2013, vishnudutttest wrote:

I am usering 5.2.17 PHP

— Reply to this email directly or view it on GitHubhttps://github.com/galen/PHP-Instagram-API/issues/19#issuecomment-18972513 .

vishnudutttest commented 11 years ago

OK , and thanks for your quick response. and sorry May be your code is working fine.

Thanks Vishnu Dutt

mistic100 commented 11 years ago

If you still need it, my fork is working on PHP 5.2 (I removed all namespaces)