Re: [PHP] Common PHP functions benchmarks

2008-04-12 Thread Nathan Nobbe
On Tue, Apr 8, 2008 at 4:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i did some tests a couple of months ago; pitting array iteration vs. > iteration w/ spl iterators. link is down atm; but will be back soon and ill > post again so you have something similar to look at. a quick glance shows

Re: [PHP] Send XML file with curl functions

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 11:37 PM, Aaron Axelsen wrote: I am trying to create the following command with the php curl functions: curl -F "[EMAIL PROTECTED]" "http://path/to/api"; The problem i'm having is that i'm creating the xml file with php - so the contents are stored in a variable. How

Re: [PHP] standard format for Web portal administration side

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 7:19 PM, Alain Roger wrote: Hi, I've seen several web portal and their dedicated administration side. some of those administration (portal) are according to w3c standard (1024 px large), but most of them use the full screen width. therefore i would like to know if there

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 6:18 PM, Casey wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: search the archives ;) http://www.mail-archive.com/php-general@lists.php.net/msg224626.html -nath

Re: [PHP] Include problems

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 8:28 AM, GoWtHaM NaRiSiPaLli wrote: if(file_exists("../common/config.ini")) { $configData = parse_ini_file("../common/config.ini"); } else { Try changing above code so it reads if(file_exists("common/config.ini")) { $configData = parse_ini_file("common/config.ini");

Re: [PHP] Re: install pecl in debian

2008-04-12 Thread hce
On 4/12/08, hce <[EMAIL PROTECTED]> wrote: > On 4/12/08, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > > You need CLI (Comman Line interface) for PHP > > most of PECL packages are in apt-get > > > > eg apt-get php-memcache > > > > > > > > > > On Apr 12, 2008, at 3:19 AM, Shawn McKenzie w

[PHP] Send XML file with curl functions

2008-04-12 Thread Aaron Axelsen
I am trying to create the following command with the php curl functions: curl -F "[EMAIL PROTECTED]" "http://path/to/api"; The problem i'm having is that i'm creating the xml file with php - so the contents are stored in a variable. How can I send the contents of that variable via curl? I th

Re: [PHP] Need a simple one time search utility

2008-04-12 Thread Al
I know how to script one to do the job; but, I was hoping to save a few hours.. Nathan Nobbe wrote: On Sat, Apr 12, 2008 at 3:42 PM, Al <[EMAIL PROTECTED]> wrote: host prohibits shell_exec() im sure you could put something together w/ php_grep(); http://www.php.net/preg-grep -nathan

Re: [PHP] Need a simple one time search utility

2008-04-12 Thread Nathan Nobbe
On Sat, Apr 12, 2008 at 3:42 PM, Al <[EMAIL PROTECTED]> wrote: > host prohibits shell_exec() im sure you could put something together w/ php_grep(); http://www.php.net/preg-grep -nathan

Re: [PHP] Need a simple one time search utility

2008-04-12 Thread Al
host prohibits shell_exec() Casey wrote: On Apr 12, 2008, at 12:13 PM, Al <[EMAIL PROTECTED]> wrote: I need a simple utility that simulates GREP to find a certain string in any php files on my website. Site is on a shared host w/o shell access so I can't run GREP. I can write a PHP scrip t

Re: [PHP] Need a simple one time search utility

2008-04-12 Thread Casey
On Apr 12, 2008, at 12:13 PM, Al <[EMAIL PROTECTED]> wrote: I need a simple utility that simulates GREP to find a certain string in any php files on my website. Site is on a shared host w/o shell access so I can't run GREP. I can write a PHP scrip to do it; but, this is a one time thing and

[PHP] Need a simple one time search utility

2008-04-12 Thread Al
I need a simple utility that simulates GREP to find a certain string in any php files on my website. Site is on a shared host w/o shell access so I can't run GREP. I can write a PHP scrip to do it; but, this is a one time thing and I was hoping to find something to save me the effort. Thanks

[PHP] Importing / Adding Fields Into MySql From A List

2008-04-12 Thread revDAVE
Newbie question! I have a list of field names from another database (not mysql) - like: name phone1 phone2 street city state zip info etc (a bunch more fields) Q: Is there a way I can add these to an existing empty/blank table? I have phpMyAdmin and If there's a way add tables w / php - may

[PHP] Quarters [SOLVED]

2008-04-12 Thread tedd
Hi gang: The error was simply one of variable type in javascript. In the statement: document.getElementById(id2).checked = true; I used id2 = 'c' + id[2] + id[3] and by doing so unknowingly made the result an array instead of a string. In some other languages it would have worked -- and did

[PHP] standard format for Web portal administration side

2008-04-12 Thread Alain Roger
Hi, I've seen several web portal and their dedicated administration side. some of those administration (portal) are according to w3c standard (1024 px large), but most of them use the full screen width. therefore i would like to know if there is a standard size (width / height) for web portal adm

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Casey wrote: On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On Sat, Apr 12, 2008 at 12:18 PM, Casey <[EMAIL PROTECTED]> wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo <[EMAIL PROTECT

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Casey
On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Sat, Apr 12, 2008 at 12:18 PM, Casey <[EMAIL PROTECTED]> wrote: > > > > > > > > > > On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > > On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo <[EMAIL

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Nathan Nobbe
On Sat, Apr 12, 2008 at 12:18 PM, Casey <[EMAIL PROTECTED]> wrote: > On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: > > > > search the archives ;) > > > > http://www.mail-archive.com/php-gene

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Casey
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: > > search the archives ;) > > http://www.mail-archive.com/php-general@lists.php.net/msg224626.html > > -nathan 'f', 'b' => 'g', 'c' => 'h', 'd' =>

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Nathan Nobbe
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: search the archives ;) http://www.mail-archive.com/php-general@lists.php.net/msg224626.html -nathan

Re: [PHP] php local application send mouse click

2008-04-12 Thread Stut
On 12 Apr 2008, at 15:25, Daniel Kolbo wrote: Stut wrote: On 12 Apr 2008, at 00:13, Daniel Kolbo wrote: In addition to the function i mentioned from winbinder wb_send_message() I have tried: I tried loading in the user32.dll extension from within the php.ini, this failed. I tried loading i

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Stut
On 12 Apr 2008, at 15:18, Daniel Kolbo wrote: Stut wrote: On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code bel

[PHP] Re: File Upload Security

2008-04-12 Thread Al
Thanks guys. I had written a newer version restricted to images which checks MIME and image width and height. I have one application which needs a text file. I think I'll have my users hide a password in it and scan the whole file for Al wrote: One of my sites has been hacked and I'm trying

Re: [PHP] php local application send mouse click

2008-04-12 Thread Daniel Kolbo
Stut wrote: On 12 Apr 2008, at 00:13, Daniel Kolbo wrote: In addition to the function i mentioned from winbinder wb_send_message() I have tried: I tried loading in the user32.dll extension from within the php.ini, this failed. I tried loading in the user32.dll from within the script, this

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Stut wrote: On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). He

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Jim Lucas wrote: Bojan Tesanovic wrote: On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, functi

Re: [PHP] Evaluating math without eval()

2008-04-12 Thread Ray Hauge
Jason Norwood-Young wrote: On Thu, 2008-04-10 at 13:15 +0100, Richard Heyes wrote: First post to this list! I'm trying to figure out how to evaluate a string with a mathematical expression and get a result, but without using eval() as I'm accepting user input into the string. I don't just want a

[PHP] Re: newsletter administration

2008-04-12 Thread Bill
Hi Alain I would use RSS. My friend Google gave me that link to try http://www.feedforall.com/free-php-script.htm > this newsletter should be in HTML format and send 1 by 1 to each customer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: install pecl in debian

2008-04-12 Thread hce
On 4/12/08, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > You need CLI (Comman Line interface) for PHP > most of PECL packages are in apt-get > > eg apt-get php-memcache > > > > > On Apr 12, 2008, at 3:19 AM, Shawn McKenzie wrote: > > > > hce wrote: > > > > > Hi, > > > I post following message da

Re: [PHP] How to determine which column "matched"

2008-04-12 Thread Stut
On 12 Apr 2008, at 04:25, Rob Gould wrote: I'm trying to figure out a way that SQL can pass a flag to PHP to say which column "matched" during a query. Let's say for instance that I want to search for the word "apple" in both column "producer", and column "designation". I was hoping I cou

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Stut
On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I'v

Re: [PHP] php local application send mouse click

2008-04-12 Thread Stut
On 12 Apr 2008, at 00:13, Daniel Kolbo wrote: In addition to the function i mentioned from winbinder wb_send_message() I have tried: I tried loading in the user32.dll extension from within the php.ini, this failed. I tried loading in the user32.dll from within the script, this failed. dl("

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Jim Lucas
Bojan Tesanovic wrote: On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() {