aran112000 / Instagram-Image-Upload-API

A simple PHP class allowing images to be uploaded to Instagram. This is based upon the following: http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/
30 stars 15 forks source link

Parse error: syntax error, unexpected '[' in instagram_post.php on line 51 #1

Closed psegovias closed 7 years ago

psegovias commented 8 years ago

Parse error: syntax error, unexpected '[' in instagram_post.php on line 51 what i did wrong?

regards!

aran112000 commented 8 years ago

It would appear you're using an old, non supported version of PHP (< 5.4) where sort array syntax was introduced.

This can be solved simply though, simply replace instances of the short array declarations from their current [] structure to use array() instead.

Hope this helps.

psegovias commented 8 years ago

Mmmm im using php 5.3 its too old?

now i get this:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in instagram_post.php on line 107