[PHP] execute a command

2003-06-22 Thread Mattia
How to execute a command capturing the stanndard error, in addition to standard output? example: echo system('/bin/rm ...'); I need to know when this command fails, and when it fails, i need to know why. Any hints? _Mattia_ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] regexp for URL

2003-06-08 Thread Mattia
Does anyone have a good regular expression for capturing all http URL in a string? now i'm using ?(http://[a-z0-9-/_;=+-\.\?:@]+)\b?mi in one of my programs, that is, all strings beginning with http:// and contain chars like a-z0-9 ... does anione have something better? thank you -- PHP

[PHP] two buffers??

2003-03-05 Thread Mattia
, the problem is that i'm already using ob_ function, in particular i put in the beginning of my code a ob_start(ob_gzhandler) , to compress the output. So if I use those funcs twice i'll use the same buffer! Does anyone have solutions?? thanks Mattia -- PHP General Mailing List (http

[PHP] Re: \Z characters

2002-12-22 Thread Mattia
KE \%\\Z\% mATTIA cAZZOLA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables and http

2002-12-05 Thread Mattia
Hacook [EMAIL PROTECTED] ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I have a page (to create a database) with X text fields called chpX (chp0, chp1, chp2..Etc) that posts these variables to a php file. I would like to know how can i get these values ? (I

[PHP] Re: Post Variables

2002-12-05 Thread Mattia
for ($i=0; $i=12; $i++) { echo select name='$i'; echo option values; } the select... tag must stay out of the for loop. the syntax for select... is select ... option.../option option.../option option.../option option.../option /select bye Mattia -- PHP

[PHP] array manipulations

2002-11-26 Thread Mattia Wow
Wow this was really elegant!! thank you!! :-) if (0 strlen(implode('',$a))) { // error } Stas - Per te Blu American Express รจ gratis

[PHP] array manipulations

2002-11-25 Thread Mattia
Can anyone suggest an ELEGANT way to find out if an array is made of empty strings or not? example $a = Array( '' , '' , '' ); //ok $b = Array( '' , '' , 'error' ); // not ok $c = Array( 'error' , '' , 'error' ); // not ok tia Mattia -- PHP General Mailing List (http://www.php.net

[PHP] Re: Newbie: ereg

2002-11-25 Thread Mattia
I don't know if I got it right bu try echo htmlentities('FONT COLOR=#8f8f15This shall be visible/FONT'); htmlentities() will translate your string in 'lt;FONT COLOR=#8f8f15gt;This shall be visiblelt;FONTgt;' FONT COLOR=#8f8f15This shall be visible/FONT or FONT COLOR=#007f7fThis shall be

[PHP] error handling

2002-11-17 Thread Mattia
? thanks Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] error handling

2002-09-12 Thread Mattia
to php.ini. i set these values error_log logfile.txt log_errors On error_reporting Off tia Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP native session

2002-08-14 Thread Mattia
I'm looking for a way to have a list of the users logged in my site (with a session_start() ). Is it possible to do it with the php4 api? thanks Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php