Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Tell me how can we automatically escape incoming data?



Tell me how can we automatically escape incoming data?..

Answer / Amol Kumar

In PHP, you can use functions like n`htmlspecialchars()`, `addslashes()`, and `escapeshellcmd()` to automatically escape incoming data depending on the context (HTML, SQL, command line).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php session id?

1 Answers  


How is it possible to propagate a session id?

1 Answers  


Why do we use htaccess

1 Answers  


Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?

1 Answers  


When you will get the error "Cannot add header information"?

2 Answers  


What are the advantages of triggers in php?

1 Answers  


how can i upload only pdf files in my website? files has not a pdf extension mantioned

0 Answers  


What is rtrim php?

1 Answers  


Write logic to print Floyd's triangle in PHP?

1 Answers  


What is an example of a variable?

1 Answers  


How can we get second of the current time using date function?

2 Answers   FD, IBM,


What are the three classes of errors that can occur in php?

1 Answers  


Categories