[PHP] Bug with mktime??

2004-08-30 Thread John Clegg
2005 6 : 03 : 2005 7 : 03 : 2005 8 : 05 : 2005 9 : 05 : 2005 10 : 07 : 2005 11 : 07 : 2005 This output has a problem. Does anyone have any suggestions on what other functions I could use other than mktime to build dates ??? Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestion on executing external programs from within php

2004-01-23 Thread John Clegg
xec('/usr/local/bin/process_file file1 &') Any ideas?? John Stuart wrote: John Clegg wrote: I would like to be able to execute 2 system calls simultaneously. I am not interested in the output and I would like to do the equivalent of a fork as these programs take a long time.

[PHP] Suggestion on executing external programs from within php

2004-01-21 Thread John Clegg
le file2'); Any suggestions on what to use??? Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John John Clegg wrote: Hi Joel

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
e *8* I found out that I could use ' to delimit from Example 5 in the php manual page for preg_replace. Also I need to replace only one occurance of the string at a time, so I can't use str_replace :-( . Any other suggestions?? Cheers John joel boonstra wrote: On Mon, Jan 19, 20

[PHP] Help with preg_replace

2004-01-19 Thread John Clegg
com/maxbid/Unsubscribe.php?EmailAddress=[MAIL] blah AFTER: blah http://www.qxlmaxbid.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL] blah ** It should give the following result: ** AFTER: blah Foo blah ****** Thanks for your he

[PHP] String replacement problems...

2003-12-23 Thread John Clegg
ext,"FOO"); The answer I get for both I run the example echo $ans; FOO bah FOO moo FOO boo Can any tell me what I am doing wrong ? I am trying only to replace the match once. eg FOO bah [foo] moo [foo] boo Any help would be appreciated... Cheers John Clegg -- PHP General Mailin

[PHP] Best way to increment an integer column in mysql

2003-12-11 Thread John Clegg
Hi I was wondering if there is a php / mysql function call that will increment an integer column in a database. ie. the equivalent to $foo++; Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread John Clegg
r= none WMF --with-wmf=yesno X11 --with-x= no XML --with-xml=yesno ZLIB --with-zlib=yes yes imagick php API 0.9.8 Any help or suggestions would be appreciated. Regards John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php