[PHP] Login Form weird behaviour in Mozilla/Netscape Not in IE

2004-03-03 Thread Daniel Perez
Hi there, I´ve got a login form, that calls a script, to check if the user/pass match. If yes, the script do a header("Location : index.php"). In Explorer works but not in Mozilla nor Netscape. Anyone knows something about that Thanks Daniel Pérez.- (dpcma at mail dot com) http://www.mundocamping

RE: [PHP] optimizing tables

2004-02-16 Thread Daniel Perez Clavero
Hola Diana, $optimize_tabla_acl = "OPTIMIZE TABLE '$tbl_acl'"; mysql_query($optimize_tabla_acl,$conexion) or die("No he podido optimizar la tabla."); Salu2 -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: lunes, 16 de febrero de 2004 10:38 To: [EMAIL PROTECTED] Su

RE: [PHP] [SOLVED] Extract of a Paragraph

2004-02-05 Thread Daniel Perez Clavero
Oops, I forget to consider, what would happened with HTML tags. Thank you Justin. Finally I did a function similar to yours, but the addition of the TAG control is almost perfect solution. (To trunk a word of two or three words, does not worth. No need such complicated script (with dictionary) for

[PHP] Extract of a Paragraph

2004-02-04 Thread Daniel Perez Clavero
Hi list, I would like to show a extract (first 50 words of a text), in order to construct something similar to articles view with read more link. To Extract the first 50 words, should I use str_word_count, and explode/implode or there´s another way, much simple. Any sample would be apreciated. R

[PHP] Error fread() after switching Register Globals Off

2004-01-29 Thread Daniel Perez Clavero
Hi there, I´m getting this error and I can´t find what the problem is.. Warning: fread(): supplied argument is not a valid stream resource in c:\program files\apache group\apache\htdocs\dpc\modulos\mod_ins_doc.php on line 13 I´ve got a form that calls a module to insert data. IT WAS WORKING befo

RE: [PHP] PHP Installation Problems

2003-10-13 Thread Daniel Perez Clavero
: 'Daniel Perez Clavero' Subject: RE: [PHP] PHP Installation Problems Ok, Well I tried to install php 4.3.3 on a windows 2000 advanced server box and it said that some ocx file was missing and I needed to set some permissions. So I set the permissions both in active directory on

RE: [PHP] Echo $PHP_SELF not working

2003-10-10 Thread Daniel Perez Clavero
try to use $_SERVER['PHP_SELF'] instead of. -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: viernes, 10 de octubre de 2003 14:09 To: php Subject: [PHP] Echo $PHP_SELF not working I've just published a new website and something is wrong. I suspect the PHP.ini on the

RE: [PHP] PHP Installation Problems

2003-10-10 Thread Daniel Perez Clavero
Can you be a bit more explicit about errors? I´ve got some apache+PHP running on W2K Server box... -Original Message- From: Andrew Woolley [mailto:[EMAIL PROTECTED] Sent: viernes, 10 de octubre de 2003 14:11 To: [EMAIL PROTECTED] Subject: [PHP] PHP Installation Problems -Original M

RE: [PHP] removing an element from an array

2003-10-01 Thread Daniel Perez Clavero
de 2003 13:24 To: [EMAIL PROTECTED] Subject: Re: [PHP] removing an element from an array "Daniel Perez Clavero" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Angelo, > Given array1 extract array2 from there, and put it into $array_result. > > $array2[

RE: [PHP] removing an element from an array

2003-10-01 Thread Daniel Perez Clavero
Copy/Paste to a php file, and observe how it works. Maybe could be usefull for u \"B\""; echo ""; echo var_dump($array1_result_diff); echo ""; echo ""; echo ""; $array2_result_diff=array_intersect($array1, $array2); echo "This is an array with colors starting with \"B\""; echo ""; echo var_dump($

RE: [PHP] removing an element from an array

2003-10-01 Thread Daniel Perez Clavero
Angelo, Given array1 extract array2 from there, and put it into $array_result. $array2[0]="Value to extract"; $array_result = array_diff ($array1, $array2); Should work. Rgrds. -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: miércoles, 01 de octubre de 2003 12:25

RE: [PHP] array_diff()

2003-10-01 Thread Daniel Perez Clavero
No, but need to have same data types. You cannot compare String against Integers and so Regards -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: miércoles, 01 de octubre de 2003 11:49 To: [EMAIL PROTECTED] Subject: [PHP] array_diff() HI all, I looked at the P