Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Can We Use Laravel to Build a Custom Google Drive UI?
Jul 25, 2016 @ 18:57:52

The SitePoint PHP blog has posted a new tutorial that asks the question "Can We Use Laravel to Build a Custom Google Drive UI??" In this case it's a simplified version of the current Google Drive functionality, but it's more of a proof-of-concept than anything.

In this tutorial, we’re going to build an app that talks to the Google Drive API. It will have file search, upload, download and delete features. If you want to follow along, you can clone the repo from Github.

They walk you through the full process of getting the application set up, including creating the project on the Google side and grabbing the API credentials for use in your code. They then switch back over to the code side and create a basic Laravel project and configure it with the Google API credentials you just created. Next up is the creation of all of the routes for the list, upload and delete handling in the Laravel app as well as the controllers/views to make them all work. They also include search functionality, letting you easily query the API for files with names matching a certain string.

tagged: laravel google drive ui tutorial api example

Link: https://www.sitepoint.com/is-laravel-good-enough-to-power-a-custom-google-drive-ui/

Automated backups to Google Drive with PHP API
Apr 16, 2013 @ 15:57:01

On his site Lukasz Kujawa has posted a new tutorial showing you how to perform automated backups to Google Drive of files through their API (using his own library).

Where do you keep backups? I guess that depends on what do you backup. You might have a very clever answer for a business critical data but what about less important content? The best example would be a private blog. It will hurt if you lose your data but the odds are you’re not willing to pay for any reliable storage. [...] There is one reliable storage, which is 100% free and almost everybody have access to it. Yes, I’m talking about Google Drive.

He walks you through the process of setting up your Google Drive account API access and where to find the data you'll need to make the connection. He then links over to his project that makes the backup a simple few lines of code (mostly configuration) of a backup path of your choice out to the remote Google Drive account.

tagged: automated backup cp2google library google drive tutorial

Link: http://systemsarchitect.net/automated-backups-to-google-drive-with-php-api

Brian Swan' Blog:
Determining Azure Drive Letter with PHP
Oct 29, 2010 @ 17:34:01

In a quick new post to his blog today Brian Swan shows you how to find a drive letter in Azure through PHP (for a Windows Azure Drive).

Today, I’ll start by taking a look at Windows Azure Drives. Specifically, I’ll explain how to programmatically determine the driver letter for a Windows Azure Drive. (I’ll assume you’ve read the getting started post I wrote a couple of weeks ago.) Simply put, a Windows Azure drive acts as a local NTFS volume that is mounted on the server’s file system and that is accessible to code running in a role. The data written to a Windows Azure drive is stored in a page blob defined within the Windows Azure Blob service, and cached on the local file system.

He shows how he's set up his instance with two drives and how, with a bit of PHP code, he could grab the value from the "X_DRIVES" environment variable, split it out and loop to find the drive you're looking for. His example code puts a simple text file on the drive and then reads it back out.

tagged: drive letter windows azure instance xdrives environment

Link:

Maarten Balliauw's Blog:
Using Windows Azure Drive in PHP (or Ruby)
Apr 09, 2010 @ 15:36:44

Maarten Balliauw has written up a new post to his blog today that looks at using the Windows Azure Drive directly from your PHP scripts.

Unfortunately, .NET code is currently the only way to create and mount these virtual hard drives from Windows Azure. But luckily, IIS7 has this integrated pipeline model which Windows Azure is also using. Among other things, this means that services provided by managed modules (written in .NET) can now be applied to all requests to the server, not just ones handled by ASP.NET.

