Login   Register  
PHP Classes
elePHPant
Icontem

Escape

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MySQL Dump Backup  >  All threads  >  Escape  >  (Un) Subscribe thread alerts  
Subject:Escape
Summary:need of escapes?
Messages:2
Author:catalin
Date:2012-10-31 10:22:31
Update:2012-11-03 14:11:33
 

  1. Escape   Reply   Report abuse  
Picture of catalin
catalin
2012-10-31 10:22:32
Very usefull class.
But what you think about some escapes of inputs?

I looked in php manual and found escapeshellcmd. Do you think is usefull here?

catalin

  2. Re: Escape   Reply   Report abuse  
Picture of Pierre-Henry Soria
Pierre-Henry Soria
2012-11-03 14:11:33 - In reply to message 1 from catalin
Hello catalin!

No, you do not need to escape your data.

The class is simply a backup of your database to a compressed archive.

escapeshellcmd used only if the login to connect to your database (arguments: Host, User, Password and Database name) comes from an untrusted source, that should never be the case!


Good luck!