-
Recent Posts
Recent Comments
Archives
Categories
Meta
Author Archives: admin
how to select current page name in php
$currentFile = $_SERVER["SCRIPT_NAME"]; $parts = Explode(‘/’, $currentFile); echo $currentFile = $parts[count($parts) - 1]; – That’s it. Regardless of any quety string $currentFile shows you current page name.
Paypal Integration Step by Step
Paypal Gateway Integration: Step 1: Goto developer.paypal.com Step 2: Signup for an account and I use the following information. user: jbl.training@gmail.com pass: trainingcenter you have to confirm your email address by click the link in mail send by paypal. Childhood … Continue reading
Posted in LAMP
Leave a comment
How to Enable curl ?
Very easy and simply. Open D:\xampplite\apache\bin\php.ini (the location for you may not be same but open apache\bin\php.ini) file and search extension=php_curl.dll remove trailing semicolon from this line Restart apache. Check CURL enabled or not by echo phpinfo(); Still not enabled … Continue reading
Posted in LAMP
Leave a comment
Setup Port Based WAMP Server
st1\:*{behavior:url(#ieooui) } <!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:”MS Shell Dlg”; panose-1:2 11 6 4 2 2 2 … Continue reading
Posted in Code Igniter
Leave a comment
Best practice of sharing common variable among functions of a class
here is two ways of share value of variable all through member functions of a class class Clients extends Controller { function __construct(){ parent::Controller(); $uri_array = $this->uri->uri_to_assoc(1); $this->folder_id = $uri_array['folder']; //This not works $this->session->set_userdata(“folder_id”,$uri_array['folder']); } public function sample() { $folder_id … Continue reading
Posted in Code Igniter
Leave a comment
Start C# Dot Net
Topic: how to link a page in C# dot net very simple. on click method write the following code: frmNewEmployee newFrm = new frmNewEmployee(); newFrm.Show(); this.Hide(); Topic: Setup Startup Form => Open File “Program.cs”. and in main function set form … Continue reading
Posted in dot net
Leave a comment
Database connection using web.config file
we can connect database in many ways in Asp.net. the main point is where we write the connection string. we can either write it in every .aspx.cs pages or in web config file or even in any global configuration file. … Continue reading
Posted in dot net
Tagged asp.net db connection, database connection, db con using web.config, web.config
Leave a comment
Database Migration (From Any to Any)
So far i have used(slightly or widely) these databases: mysql, Ms Access, Oracle, Sql Server. Previously i was engaged with only mysql database. but now a days, i need to work wiith different type of databases. more specifically, i receive … Continue reading
Taking mysql db backup in a second
Easy way to backup of database(mysql) using CI $this->load->dbutil(); $this->load->helper(‘download’); $this->load->helper(‘file’); $prefs = array( ‘tables’ => array(), // Array of tables to backup. ‘ignore’ => array(‘ssc_dakhil_exam’), // List of tables to omit from the backup ‘format’ => ‘zip’, // gzip, … Continue reading
Posted in Code Igniter, Framework
Tagged backup script, ci database backup, database backup, mysql database backup, mysql db backup
1 Comment
Oracle 10g – Easy way to start
After couple of weeks i am back in my dash board to write something. This time i come back here to write about ORACLE. we all knows that Oracle is very very strong and powerful database. so lets start really … Continue reading