A form sendind a file has nothing to do with FTP functions of PHP.
You´ll still need to change de upload_max_filesize and so on in order to
send such files to the server.
--
João Cândido de Souza Neto
"Matthew Croud" escreveu na mensagem
news:02f75bf6-9ec5-4456-9150-07042aeba...@obviousdi
php-general@lists.php.net
> Subject: Re: [PHP] Re: Upload and resize file
>
> On Thursday 23 August 2007 14:50, Al wrote:
> > Suggest you find another script. That one is weird and not
> simple PHP
> > code, which will do your task easily.
>
> just my thou
On Thursday 23 August 2007 14:50, Al wrote:
> Suggest you find another script. That one is weird and not
> simple PHP code, which will do your task easily.
just my thoughts to
>
> Beauford wrote:
> > I downloaded this 'upload and resize image' script, and since I have no
> > idea what I am looki
Suggest you find another script. That one is weird and not
simple PHP code, which will do your task easily.
Beauford wrote:
I downloaded this 'upload and resize image' script, and since I have no idea
what I am looking at as this is something I have never done, could someone
have a look and
Hle
on 07/17/2007 03:46 PM Tom Ray [Lists] said the following:
> I'm a little unsure on how to do this but basically when someone uses a
> form to upload a file I want to have a popup window come up and so the
> process in percentage of the transfer. Anyone do this before? Is it
> possible in PHP
Does any have any references or an example to show me?
Well, I think we need a description of the error or the invalid response
you're having. It could be a file-size issue (your php.ini configuration
won't allow file sizes > 8mb's, for instance).
Have you googled it?
--
Jared Farrish
Intermed
Thank you all for your tips and solutions !!
I use chmod and my upload form works fine ;)
Eric
Le 2007-05-09 à 10:23, Daniel Brown a écrit :
PHP has two functions that may help you here, Eric --- chmod() and
chown().
http://php.net/chmod
http://php.net/chown
It should be enough
I was thinking the same thing, Richard, but didn't say anything because
of my limited experience with MacOS. I know it's built on BSD, but to be
honest, I have no clue what may have changed over the years.
On 5/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Wed, May 9, 2007 9:15 am, Eri
On Wed, May 9, 2007 9:15 am, Eric Trahan wrote:
> After some other tests, I think the problem is with the rights of the
> file.
>
> I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
> 4.4.4.
>
> Settings in PHP:
> file_uploads: On
> upload_tmp_dir: no value (so it uploads in /v
Eric Trahan wrote:
Is there a way to change the owner or the group of a file in PHP.
http://uk2.php.net/chown
But remember the chown will fail if the user Apache is running under
does not have sufficient rights to perform the task.
Cheers,
Rich
--
Zend Certified Engineer
http://www.coreph
PHP has two functions that may help you here, Eric --- chmod() and
chown().
http://php.net/chmod
http://php.net/chown
It should be enough to chmod($filename,0644); the file if it's just an
image, or chmod($filename,0755); the file if it's a script.
On 5/9/07, Eric Trahan <[EMAIL PRO
After some other tests, I think the problem is with the rights of the
file.
I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
4.4.4.
Settings in PHP:
file_uploads: On
upload_tmp_dir: no value (so it uploads in /var/tmp/)
upload_max_filesize: 2M
My destination folder is
Eric,
If you're checking the filesize via FTP, a web-based file manager, or
even the shell if it's a cross-platform upload, it can give bad data. Try
downloading the file and seeing if it's still working. If it does, try
uploading it via FTP and having a script check the md5 hash on the t
Have you tried your code on another server?
--
itoctopus - http://www.itoctopus.com
"Eric Trahan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have a form to upload file on my web server, so user can upload their
> images.
>
> The upload work. The user file is uploa
$permissable_MINE_types= array( //*** file upload parms
'image/png' => 'png',
'image/gif' => 'gif',
'image/jpeg'=> 'jpg',
'image/pjpeg' => 'jpg',
'application/pdf' => 'pdf',
);
$upload_parms['permis_ty
In news: [EMAIL PROTECTED],
"Alain Roger" said:
>> Hi,
>>
>> I would like in fact to make more precise my previous post.
>> I would like in fact to restrict the file extension (and therefore
>> the user possibility).
>>
>> My user should be able only to upload files with extension JPEG,
>> BMP, GI
ORIGINAL##
I would like in fact to make more precise my previous post.
I would like in fact to restrict the file extension (and therefore the user
possibility).
My user should be able only to upload files with extension JPEG, BMP, GIF.
How can i set those parameter ?
thx.
END ORI
Hi Sonja,
Sonja schrieb am 24.08.2006 12:36:
> Hi,
> It looks like:
>
> $result= move_uploaded_file($image['tmp_name'], $uploadDir .
> $imagePath);
is $uploadDir writeable to the webserver!? check this first.
if it is
>
> if ($result) {
>
Hi sonja,
Sonja schrieb am 24.08.2006 09:38:
> Hi,
>
> I have problems with uploading image, here is the code
>
> if(isset($_POST['txtTitle']))
> {
> $albumId = $_POST['cboAlbum'];
> $imgTitle = $_POST['txtTitle'];
> $imgDesc = $_POST['mtxDesc'];
>
> $images=
Ok guys.
Thanks a lot by your tips.
I´ll try and give you an answer.
""João Cândido de Souza Neto"" <[EMAIL PROTECTED]> escreveu na
mensagem news:[EMAIL PROTECTED]
> Hello gang.
>
> I´ve got a e-commerce system where one can import data from his management
> system.
>
> This importation fi
How is it not suited?
I stopped using mySQL to store images because of
browser refresh problems, but other than that --
I didn't find any major problems with using it.
Plus, moving images from one system to another
was much easier because you just moved the dB and
you don't have to worry about
How is it not suited?
I stopped using mySQL to store images because of
browser refresh problems, but other than that --
I didn't find any major problems with using it.
Plus, moving images from one system to another
was much easier because you just moved the dB and
you don't have to worry about
At 11:07 PM +0200 5/11/06, Jochem Maas wrote:
I think you make interesting points Tedd, it's given me stuff to
think about anyway.
leveraging a Db for image storage can have advantages but
implementing it correctly
takes a stack more knowledge and more work to do it correctly,
therefore the re
tedd wrote:
At 1:02 AM +1000 5/11/06, Peter Hoskin wrote:
Despite common belief, SQL is not suited to the storage of binary files.
SQL is based on ASCII.
Store your files on the filesystem, not SQL.
How is it not suited?
I stopped using mySQL to store images because of browser refresh
prob
At 1:02 AM +1000 5/11/06, Peter Hoskin wrote:
Despite common belief, SQL is not suited to the storage of binary files.
SQL is based on ASCII.
Store your files on the filesystem, not SQL.
How is it not suited?
I stopped using mySQL to store images because of
browser refresh problems, but other
Jochem Maas wrote:
thank you Edward.
...
there is a funny little story about where the name BLOB came from:
http://www.cvalde.net/misc/blob_true_history.htm
just to note that BLOBs where invented by the guy that designed Interbase
which just happens to be the ancestor of the coolest DBMS
thank you Edward.
Edward Vermillion wrote:
>
> On May 10, 2006, at 10:53 AM, Peter Hoskin wrote:
>
>>
>> GOOGLE DO NOT ARGUE
>
>
> o_O?
yeah! I did figure it really was about time they changed their
'Do No Evil' slogan given their escapades in china
funnily enough I watched a documentary th
There are names for people who use the blob field of a MySQL db to store
images.
Moron, and Idiot are just two examples, but if other circumstances exist,
you can say newbie as well. As a newbie I thought myself that storing images
in a DB would be a nice clean solution. Voices of experience said
On Wed, May 10, 2006 9:52 am, Renzo Clavijo wrote:
> I'm gonna be more precise:
>
> I wrote a form with fields , then i need to
Should be know how
> to upload the files to the MySQL server (postgreSQL wold be
> appreciated). It
> implies: Which field(s) must have the table where I'll save the
> i
On May 10, 2006, at 10:53 AM, Peter Hoskin wrote:
GOOGLE DO NOT ARGUE
o_O?
So, if ASCII and Binary are both codesets... which does SQL use to
store
its data?
ASCII is a codeset, utf* is a codeset binary is a, um... , binary
data.
varchar, etc => ASCII/utf*/whatever => st
Jochem Maas wrote:
> Peter Hoskin wrote:
>> Renzo Clavijo wrote:
>>
>>> hi all..
>>>
>>> I'm gonna be more precise:
>>>
>>> I wrote a form with fields , then i need to
>>> know how
>>> to upload the files to the MySQL server (postgreSQL wold be
>>> appreciated). It
>>> implies: Which field(s) mus
Peter Hoskin wrote:
Renzo Clavijo wrote:
hi all..
I'm gonna be more precise:
I wrote a form with fields , then i need to
know how
to upload the files to the MySQL server (postgreSQL wold be
appreciated). It
implies: Which field(s) must have the table where I'll save the
image?. Is
there an ex
Peter Hoskin schrieb:
But mysql can be quite a good spool though.
That way you don't have to code one for yourself.
That does not mean that there are not SIGNIFICANT ADVANTAGES to coding
something to use the filesystem - such as seek speed. When dealing with
large datasets of binary, filesyste
> But mysql can be quite a good spool though.
>
> That way you don't have to code one for yourself.
>
That does not mean that there are not SIGNIFICANT ADVANTAGES to coding
something to use the filesystem - such as seek speed. When dealing with
large datasets of binary, filesystems are much quicke
Peter Hoskin schrieb:
Renzo Clavijo wrote:
hi all..
I'm gonna be more precise:
I wrote a form with fields , then i need to
know how
to upload the files to the MySQL server (postgreSQL wold be
appreciated). It
implies: Which field(s) must have the table where I'll save the
image?. Is
there an e
Renzo Clavijo wrote:
> hi all..
>
> I'm gonna be more precise:
>
> I wrote a form with fields , then i need to
> know how
> to upload the files to the MySQL server (postgreSQL wold be
> appreciated). It
> implies: Which field(s) must have the table where I'll save the
> image?. Is
> there an exampl
Renzo Clavijo schrieb:
hi all..
I'm gonna be more precise:
I wrote a form with fields , then i need to know
how
to upload the files to the MySQL server (postgreSQL wold be
appreciated). It
implies: Which field(s) must have the table where I'll save the image?. Is
there an example code to upl
hi all..
I'm gonna be more precise:
I wrote a form with fields , then i need to know how
to upload the files to the MySQL server (postgreSQL wold be appreciated). It
implies: Which field(s) must have the table where I'll save the image?. Is
there an example code to upload the file(s)?
Thanks a
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
Jasper Bryant-Greene wrote:
> [EMAIL PROTECTED] wrote:
>
>> Well basically i need it for an "add products" page and if the users
>> doesnt fill
>> in all the fields correctly I display some error message as well as
[EMAIL PROTECTED] wrote:
Well basically i need it for an "add products" page and if the users doesnt fill
in all the fields correctly I display some error message as well as populate the
textfields and dropdown lists with the values they previously entered, so if
they entered/selected the file I
IMHO this is just a design issue, why not just hide the upload field,
display a message that they need not re-upload, and just add a hidden
field with the name of the uploaded file and once they've corrected
their fields, they re-post, and viola, you've got your file still.
[EMAIL PROTECTED] wrote
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the replies.
>
> Well basically i need it for an "add products" page and if the users
doesnt fill
> in all the fields correctly I display some error message as well as
populate the
> textfields and dropdown lists with the valu
Thanks for the replies.
Well basically i need it for an "add products" page and if the users doesnt fill
in all the fields correctly I display some error message as well as populate the
textfields and dropdown lists with the values they previously entered, so if
they entered/selected the file I wa
> Hi all.
>
> I havent found an answer after looking at the manual. I'm trying to find
> out if it possible to find the path of the file on the clients pc once
> a form has been submitted with the file upload form.
No, this would be a security risk. If all your users are on an intranet,
you may
try reading the manual before asking these questions...you will learn
much more that way
Nadim Attari wrote:
you may use this function
http://www.alienworkers.com/misc/uploadImage.htm
Regards,
Nadim Attari
Hello, hard people.
I want to do this, I like to upload image file,
What can I do?.
some
you may use this function
http://www.alienworkers.com/misc/uploadImage.htm
Regards,
Nadim Attari
> Hello, hard people.
>
> I want to do this, I like to upload image file,
> What can I do?.
>
> somebody help me.?
>
> best regards TOMAS
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
P80 wrote:
hey all
I'm looking for a simple script that would upload an image and resize it to
thumbnail using a form to upload the picture. anyone has a good script for
that?
thanx in advance
Pat
Hi Pat,
I wrote this function to resize pictures to the max width/height,
preserving proportions:
14:48
收件人: [EMAIL PROTECTED]
主题: [PHP] Re: upload file warning
Yangshiqi wrote:
> I got a php waring when I upload my file:
>
>
>
> Warning: MAX_FILE_SIZE of 20 bytes exceeded - file
[imgpath=mz-n10.pdf]
> not saved in Unknown on line 0
>
that seems like a very
Yangshiqi wrote:
I got a php waring when I upload my file:
Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf]
not saved in Unknown on line 0
that seems like a very descriptive warning to me...
In the form I write like these:
yes... this is where you did put it.
* Thus wrote Kim Steinhaug:
> Just a quick question,
>
> Did you alter the upload_max_filesize to 500MB
> and the post_max_size to say 510MB and you succesfully
> upload 500MB files from one machine to the server?
>
> I never testes with filesizes that large, but It would be nice to
> hear if it
On Sun, 2004-08-15 at 13:01, Kim Steinhaug wrote:
> Just a quick question,
>
> Did you alter the upload_max_filesize to 500MB
> and the post_max_size to say 510MB and you succesfully
> upload 500MB files from one machine to the server?
>
> I never testes with filesizes that large, but It would be
Just a quick question,
Did you alter the upload_max_filesize to 500MB
and the post_max_size to say 510MB and you succesfully
upload 500MB files from one machine to the server?
I never testes with filesizes that large, but It would be nice to
hear if it accually works without tweaking to much.
I
Thanks,
I change the "post_max_size" variable in php.ini and it worked !
"Rosen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi,
> I try to upload a .zip file via PHP. I change directive
"upload_max_filesize
> = 500M".
> The first file is about 5 MB and no problems with upload.
>> The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- use
>> that rather than $_POST["filename"].
>
> I'm sorry I don't understand. What is the extra ["name"] for? When I use
> this in the insert into the value that is inserted into the database is
> Array, as opposed to the ac
On Sunday 21 March 2004 22:53, Vernon wrote:
> > The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] --
> > use that rather than $_POST["filename"].
>
> I'm sorry I don't understand. What is the extra ["name"] for? When I use
> this in the insert into the value that is inserted into
> The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- use
> that rather than $_POST["filename"].
I'm sorry I don't understand. What is the extra ["name"] for? When I use
this in the insert into the value that is inserted into the database is
Array, as opposed to the actual filen
> All I am trying to do is insert the file name, not the file. The file is
> being uploaded to the server in a specific location. All I need is the
> filename inserted into the database. I've gotten the upload part to work and
> everything I just can't get the file name inserted for God knows what
All I am trying to do is insert the file name, not the file. The file is
being uploaded to the server in a specific location. All I need is the
filename inserted into the database. I've gotten the upload part to work and
everything I just can't get the file name inserted for God knows what
reason.
Could you post both your HTML form code and the PHP code you're using to
handle the file upload. Also, just to make sure I understand what
you're trying to do, you want to insert the uploaded file into a MySQL
database?
Vernon wrote:
As much as I try I cannot get a file field in a form inserte
I figured it out...
You can put everything in one file...
http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello... I'm trying to upload a picture along with other informatio
use funciton rename
http://si2.php.net/manual/en/function.rename.php
rename($old,$new) or die("can't do that!");
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> thanks to ya'll I've gotten a picture uploaded... but now what I can't
> figure out how to do is
"Philippe Lemmerling" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> I have a question concerning security of my file upload script. I'm
using
> the php upload routines (move_uploaded_file,...) and variables
($_FILES) to
> upload images to a webdirectory. Everything works fine, meani
ECTED] Php. Net'
Subject: Re: [PHP] RE: Upload seems to time out over 7.5 M
> The only timeout (that I *know of!*) that I don't know how to change is
the
> Apache timeout of 300 seconds. It appears that it is indeed timing out
> after 300 seconds (five minutes). It shows as
> The only timeout (that I *know of!*) that I don't know how to change is the
> Apache timeout of 300 seconds. It appears that it is indeed timing out
> after 300 seconds (five minutes). It shows as HTTP_KEEP_ALIVE = 300 in
> phpinfo().
There is also a setting in Apache for the maximum size of a
Sorry... here is the post
Lou
<<< - POST - >>
From: Fred ([EMAIL PROTECTED])
Subject: Large file uploads timeout - ouch!
View this article only
Newsgroups: php.general
Date: 2001-12-05 02:18:53 PST
I'm designing a simple content management system with PHP, and it is
going great
i seriously dont get it how are you suppose to use the ftp functions if the
only way is via the browser uploader which goes to the server first anyway
??
"Justin French" <[EMAIL PROTECTED]> wrote in message
news:B9F47504.16CA2%justin@;indent.com.au...
> From the browser window, I believe you can o
>From the browser window, I believe you can only upload individual files to
the server... you can do multiples at once, but you can't (IMHO) upload an
entire directory off your desktop THROUGH your browser, to the server.
You could .zip, .tar or .sit a folder of course, but then you'd have to
unco
Its a question.
I want to know if there is any method to upload a directory,
If yes, then how.
On Sun, 10 Nov 2002, electroteque wrote:
> was this an answer or a question ?
>
> "Akhil Kodali" <[EMAIL PROTECTED]> wrote in message
> news:Pine.LNX.4.44.0211091958120.10474-10@;gdit.iiit.net
was this an answer or a question ?
"Akhil Kodali" <[EMAIL PROTECTED]> wrote in message
news:Pine.LNX.4.44.0211091958120.10474-10@;gdit.iiit.net...
> Hi,
>
> I there anyway to upload entire directory.
>
> --
> AKHIL K
> 200101009
> Room No. 15
> BH-2
> IIIT
> ---
I will give the search a try tomorrow morning. But I can give direct
access to the filesystem for one folder on the RaQ if needed as a
temporary holding place. In my head it seems to be the best option I
have. I'll see what my search results come up with tomorrow.
On Tue, 2002-10-29 at 23:38, Jas
Does it have direct access to this filesystem?
Or maybe FTP access? I've seen a lot of talk about automatic FTP
transfers on the list, maybe you can filter the topics and grab
something from there?
Just a few cents to throw in :)
-Jason
Greg Macek wrote:
This topic may have been covered before
I just wrote a file upload script and all the information that I needed was
here in the manual:
http://www.php.net/manual/en/features.file-upload.php
There were a couple of "common pitfalls" that it points out, which you
should check. Make sure you've defined the various configuration variables
I'm not sure of the backwards compatibility, but if you're running PHP
4.2.x (I think? Maybe it came in earlier) .. use the $_FILES global
variable, in place of $HTTP_POST_FILES. The array is exactly the same:
$_FILES[name_of_file][attributes]
Hopefully this helps?
-Jason
Cyrille Andres wrote
Just a thought from left field. Probably wont help much but if the clients
side were willing to upload a zip file, you could decompress & expand it on
the fly after uploading.
Cheers,
Owen Prime
http://www.noggin.com.au
Jennifer Swofford wrote:
> Is there an easy way to upload an entire dir
"Jennifer Swofford" <[EMAIL PROTECTED]> wrote:
>Is there an easy way to upload an entire directory? Rather than selecting
the 19 files in a directory, to just select the directory, and have all its
contents go with it? (Or even a not-such-an easy way?)
Since uploading a file to your webserver
are you using global vars? like $file or you use new var like $_FILES?
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
<[EMAIL PROTECTED
Check these out:
http://www.php.net/manual/en/features.file-upload.php
http://www.php.net/manual/en/function.move-uploaded-file.php
>From the bit of code you posted, you're not declaring where an upload should
actually go.. If you want it sent via email (attachment, not upload), that's
another s
>I have a simple script that attempts to upload a file and save it on the
>server. When I click send file I get this error message 'Warning: Unable to
>open '' for reading: No such file or directory in /var/www/html/upload.php
>on line 5
>Couldn't copy the file!'. The file is being uploaded from a
Check Apache limitations
--
Sincerely, val petruchek
"Norman Zhang" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I can't seem to upload file bigger than 5M even if I set the
> upload_max_filesize to 20M in php.ini and MAX_FILE_S
lol... the problem was in this line:
move_uploaded_file($_FILES['userfile']['tmp_name'],"c:\\inetpub\\wwwroot\\up
load\\".$_FILES['userfile']['name']);
I used single backslash.. and thats no good i think ;)
"Ragnar" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
ite
> permissions to that folder.
>
> ---John Holmes...
>
>
> > -Original Message-
> > From: Ragnar [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 23, 2002 6:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Re: Upload wont work
> >
>
If you're using NTFS, the IUSR_ user has to have write
permissions to that folder.
---John Holmes...
> -Original Message-
> From: Ragnar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 6:51 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Upload wont work
It seems that i have passed the original problem.. now i get this
errormessage:
Warning: Unable to create 'C:\Inetpub\wwwroot\demos': Permission denied in
c:\inetpub\wwwroot\demo_up.php on line 7
This is where i try to copy the uploaded file to the demo directory. So i
try to enable write access
Try this.
Upload
File:
Please click only once and wait for confirmation
/carsten
"Dave" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Whats the easiest way to create a script to upload a file from my home PC
to
> my web server using PHP?
Have you tried to change the defualt timeout value from 30 secs to something
larger or even -1 in the php.ini file?
Could be a problem to upload 4mb in 30 secs if your on a slow conn..
/Micke
"FyiÎ?rk µérkt" <[EMAIL PROTECTED]> skrev i meddelandet
004001c1e12d$43ca16a0$020296c2@actarus">news:
I forgot to mention that all of the pics in my small app are renamed and are
only 5 digits in length. So I always know I can count on the substr() and 5
digits/characters. Your situation is more than likely different than mine
own, and you'll have to adjust the extraction of the file name to suit
Deleting and editing is accomplished by selecting out of the db the
appropriate record. So if you had a page that looped through 35 (for
example) records, and each record had a link that was created (" .
"delete" . ") -- use the querystring to pass the $photoid to a
confirmation page. On that conf
That's cool.
How do you then delete and edit that image?
Will
in article [EMAIL PROTECTED], Lerp at
[EMAIL PROTECTED] wrote on 2/1/2002 5:07 PM:
> Hi there, here's a bit of code to get you started. It includes a form that
> allows uploads, and the code to process the upload on the rece
I forgot to add the security at the top of that code I sent. Upon a
successful login you might want to create a session variable to signify that
they are logged in. At the top of the pages you want to be secure from
'other' users just do a test at the top to check to see if that variable was
set.
Hi there, here's a bit of code to get you started. It includes a form that
allows uploads, and the code to process the upload on the receiving page.
Basically, you have a form that allows an upload of a file on one page, and
some code on the receiving page to insert a path to that file in the
data
Try changing the permissions of the parent directory. I've had that problem
in the past and that was the only thing that seemed to fix it.
Mike
"Sundogcurt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm not sure if this is a problem I can overcome with
Never used bytea so can't help directly but:
You're way better off to store the file as a file and just put the pathname
into Postgre in the first place...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i
What version of PHP/Apache/etc are you using?...
What browser on what OS?
If it's consistently doing this for all browsers, you could write some code
to check the uploaded file, and if it starts with "Content-type: ", strip
off the lines.
Both GIF and JPEG files have distinctive starting charac
93 matches
Mail list logo