Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Muhammad Siddiqur Rahman

Pages: 1 ... 4 5 [6]
76
Create your Own Website / Using WampServer for Local Development
« on: September 26, 2012, 10:16:44 AM »
The Development Server
Every programmer needs a place to write and develop their programs.
A development system is a computer with a group of applications that are installed that perform the same tasks as on a web server. The benefits of this is being able to develop and test your scripts locally without having to upload them first, and the security of maintaining your files locally until they are ready for their intended purpose. Plus you don’t have to be connected to the Internet while you work. We are pretty much always on-line nowadays, but every so often you can find yourself without a connection to the web. Who knows, you may want to crunch code on a laptop while sitting on a beautiful secluded beach.

What is a WAMP Server?
A WAMP server is a computer running these applications:
  • Windows OS
  • Apache
  • MySQL Database
  • PHP
There are many variations, and you may have come across the term LAMP server before. This is essentially is the same as WAMP except it is based on the Linux operating system.
There are also various ways to construct your WAMP server. If you are bold and fearless, you can download and install Apache, MySQL, and PHP individually on your machine, and if all goes well you will end up with a sweet WAMP server. Or if you are like me, you will take the advice of many wise men and install a Windows-based server package of which there are several. I choose to install WampServer. WampServer is open source, free to use under the GPL license agreement, relatively simple package that automatically installs everything you need to start developing.
WampServer even includes a great graphical tool, phpMyAdmin, which helps handle the administration of MySQL. If you have ever dealt with MySQL and its initially intimidating command line interface, you will immediately appreciate how phpMyAdmin helps with creating databases and tables and modifying data within them. Plus, familiarizing yourself with phpMyAdmin may come in handy as many web hosts restrict access to the command line for security reasons.

How to Use WampServer
Go to the WampServer homepage and download the package that is applicable for your local machine. The current version available is 2.2E. The application is constantly updated, so plan on checking in periodically to ensure you have access to the latest version available.
Once you have installed the package, you should see the WampServer icon in the Windows system tray next to the clock display. You may need to click the “show hidden icons” up arrow to see it.

The WampServer menu has links to several related pages and folders.
The uppermost and most important page is Localhost. Clicking Localhost brings up your browser and displays the WampServer menu page which confirms the server is functioning correctly. You will see the versions of all applications and extensions that are installed under the Server Configuration heading.

Under tools are links to the phpinfo() function which, when clicked, will display all of the information related to your particular installation and configuration. Below that you will find a link to the above mentioned phpMyAdmin.
Under the Your Projects heading is a display of the project folders you are working on. Each of your projects should be within its own folder. Your project folders are copied into the www subfolder within the wamp directory.
Running a PHP Script
When clicked, all PHP files and scripts placed in the www folder will be processed by the Apache server where any PHP code will be parsed and processed by the PHP application. It’s almost magical how a PHP script can establish a database connection, execute a query against the database, and dynamically return the results to the client. Depending on the nature of your script, the results can be returned as HTML back to the client browser for display.
During development, when PHP encounters any code errors (and trust me, as a newbie you will encounter many errors), PHP has the ability to display error messages that are great clues to finding the source of the error. The process of error checking and solution finding is part of the learning curve of any programming, and reason enough to set-up a local development server. Without it, one would go nuts having to upload each file revision using FTP to the web server.
Summary
In closing, server-side programming without doubt has its challenges. But now you are aware that setting up a development server using WampServer can save a lot of time and frustration and provide you with the means to safely develop your next killer application on your local machine.

77
Create your Own Website / Installing WordPress Locally
« on: April 19, 2012, 11:59:06 AM »
This is the first chapter of the Complete WordPress Theme Guide series. In this chapter, you will learn how to install WordPress on a local computer. By doing so, it will save you time from updating and previewing files (so, you don't have to frequently upload files on every change). You can also use the local version to test new plugins, themes, and upgrades. This tutorial is intended for beginners who want to learn how to run WordPress locally.

Quick Summary
If you have some technical background, you can skip the detailed steps in this tutorial. Here are the simplified steps on how to install WordPress on a local computer:

Let's Begin...
Before you start, let's look at the requirements to run WordPress:

  • PHP 4.3+
  • MySQL 4+ Database Server

1.Install a Local Server
In order to run any PHP/database application on a local computer, you need a local host (ie. Apache + MySQL). For Mac, use http://www.mamp.info. For PC, use http://www.apachefriends.org/en/xampp.html or http://www.wampserver.com/en/

2.Create a New Database
After you've installed Wamp or Xampp, run it and it should take you to the start page. Now click on phpMyAdmin. In the phpMyAdmin page, create a new database (eg. wordpress).

3.Download WordPress
Go to wordpress.org and download the latest build of WordPress. Go to the www folder (where you installed the WAMP), extract the wordpress.zip to a new folder (eg. mysite).

4.Run install.php
With your browser, go to http://localhost/mysite/wp-admin/install.php and follow the instructions to install WordPress.

78
Web based Developer Forum / Learn PHP
« on: February 27, 2012, 05:24:37 PM »
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Its syntax draws upon C, Java, and Perl, and is easy to learn. The main goal of the language is to allow web developers to write dynamically generated web pages quickly, but you can do much more with PHP.

Pages: 1 ... 4 5 [6]