Align div center of the screen vertically and horizontally

Webserveglobal Admin
0 Comments
Align div center of the screen vertically and horizontally
Most of the times we face a situation where we have to algin some of the website‘s content <div> center of the screen vertically and horizontally in UI development. Here we have two ways to achieve this: 1. If height and width is given for the element HTML <div id="center-div"...
Continue Reading

Difference between ".row" and ".clearfix" Class

Webserveglobal Admin
1 Comment
Difference between ".row" and ".clearfix" Class
As we all know Bootstrap has become very popular day by day as a web responsive framework, which is used to make responsive web applications for several devices. In this post we will talk about the very most and commonly used CSS classes which are .row and .clearfix. Both the CSS classes are similar...
Continue Reading

Submit Form Using Ajax, PHP and jQuery

Webserveglobal Admin
0 Comments
Submit Form Using Ajax, PHP and jQuery
jQuery functions $.ajax() and $.post(), using these two functions you can submit the PHP Web Forms without Refreshing the whole Web Page of Your Site.A very simple example submitting HTML form values without refreshing page using php jQuery and Ajax.  HTML File: signupform.html <html> ...
Continue Reading

Post json data via post in php

Webserveglobal Admin
0 Comments
Post json data via post in php
- URL that we want to send our JSON to. - initiated cURL using curl_init. - PHP array containing sample data.  - encoded our PHP array into a JSON string by using the function json_encode. - specified that we were sending a POST request by setting the CURLOPT_POST option to 1. -...
Continue Reading

How to create Captcha in php

Webserveglobal Admin
0 Comments
How to create Captcha in php
CAPTCHA is used to determine if a user is a computer or a human and is used to prevent spam abuse on the websites. So we you use CAPTCHA on your web site forms for stopping some bots to accessing or using the forms. the CAPTCHA protection works by generating a random string, writing it to a...
Continue Reading

Export MySQL table to CSV using PHP

Webserveglobal Admin
0 Comments
Export MySQL table  to CSV using PHP
Export the database as in the format of CSV using php and open it in the Microsft office (MS)-Excel. let see how it works. let's we have a database "mydb" and table "customer" 1) Create connection to the database "mydb" 2) Fetch the record from db 3) Get the field name  4) Get the record...
Continue Reading

Difference Between include, include_once, require, require_once in php

Webserveglobal Admin
0 Comments
Difference Between include, include_once, require, require_once in php
The include and require statements are identical, except upon failure:     - If file not found require will produce a fatal error (E_COMPILE_ERROR) and stop the script     - If file not found include will only produce a warning (E_WARNING) and the sc...
Continue Reading

Use error_log with array in php

Webserveglobal Admin
0 Comments
Use error_log with array in php
Sends an error message to the web server's error log or to a file.Using print_r() is the easiest, since the second parameter to the function says that we want to send the output to a variable rather than echoing it. Thus, to write to the error_log you just need to use the following code. you mu...
Continue Reading

How to enable CURL in php.ini xamp wamp ubuntu

Webserveglobal Admin
0 Comments
How to enable CURL in php.ini xamp wamp ubuntu
There are a few ways to enable CURL in apache.Option 1: Enable CURL via the php.ini This is the main method on any windows install like WAMP, XAMPP etc 1) Locate your PHP.ini file (normally located at in the bin folder of your apache i...
Continue Reading

How to Add a PHP Line Break/New Line in a String

Webserveglobal Admin
0 Comments
How to Add a PHP Line Break/New Line  in a String
Add a line break in a specific point in a string and print it. there are two ways to add/echo a line break or new line in a string. Method 1: Using escaping sequence \n 1) Add the escape sequence \n at the point you want to add a new line break, then 2) U...
Continue Reading
Showing 21 to 30 of 44 (5 Pages)
my ad

Website in ₹4999*

Get your own website in ₹4999*

Latest Blogs

Advertise Here

For more details about advertisements and how to advertise with us

Contact us