Jump to content

Fidsah

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by Fidsah

  1. I downloaded the IIS 6 Resource Kit, and using the MetaBase explorer, I found an option that wasn't in MetaBase.xml titled "MaxRequestEntityAllowed." Increasing that limit solved my problem.
  2. I'm using IIS 6 with PHP 5, and I have a section of code that goes if ($_GET["submit"] == "yes"){ $size = $_FILES["sp"]['size']; $error = $_FILES["sp"]['error']; $filename = $_FILES["sp"]['name']; $temp = $_FILES["sp"]['tmp_name']; if ($_FILES == NULL) { print "It's null!"; } elseif (file_exists("$stordir\\$filename")){ print "It already exists!"; } else { move_uploaded_file($temp, "$stordir\\$filename"); This code works fine for small files, less than 500kb seems to be approximately the limit. For anything larger, I just end up at a blank screen. I've done some looking already, and in php.ini I have the values: upload_max_filesize = 90M post_max_size = 90M And in MetaBase.xml I've set this value (I saw on a few sites people swearing this worked): AspMaxRequestEntityAllowed="500000000" My form looks like: <form action="index.php?mode=upload&submit=yes" enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="300000000" > <input type="file" name="sp"><br> <input type="submit" value="Upload"> The little files work great, and everything is happy with them, but I'm expecting this to handle between 20 and 40 meg files on a pretty regular basis, which currently refuses to work. Does anyone know what I need to do to get this limit up to about 100 meg? Thanks.
  3. I have no idea why this got moved to a WAMP section. This topic has nothing to do with WAMP or PHP Installation. This topic is about supplying prese domain authentication to an Exchange server on a domain when using a mapi.session COM object from an IIS 6.0 server on a workgroup.
  4. Array numbers start at zero. Are you taking that into account?
  5. a "select count(*) from table where values" statement doesn't require much performance, as I recall. You should be able to use it fine.
  6. Using this: $string = "EXAMPLE"; print ucfirst(strtolower($string)); gives me this: Example
  7. I'm currently working on an application that will tie into the "MAPI.session" COM object so that the application can send an email using our Exchange server. I have two development machines I've been testing the code on. One is Windows XP Pro, running Apache, and the other is Windows 2003, running IIS 6. I don't have any issues with the Apache box, firstly because it's running Apache, and secondly, because it's on our corporate domain. I, however, run into issues on the IIS box, because it's not on the domain (and because it's running IIS, but that's a different story). Due to our security policy, it won't be allowed domain membership by our IS department, either. The error I'm running into is: Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Collaboration Data Objects<br/><b>Description:</b> [Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]]' in c:\path\to\file.php:LINE Stack trace: #0 c:\path\to\file.php(LINE): com->Logon('MAPIProfile', true) #1 {main} thrown in c:\path\to\file.php on line LINE I'm pretty sure this is being caused by the 2k3 box not being able to send the correct authentication to the Exchange machine in order to log into the MAPI profile. Since this is IIS, I had a bit of fun getting that MAPI profile configured for the IWAM user, but I know it's set properly. What I've been thinking the solution should be along the lines of is providing the script with my NT authentication, in the form of DOMAIN\USERNAME and the password, and having it authenticate to the Exchange server, much like how when I open Outlook on the 2k3 box, I have to provide that information anyways. This cross domain authentication isn't expected to be an issue when this application is finished, as it's expected to be hosted on the domain, but in the mean time, I need to solve some sort of method for getting the off domain machine talking properly to the Exchange server, and unfortunately I'm stuck using this off domain machine for the testing and development of the IIS compatibility. Basically, the communication path is something like: client(domain) -> IIS (off domain) -> Exchange (domain) -> client(domain) I'm not familiar with using PHP to tie into domain authentication or MAPI, and since it works on the Apache box, I'm pretty sure that the final code will be good to go when it's finished, but it's expected to be running on IIS 6 at that point, and I need to continue to work out some of the differences between what Apache will let me get away with and what IIS refuses to do. Thanks
×
×
  • 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.