moeadmin

CodeIgniter 3 – Tips to setup your project

CodeIgniter (CI) is a fantastic MVC (Model-View-Controller) framework for PHP web app development. Many people use it for personal or professional projects. In this blog, I will discuss few tips to setup the configuration for your project.

1.) Setting up environment:

 It is very important to set the ENVIRONMENT variable in index.php file. You first develop, test and then move your application to Production. Depending on these phases, your project needs different configurations like API key, payment gateway key etc. For example, when you develop or test your app, you need to connect to the payment gateway’s sandbox instance with the sandbox’s credentials and when you are ready for prod, you connect to the payment gateway’s production instance with real credentials.

How to setup the environment properly? Open the index.php and search for the text:

define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');

This will set the environment depending on the environment variable CI_ENV set in the .htaccess file. Open the .htaccess file and put the below line of code for Apache:

CodeIgniter 3 – Tips to setup your project Read More »

How to configure PHP 7 on WAMP server in localhost

Being a PHP developer you want to configure PHP 7 on your localhost for various reasons. You might want to explore the new features of PHP 7 or you might be upgrading your existing website to PHP 7 and want to test in your local machine first or you might be creating a brand new project on PHP 7. This blog will help you to configure PHP 7 for WAMP server in localhost.

(Note: You first check with your hosting server about PHP 7 is available or not. If yes, what version of PHP 7 is available.)

Very first thing to know is PHP 7 requires minimum Apache 2.4.x and also it needs WAMP Server 2.5. If you already have WAMP 2.5, ou do not have to uninstall anything. You can configure PHP 7 with WAMP 2.5. How to check your WAMP server version? Right click on the WAMP icon on your windows taskbar and click About… It will show your current WAMP version.

How to configure PHP 7 on WAMP server in localhost Read More »

Oracle Apps Multi-Lingual Support (MLS Function)

Developers can create an MLS function for concurrent programs. The MLS function determines in which of the installed languages a request should run. MLS functions are PL/SQL stored procedures, written to a specific API. When the concurrent manager processes a multilingual request for a concurrent program with an associated MLS function, it calls the MLS function to retrieve a list of languages and submits the appropriate child requests for each language. The concurrent program application short name, the concurrent program short name, and the concurrent request parameters are all available to the MLS function to determine the list of languages that the request should be run in.

Oracle Apps Multi-Lingual Support (MLS Function) Read More »

default-blog-image-v2

How to use virtual host in WAMP server in PC

Website development in local computer or PC has lots many configuration. Developers who are using WAMP (Apache, MySQL and PHP bundle for windows) server can develop the website by putting the project files into the WAMP installation folder which is most of the time:

c:\wamp\www\folder_name\

and you need to access your test site as:

http://localhost/folder_name

where the folder name is your project folder name where index.php file exists. As a developer you must have thought of accessing your site as a general URL and also keeping your project folder and files outside the WAMP directory. To accomplish this you need to setup the virtual host into the WAMP server and this blog describe details steps involved to accomplish the goal.

Setting up virtual host in WAMP server involves the below steps:

How to use virtual host in WAMP server in PC Read More »

default-blog-image-v2

Configure Sendmail for WAMP and connect with Gmail in development

Have you installed WAMP into your PC for developing a website and looking for how to send email with it for testing your email feature is working or not? Continue reading this blog.

Unlike XAMP, WAMP does not come integrated with sendmail feature and thus you need to do something extra when you want to test your development waork in your local machiine. To configure WAMP for sending email you need to follow the below steps (assuming WAMP is already installed and working okay):

  1. Download the Fake Sendmail for Windows.
  2. Use Gmail or any other email account to configure the sendmail.
  3. Change te Gmail setting to allow third party email sending feature.
  4. Update the PHP.ini configuration for your website or WAMP server.

Here is the detail elaboration of the steps involved.

Configure Sendmail for WAMP and connect with Gmail in development Read More »

Scroll to Top