YouTube API + PHP + site hosting? - php

I have made a site which can pull and upload videos from and to YouTube,
http://www.tole-rants.com/
This site was made with the combination of Python, Google App Engine and YouTube API. It is hosted at Google App Engine. I did not code the main structure of this application bcos I don't speak Python so I was made with a Python programmer. However, we found that this application has been causing lot of problems, especially on uploading videos.
Now I hope I can code the entire site myself with PHP - is it possible?
Another big question - do I have to host this site on Google's?? Can I just host this site on a normal/ standard server which I normally do when I develop a website?
I have read the documentation about YouTube API for developers, but I still cannot get my head around if I want to make this site from scratch with PHP.
It seems to suggest that using a PHP framework - Zend Framework, which I have no clues about it - do I really have to use a PHP framework then?
Any thoughts/ better suggestions or any online tutorials/ books I can follow through?
Many thanks,
Lau

No you dont have to host it on Google's. You can host it anywhere. And you don't need to use the Zend Framework. What they are suggesting is that you use the Zend framework's GData library to communicate with YouTube API. But you wouldnt even need that. YouTube Data API documentation is complete with examples. I am sure it will help you. But ofcourse if you have some specific questions you can ask them here.

Related

Implementing a REST API w/ Google App Engine

I have already created a REST API w/ the Slim framework (php microframework), which is basically a few php files in a ftp server, and a SQL table.
I want to implement this very simple configuration with Google Api Engine, and there's so much resources and confusing pages in the google tutorials I can't seem to find what I'm looking for...
Can someone steer me to the right direction please ? Again, just a few php files (w/ Slim) and a sql database, that's it.
Thank you very much.
If I were you I would begin with the PHP tutorial for Google App Engine, that you can find here 1.
Try to deploy your existing app there, but be aware that the PHP runtime is still in Beta. Also your app will execute in a restricted "sandbox" environment 2.
Hope it helps.

Adding REST API to existing PHP website

I'm using some open source code to launch a game. The game is old, around 11yrs. It is a tick based web based game. It's written in php and using MySQL. Basically I want to port this game to ios, instead of using uiwebview I want to build native controls.
I know that it's bad practice to communicate directly with MySQL from an ios app. So what I want to do is add a RESTful API. I'm new to this and have scoured google for answers, does anyone have any pointers of where to start when adding an API to an existing site? It's quite a complex structure.
Thanks.
Paul.
My suggestion is using a framework that is guided towards building an API. I use Slim Framework for my API back end and it's pretty easy to use. If you create a separate URL for this API or include directly into the PHP project as a class it could work.
Some tutorials to get you started are
Say Hello World with Slim
RESTful services with jQuery, PHP and the Slim Framework
Writing a RESTful Web Service with Slim
Hope this helps,
Wes

Codeigniter and Google App Engine

I've made my entire site using the Codeigniter framework, and it is working well without any hassles (Note I'm using MySQL in the website).
I've been told now to try and get it on to the Google servers as they are excellent for scalability. I just have one huge problem, is there any way or step by step tutorial that helps me do this as I've read up on Quercus which allows for the php to run but I haven't found something explaining how to use the Codeigniter framework with the Quercus.
Please any help or push in the right direction would be appreciated!
We announced Native PHP support for Google App Engine at I/O.
https://developers.google.com/appengine/docs/php/
After Google announced native PHP support I decided to deploy CodeIgniter on Google App Engine. It works natively, tough certain extensions to the core must be done in order to use PHP Runtime API.
I've started writing a series of articles you might want to check out which document and clarify the process of deploying CodeIgniter natively.
http://blog.programming4design.com/codeigniter-on-google-appengine-for-php/
PHP is being added natively to App Engine, maybe this year, but I'm not sure when. The App Engine Team announced this on the parntership event at Paris last week.
CodeIgniter works fine on Google App Engine's PHP.
Working Demo at : http://ci-on-gae.sasidhar.com/
Source files for the entire above demo site are in Github at : https://github.com/sasidhar/codeigniter-gae-app

Adding microsoft world web app to a website - or previewing documents online.

Hi all you lovely stack peeps... heres hoping you can help me with a small conundrum.
A web system I am developing needs to provide users with the ability to preview documents. I am looking into ways of generating Jpgs of the first few pages of documents but that may not be possible on our server ATM.
Facebook seam to have recently gone very microsoft, one of the functions they have added is the preview option to "docs". This seams to use the world web app tool by microsoft.
I have googled arround and the only way to use this seams to be to embed things from a skydrive account. This won't suit my website (and I think we would break to terms if we tried) so I was wondering if there was some kind of API available. I havn't found one but I was wondering if anyone else had?
Alternatively what is the best solution for previewing Microsoft documents on-line?.. is there a library or tool kit available anywhere for doing this kind of thing? Is there an open office version of the world web app?
Cheers!
Chris
If i understand your question, you try to preview documents like pdf,ppt,doc etc within your web app?
If yes, you can try google docs viewer
You can have an iframe, with its src targeting to the google viewer. So, if your document is this: http://samplepdf.com/sample.pdf you can preview it like:
<iframe src='https://docs.google.com/viewer?url=http%3A%2F%2Fsamplepdf.com%2Fsample.pdf&embedded=true'width='400'></iframe>​
Edit:
Here's a fiddle of how it's working: http://jsfiddle.net/7ueuU/
Edit 2:
Here's a list of supported files: http://support.google.com/docs/bin/answer.py?hl=en&answer=1738646

Android app 101: how do I sync web contents to the app? just starting building applications

I'm trying to build my own android application, and I was wondering if someone can direct me or help me find a tutorial on what to do to get contents between the two. I've been teaching myself php and web building and now I'm trying to build an android app.
But I have no idea as to how to sync the two pieces together? Say if I wanted to update some contents on my php page, how would it be updated to my android app? I'm also beginner at java, but I do have ambition to learning these things.
Thank you in advance fellow members.
ps I've been messing around with eclipse and the android platform.
I don't know if you wanted to write it from scratch or find some sort of library. I've also just started android development and I stumbled across a project called openmobster.
http://code.google.com/p/openmobster/
It's a library for integrating mobile applications with web based services. They have tutorials and documentation in the wiki section. For example: http://code.google.com/p/openmobster/wiki/AndroidSyncApp
If you were interested in writing something from scratch you should be able to browse the source to see some of the things they are doing.

Categories