Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



What Filters are Available in PHP?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-02-2010
N I C K's Avatar
Member
 
Join Date: Aug 2006
Posts: 276
What Filters are Available in PHP?

Hi friends,
I have done some basic coding programs in PHP programming language. Now I want to know about the filters in PHP. Since I am moving towards the advanced part I think that knowing about filter is essential. So please tell me what are the Filters are Available in PHP? Reply me as early as possible.!!
__________________
He who asks is a fool for five minutes, but he who does not ask remains a fool forever.
-Chinese Proverb
Reply With Quote
  #2  
Old 28-02-2010
Viensterrr's Avatar
Member
 
Join Date: Jul 2006
Posts: 232
Re: What Filters are Available in PHP?

Every PHP stream contains a small read buffer where it stores blocks of data read from the file system, or other sources to treat them more effectively. As soon as the data is read from the resource into the internal buffer, the data are immediately passed to the filter, even if the PHP application is actually ready for such data. If data is already waiting in the buffer when a filter is added to the stream (appended), these data will be immediately passed to the filter, for the change is transparent. But if you add a filter is prepended, the data will NOT be filtered. They wait until the next block of the resource.
__________________
Signatures reduce available bandwidth
Reply With Quote
  #3  
Old 28-02-2010
MELTRONICS's Avatar
Member
 
Join Date: Aug 2006
Posts: 226
Re: What Filters are Available in PHP?

You should also know about the filters. Each filter does what its name implies and refers to the behavior of the corresponding PHP function. As for filters of channels, the conversion filters are what their name indicates. These filters have been added in PHP 5.0.0. Use this filter to process the data by function str_rot13 (). You can also use this filter to process data through the strtoupper ().
__________________
3.2 (northwood)
2gig ram
ATI AIW X800xt 256mb
Gigabyte GA-8knxp 875p Chipset
Optiwrite 8X DVD Burner
Win XP PRO Sp2 (Works Perfectly)
2 SATA Raptor 74gig Raid 0
2 7200 IDE 320gig HD
Reply With Quote
  #4  
Old 28-02-2010
kyosang's Avatar
Member
 
Join Date: Jul 2006
Posts: 364
Re: What Filters are Available in PHP?

There are three types of filters available for PHP and those are :
  1. Conversion Filters
  2. Compression Filters
  3. Encryption Filters
This extension filters data by either validating or sanitizing it. This is especially useful when the data source contains unknown (or foreign) data, like user supplied input. For example, this data may come from an HTML form. There are two main types of filtering :
  1. validation
  2. sanitization.
__________________
"When they give you ruled paper, write the other way..." J.R.J.
Reply With Quote
  #5  
Old 28-02-2010
Deabelos's Avatar
Member
 
Join Date: Jul 2006
Posts: 233
Re: What Filters are Available in PHP?

Flags are optionally used with both validation and sanitization to tweak behaviour according to need. For example, passing in FILTER_FLAG_SCHEME_REQUIRED while filtering an URL will require a scheme (like http://) to be present. You don't need any external libraries to build this extension. The filter extension is enabled by default as of PHP 5.2.0. Before this time an experimental PECL extension was used, however, the PECL version is no longer recommended or updated.
__________________
IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What Filters are Available in PHP?"
Thread Thread Starter Forum Replies Last Post
Using filters in DVD Rebuilder Bower Windows Software 5 03-05-2010 10:47 AM
MS Exchange filters problem cornto Software Development 3 24-12-2009 11:35 AM
hp keyboard filters saholybee Vista Help 3 04-11-2009 07:31 AM
Cable filters and if anyone has used one before? NetTalk Off Topic Chat 4 13-10-2009 06:18 PM
lock filters Jason Microsoft Project 4 23-09-2008 09:24 PM


All times are GMT +5.5. The time now is 04:10 AM.