Re: [PHP] ImageMagick functions

2008-10-27 Thread Martijn Korse
These classes contain methods which are just normal functions only residing in a class. pichoscosama wrote: > > When I look at online documentations of PHP I can not see ImageMagick > functions. Only classes. What happened? > > -- > Allah varsa çocuklar neden ölüyor ki? > > -- > PHP Ge

Re: [PHP] Re: Replacing with f*ck and f*cking

2008-10-27 Thread Ryan S
Thanks for all your input guys! > Scunthorpe LOL! Never heard of the place but ...f**k i think i am a geek for finding it funny! Reminds me of quite few people tho... Cheers! R 2008/10/26 Colin Guthrie <[EMAIL PROTECTED]>: > Ashley Sheridan wrote: >> >> What you really need to watch out for is

Re: [PHP] Parsing URLs

2008-10-27 Thread Eric Butera
On Mon, Oct 27, 2008 at 10:04 PM, Ron Piggott <[EMAIL PROTECTED]> wrote: > I would like to parse the URLs in the values after the domain name. > > The URLs are the results of mod re-write statements. > > Example 1: > > http://www.domain.com/page/file/ > > The desired results would be: > $web_page_a

[PHP] Parsing URLs

2008-10-27 Thread Ron Piggott
I would like to parse the URLs in the values after the domain name. The URLs are the results of mod re-write statements. Example 1: http://www.domain.com/page/file/ The desired results would be: $web_page_access[1] = "file" Example 2: http://www.domain.com/page/file/2/ The desired resu

Re: [PHP] clean data

2008-10-27 Thread Micah Gersten
In that case, I suggest you look to the MySQL lists for tips on handling data coming in. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com blackwater dev wrote: > Yes, I agree but the code I am inheriting doesn't use abstraction > unfortunately. > > On Mon, Oct

Re: [PHP] clean data

2008-10-27 Thread blackwater dev
Yes, I agree but the code I am inheriting doesn't use abstraction unfortunately. On Mon, Oct 27, 2008 at 9:38 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Are you using MySQL abstraction? That's the easiest way to control what > data goes into your DB in a central place. > > Thank you, > Micah

Re: [PHP] clean data

2008-10-27 Thread Micah Gersten
Are you using MySQL abstraction? That's the easiest way to control what data goes into your DB in a central place. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com blackwater dev wrote: > I have a project now where we would like to properly remove unwanted da

[PHP] ImageMagick functions

2008-10-27 Thread pichoscosama
When I look at online documentations of PHP I can not see ImageMagick functions. Only classes. What happened? -- Allah varsa çocuklar neden ölüyor ki? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] clean data

