Step1 : Login to atspace.com with your gmail account
Step 2: Follow the Pictorial Steps to host your files on
public domain (Free). This server supports mobile development
Goto DashBoard. The circle ones are the essential functions
Goto MySQL Database to Create a Database (DashBoard>Database)
The username, password and database info for db_connect.php will be as follows:
<?php define('DB_USER', "2850356_mydb"); // db user define('DB_PASSWORD', "xxxxxxx"); // db password (mention your db password here) define('DB_DATABASE', "2850356_mydb"); // database name define('DB_SERVER', "fdb22.atspace.me"); // db server ?>
These 4 lines contains the username and password to the atspace server,
the database name and server location.
For my case it is:
the database name and server location.
For my case it is:
define('DB_USER', "3467266_mydatabase"); // db user define('DB_PASSWORD', "ILXy_igl6te{QBRg"); // db password (mention your db password here) define('DB_DATABASE', "3467266_mydatabase"); // database name define('DB_SERVER', "fdb24.atspace.me"); // db server
Create a table. Goto SQL Tab
CREATE TABLE IF NOT EXISTS `products` ( `pid` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `price` decimal(10,2) NOT NULL, `description` text, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`pid`) )
If you have completed Lab2 , you can import your data to the database
At your wamp server, click on the table> products > click export> export as SQL
At the remote atspace server, click on the database> click import >select your file e,g, Products.sql
Goto PHP settings (DashBoard>>PHP settings )
Change Your PHP to PHP7.0 and above
(DashBoard>>Domain Manager )
Apply for a sub-domain name for Free
Goto File Manager (DashBoard>>File Manager)
Create 2 folders images and css
Upload your files, PHP, JPG , CSS files as shown below:
You are ready to test it now
No comments:
Post a Comment
Note: only a member of this blog may post a comment.