PHP help

SpaceshipSpaceship
Watch

bquast

Established Member
Impact
5
Well I have an uploader, but I want to be able to scan the file for bad words, ie the mail command and then reject the file.

if anyone has a quick solution please let me know, thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Hey bquast,

If you mean you want to avoid th epossibility of a someone using php commands to try to parse commands, then use strip_tags.
PHP:
// stripping php tags
$text="<? mail() ?>";
$newtext=strip_tags($text);
echo $newtext;
You'll find that that will prevent any php parsing there.
 
0
•••
yes that should do it thank you BillyConnite
 
0
•••
bquast said:
yes that should do it thank you BillyConnite
No worrys, let us know if you need further help :)
 
0
•••
Well all I want is for it to get rid of the mail() command out of any php file that is uploaded.

I tried this it ads that tag into the file....
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back