liyamahendra4
  • Male
  • Bhavnagar, Gujarat
  • India
  • Intermediate Coder
Share on Facebook Share

liyamahendra4's Discussions

How to update a photo using PHP?
7 Replies

I have been trying to follow the API Documentation to update a photo using PHP. I went through the sample code blocks provide, but I really don't understand. May be its missing the detailed…Continue

Tags: PHP, using, Photo, Update

Started this discussion. Last reply by Phillip Pearson May 9, 2012.

Ning API using PHP to retrieve list of Photos
11 Replies

I am using Ning API in PHP to retrieve list of photos. I have three queries: 1) The response obtained using the API does not provide any URL for the photo. How am I suppose to show the preview (or…Continue

Tags: using, Photo, Retrieve, Login, API

Started this discussion. Last reply by roi Nov 23, 2011.

 

liyamahendra4's Page

Latest Activity

Phillip Pearson replied to liyamahendra4's discussion How to update a photo using PHP?
"Belal - the code is posted on Mahendra's own server.  It requires PHP, so won't work if you just post it on a Ning page. Mahendra - as Devin suggested, you should check that you are passing in the photoIdToUpdate parameter…"
May 9, 2012
Belal replied to liyamahendra4's discussion How to update a photo using PHP?
"Dear Mahendra, I'm trying to create a Photo Competition app/section for my network. My question to you is where are you posting the above photo code ? Is it on your own server or on new Ning pages on your Ning Network ? Thanks -…"
May 8, 2012
roi replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"But which time is my local computer off by ? In comparison to the server time? OR whose time? I tried increasing my local clock but no different. I still get the error  Error: The oauth_timestamp value is unacceptable to the Service…"
Nov 23, 2011
Vincent replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"Hey guys im also trying to retrieve photos for a specific user And honestly Im struggling... being a new Ning user and all ...(sigh)   I'd appreciate if possible from you guys, a php code snippet. I read the information in the links that…"
Jun 22, 2011
liyamahendra4 replied to liyamahendra4's discussion How to update a photo using PHP?
"Hey Devin,   Thank you for taking time to reply back. Here is my HTML Code:   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html…"
May 9, 2011
Devin replied to liyamahendra4's discussion How to update a photo using PHP?
"The PHP code you posted looks good, I'd check your HTML form and make sure that you are passing in the photoIdToUpdate properly. I'd add in a debug print_r($parts) before you make the request to Ning to verify your PHP code is receiving…"
May 9, 2011
liyamahendra4 replied to liyamahendra4's discussion How to update a photo using PHP?
"Hello Devin,   You seem to be the only person answer the questions here. Can you please spare some time to answer my question.   Thanks, Mahendra."
May 7, 2011
liyamahendra4 replied to liyamahendra4's discussion How to update a photo using PHP?
"Hello Devin, Thank you for your reply. Glad to know that my approach was correct. Following is the code which I used to udpate the Photo of the user: $ningApi = new NingApi($subdomain, $consumer_key, $consumer_secret); $email =…"
Apr 29, 2011
Devin replied to liyamahendra4's discussion How to update a photo using PHP?
"You are on the right track! You just need to add form fields for each of the photo's fields you want members to be able to update. Here is a sketch of the flow of information: Member clicks a photo The photo's ID is passed into an HTML…"
Apr 28, 2011
liyamahendra4 posted a discussion

How to update a photo using PHP?

I have been trying to follow the API Documentation to update a photo using PHP. I went through the sample code blocks provide, but I really don't understand. May be its missing the detailed explanation. Its doing like- creating $parts- creating $newphoto- changing $parts What I am doing is like:When the user clicks on a photo, I get the "id" of the clicked photo. This gives information, that this particular photo needs to be updated. Then I redirect the user to the page for uploading a new…See More
Apr 28, 2011
Devin replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"Generally that error means that cURL can't find the file at the location you have specified. Check that the full path to the image is an absolute path and it's a valid location."
Apr 20, 2011
liyamahendra4 replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"Here is the code which I use:   if (file_exists("upload/" . $_FILES["file"]["name"]))            {                echo $_FILES["file"]["name"] . " already exists. ";            }            else       …"
Apr 14, 2011
liyamahendra4 replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"Hello Devin,   I tried the example given in the documentation for uploading file using Ning API using PHP.   Yes, earlier I was not using the "@" sign and was getting this "Bad Photo" error. However, after including the…"
Apr 13, 2011
Devin replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"I believe you are using the Ning API PHP library. If so, make sure that you being the path to your file with an @. This tells PHP to include the contents of the specified file. Without it, the PHP code will try to upload a string that contains the…"
Apr 12, 2011
liyamahendra4 replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"I wrote some PHP code to upload a file to my Ning network.   However, the file get uploaded to my PHP server but when the code for uploading the image to my ning network gets executed, I get the following error:   Fatal error: Uncaught Bad…"
Apr 10, 2011
liyamahendra4 replied to liyamahendra4's discussion Ning API using PHP to retrieve list of Photos
"Hey Devin,   The oauth error got solved. Yes, may be it was a time difference error.   Referring to question no. 3 asked by me, the details are like this.   I use my email address and password along with the consumer key and consumer…"
Apr 7, 2011

Profile Information

Programming Skill Level
Intermediate Coder

Comment Wall

  • No comments yet!

You need to be a member of Build to add comments!

Join Build

 
 
 

Blog Posts

Getting Started

Posted by Kyle Ford on October 13, 2010 at 8:00am 3 Comments

A Note on API Pricing

Posted by Phil McCluskey on October 1, 2010 at 8:55am 0 Comments

Welcome to Build!

Posted by Kyle Ford on September 30, 2010 at 8:30pm 1 Comment

Ning Status

© 2019   Created by Build Team.   Powered by

Badges  |  Report an Issue  |  Terms of Service