Skip to main content

Posts

Showing posts from March, 2019

Web Servers

There are 4 primary  web servers : Apache (provided by Apache) IIS (provided by Microsoft) nginx (provided by NGINX, Inc. and pronounced like “Engine X”) and GWS (provided by Google and short for Google  Web Server )

User database table

-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 09, 2019 at 09:17 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sample_db` -- -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(255) NOT NULL, `mobile` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `role` varchar(150) NOT NULL, `date` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for t...

Node Js

___________ Node Js ________ Express framework _________________ Working ________ ********************************************************************************* 1.Make Root directory- mkdir directory_name 2.Create express server- express directory_name 3.Change current directory to root directory- cd directory_name 4.Install and save express package- npm install express --save 5.Install node_modules (default packages)- npm install 6.Install and save mysql module- npm install mysql --save 7.Install and save express-myconnection module- npm install express-myconnection --save 8.Install and save express-session module- npm install express-session --save 9.Set Port address in /bin/www- server.listen(port, function(){ console.log("Running port"+port);}); 10.Install ejs & uninstall jade- npm install ejs --save npm uninstall jade 11.Remove view engine jade & Set to ejs- app.set('view engine', 'ejs'); 12.Remove all jade files from "v...

KrutiDev To Unicode Conversion

http://wrd.bih.nic.in/font_KtoU.htm ___________________________________ <html> <head> <title>KrutiDev <=> Unicode Conversion</title> </title> <link rel="stylesheet" href="style.css">       <script src='script.js'></script> </head> <!--       body of the HTML starts here. one text box is provided each for input and output. --> <body bgcolor='#99CCFF'> <P style='text-align:center; font-family: Arial, Helvetica, sans-serif; font-size: 14pt; font-weight:bold; background-color: #FF6600; color: #FFFFFF'> Conversion between Krutidev-010 and Unicode क्रुतिदेव-०१० और यूनिकोड के बीच रूपांतरण </P> <form name="form1"> <p style='font-size:10pt'>क्रुतिदेव-०१० (Kruti Dev 010) फॉन्ट में टंकिट टेक्स्ट को "क्रुतिदेव-०१०" नामक टेक्स्ट बॉक्स में टाईप या पेस्ट करें तथा इसे यूनिकोड में रूपांतरित करने के लिए अधोमुख तीर वाल...

WEBSITE REQUIREMENTS

Basic Website Requirements 1. Site Reference * URL * Templates 2. Site Contents * Logo, * Banner Images, * Team Member Bio, * Site Owner Bio, * Social Media Links 3. Site Pages * About us, * Contact us, * Services, * Blog, * FAQ * Get in touch, * Privacy policy, * Map 4. Site Communication Via * Email, * SMS   5. Site Server Space * Domain name * Web Hosting ________________________________________ Website Development Requirements  1. Styling and Design:  => What is the look, feel and brand of the website?  => Identify the broad styling and design considerations.  2. Sitemap and Navigation:  => What is the structure of the website?  => List the sections and content categories of the website.   3. Visitor Interaction:  => What will visitors be able to do on this website?  => List all the activities they will complete while visiting.  4. ...

Multiple files upload in CodeIgniter.

Create an HTML form to select multiple images at once. Upload images to the server using CodeIgniter’s Upload library. Store file data in the MySQL database. Retrieve images from the database and display on the web page. Create Database Table To store the file name and related information, a table needs to be created in the database. The following SQL creates a files table in the MySQL database. CREATE TABLE `files` (  `id` int(11) NOT NULL AUTO_INCREMENT,  `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,  `uploaded_on` datetime NOT NULL,  `status` enum('1','0') COLLATE utf8_unicode_ci NOT NULL DEFAULT '1' COMMENT '1=Active, 0=Inactive',  PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; Create File Upload Folder Create a directory on the server where you want to store the uploaded files. For example, create a uploads/files/ directory in the root folder of the application. Controller (Upload_f...

Links

https://www.provisionliving.com/ http://www.wenningdale.co.uk/ https://gastronomyblog.com/ https://enzymedica.com/ https://www.neuralbalance.com/ https://www.discoveryacton.org/# https://www.highrockarlington.org/ http://www.pandacares.org/ http://www.pandacareers.com/ https://www.unanet.com/ https://www.pandaexpress.com/ https://apahm.pandaexpress.com/ https://www.pandaexpress.com/american-chinese/#1 https://www.landingpay.com/

COM Objects and Interfaces

COM is a technology that allows objects to interact across process and computer boundaries as easily as within a single process. COM enables this by specifying that the only way to manipulate the data associated with an object is through an  interface  on the object. When this term is used in this documentation, it refers to an implementation in code of a COM binary-compliant interface that is associated with an object. Referring to an object  implementing  an interface means that the object uses code that implements each method of the interface and provides COM binary-compliant pointers to those functions to the COM library. COM then makes those functions available to any client who asks for a pointer to the interface, whether the client is inside or outside of the process that implements those functions.

CMS and PHP Frameworks

CMS stands for Content Management System. As the name implies, CMS gives you, the business owner, the ability to manage the content of your website. P erform any number of functions once you get into the back-end of your CMS-based website. Then you do not have to completely rely on your developers to make changes to the website.   A framework is a user-written, custom code within a predefined set of rules. This allows developers to develop modules and applications using core library functions, with PHP as the primary programming language. 

SETUP REST API IN CI

1. Create Rest_controller.php inside controllers and paste code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); require APPPATH . '/libraries/API_Controller.php'; class Rest_controller extends API_Controller { public function __construct() { parent::__construct(); } public function index() { $this->api_return(             [ 'status' => true,                'result' => "Welcome to Testservices."             ],         200); } } ?> 2. Create api.php inside config and paste code : <?php defined('BASEPATH') OR exit('No direct script access allowed'); /**  * API Key Header Name  */ $config['api_key_header_name'] = 'X-API-KEY'; /**  * API Key GET Request Parameter Name  */ $config['api_key_get_name'] = 'key'; /**  * API Key POST Request Parameter Name ...