Re: [PHP] combine 2 integer
I'm not shure what you mean, but is it something like this... $var1 = $var1 + $var2; regards Martin Hjort Eriksen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] formatting a filename
Here is a function that is used in the My_eGallery modules for PHP nuke. function find_nom_dif($nom) { $nom=stripslashes($nom); $nom=str_replace(',,$nom); $nom=str_replace(\,,$nom); $nom=str_replace(\,,$nom); $nom=str_replace(,,$nom); $nom=str_replace(,,,$nom); $nom=str_replace(;,,$nom); $nom=str_replace(/,,$nom); $nom=str_replace(\\,,$nom); $nom=str_replace(`,,$nom); $nom=str_replace(,,$nom); $nom=str_replace(,,$nom); $nom=str_replace( ,_,$nom); $nom=str_replace(:,,$nom); $nom=str_replace(*,,$nom); $nom=str_replace(|,,$nom); $nom=str_replace(?,,$nom); $nom=str_replace(é,e,$nom); $nom=str_replace(è,e,$nom); $nom=str_replace(ç,c,$nom); $nom=str_replace(@,,$nom); $nom=str_replace(â,a,$nom); $nom=str_replace(ê,e,$nom); $nom=str_replace(î,i,$nom); $nom=str_replace(ô,o,$nom); $nom=str_replace(û,u,$nom); $nom=str_replace(ù,u,$nom); $nom=str_replace(à,a,$nom); $nom=str_replace(!,,$nom); $nom=str_replace(§,,$nom); $nom=str_replace(+,,$nom); $nom=str_replace(^,,$nom); $nom=str_replace((,,$nom); $nom=str_replace(),,$nom); $nom=str_replace(#,,$nom); $nom=str_replace(=,,$nom); $nom=str_replace($,,$nom); $nom=str_replace(%,,$nom); $nom=str_replace(ä,ae,$nom); $nom=str_replace(Ä,Ae,$nom); $nom=str_replace(ö,oe,$nom); $nom=str_replace(Ö,Oe,$nom); $nom=str_replace(ü,ue,$nom); $nom=str_replace(Ü,Ue,$nom); $nom=str_replace(ß,ss,$nom); return $nom; } /Martin Citat Javier Montserat [EMAIL PROTECTED]: i want to format the filename of an uploaded file as follows :- -- replace blankspace with _ -- remove any illegal characters. Which string functions should I use to do this? Thanks, Javier _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php mvh Martin Hjort Eriksen Studenterrådet, Roskilde Universitetscenter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Upload
I have a form where i upload files. When I was using windows there was no problem, now I have switched to Linux, and I cannot upload anymore. The form simply does not pass any of the variables on. If i remove enctype=multipart/form-data from the form tag, then the variables are passed. Does anybody have an idea of what is going on? regards Martin Hjort Eriksen Studenterrådet, Roskilde Universitetscenter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload
Thank you very much, actually I had already changes that setting, but did not restart apache. Under windows, if I remember correctly, I did not have to worry about apache if I changed something in php.ini, but aperently I there is a connection under linux. Why the difference? /mhe Citat Juan Pablo Aqueveque [EMAIL PROTECTED]: Try this in your php.ini. file_uploads = On and re-start your apache. --jp At 20:24 02-09-2002 +0200, you wrote: I have a form where i upload files. When I was using windows there was no problem, now I have switched to Linux, and I cannot upload anymore. The form simply does not pass any of the variables on. If i remove enctype=multipart/form-data from the form tag, then the variables are passed. Does anybody have an idea of what is going on? regards Martin Hjort Eriksen Studenterrådet, Roskilde Universitetscenter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Juan Pablo Aqueveque [EMAIL PROTECTED] Ingeniero de Sistemas Departamento de Redes y Comunicaciones http://www.drc.uct.cl Universidad Católica de Temuco. Tel:(5645) 205 630 Fax:(5645) 205 628 mvh Martin Hjort Eriksen Studenterrådet, Roskilde Universitetscenter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php