2008-10-27 Thread blackwater dev
I have a project now where we would like to properly remove unwanted data before it goes into the db such as ` and of course slashes. The problem is I have tons of pages. Is there an easy way to add in a clean up routine on the db side to clean it going in and coming out without having to touch e

Re: [PHP] Launching multiple PHP threads via Scheduled Tasks

2008-10-27 Thread Nick Stinemates
On Mon, Oct 27, 2008 at 11:44:50AM -0700, Brian Dunning wrote: > I've got a script that downloads files queued from a server, and it's > launched by a Windows Scheduled Task that launches every minute. My > understanding of the default behavior is that if the task is still > running a minute

Re: [PHP] send emails in php not working

2008-10-27 Thread Chris
Marc Fromm wrote: You need a local mail server. Sendmail 8.13.8-2.el5 is installed on the new server and the old server (sendmail-8.13.8-1.fc5). echo 'test' | mail -s 'test' [EMAIL PROTECTED] The above line sends on email on the old server but not the new server. Is sendmail running (ps -e

RE: [PHP] send emails in php not working

2008-10-27 Thread Marc Fromm
> You need a local mail server. Sendmail 8.13.8-2.el5 is installed on the new server and the old server (sendmail-8.13.8-1.fc5). >echo 'test' | mail -s 'test' [EMAIL PROTECTED] The above line sends on email on the old server but not the new server. -Original Message- From: Chris [mailto:

Re: [PHP] send emails in php not working

2008-10-27 Thread Chris
Marc Fromm wrote: We recently moved to a new server. Our code that would send out emails is no longer sending emails. There are no messages in the httpd logs associated with running the email.php files. The email scripts worked on the old server. Is there a special setting in php.ini for sendi

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
Sorry, that was a typo. I meant MSSQL. On Mon, Oct 27, 2008 at 2:12 PM, Chris <[EMAIL PROTECTED]> wrote: > Robbert van Andel wrote: > >> You also need to make sure that your server has the mysql drivers >> installed. A linux server does not come with this support natively. >> > > He's not using

[PHP] Re: Remote Developer Wanted

2008-10-27 Thread Jay Moore
Michelle Konzack wrote: Am 2008-10-21 18:21:19, schrieb Jochem Maas: Daniel Brown schreef: On Tue, Oct 21, 2008 at 12:03 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: and rob myself of the sport? your no fun since your married Shirley ;-) Coincidentally, that's exactly what my wife says. yo

[PHP] send emails in php not working

2008-10-27 Thread Marc Fromm
We recently moved to a new server. Our code that would send out emails is no longer sending emails. There are no messages in the httpd logs associated with running the email.php files. The email scripts worked on the old server. Is there a special setting in php.ini for sending emails in php or

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
We use a linux webserver but have a need to connect to MSSQL databases. Since I used Fedora, I was lucky enough to find the PHP-MSSQL package but that has only been available via yum recently. My first attempt at connecting to MSSQL was much more difficult when I was using FC3. On Mon, Oct 27, 20

Re: [PHP] question about using sql server with php

2008-10-27 Thread Chris
Robbert van Andel wrote: You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. He's not using mysql, he's using sql server. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] how to kill a session by closing window or tab clicking on X?

2008-10-27 Thread Ashley Sheridan
On Mon, 2008-10-27 at 09:56 -0500, Afan Pasalic wrote: > Stut wrote: > > On 27 Oct 2008, at 14:10, Afan Pasalic wrote: > >> I'm sorry for posting this more javascript then php question, but > >> it's somehow php related. > >> here is the issue: very often people close the window/tab without > >>

Re: [PHP] question about using sql server with php

2008-10-27 Thread Ashley Sheridan
On Mon, 2008-10-27 at 07:41 -0700, Robbert van Andel wrote: > You also need to make sure that your server has the mysql drivers > installed. A linux server does not come with this support natively. > > On Mon, Oct 27, 2008 at 6:19 AM, bruce <[EMAIL PROTECTED]> wrote: > > > hey sudhakar.. > > > >

[PHP] Class for reading/writing/updating PO (gettext) files

2008-10-27 Thread Michelle Konzack
Hello *, I have an with a tool which read in PO/POT (gettext) files. Under Perl I can use under Debian: [ command 'pkg_desc liblocale-po-perl' ] Description: Locale::PO perl module This module provides methods for manipulating objects that represent entries i

[PHP] Re: Remote Developer Wanted

2008-10-27 Thread Michelle Konzack
Am 2008-10-21 18:21:19, schrieb Jochem Maas: > Daniel Brown schreef: > > On Tue, Oct 21, 2008 at 12:03 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> and rob myself of the sport? your no fun since your married Shirley ;-) > > > > Coincidentally, that's exactly what my wife says. > > your wif

[PHP] Re: Remote Developer Wanted

2008-10-27 Thread Michelle Konzack
Am 2008-10-20 21:50:35, schrieb Shawn McKenzie: > Here, here. Even with the "worst economy since the great depression" > (ehem), I still wouldn't accept less than $60 an hour and I'm not even a > professional (not my profession) programmer. It seems to still be > working out for me :-) If you go

[PHP] Launching multiple PHP threads via Scheduled Tasks

2008-10-27 Thread Brian Dunning
I've got a script that downloads files queued from a server, and it's launched by a Windows Scheduled Task that launches every minute. My understanding of the default behavior is that if the task is still running a minute later when it's time to launch again, a duplicate thread will not be

RE: [PHP] preg_match

2008-10-27 Thread Boyd, Todd M.
> -Original Message- > From: Alex Chamberlain [mailto:[EMAIL PROTECTED] > Sent: Monday, October 27, 2008 10:09 AM > To: PHP General list > Subject: [PHP] preg_match > > Hi, > > I don't understand regular expressions at all - I will make an effort > to > learn about them one day, but I nee

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Robert Cummings
On Mon, 2008-10-27 at 08:03 -0400, tedd wrote: > At 12:33 AM -0700 10/27/08, Lars Torben Wilson wrote: > >2008/10/27 Martin Zvarík <[EMAIL PROTECTED]>: > >> > >> Hi, I am aware of this, but explaining my problem in this case would take > >> me > >> an hour --- and eventually would lead to a) mis

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Robert Cummings
On Mon, 2008-10-27 at 00:33 -0700, Lars Torben Wilson wrote: > 2008/10/27 Martin Zvarík <[EMAIL PROTECTED]>: > > > > Hi, I am aware of this, but explaining my problem in this case would take me > > an hour --- and eventually would lead to a) misunderstanding, b) weird > > solution, c) no solution..

Re: [PHP] preg_match

2008-10-27 Thread Stut
Please keep the conversation on the list! On 27 Oct 2008, at 16:06, Alex Chamberlain wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: 27 October 2008 15:54 To: Alex Chamberlain Cc: 'PHP General list' Subject: Re: [PHP] preg_match On 27 Oct 2008, at 15:46, Alex Chambe

Re: [PHP] preg_match

2008-10-27 Thread Eric Butera
On Mon, Oct 27, 2008 at 11:54 AM, Stut <[EMAIL PROTECTED]> wrote: > On 27 Oct 2008, at 15:46, Alex Chamberlain wrote: >> >> Problem solved: >> function __autoload($c) { >> $m = array(); >> preg_match('/(?:^[A-Z][a-z]+)Controller/', $c, $m); >> if (count($m)) { >> require_once(realpath(FS_CONTRO

Re: [PHP] preg_match

2008-10-27 Thread Stut
On 27 Oct 2008, at 15:46, Alex Chamberlain wrote: Problem solved: function __autoload($c) { $m = array(); preg_match('/(?:^[A-Z][a-z]+)Controller/', $c, $m); if (count($m)) { require_once(realpath(FS_CONTROLLER . '/' . strtolower($m[0]) . '.inc.php')); } } However (perhaps a more appropria

RE: [PHP] preg_match

2008-10-27 Thread Alex Chamberlain
> -Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: 27 October 2008 15:21 > To: Alex Chamberlain > Cc: PHP General list > Subject: Re: [PHP] preg_match > > On 27 Oct 2008, at 15:08, Alex Chamberlain wrote: > > I don’t understand regular expressions at all – I will make an >

Re: [PHP] preg_match

2008-10-27 Thread Stut
On 27 Oct 2008, at 15:08, Alex Chamberlain wrote: I don’t understand regular expressions at all – I will make an effort to learn about them one day, but I need a solution today. I want to use the __autoload function, but not for all my class only those that finish in ‘Controller’. So for in

[PHP] preg_match

2008-10-27 Thread Alex Chamberlain
Hi, I don’t understand regular expressions at all – I will make an effort to learn about them one day, but I need a solution today. I want to use the __autoload function, but not for all my class only those that finish in ‘Controller’. So for instance, ‘ErrorController’ should load ‘errorcontroll

Re: [PHP] how to kill a session by closing window or tab clicking on X?

2008-10-27 Thread Afan Pasalic
Stut wrote: On 27 Oct 2008, at 14:10, Afan Pasalic wrote: I'm sorry for posting this more javascript then php question, but it's somehow php related. here is the issue: very often people close the window/tab without logging out. I need solution how to "recognize" when [x] is clicked (or File

Re: [PHP] how to kill a session by closing window or tab clicking on X?

2008-10-27 Thread Stut
On 27 Oct 2008, at 14:10, Afan Pasalic wrote: I'm sorry for posting this more javascript then php question, but it's somehow php related. here is the issue: very often people close the window/tab without logging out. I need solution how to "recognize" when [x] is clicked (or File >> Close) a

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. On Mon, Oct 27, 2008 at 6:19 AM, bruce <[EMAIL PROTECTED]> wrote: > hey sudhakar.. > > when you're changing database apps, you're normally going to have to change

Re: [PHP] PHP XSLT caching

2008-10-27 Thread Bastien Koert
On Mon, Oct 27, 2008 at 8:12 AM, vladimirn <[EMAIL PROTECTED]> wrote: > > I have one simple question, actually i am interested in your point of view. > Is there any sense in caching xslt itself? If so, then why? If not, then > again why? :) > I think that there is no sense, and that xslt output sh

[PHP] Re: PHP XSLT caching

2008-10-27 Thread Colin Guthrie
vladimirn wrote: I have one simple question, actually i am interested in your point of view. Is there any sense in caching xslt itself? If so, then why? If not, then again why? :) I think that there is no sense, and that xslt output should be cached. What do you think? From your original contex

Re: [PHP] how to kill a session by closing window or tab clicking on X?

2008-10-27 Thread Bastien Koert
On Mon, Oct 27, 2008 at 10:10 AM, Afan Pasalic <[EMAIL PROTECTED]> wrote: > hi. > I'm sorry for posting this more javascript then php question, but it's > somehow php related. > here is the issue: very often people close the window/tab without logging > out. I need solution how to "recognize" when

Re: [PHP]Executing a .jar from a php script

2008-10-27 Thread Ólafur Waage
Does the php server have access to run that file? (ie. if its apache, does he or his group have the rights to run that file) Also you can try to use $var = system('java -jar JARNAME', $dump); and try to output from both variables. 2008/10/27 Bastien Helders <[EMAIL PROTECTED]>: > Hi, > > I would l

[PHP] how to kill a session by closing window or tab clicking on X?

2008-10-27 Thread Afan Pasalic
hi. I'm sorry for posting this more javascript then php question, but it's somehow php related. here is the issue: very often people close the window/tab without logging out. I need solution how to "recognize" when [x] is clicked (or File >> Close) and kill the session before the window/tab is

RE: [PHP] question about using sql server with php

2008-10-27 Thread bruce
hey sudhakar.. when you're changing database apps, you're normally going to have to change the connection codem as well as possibly the query structure for your different select/insert/etc.. queries. there should be plenty of examples/tutorials on the net, as well as in the php.net website. have

Re: [PHP] PHP XSLT caching

2008-10-27 Thread vladimirn
I have one simple question, actually i am interested in your point of view. Is there any sense in caching xslt itself? If so, then why? If not, then again why? :) I think that there is no sense, and that xslt output should be cached. What do you think? Per Jessen wrote: > > vladimirn wrote: >

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread tedd
At 12:33 AM -0700 10/27/08, Lars Torben Wilson wrote: 2008/10/27 Martin Zvarík <[EMAIL PROTECTED]>: Hi, I am aware of this, but explaining my problem in this case would take me an hour --- and eventually would lead to a) misunderstanding, b) weird solution, c) no solution... Forgive me if

Re: [PHP] Flags package for PHP?

2008-10-27 Thread Waynn Lue
Thanks for the advice! I had initially tried it and couldn't seem to get getopt2 working (and getopt was supposedly deprecated), but eventually found a good example here: http://www.sitepoint.com/article/php-command-line-1/3/ On Thu, Oct 16, 2008 at 10:31 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:

[PHP]Executing a .jar from a php script

2008-10-27 Thread Bastien Helders
Hi, I would like to execute a jar file using exec('java -jar JARNAME '), but so far, my web application didn't gave me any hint that it did anything (I tried to echo the result of the function, but nothing), and in fact I don't think anything was done. The jar file is in the same folder as the php

Re: [PHP] Interactive canvas example

2008-10-27 Thread Richard Heyes
> great job, i can see uses for this in lots of applications Thanks. I'm hoping the bandwidth and load saving will be quite an incentive. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated October 25th) -- PHP General Mailing List (http://www.php.n

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Lars Torben Wilson
2008/10/27 Martin Zvarík <[EMAIL PROTECTED]>: > > Hi, I am aware of this, but explaining my problem in this case would take me > an hour --- and eventually would lead to a) misunderstanding, b) weird > solution, c) no solution... Forgive me if I misunderstand, but it seems like you are willing to

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Martin Zvarík
2008/10/26 Martin Zvarík <[EMAIL PROTECTED]>: PHP Version 5.2.4 I really don't like to use the EVAL function, but do I have choice?? This sucks. Hi there, While this question can spur some neat solutions, it raises a red flag in that if you need to do this, you probably need to rethin

Re: [PHP] Dynamically creating multi-array field

2008-10-27 Thread Lars Torben Wilson
2008/10/26 Martin Zvarík <[EMAIL PROTECTED]>: > PHP Version 5.2.4 > > $node = '[5][1][]'; > ${'tpl'.$node} = 'some text'; > > print_r($tpl); // null > ?> > > > I really don't like to use the EVAL function, but do I have choice?? > This sucks. Hi there, While this question can spur some neat solu

Re: [PHP] create/write to psd file

2008-10-27 Thread Ashley Sheridan
On Mon, 2008-10-27 at 07:55 +0100, Martin Zvarík wrote: > What I know is that you can control GIMP over the command line = you can > use PHP to do this. > > Though I guess GIMP doesn't support PSD files, I had to express myself > anyways. > > > vuthecuong napsal(a): > > Hi all > > Is there a