Jump to content

dellvostro

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dellvostro's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. can anyone help on this? we need to be able to receive pdf and eps files. thank you.
  2. I think this everything your asking for. Thanks for the link. Ill check it out soon as I get a chance. Problem with me learning php is we had severe attacks, header injections about a year ago with an old programmer. Then we hired someone make forms more secure which is what you see here. It seems to work so far, but we cant get eps or pdf files to upload. //delete file unlink($file_Temp); die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Max file size is 500kb. Please enter a valid file.</font></p>"); } if( $file_Mime_Type != "" AND $file_Mime_Type != "application/msword" AND $file_Mime_Type != "application/postscript" AND $file_Mime_Type != "application/vnd.ms-publisher" AND $file_Mime_Type != "image/gif" AND $file_Mime_Type != "image/pjpeg" AND $file_Mime_Type != "image/jpeg" ) { unlink($file_Temp); die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid file. jpg gif doc pub and eps</font></p>"); } //Find the extension to the uploaded file function findexts ($file_Name) { $file_Name = strtolower($file_Name) ; $exts = split("[/\\.]", $file_Name) ; $n = count($exts)-1; $exts = $exts[$n]; return $exts; } //This applies the function to our file $ext = findexts ($_FILES['file']['name']) ; //This line assigns a random number to a variable $ran = rand () ; //This takes the random name $ran2 = $ran.".";
  3. DW, thanks for your reply. Unfortunately, I am only filling in and trying to make sense of this coding. We had a programmer create our forms using tools4php software and the owner of the site couldnt help us as to why the eps or pdf files were not able to attach to forms. our old webmaster is no longer available so we are trying to pick up the pieces and try to make the most of it.
  4. We are using tools4php to create our quote forms with captcha. All is working well, however we are not able have eps files attached to quote form, even though when trying to attach a file and submit, it says: Please enter a valid file. jpg gif doc pub and eps Our current code relating to file attachments is as follows: if( $file_Mime_Type != "" AND $file_Mime_Type != "application/msword" AND $file_Mime_Type != "application/postscript" AND $file_Mime_Type != "application/vnd.ms-publisher" AND $file_Mime_Type != "image/gif" AND $file_Mime_Type != "image/pjpeg" AND $file_Mime_Type != "image/jpeg" ) I tried modifying with the following which didnt work: if( $file_Mime_Type != "" AND $file_Mime_Type != "application/msword" AND $file_Mime_Type != "application/postscript" AND $file_Mime_Type != "application/vnd.ms-publisher" AND $file_Mime_Type != "image/gif" AND $file_Mime_Type != "image/pjpeg" AND $file_Mime_Type != "image/jpeg" AND $file_Mime_Type != "image/eps" ) We are also unable to upload pdf files with quote form. I dont see any other file or area to edit that relates to file types that can be uploaded. ??? Any ideas on what may be the problem? Thanks in advance.
  5. auto_prepend_file no value no value i tried using the @ in session_start but ut didint hie notice. It really baffles me that the form works on a half dozen other servers, but the one I have no control over it doesnt work .
  6. I ran the phpinfo and heres the only session.auto I found. If the values are incorrect, how would I change them? I only have 1 session_start at top of document page. There is a phpdigs java script calling a search box function on page, but I dont see a session_start on this page. Directive Local Value Master Value session.auto_start Off Off
  7. Im getting the following error for a formmailer from one of my sites. I tested on multiple other hosting servers and I have no notices, errors or problems. This leads me to believe its a hosting issue. Can anyone confirm or advise on how to fix or even suppress or hide notice? Thank you Notice: A session had already been started - ignoring session_start() in /var/www/vhosts/mydomain/httpdocs/formmailer.php on line 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.