Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Cabal

Pages: [1]
1
General PHP Help / PHP randomly changing variable names
« on: August 13, 2007, 11:06:08 AM »
Any idea whats going on here?

I have a function which outputs an image to a filename which is specified by a combination of a variable inputted into the function, and a hard-coded location. The variable is being inputted to the function correctly - i placed an echo command the line before the function is called and that value is correct..... however an echo command within the function seems to show a different value. It is this changed value which is being used as the location, not the correct one which is being sent to the function

8081_B12345_53444900_10 becomes 8081_B12345_53444900_14
8081_B12345_53444900_U99 becomes 8081_B12345_53444900_V03
8081_B12345_53444900_aa becomes 8081_B12345_53444900_ae

Any idea what is causing this? It shouldn't be my coding as between the two echo commands all that happens is the value is passed to the function.

2
General PHP Help /
« on: July 19, 2007, 06:48:05 AM »
Sorry for multiple messages..... but I think I found a solution. As long as ftp uploads are enabled on the server, and as long as we have a list of files in the directory - which we can just use a dos dir output for - they don't mind that - there's no reason why a loop of ftp_put wouldnt work right?

I've never used ftp functions through php before so didn't think of it sooner.

3
General PHP Help /
« on: July 19, 2007, 04:43:28 AM »
Thanks. I may have to have that as a backup option. On another forum I was pointed in the direction of a couple of java applets but java applets are restricted on our network and probably quite a few others too for security reasons - and with a user uploading over 100 files at a time most of the time this could get a bit repetitive.

What I'm thinking at the moment is

1) java applet
with either
2) zip uploads in normal file box
or
3) ftp uploading
as a backup

Although if anybody has any better suggestions I'm all ears.

This is annoying though. I mean... I can understand the security aspect of not allowing file fields to be preset.... but you'd think they would have a workaround so if a user for example had a file list of 100 files and sent that to a script it would allow file fields to be preset or something. That was my original idea but alas it won't work dammit.

4
General PHP Help / uploading multiple files - help needed
« on: July 18, 2007, 12:56:50 PM »
Ok here's my predicament.

At work one of my tasks for the site (being created in php) is to create a file uploader where people can select files to upload to the site. The problem is - with this site a user could potentially be wanting to upload over 100 files at any one time, maybe several hundred.

However as I'm sure you know - html file uploaders only allow one file to be selected at once.... so for over 100 files this would be incredibly time consuming. Then I thought if there's a list of files entered into a text box it would be possible to preload lots of file fields with this data - but nope it seems like you're not allowed to use the value tag to set file fields like you are with normal text inputs.

Does anybody know of a way this could be implemented? Or do you know of any third party scripts that would work? I'm starting to run out of ideas.

I looked around for flash applets as some sites use these but when i went to select a large selection of files they all kept just saying "sorry... too many files"

HELP!

Pages: [1]