Re: [PHP] combining 2 arrays

2007-10-16 Thread James Ausmus
Array merge won't work as he needs to add the numerical values involved, not just merge the arrays - there are overlap on the text values, and any overlap needs to result in a val1 + val2. -James On 10/16/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Ladi

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Tom Ray [Lists]
Stut wrote: Zoltán Németh wrote: 2007. 10. 16, kedd keltezéssel 04.59-kor mooor ezt írta: I recommed you Codelobster php edition. Very good free php editor. It reminds me a mix of Zend Studio and MS Visual Studio. If to the basic features they are: syntax highlighting, an inte

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Matt Livingston
That is why I believe in a "disposable system" I have 2 main computers, one running XP and the other running Ubuntu Linux. I make regular backups to secure server online via FTP and regularly burn backups to CD. At any time if I got a virus that was by some (small) chance powerful enough to cause

RE: [PHP] combining 2 arrays

2007-10-16 Thread Daevid Vincent
> -Original Message- > From: Ladislav Andel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 16, 2007 1:05 PM > To: James Ausmus; PHP List > Subject: Re: [PHP] combining 2 arrays > > Thank you very much! > It's exactly the code I was looking for! > > Lada > PS: my previous ungly code i

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Thank you very much! It's exactly the code I was looking for! Lada PS: my previous ungly code is half long now :) James Ausmus wrote: On 10/16/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: Hi list! I read data from 2 databases and for the purpose of displaying the information at my web inte

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
nope, merge is not doing what I want and also using FEDERATED engine in mysql I think is not the simplest way to go or even not appropriate. Anyhow, I did it an ugly way ( tablearray follows

Re: [PHP] combining 2 arrays

2007-10-16 Thread James Ausmus
On 10/16/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: > Hi list! > I read data from 2 databases and for the purpose of displaying the > information at my web interface as one piece > I need to combine the data into one array first.. Here is my problem: > > Firstly, it reads from first DB and get t

Re: [PHP] combining 2 arrays

2007-10-16 Thread Philip Thompson
On 10/16/07, Greg Donald <[EMAIL PROTECTED]> wrote: > > On Tue, 16 Oct 2007, Paul Scott wrote: > > You could try something like: > > > > $result[] = $arrayDB1; > > $result[] .= $arrayDB2; > > That .= doesn't do what you think it does when used with arrays. Take this same concept (of creating a ne

Re: [PHP] Should I use an array in a form / how?

2007-10-16 Thread Philip Thompson
On 10/16/07, ron.php <[EMAIL PROTECTED]> wrote: > > I am programming a form this morning. I don't understand arrays really > well. I think this is what I am needing to use, but I am really not sure. > > I have a PHP script that checks a POP e-mail address and is suppose to > take the incoming messa

[PHP] Should I use an array in a form / how?

2007-10-16 Thread ron.php
I am programming a form this morning.  I don't understand arrays really well.  I think this is what I am needing to use, but I am really not sure. I have a PHP script that checks a POP e-mail address and is suppose to take the incoming message and save it to a mySQL table based on the subject li

Re: [PHP] combining 2 arrays

2007-10-16 Thread Greg Donald
On Tue, 16 Oct 2007, Paul Scott wrote: > You could try something like: > > $result[] = $arrayDB1; > $result[] .= $arrayDB2; That .= doesn't do what you think it does when used with arrays. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (htt

Re: [PHP] combining 2 arrays

2007-10-16 Thread Paul Scott
On Tue, 2007-10-16 at 16:42 +0200, Ladislav Andel wrote: > arrayDB1 = array(array('8', 'SER'), array('5','Asterisk')) > > When finished then it starts reading from second DB > where I would get > > arrayDB2 = array(array('6', 'XIP'), array('4','Asterisk')) > > > Is there any function where I

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Ladislav Andel wrote: Miles Thompson wrote: array_merge() function? If your db is MySQL, look at this thread, Google being your friend: http://lists.mysql.com/mysql/204616 Thanks for quick reply. Array_merge doesn't do what I want. And also those databases are at different locations.. Not

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Miles Thompson wrote: array_merge() function? If your db is MySQL, look at this thread, Google being your friend: http://lists.mysql.com/mysql/204616 Thanks for quick reply. Array_merge doesn't do what I want. And also those databases are at different locations.. Not the same machines. I f

Re: [PHP] Find PHP install directory

2007-10-16 Thread Philip Thompson
On 10/16/07, Andrew Peterson <[EMAIL PROTECTED]> wrote: > > Hi Phill, > > Try using http://us2.php.net/ini_get_all or http://us2.php.net/ini_get > > On 10/16/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > > > > Hi. Is it possible to dynamically find where PHP is installed on a Win > > 2k3 > > mac

RE: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Bastien Koert
In the same boat here...waiting for a guinea pig to ok it Bastien> Date: Tue, 16 Oct 2007 08:56:16 -0500> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: Re: [PHP] Which PHP-Editor to use?> > On 10/16/07, Stut <[EMAIL PROTECTED]> wrote:> >> > Zoltán Németh wrote:> > > 2007. 1

Re: [PHP] combining 2 arrays

2007-10-16 Thread Miles Thompson
array_merge() function? If your db is MySQL, look at this thread, Google being your friend: http://lists.mysql.com/mysql/204616 Cheers - Milesx On 10/16/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: > > Hi list! > I read data from 2 databases and for the purpose of displaying the > information a

Re: [PHP] Screenshot from web page

2007-10-16 Thread Rodolfo De Nadai
Here are php functions that you are looking for... long time ago i found this, but can't remenber anymore the functions names, but i know that was possible!!!... so a search google again and give me: http://blog.thepimp.net/index.php/post/2007/04/17/Screen-capture-with-PHP-and-GD But here th

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread marek
Ahh, so you're one of those running with out anti-virus! ... now we know why there is so much spam :P j/k, its legit. Marek Philip Thompson wrote: > > Outta curiosity... is this a legit piece of software? I went to the site and > it *looks* real but we all know how looks can be. =P I wasn't i

[PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Hi list! I read data from 2 databases and for the purpose of displaying the information at my web interface as one piece I need to combine the data into one array first.. Here is my problem: Firstly, it reads from first DB and get this array: (it's a sum of server names in table) arrayDB1 =

[PHP] Find PHP install directory

2007-10-16 Thread Philip Thompson
Hi. Is it possible to dynamically find where PHP is installed on a Win 2k3 machine running IIS? I am setting up a configuration page and I want to show where the install is - not change, just show. I have looked at phpinfo and $_SERVER information, but none of the information seems to jump straight

Re: [PHP] Screenshot from web page

2007-10-16 Thread Stut
Philip Thompson wrote: If you're not talking about automated screenshots, and you're using Windows, just press your "PrtScr" button. Hold down Alt as well to get just the active window. This will put the screenshot on to the clipboard, so you'll then need to paste it into paint or other such grap

Re: [PHP] Screenshot from web page

2007-10-16 Thread Philip Thompson
> > If you're not talking about automated screenshots, and you're using > Windows, just press your "PrtScr" button. Hold down Alt as well to get > just the active window. This will put the screenshot on to the > clipboard, so you'll then need to paste it into paint or other such > graphics program

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Philip Thompson
On 10/16/07, Stut <[EMAIL PROTECTED]> wrote: > > Zoltán Németh wrote: > > 2007. 10. 16, kedd keltezéssel 04.59-kor mooor ezt írta: > >> > >> I recommed you Codelobster php edition. Very good free php > editor. > >> > >>It reminds me a mix of Zend Studio and MS Visual Studio. If to th

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Stut
Zoltán Németh wrote: 2007. 10. 16, kedd keltezéssel 04.59-kor mooor ezt írta: I recommed you Codelobster php edition. Very good free php editor. It reminds me a mix of Zend Studio and MS Visual Studio. If to the basic features they are: syntax highlighting, an intelligent ou

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Zoltán Németh
2007. 10. 16, kedd keltezéssel 04.59-kor mooor ezt írta: > > I recommed you Codelobster php edition. Very good free php editor. > >It reminds me a mix of Zend Studio and MS Visual Studio. If to the basic > features they are: > > syntax highlighting, an intelligent outocomplete,

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread mooor
I recommed you Codelobster php edition. Very good free php editor. It reminds me a mix of Zend Studio and MS Visual Studio. If to the basic features they are: syntax highlighting, an intelligent outocomplete, step by step debugger, help on php, html, mysql; jump to funtion's

Re: [PHP] Screenshot from web page

2007-10-16 Thread Rodolfo De Nadai
Here are php functions that you are looking for... long time ago i found this, but can't remenber anymore the functions names, but i know that was possible!!!... so a search google again and give me: http://blog.thepimp.net/index.php/post/2007/04/17/Screen-capture-with-PHP-and-GD But here the

Re: [PHP] Screenshot from web page

2007-10-16 Thread Richard Heyes
I would like to make web page screenshot and generate an image for example .jpg or .png using PHP,Apache. If any one has experiance in doing that please help. I know that there are lot of services like that, but I don't want to use them. In real I need that to generate screenshot of my local s