[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, vis

[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 Gener

[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 Genera

[PHP] Re: \Z characters

2002-12-22 Thread Mattia
N a \Z in any position. In this case the correct query would be select id,PVLN from lhpl_side WHERE PVLN LIKE \"%\\Z\%" mATTIA cAZZOLA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Post Variables

2002-12-05 Thread Mattia
> for ($i=0; $i<=12; $i++) > { > echo ""; > echo ""; > } the tag must stay out of the for loop. the syntax for is bye Mattia -- 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 ?

[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] Re: Newbie: ereg

2002-11-25 Thread Mattia
I don't know if I got it right bu try echo htmlentities('This shall be visible'); htmlentities() will translate your string in 'This shall be visible' > This shall be visible > or > This shall be visible too -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] array manipulations

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' , '' , 'err

[PHP] error handling

r log? thanks Mattia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] error handling

ss 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

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