I am new to PHP. I have a PHP application which I need to deploy to PHP Fog. I have already configured the database and the credentials to use the remote repository using git. I can push the content to PHP fog.

The problem is that I don't understand what I have to push, why I have so many folders.

The zip file contains the following folders:
application
library
nbproject
public
1.clpprj (What is this?)

2 Answers
2

The minimally required folders in the Zend Framework are the bin and library folders. The other folders are accessories and samples. The library folder along with your application need to be pushed to PHP Fog.

The application folder is where you will create controllers, models, and views for your app. The library folder is where you would place reusable code needed by one or more controller. nbproject and .clpprj files are associated with the NetBeans IDE.

Here is a quick start tutorial that will get you up and running with a starter app on PHP Fog. Once you get this working you should be able to use the code from the application code you downloaded.

Create a new PHP Custom app from the PHP Fog console

Clone it to your local machine (I'm assuming MacOS or Linux). Change directory to the cloned folder.

Place all the files and folders from the Zend Framework Zend Framework 1.11 full download into the cloned folder.

Create a .gitignore file in the cloned folder with the following contents:

demos
externals
extras
incubator
resources
src
tests

From the cloned folder run the following command to create a new application:

bin/zf.sh create project myproject

This creates a new folder named myproject. At this point your cloned project folder should look like this: