-
Notifications
You must be signed in to change notification settings - Fork 134
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
returning "Array" #12
Comments
its prob. a ref. array...try $results->[0] and see if that returns what you would expect.
Sent from my iPad On Jun 21, 2014, at 6:18 AM, Max Mitchell [email protected] wrote:
|
I did try $results[0] ? |
The difference is the arrow before the bracket $results->[0] vs $ results[0] The first is for a reference to an array, the second is actually an
|
I have the same problem, it was working previously, and I tested that curl is working: function _isCurl(){ echo "Curl enabled: " . _isCurl(); I even tried changing the $var->{}->{} notation to $var[][] and still nothing, when i print_r the output I just get: Array ( [status_code] => ) |
If I echo display the url that is passed to curl and then put this into a browser I get a successful shortlink, and a 200 status code but it doesnt explain how or why the php curl call doesnt work. |
If I print the $ch variable I get Resource id #53 so this isnt generating an error, but if I execute:
I just get blank, no errors. |
Hmmm seems to be that CurlSSL wasnt enabled on the server, did this in Apache and the SSL call to the shorten function seems to work now. |
I am also getting the same error. code: result shows: I have checked phpinfo() and curls shows up enabled with ssl |
I tried again by uploading the file again and creating a new test file. code: result: |
The result is an array because there appears to be an error (the On Sat, May 16, 2015 at 5:22 PM, dotcomUNDERGROUND <[email protected]
|
I have the following properly set: |
WHy on earth am I being copied to all this? remove me immediately! From: Kevin Marshall [mailto:[email protected]] The result is an array because there appears to be an error (the On Sat, May 16, 2015 at 5:22 PM, dotcomUNDERGROUND <[email protected]
— |
Getting the same error as above, the file returns just "Array". I've triple-checked everything, but still no luck, any idea what could be going on? |
Hi guys, how can I get just the url? I've tried results[0], results->[0]....just to test if I can get some part of the array....but no luck. |
Our lib is for Bitly Api v4. |
require_once('bitly.php');
$results = bitly_v3_shorten('http://www.tragicclothing.co.uk/bitsandbobs.php#martello-tower-y-by-billings-jackson-design', '83dsfreu61b8b7081e950d6c1383fb86d3d8334', 'j.mp');
when I use echo $results; the php page returns Array.
And when I use echo $results[0]; the php page returns nothing?
Why is this not working?
The text was updated successfully, but these errors were encountered: