server offers the .php as download

See all posts See thread Reply

Re: server offers the .php as download new!
by Boris, 17 years, 6 months ago
but if i use

if ($MyObject->uploaded) {
   $MyObject->file_new_name_body = $photo_name;
   die($MyObject->log);
   $MyObject->process($dir_big);
etc...

it does die with the log! When I place the "die" after the ->process, it offers the file as download!

it diesReply
Re: server offers the .php as download new!
by colin, 17 years, 6 months ago
I admit it is strange, but it must be a server issue. Are you sure that all the files, including the class are chmod' to 755?Reply
Re: server offers the .php as download new!
by Boris, 17 years, 6 months ago
I've modded all files to 777 (php file that uses class & class file), no effect unfortunataly.Reply
Re: server offers the .php as download new!
by Boris, 17 years, 6 months ago
btw... the file that is offered for download has the same name as the .php that arranges for the upload using your class. When i download the file it is empty, also when i put some fake html into the file. Very strange, haven't seen anything like it! Looks almost like the class is making the server present a file to the webclient.Reply
Re: server offers the .php as download new!
by colin, 17 years, 6 months ago
I can't really offer much help here. As I said, it is almost certainly a server issue, not a class issue.Reply