[PHP] uploading binary files, getting corrupt

2003-08-20 Thread Peter Berglund
I've problems uploading binary files via POST. They get corrupt. As told on this pag: http://se2.php.net/features.file-upload in the comments there are some walkarounds for this, but I can't found thoose rows to edit in the apache config. Sol 1: Your binary files may be uploaded incorrectly if

[PHP] error in apache log

2003-08-20 Thread Peter Berglund
I got alot of this error in my apache log, how do I fix it? [warn] Cannot get media type from 'application-x-httpd-php' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error in apache log

2003-08-20 Thread Peter Berglund
How to fix, where's the problem? Marek Kilimajer [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Should be application/x-httpd-php. I bet you have this mistake in your apache config files. Peter Berglund wrote: I got alot of this error in my apache log, how do I fix

[PHP] getting corrupt files after upload in php/apache

2003-08-19 Thread Peter Berglund
I'm getting corrupt files after I've used my upload-script. For images it works good but when I upload an wav-file , 222KB, the file gets corrupt and I can't play it. Whats the problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting corrupt files after upload in php/apache

2003-08-19 Thread Peter Berglund
since it works with other files I think that it's some configuration somewhere that is wrong, this is the form head: FORM ENCTYPE=multipart/form-data name='spara' method='post' action='filadmin.php' and the copycode: copy($_FILES['img1']['tmp_name'], $ufolder.$_FILES['img1']['name']) Jay

[PHP] interact with .htaccess

2003-06-15 Thread Peter Berglund
I want to send user and password from php to a protected directory. For example: If I go directly to the directory I get a popup to enter user and password, the normallt way. But if I go through a php-script that checks if I'm a valid user from a database I will get access to the folder. So i

[PHP] Re: interact with .htaccess

2003-06-15 Thread Peter Berglund
what I mean is if you can create a form page in PHP prompting for a username and password and then redirect into an .htaccess protected directory without having the server pop up another username/password box? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: interact with .htaccess

2003-06-15 Thread Peter Berglund
ok, I change my question, how do I protect downloadable files from users that are not valid? without the use of htaccess? Peter Berglund [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I want to send user and password from php to a protected directory. For example: If I go directly

[PHP] how to count memory used by a script

2003-06-09 Thread Peter Berglund
How do I count the memory usage of a script/page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php