You are here: tricky php, can anyone help « PHP Programming Language « IT news, forums, messages
tricky php, can anyone help

Posted by matpac4 on 10/02/37 12:00

I'm a bit stuck! Please can someone help.

Here's what I'm trying to build:

1. Webform which puts variables into a database (each with unique ID
field)
2. Webform also allows attachment which uploads the file to specific
directory
3. On submission of webform for a file on the directory to be
duplicated and renamed "unique ID".php and placed in a specific folder


I have completed 1 + 2, but am stuck with the 3rd.

A few of my thoughts on this are:

Regarding the creation/duplication and renaming of the .php file,
maybe I can treat this as a file upload but from the server - a little
confusing, but I'm thinking along the lines of how the file upload
works above, except this would be a hidden field in the submission
form, and I'd have to set the path to the file on the server in the
hidden field also - not sure how to do this though...

....Plus this also leaves the problem of giving the duplicated file
it's related "uniqueid.php" name.

The contents of the php file that I'm wanting to create/duplicate will
all be the same code each time the form is submitted. I will have code
in these files which reads the file name and displays the proper stuff
related to the file name.

But I need a way of getting the unique id to the file name and am not
sure of a way to do this, especially with the problem of when several
people are completing the form at the same time. I need to make sure
that the number given to the duplicated .php file isn't associated
more than once.

If anyone can help me with any bitesize portion of this I'd appreciate
it.

Thanks for any help

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация