I'm new to php and zend framework, I've got this display screen which customer is updating their classes information through Google calendar. Every time when I delete a data eg a 9am yoga class through phpmyadmin data base, the data disappears on the display screen, but I can still see the 9am yoga class on the google calendar.
How are they all connected? Is Zendframe going to update the 9am yoga class back again (which shows not so far)?
Also I've found gdata_process.php, everytime I run this php url through, the data comes back, and it wouldn't let me delete the coming back data again from phpmyadmin, how come?
Any help to clear my head would be appreciated. I can post some code if I'm confusing anyone.
Thanks
S:)
So you have Google Calendar which saves the data in google's database. And not on yours .
So what exactly you want to do is either go and remove it from google calendar ( manually ) as the data is being imported by the script to the database. What ever value you change in your database via phpmyadmin is not going to effect the google's calendar .
Or you can write a script to delete the google calendar value. I have not tried it , so not sure how much scope is there for it .
Related
So I am trying to figure out if I can create a simple custom PHP script that takes data from a google hangout link and displays back if it is in session.
I am pretty new to Google APi's. My end goal is to create a button on a website that appears whenever someone has joined into a certain designated HANGOUT link.
Do you think this is possible? Any advice would be highly appreciated.
Here was I was thinking:
$stuff = strip_tags(file_get_contents("https://hangouts.google.com/hangouts/_/4im2yhs5kry4vjhlu4yop25tsea"));
$eStrings = explode(' ', $stuff);
I would then retrieve the data from the code and see if it is live or not. If at top of the screen it reads: "You are the only one here" then it is automatically assumed that the session has not begun.
Problem=> You get directed to the google login screen because you need user access.
If anyone has ideas please advise.
While there is a PHP API SDK for Google in beta, it doesn't appear to support Hangouts at all. Google does however expose a client-side JavaScript interface for Hangouts that you should be able to emit and use from your PHP server-side code.
Using the JS interface, you could use the gapi.hangout.onParticipantsChanged event notification for a given Hangout to know when someone has joined.
Then leverage the gapi.hangouts.getParticipants() function to pull a list of who's in the hangout and determine if your button should show for the current user.
After having spent several hours looking into the matter and searched for a solution, I'm hoping someone out here can help me out and give me some hints.
My project, in a nutshell, is this:
Using Phonegap/Cordova, I want to create a one page iPad "form" app from which the submitted data should eventually get to a Google Spreadsheet.
The idea is for a hair dresser who would like to log his employees transactions: [Employee name], [Male/Female/Child haircut], [multiple choice "options": Shampoo, etc], [Amount charged], [Visa/Mastercard / Check / Cash]
I've looked into several "solutions":
Email the form, then use a Google Script + RegEx to grab the data and populate the sheet. (This sounds ugly, no?)
Submit the data to a .php webservice (forgive me if I'm using the wrong terminology!) to populate a database stored on my VPS (MySQL?), then use a Google Script to fetch the data a regular intervals to populate the sheet.
Submit the data to Parse and, again, use Google Script or a parse.com API if they have any.
Here's a very rough draft of what the app would look like (it doesn't need to be fancy)
Sketch of the concept
Any hint would be much appreciated!
Thanks in advance...
I've downloaded the Google API Client and installed it on my Server. I set up my API and my client ID.
I configured the PHP file and now I'm trying to open it:
http://euotm.net/google-api-php-client/examples/calendar/simple.php
I signin using a Google Account, but then all I get is a code.
WHy does that happen? I need it to show a calendar.
I'm new to this API, so I really don't know much.
Thanks ahead,
Tom.
Indeed google calendar api doesn't provide a display widget to integrate calendar to your application. The api only gives you the possibility to retrieve every details about your calendars and their events, and then you'll have to find a way to display it on your screen if you want a nice layout.
have you
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_CalendarService.php';
these files in your code ? i think you may miss it. what error, you are getting kindly make more sense about this
I am having the same issue. From what I've found so far, it looks like RadASM is right, but I was wondering what you moved on to in terms of which widget/gadget you used to display your actual calendar.
If you haven't found it yet, you may be looking for this:
https://developers.google.com/google-apps/calendar/gadgets/event/
Please let me know what you went with.
RadASM is right. Google Calendar API provides well structured data for the calendars and calendar events, allowing data manipulation, too. Desiring your custom layout, you need to take care of it.
Here is a detailed explanatory article with full demo code within a single HTML file - Easy and compact access to your Google calendars.
Hi i am trying to use Realtime updates in facebook application,
My application basically backs up the user's photos, messages and friendlist, i want when a user adds a new friend data on server should also be updated, when a user adds a new album the most recent album should be downloaded automatically to my server
I got this code from github-php , but dont know what next?
Please help if anyone has done with real time updates
you need to query the code after certain interval which you can use AJAX to update the page without refresh.
There is no automatic updates without query the information every time.
You have to subscribe using one module and you specify a callback url during the subscription... you only subscribe once and you get updates for everyone who has authorized your app. The updates come to you via the callback url and its very crappy info that basically tells you that you have to go back and query fb to get the full details.
I am making an offline website that needs to sync every night with a server. Our employees work outside and sometimes underground and need to access the site for its database. But once home they must send us their findings.
The first time they connect, I check with google gears if they have the sqlite database and if not I run a script to insert it. Once they have it, I sync their next appointments to their local database.
When they are done, the next day, they connect to send us every thing and to download their new appointments.
For now i was able to create the sqllite database and insert new values inside thanks to google gears. But i haven t found a way to read the database with php to sync it with our online database.
To go from online to off, with PHP I can write an array in a hidden field and then read that field with JavaScript. But in the other way i was wondering if there was on other way then creating a form with DOM and submitting it in JavaScript to read the values with PHP?
I need to sync a Lot of values, do you know if there is an easier way?
Thanks for your help
I have found vortex, a powerfull script for gear that helps sync everything from files to data. It will definitely help me.
Here is the link to the developer's blog. The download link is in there.
I will come back when the website works to help the interested.
You should use Ajax for posting your new data to the PHP server.
You could use jquery (or any other framework), their lootle of resources how to post data to php on the web.
Your webpage could have a button hidden when offline, this button would enable user to start a synchronization.
Here a tutorial from PHP and jquery!