php
306 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by codeasearch
Scoop.it!

Autoloading classes in PHP

Autoloading classes in PHP
codeasearch's insight:

When I was analysing about the different framework, they structure are little different but loading the classes are almost same way.

 

Why we need autoload for classes ?

Autoload use to load the classes, if you create the object for GetOutput class it will automatically call the filename. Thus filename and class name should be same. Without auto-loading we need to include the filename to create the object.

Let’s create simple class, which will print the value from the class.

more...
No comment yet.
Scooped by codeasearch
Scoop.it!

url verification using get_headers function

get_headers function fetch the headers sent by server, response to the HTTP request. Returns values in index associative array or failure. 


How its works for url verification
get_headers function accept parameters, first parameter for target url and second one for array keys.

more...
No comment yet.
Scooped by codeasearch
Scoop.it!

HTML Email Subscribe with PHP

Email subscription used for varies side, newsletter which works weekly and monthly or mail alerts works for send alert mail based on the keywords, post content and much more.

more...
No comment yet.
Scooped by codeasearch
Scoop.it!

How to send SMS from website using PHP

Learn how you can configure a web to SMS solution with Ozeki NG SMS Gateway.Dig deeper:http://bit.ly/1m5nKdT. In this video you can learn, how to write a PHP script to create a website, with...
more...
No comment yet.
Scooped by codeasearch
Scoop.it!

Working with jQuery.fileDownload.js plugin

Few days before I got help-request from one of my friend, they want to download the file using ajax calls.  I though of sharing jQuery.fileDownload.js plugin, which was created byjohnculviner two years before.

 

What is jquery.fileDownload.js ?


Its a jQuery plugin which support cross server platform compatible, also works with multi browser. Support lots of methods like success and fail feature, which is like plug and play.

 

preparingMessageHtml
failMessageHtml
androidPostUnsupportedMessageHtml
dialogOptions
prepareCallback
successCallback
failCallback
httpMethod
data
popupWindowTitle

  
more...
No comment yet.
Scooped by codeasearch
Scoop.it!

Twitterfeed for Social networking

Twitterfeed is a social networking feed site, which post your valuable content from rss feed to different networking website. At present twitterfeed is supporting twitter, facebook and linkedin.

more...
No comment yet.
Scooped by codeasearch
Scoop.it!

Data validation and sanitization in PHP

codeasearch's insight:

What is different between validating and sanitizing the data.

 

Validating is used to check the data is perfect or not, for example passing the integer value in query-string.  It will validate the data its proper or not and the data will not be changed or remove unwanted characters.

 

Sanitizing is use to clean-up the data and modify by removing unwanted characters. For example instead of passing the integer value in query-string,  If we are passing string its clean the data by removing unwanted characters.

more...
No comment yet.