CodeSpeedy header image

CodeSpeedy

A Place Where You Find Solutions In Coding And Programming For Java, PHP, HTML, CSS and JavaScript.

Login Register

What is a function in PHP and why we use it?

By informerfrk

A function in PHP is a self-contained block of code that use to performs a specific task in the program. In another word, we can say that PHP function is a piece of code that can .... Read More

Protect website from SQL Injection in PHP

By informerfrk

From the name SQL Injection, many of you can guess that someone injects SQL into your PHP application. Well, obviously it is not good to let a user inject SQL code inside your web .... Read More

Disable direct access to the PHP include file

By informerfrk

In many times it may be needed to include one or more PHP file to other PHP files. We do it so that we don’t have to write the same code again. But what happened if you acces.... Read More

How to get the file size in PHP?

By informerfrk

To get the size of a file in PHP you can use filesize function of PHP. The filesize function in PHP is already inbuilt function from PHP 4. Below is the syntax of this function: .... Read More

How to get value from input box in JavaScript?

By informerfrk

In this post, I am going to provide you a useful JavaScript code snippet. Here I am going to tell you how you can take the value of an input box. To do it take an input text box fo.... Read More

How To Convert Comma Separated String into Array?

By informerfrk

Suppose you have a comma separated string which you want to convert into an array for any purpose. How will you do that? Here in this tutorial, I am going to give you the simple co.... Read More