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
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
[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] Newbie "Parse" error
You have forgotten a ?> before your HTML starts. / Martin Citat Chase Knott <[EMAIL PROTECTED]>: > Maybe you can help me with YOUR eyes again... Now I am getting this > error... > > Parse error: parse error, unexpected '<' in send_contact_form.php on > line 18 > > This will be around the "" line... > > > John Wards wrote: > > > $subject = "Message From MCV Contact Form" > > you have missed out a ; on the above line > > > > use your eyes...:-) > > > > John > > - Original Message - > > From: "Chase Knott" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, September 02, 2002 4:18 PM > > Subject: [PHP] Newbie "Parse" error > > > > > > > >>I am sure that someone here can see somehting that I am too stupid > to... > >> Here is my error: > >> > >>Parse error: parse error, unexpected T_VARIABLE in > send_contact_form.php > >>on line 13 > >> > >>Here is the code for the page: > >> > >> >> > >>$msg = "E-Mail From MCV Contact Form\n"; > >>$msg .= "Sender's Name: \t$sender.name\n"; > >>$msg .= "Sender's E-Mail Address: \t$sender.email\n"; > >>$msg .= "Sender's Subject: \t$sender.subject\n"; > >>$msg .- "Sender's Message: \t$sender.message\n\n"; > >> > >>$to = "\t$recipient"; > >> > >>$subject = "Message From MCV Contact Form" > >> > >>$mailheaders = "From MyComputerVendor\n"; > >>$mailheaders .= "Reply-To: $sender.email\n\n"; > >> > >>mail($to, $subject, $msg, $mailheaders); > >> > >> > >> > >>Message Sent! > >> > >> > >> > >>The Following Message Was Sent To: > >>Name: > >> > >>E-Mail Address: > >> > >>Subject: > >> > >>Message: > >> > >> > >> > >> > >> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > -- > 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 - Slut på videresendt brev - 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