Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: nCPGc: personal help request  (Read 4250 times)

0 Members and 1 Guest are viewing this topic.

boii

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
nCPGc: personal help request
« on: October 23, 2003, 08:42:06 am »

hey guys,

i have a quick php question of related matter, and thought this woudl be the best palce to ask, i sincerely aprologize to gaugau, tarique etc if this is out of line (i've given much support/code that i thoguth maybe this coudl be "okay").

in any case:

can someone show me the quick php code, whereby filenames with a space are converted to an underscore. im havign some issues with fielnames that contain spaces so id liek to be able to strip the space and convert it to an underscore either on uplaod or before imagemagick hits them to resize em. id appreicate if anyone has a way to do this (i knwo its fairly simple, but not an area of coding that im familair with).

much appreicated.

cheers.
ken
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
nCPGc: personal help request
« Reply #1 on: October 23, 2003, 08:50:17 am »

OK this once it is allowed ;)

you can use
Code: [Select]
str_replace(" ","_",$filename);

A search of manual in string functions will give you more tricks on string manipulation
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.