Search found 7 matches

by GalakStarscraper
Thu Sep 11, 2003 11:04 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

Bech100 ... did the above output that you requested shed any clues on why it doesn't work?

thanks,
Galak
by GalakStarscraper
Wed Sep 10, 2003 10:42 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

Bech100 wrote:try putting at the top of the script that runs when the form has being submitted and tells us what is returns.

Code: Select all

print_r($_FILES);
Here was the result from that test:

Array ( [userfile] => Array ( [name] => IronChefs.htm [type] => text/html ) )
by GalakStarscraper
Wed Sep 10, 2003 10:36 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

Okay ... here's what I got for the error check: if ($_FILESї'userfile']ї'tmp_name'] != "none") { // File einlesen $openHandle = fopen($_FILESї'userfile']ї'tmp_name'], "r"); $readHandle = fread($openHandle, filesize($_FILES&#111...
by GalakStarscraper
Wed Sep 10, 2003 9:41 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

Thanks Mark, that made some progress on the problem. Hmmmmmm...... Okay tmp_name is blank after the form processes. However $_FILES['userfile']['name'] is set to name of the html. Example: D:\PBeMBBL\CurrentGames\IronChefs.htm when put into the form and submitted stores IronChefs.htm to name, but tm...
by GalakStarscraper
Wed Sep 10, 2003 8:58 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

First thing I noticed - $PHP_SELF should be $_SERVER['PHP_SELF']. The next thing you need to do is read: Handling file uploads Try the examples that they have listed there and post back if you have any problems. Mac Mac ... thanks for the very quick reply. The weird thing that has us (its me and on...
by GalakStarscraper
Wed Sep 10, 2003 8:50 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

And obviously I did since it got moved immediately ... sorry about that. thanks to the site admin for moving my post to a more appropriate place ... its appreciated.

Galak
by GalakStarscraper
Wed Sep 10, 2003 8:44 am
Forum: PHP - Code
Topic: file uploading with register globals off
Replies: 16
Views: 808

file uploading with register globals off

[Admin Edit: Moved from the Passing Variables sticky] Well, I've read through this thread, looked at the links, and I'm still not sure what is wrong. Here is the form: ?><h1>Add new team</h1><? // Form for the new team entry $url = $PHP_SELF . "?show=addTeam".$sid; echo "<form action=...