Re: [PHP] help with preg_match

2003-01-04 Thread Tracy Finifter Rotton
You need to tell preg_match that there will be multiple characters. Right now, you're searching for one, and only one. if (! preg_match ('/^[a-z0-9]+$/', $unchecked_text)) { The "+" means one or more matches to the range in brackets. -- tracy On 1/4/03 9:03 AM, "Anders Thoresson" <[EMAIL PROT

Re: [PHP] Get your *own* IP...?!

2003-01-06 Thread Tracy Finifter Rotton
Use the super-global variable $_SERVER['SERVER_ADDR'] (or another solution might be to generate relative, rather than absolute, URLs: /somedir/somepage.php instead of http://192.168.1.1/somedir/somepage.php) On 1/6/03 12:45 PM, "Charles likes PHP" <[EMAIL PROTECTED]> wrote: > Does anyone know a

Re: [PHP] ayuda...solo se ve el código cuandoejecuto los script

2003-01-20 Thread Tracy Finifter Rotton
También, se tiene que tener esta línea en su fichero httpd.conf: AddType application/x-httpd-php .php (donde .php es la extensión que se usa en sus ficheros de PHP) Si no se tiene acceso al fichero httpd.conf, se necesita pedir a su webmaster para hacer este cambio. On 1/20/03 4:39 PM, "R B" <[

Re: [PHP] mysql_connect problem..update

2003-01-21 Thread Tracy Finifter Rotton
Talk to the other admin. If you're using RPMs, you just need to install the php_mysql RPM, restart apache, and you should be up and running again. If you're compiling PHP from scratch, you'll have to do so again with --with-mysql in the configure command. But, as this is the default when compili

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Tracy Finifter Rotton
Change the name of your checkboxes in your HTML to something like: name="DeleteIDs[]" This will make it an array, and you can access all the elements like $_POST['DeleteIDs'][0] etc. (This should really be in a FAQ somewhere...) -- tracy On 1/31/03 11:17 AM, "Mike Potter" <[EMAIL PROTECTED

Re: [PHP] PHP, Apache, and MySQL on MacOS X (Jaguar)

2002-11-11 Thread Tracy Finifter Rotton
Check out Marc Liyange's site at http://www.entropy.ch/software/macosx/welcome.html He has a lot of Mac software pre-compiled and ready for installation, including PHP installs for Jaguar. -- tracy On 11/11/02 2:06 PM, "Gregory Hernandez" <[EMAIL PROTECTED]> wrote: > hello everyone. > > would

[PHP] User Contributed Notes at php.net?

2002-11-11 Thread Tracy Finifter Rotton
Hello All, Does anyone know what happened to the User Contributed Notes on the PHP Manual? I went to go find one today, and they all appear to be gone! -- tracy -- Tracy F. Rotton [EMAIL PROTECTED] http://www.taupecat.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Help with functions()

2002-11-20 Thread Tracy Finifter Rotton
Try: $meat = testfunction ($var1, $var2, $var3, $var4); echo $meat; Or, alternatively, print (testfunction ($var1, $var2, $var3, $var4)); hope this helps. --t On 11/20/02 8:40 PM, "Beauford 2002" <[EMAIL PROTECTED]> wrote: > Hi, > > I have form that a user would input information and that