Replace empty space to uploaded files | move uploaded files php upload

 
  • HOME  • tutorials  • photos   • free grafics design  • maps
     

CATEGORIES
EXCEL TUTORIAL
SQL TUTORIAL
WEB INFORMATION
WINDOWS
JAVASCRIPT SCRIPTS
COMPUTER SECURITY
GRAFIC DESIGN
HTML
PHP
CSS STYLE
ATLAS OF THE WORLD
DEVELOPER
PHOTOSHOP
MAGAZINE
TOP LISTS
LATEST ARTICLES
sql inject protection without complicated class php script and tutorial
how to insert decimal values into a sql
free php and ajax captcha scripts
detect and block uppercase up letters in a string text form input php script
php googlebot detection script
replace breaking lines text, textarea input php
php login script, free login script in php
Remote SQL Database Connection Script Php
Bot Detect Script Php Search Engine Automatic
PHP String Functions
Php Upload Script
   • Replace Empty Space To Uploaded Files
  PHP » MOVE UPLOADED FILES PHP UPLOAD » REPLACE EMPTY SPACE TO UPLOADED FILES
google ads
 


REPLACE EMPTY SPACE TO UPLOADED FILES - MOVE UPLOADED FILES PHP UPLOAD
 
    
     Is important to replace empty space or other entities that are in name content of the file(s).
 The importance is more relevant when you insert data uploaded in SQL database.

If you want to replace the empty space when you upload a file you can use the next code:

$file_name = $_FILES['userfile']['name'];
$new_file_name=str_replace('_',' ',$file_name ) 

 


Also, you can replace all the characters in the name of the files name that are ready to be uploaded: 


<?php
move_uploaded_file(
  $_FILES["file"]["tmp_name"],
  $dir . preg_replace('/[^a-z0-9_\-\.]/i', '_', $_FILES["file"]["name"])
);
?> 
 








google ads

 

 

 

the latest articles :
• MD5 hash generator Online tools Windows Linux C Php
• Remove duplicates in html lines online javascript
• documentgetElementById()innerHTML javascript set Example
• How to block processes from starting and running in Windows XP
• List of us american presidents with pictures
• Ucwords javascript convert online tool
• Hex to rgb converter javascript for colors online
• Letter-spacing CSS property for html pages
• SQL Inject protection without complicated class php script and tutorial
• How to insert decimal values into a SQL table row

 

 
 
Copyright ©2008- www.himmera.com

top

eXTReMe Tracker