Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

Filename format

I am tryng in php to copy this file:

from upload/cgAlpha/voxPRI-cgAlpha-SPO-20060514-M.mp3

to voxPRI-cgAlpha-SPO-20060514-M.mp3

Does anyone see anything illegal about the filename; it works if I change the name of the file
0
cglenn3932
Asked:
cglenn3932
1 Solution
 
cglenn3932Author Commented:
OK, so explain this, if I change the name form voxPri... to voxPRI... it works.  SOmething illegal about starting a name with vox?  I have no directories named vox anything....
0
 
cglenn3932Author Commented:
I mistyped that.  I change it from voxPRI to aoxPRI (not voxPri to VoxPRI)
0
 
cglenn3932Author Commented:
It doesn't matter what I call the file as long as it doesn't start with v

Why would starting a filename with v be rejected by Lunix?  Hmmm.....must be a php issue, I can imagine this is a Linux issue.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ravenplCommented:
if it's php, the in the begginig of the script
error_reporting(E_ALL); ini_set("display_errors", "on");

Except that You may trying to remane file to it itself(if upload/cgAlpha/ is current directory) - will not work...
0
 
cglenn3932Author Commented:
it's not, it's a different directory

it works when the file starts with an  a not with an x or a v.
0
 
cjl7Commented:
Hmmm,

You might wanna use php's standard way of uploading files... (i.e. use a temp file, move that)

http://se.php.net/manual/en/features.file-upload.php

//jonas
0
 
makhanCommented:
Hi,

Its sure using a temp folder to upload files and then move it to orginal dir. and the temp dir has the same file as the name you are trying to upload.

Suggesstion: Clean up your temp dirs, reboot the server (in case there is some process which has the file locked!)
and retry again.

HTH

makhan

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now