Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse syntax error Instaphp.php Line 53 #38

Open
MJ1994 opened this issue Apr 4, 2014 · 3 comments
Open

Parse syntax error Instaphp.php Line 53 #38

MJ1994 opened this issue Apr 4, 2014 · 3 comments

Comments

@MJ1994
Copy link

MJ1994 commented Apr 4, 2014

Hello,

I have downloaded the api, and upload the files at my server.

I opened Instaphp.php with my browser, and have the following error:
Parse error: syntax error, unexpected '[' in Instaphp.php on line 53

Is that a problem in the api script? I have nothing edited, only uploaded the files.

The code on Instaphp.php line 53:
private static $endpoints = [];

@MJ1994
Copy link
Author

MJ1994 commented Apr 5, 2014

Anyone?

@Gildus
Copy link

Gildus commented Apr 5, 2014

Do you have the file instaphp.php? Or have some fork?

@levacic
Copy link

levacic commented Apr 21, 2014

@MJ1994 This isn't the repo you're looking for, try here: https://github.com/sesser/Instaphp

But your problem is likely that you're using PHP 5.3, while [] is new array syntax introduced in PHP 5.4 - but the other package (Instaphp) has PHP 5.4 declared as a dependency, so I'm not quite sure how you managed to even install it (unless you didn't use composer, in which case - you should use composer).

Please close this issue, as it has nothing to do with this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants