[PHP] problems with rename() - permission denied
Hello, I've a small problem, which mades me crazy... :\ I'm trying to rename() a swapfile to real destination file (atomic update). It works on differnt environments very well. Sadly not on my ISP-server I've added an chmod($swapfile,0777), but this has not solve the problem. The directories have all FULL access (read, write, etc.). The destiniation file too. I don't want 2 use the copy/unlink solution Do anyone have an idea? --- 8 --- if ( $file = fopen($swapfile,w) ) { fwrite($file,$out); fclose($file); chmod($swapfile, 0777); /* this fails with Permission denied */ rename($swapfile,$filename); /* ... but this works */ copy($swapfile,$filename); unlink($swapfile); } --- 8 Thanks 4 help... -- christian rosentreter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Viewing PHP pages
Hi, I don't think this's the solution... so take this msg only as info. :) Same problem can happen with old browsers. Solution is to add .php to MIME-Settings of text/html. I had this problem with eBay (*.dll) some times ago. :) But I think it's a problem with your ISP. If there are errors in your script you should get Error-Output. -Original Message- From: Andy [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 5:01 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Viewing PHP pages They say that the server is set up for PHP4, and they say it is something to do with my scripts. Not sure I believe them. My pages have the extension .php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] last modification date of remote files
Hello, Is there a way to get the last modification date of a remote file? fstat() seems not to work on remote files. Also filemtime() not work. Thanks for help. -- christian rosentreter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] (newbie)textareas ...someone...please help
Hi, use input type=hidden name=name value=your sensitve data for transporting sensitive data. regards, Christian -Original Message- From: Mirco Ellis [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 10:06 AM To: Php-General (E-mail) Subject: [PHP] (newbie)textareas ...someone...please help can edit it and update the database. now I am running into walls. Some of the data is sensitive and can't be changed. But the only way I know how to display data so that it can't be edited directly is in a normal table format or print. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php