[PHP] Another [PHP] Simple Session Problem...
Hiya I've got the same problem as the one Rudolf Visagie posted yesterday - when I start a session I get the error message: "Warning: open(E:\Inetpub\sessions\sess_955aa3bdd517c3a345f29fe1e021d054, O_RDWR) failed: m (13) in D:\Inetpub\wwwroot\HATII\admn\php\moss\sc_head.inc on line 3" We've tried changing the php.ini file to point to a different session directory (it was /tmp) but the problem persists. As far as I'm aware the sessions directory does exist. Any ideas? Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] file upload problem
Hiya I promise I won't keep perstering you after this question :-) My problem is this - I've got a complete system that works perfectly on Linux but I've got to set it up on a new server that's running Windows. When I try to handle file uploads I get errors (when the same code worked perfectly under Linux). When I try to use mkdir like this: $name4loc = urlencode($mname); $loc = "./images/$name4loc"; mkdir("$loc",0777); I get the error: Warning: MkDir failed (Permission denied) in D:\Inetpub\wwwroot\HATII\admn\php\moss\mregdone.php on line 98 When I try to copy a file like this: if (!copy ($test, $test_name)) echo("Problem: Unable to copy image. Please try again."); exit; } I get the error: Warning: Unable to create 'vinlogo.jpg': Permission denied in D:\Inetpub\wwwroot\HATII\admn\php\a2paw\uptestdone.php on line 41 I'm guessing PHP is somehow lacking permission to write to the file system but the technicians have tried changing the file permission for the directory I'm trying to write to and the same error is given. We don't know what else to do. Any ideas? Thanks Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem getting imagemagick to work with php...
Hiya I need to be able to automatically change the format and size of an image when a user uploads it and using imagemagick's tools seems like the way to go about it. Unfortunately the server I'm using is Windows based and it doesn't have imagemagick installed. I downloaded the Windows imagemagick binaries and the tools work fine locally from the dos prompt. I hoped that uploading these files to a directory on the server would allow my PHP script to use the tools, but either I'm typing in the wrong commands or the tools won't work on the server. When I try this little test script: * $file1 = "\\images\\gladius.tiff"; $file2 = "\\images\\gladius.jpg"; $command = "\\imagemagick\\convert ".$file1." ".$file2; $result = system($command); if ($result) { echo("Conversion Done!"); } * I get: Warning: Unable to fork [\imagemagick\convert \images\gladius.tiff \images\gladius.jpg] in I've tried using unix slashes and single slashes. I've also tried running the script in the imagemagick directory - I didn't get the 'fork' error but the system function returned false. I also tried using exec(), passthru() and backticks but none of them worked (backticks gave a weird CGI error message). Anyone know what I'm doing wrong? Does Imagemagick need to be installed in some special place on the server? Thanks Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]