Author: admin
-
Node.js First Example
Node.js console-based Example File: console_example1.js Open Node.js command prompt and run the following code: Here, console.log() function displays message on console. Node.js web-based Example A node.js web application contains the following three parts: How to create node.js web applications Follow these steps: How to start your server: Go to start menu and click on the…
-
Install Node.js on Linux/Ubuntu/CentOS
We can easily install Node.js on linux/ubuntu/centOS/fedora/linuxmint etc. To install Node.js on Linux (Ubuntu) operating system, follow these instructions: 1) Open Ubuntu Terminal (You can use shortcut keys (Ctrl+Alt+T). 2) Type command sudo apt-get install python-software-properties 3) Press Enter (If you have set a password for your system then it will ask for the password) 4)…
-
Install Node.js on Windows
To install and setup an environment for Node.js, you need the following two softwares available on your computer: Text Editor: The text editor is used to type your program. For example: Notepad is used in Windows, vim or vi can be used on Windows as well as Linux or UNIX. The name and version of…
-
Node.js Tutorial
Node.js tutorial provides basic and advanced concepts of Node.js. Our Node.js tutorial is designed for beginners and professionals both. Node.js is a cross-platform environment and library for running JavaScript applications which is used to create networking and server-side applications. Our Node.js tutorial includes all topics of Node.js such as Node.js installation on windows and linux,…
-
PHP Exercises, Practice, Solution
What is PHP? PHP (recursive acronym 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. The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are…
-
PHP error handling
Description PHP has a number of functions for handling as well as reporting errors. Besides, you can define your own way of handling and reporting errors. In this and subsequent pages we are going to discuss installation, runtime configuration, predefined constants and functions relating to PHP error handling and reporting. Installation and configuration In PHP…
-
Cookies in PHP
What is a cookie Cookies are used to store the information of a web page in a remote browser, so that when the same user comes back to that page, that information can be retrieved from the browser itself. In this tutorial, we will discuss how to use Cookies in PHP. We have several examples…
-
File upload in PHP
Description In this page, we will discuss how file uploading is performed using PHP. For uploading files using PHP, we need to perform following tasks – 1. Set up an html page with a form using which we will upload the file.2. Setup a PHP script to upload the file to the server as well…
-
PHP mail function
Description The mail() function is used to send a mail. Version: (PHP 4 and above) Syntax:mail(to, subject, message, extra headers, additional parameters) Parameter: Name Description Required /Optional Type to Mail address to which you want to send mail Required String subject Subject of the mail Required String message Message to be sent with the mail.…
-
PHP: Function Reference
Learn and practice PHP Array Functions Learn and practice PHP Calendar Functions Learn and practice PHP Date and Time Functions Learn and practice PHP Directory Functions Learn and practice PHP FTP Functions Learn and practice PHP Math Functions Learn and practice PHP String Functions Learn and practice PHP Variable Handling PHP MySQLi Functions tutorials