Re: [PHP] output

2003-10-26 Thread Shmuel
David Otton wrote: On Sat, 25 Oct 2003 11:52:53 +0300, you wrote: I'm getting output from program I run (exec) to the web page. How can I avoid this ? Did you even look at the manual? http://uk.php.net/manual/en/ref.exec.php escapeshellarg -- escape a string to be used as a shell argument esc

[PHP] output

2003-10-25 Thread Shmuel
I'm getting output from program I run (exec) to the web page. How can I avoid this ? These I've tried: error_reporting = E_ERROR and even this: error_reporting = ~E_ALL display_errors = Off Any ideas ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] usort

2003-10-24 Thread Shmuel
Curt Zirzow wrote: * Thus wrote Shmuel ([EMAIL PROTECTED]): file_1.ext file_2.ext file_3.ext file_10.ext file_40.ext function mycmp($a, $b) { if ($a == $b) { return 0; } $a_n = preg_match("/\D+(\d+)\D+/", $a, $a_out); $b_n = preg_match(&q

[PHP] usort

2003-10-24 Thread Shmuel
-1 : 1; } But it doesn't work the way it should. Any suggestions? So this is a the callback-function for the usort funtion. Shmuel. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expressions

2003-10-16 Thread Shmuel
Eugene Lee wrote: On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : I have a misspelled sentence like this: "I am not aIone". : I want to change the capital I to small l, but only in : the beginning of a word. This doesn't make sense. It sounds like you want to replace

[PHP] Regular expressions

2003-10-16 Thread Shmuel
I have a misspelled sentence like this: "I am not aIone". I want to change the capital I to small l, but only in the beginning of a word. How is this done in regular expression ? Any help appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] Regular Expressions

2003-10-16 Thread Shmuel
I have a misspelled sentence like this: "I am not aIone". I want to change the capital I to small l, but only in the beginning of a word. How is this done in regular expression ? Any help appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Re: ming problem

2003-09-19 Thread Shmuel
> My bad. I should have spotted this...you have > $flash = new SWFMovie; > it should be > $flash = new SWFMovie(); No, it's no that. It doesn't work. comlains the same: the missing of the class: Fatal error: Cannot instantiate non-existent class: swfmovie in C:\Apache\test\flash\index.php on

Re: [PHP] Re: ming problem

2003-09-19 Thread Shmuel
> where is the require line to include the class definition? > require("/the/path/to/the/namespace/holding/the/class/definition.foo"); Not following. I don't understand what class defĂ­nition I need. I'm using windows php extension. I'm using a class that is in the dll ? -- PHP General Mailing L

[PHP] Re: ming problem

2003-09-19 Thread Shmuel
this is the code: $flash = new SWFMovie; also tried something like this: $f = new SWFFont("fonts/Verdana.fdb"); $t = new SWFText(); $t->setFont($f); $t->moveTo(200, 2400); $t->setColor(0xff, 0xff, 0); $t->setHeight(1200); $t->addString("PHP generates Flash with Ming!!"); $m = new SWFMov

[PHP] ming problem

2003-09-19 Thread Shmuel
I'm trying to use ming and I get the following: Fatal error: Cannot instantiate non-existent class: swfmovie in C:\Apache\test\flash\index.php on line 3 I'm using w2k and php 4 - latest from snaps.php.net and I have uncommented the extension, etc. Any help would be appreciated. -- PHP General