Fortunately for PHP developers, these "other services" also include a PHP running as a FastCGI instance in your IIS server. He shows how to use this connection to your advantage and reach a mapped Azure drive through the Azure Drive HTTP module (the code's included for that, too). You can find the code he shares in the post and other handy PHP+Azure related tools on the PHPAzureContrib.com site.

tagged: windows azure drive mapped tutorial http

Link:

Ed Finkler's Blog:
Zend Studio for Eclipse and SFTPDrive not on speaking terms
Mar 20, 2008 @ 12:58:09

Ed Finkler, a long-time user of SFTPDrive on his Windows machine, has noticed something a bit odd lately when using the new Zend Studio (Eclipse):

For some reason, ZSfE just doesn’t show me my “k:” drive (the SFTP mount) when browsing for a project directory. This throws a real wrench in my usual workflow — ZS 5.5 had built-in SFTP support, and I could also use the local mount if I wanted.

Finding nothing in the traditional places, he's made this blog post hoping someone might have the answer. Turns out that the fix (as provided by Josh Johnston) is to create a new project around a new Remote Folder.

tagged: eclipse zendstudio sftpdrive remote folder edit drive

Link:

ITJungle.com:
System i PHP Drive Going Strong, Zend Says
Oct 03, 2006 @ 12:12:19

From ITJungle.com today, there's a new article that talks to Zend about their effort to get PHP pushed to the System i platform via the Zend Core and the progress it's making.

The push to create a new generation of young PHP programmers and PHP-driven Web applications on the IBM System i is moving forward according to plan, according to Zend Technology, the company commercializing the open source scripting language and providing support and training services. "Things are going phenomenally well," Zend business development vice president Mike Pinette says, giving evidence of that early success. "We're firing on all cylinders."

They go on to talk about other offerings Zend is making available for the platform including their popular Zend Platform package. There's talk of how Zend's effort is spreading (across countries) and their additional focus on the "bread and butter" shops - "manufacturers, distributors, retail chains, banks, and financial institutions that have heavily invested in OS/400 and RPG over the years".

tagged: zend systemi drive strong core studio platform zend systemi drive strong core studio platform

Link:

ITJungle.com:
System i PHP Drive Going Strong, Zend Says
Oct 03, 2006 @ 12:12:19

From ITJungle.com today, there's a new article that talks to Zend about their effort to get PHP pushed to the System i platform via the Zend Core and the progress it's making.

The push to create a new generation of young PHP programmers and PHP-driven Web applications on the IBM System i is moving forward according to plan, according to Zend Technology, the company commercializing the open source scripting language and providing support and training services. "Things are going phenomenally well," Zend business development vice president Mike Pinette says, giving evidence of that early success. "We're firing on all cylinders."

They go on to talk about other offerings Zend is making available for the platform including their popular Zend Platform package. There's talk of how Zend's effort is spreading (across countries) and their additional focus on the "bread and butter" shops - "manufacturers, distributors, retail chains, banks, and financial institutions that have heavily invested in OS/400 and RPG over the years".

tagged: zend systemi drive strong core studio platform zend systemi drive strong core studio platform

Link:

PHPit.net:
An introduction to Test Driven Development with PHP
Jun 10, 2006 @ 20:37:36

PHPit.net has posted yet another PHP-related tutorial, this time with a focus on test driven development.

There are several different ways of developing something. Most of us tend to simply start with a script, and gradually move along. Perhaps we've even laid out our script before hand, but we tend to stay at the developing phase, and don't really start testing when it's necessary. Basically, we develop first, and test later.

But this might not be the best way, and might lead to problems later. That's why some developers advocate a different way of developing called Test Driven Development (TDD), where by you test first, and develop later.

He uses the SimpleTest frameork to illustrate his points. He starts off with a simple example - settin g up the framework and creating a class to test a class, Biter. The testing class first just looks to see if the Biter class exists, failing before they create the class file it's looking for. With the help of a bit more code and a few more test examples, you get a good jumping off point for creating your own tests to evaluate your code.

tagged: test drive development simpletest tutorial test drive development simpletest tutorial

Link:

PHPit.net:
An introduction to Test Driven Development with PHP
Jun 10, 2006 @ 20:37:36

PHPit.net has posted yet another PHP-related tutorial, this time with a focus on test driven development.

There are several different ways of developing something. Most of us tend to simply start with a script, and gradually move along. Perhaps we've even laid out our script before hand, but we tend to stay at the developing phase, and don't really start testing when it's necessary. Basically, we develop first, and test later.

But this might not be the best way, and might lead to problems later. That's why some developers advocate a different way of developing called Test Driven Development (TDD), where by you test first, and develop later.

He uses the SimpleTest frameork to illustrate his points. He starts off with a simple example - settin g up the framework and creating a class to test a class, Biter. The testing class first just looks to see if the Biter class exists, failing before they create the class file it's looking for. With the help of a bit more code and a few more test examples, you get a good jumping off point for creating your own tests to evaluate your code.

tagged: test drive development simpletest tutorial test drive development simpletest tutorial

Link:


Trending Topics: