Search found 30 matches

by drgnjucr
Tue Jun 07, 2005 9:58 am
Forum: PHP - Code
Topic: Header Redirect in download page
Replies: 4
Views: 699

If I just use "header(location:" the confirmation page will not display. The download will just begin. Unless I'm not coding it correctly? I've tried placing the "header(location:" bit on my "confirmation page" and by doing that, the page won't display, or print. the do...
by drgnjucr
Mon Jun 06, 2005 1:57 pm
Forum: PHP - Code
Topic: Header Redirect in download page
Replies: 4
Views: 699

Header Redirect in download page

Hi All. I have been fumbling with my code in order to make a download page that works in both IE and FF. I've figured out, that the problem I'm encountering is because of my "header(Refresh:" function which should redirect to the actual download page. It works fine in FF, however in IE, IE...
by drgnjucr
Mon Mar 07, 2005 2:54 pm
Forum: PHP - Code
Topic: [SOLVED] Downloading Files with PHP header()
Replies: 7
Views: 1976

[SOLVED]

I'm not excatly sure what fixed this, but it's fixed. I kept messin around with it and it worked.
I can't figure out where I went wrong, but I'm no longer wrong.

Thanks.
by drgnjucr
Mon Mar 07, 2005 1:16 pm
Forum: PHP - Code
Topic: [SOLVED] Downloading Files with PHP header()
Replies: 7
Views: 1976

Ok, so none of the files work. They seem open the contents of page source??

The text files, are the current page source. I believe that's what is happeneing to all of the files..
by drgnjucr
Mon Mar 07, 2005 11:41 am
Forum: PHP - Code
Topic: [SOLVED] Downloading Files with PHP header()
Replies: 7
Views: 1976

Well, I will post. But I did forget to mention that currently I am using Windows as my test server and if I navigate to the upload directory I can open them up no problem. It's only when I attempt to DL via a script. Do you still want my code? This is how I get the size: $_FILESї'userfile'...
by drgnjucr
Mon Mar 07, 2005 11:27 am
Forum: PHP - Code
Topic: [SOLVED] Downloading Files with PHP header()
Replies: 7
Views: 1976

I'm storing type in a MySQL db..

application/msword
application/vnd.ms-excel
application/pdf
text/plain

I'm storing the path,filename,size, along with some other irrelaveant details in the db.
by drgnjucr
Mon Mar 07, 2005 11:19 am
Forum: PHP - Code
Topic: [SOLVED] Downloading Files with PHP header()
Replies: 7
Views: 1976

[SOLVED] Downloading Files with PHP header()

I'm having difficulty downloading files on my server. For some reason, when attempting to DL files other than text files, the file gets corrupted. Adobe reports the file being corrupted or something, Microsoft word and excel reference a missing file, with is my .css file and the the doc is unreadabl...
by drgnjucr
Fri Mar 04, 2005 3:10 pm
Forum: PHP - Code
Topic: PHP Confirm Prompt?
Replies: 8
Views: 2070

I output HTML when a condition is true. I have a form, say: form.php whichs posts to a process.php In process php, I take a condition and prompt with html, "do you want to delete this record?" But I'm not sure how to take that input and continue with my function to execute an SQL statement...
by drgnjucr
Fri Mar 04, 2005 1:46 pm
Forum: PHP - Code
Topic: PHP Confirm Prompt?
Replies: 8
Views: 2070

PHP Confirm Prompt?

I know confirm boxes are a "client side" action, but I'm looking for a way to echo a confirmation prior to updating or deleting a record?
Basically, it's an if statment, where I can to have conditions which require user input.

Anyone know how I can acomplish this?
by drgnjucr
Wed Mar 02, 2005 1:49 pm
Forum: Databases
Topic: MySQL / PHP file upload?
Replies: 10
Views: 1727

Well, with more testing....... When the file file is uploaded with FF (a word, excel) and you attempt to download it with IE... the "FileType" is blank.. but it opens anyhow. If you upload it with FF, and try to dl it with FF and you choose to "Save to Disk" FF does not know what...
by drgnjucr
Wed Mar 02, 2005 1:38 pm
Forum: Databases
Topic: MySQL / PHP file upload?
Replies: 10
Views: 1727

Ok, so I've narrowed it down even more. It's just M$ files that are not working when downloaded from FF. It seems like upload works in FF...not as good as in IE, but it seems to work. I've tried text files, and zip files.. all work no problem with FF. Just excel, word seem to have issues. The workin...
by drgnjucr
Wed Mar 02, 2005 12:32 pm
Forum: Databases
Topic: MySQL / PHP file upload?
Replies: 10
Views: 1727

Actually, the code I have does work, just not in FF. It works fine in IE. hmmm.
by drgnjucr
Wed Mar 02, 2005 10:52 am
Forum: Databases
Topic: MySQL / PHP file upload?
Replies: 10
Views: 1727

Well, sort of an example as to how I put the file into the db with that function.
by drgnjucr
Wed Mar 02, 2005 10:49 am
Forum: Databases
Topic: MySQL / PHP file upload?
Replies: 10
Views: 1727

I'm sorry to ask, but would you be able to help me with the syntax of the function?
by drgnjucr
Wed Mar 02, 2005 10:22 am
Forum: Databases
Topic: MySQL / PHP file upload?
Replies: 10
Views: 1727

Hi, Thanks.

Do you know how I would insert the actual file into the mediumblob filed? Currently, it looks like I'm opening the file with "fopen()" and it's attempting to place the content into the field.. at least I think that's what it's doing.