php-general Digest 29 Sep 2008 07:58:34 -0000 Issue 5708

2008-09-29 Thread php-general-digest-help
php-general Digest 29 Sep 2008 07:58:34 - Issue 5708 Topics (messages 281076 through 281080): Re: Regular Expression Backreference in subpattern. 281076 by: Nathan Rixham Re: error warning while connecting to posgreSQL 281077 by: Nathan Rixham Re: Concatenating PDF using

[PHP] Re: Questions regarding limits of processes launched by system, exec,passthru ...

2008-09-29 Thread Valentin Schmid - ICSurselva AG
Hello all again, It seems that Problem can only be solved by one of the following ways: 1. Don't use mod_php; use CGI or FastCGI instead. Then it would be possible to limit the resources via RLimitCPU / RLimitMEM. 2. Use one of the following apache core patch

[PHP] Check Variable with true or not

2008-09-29 Thread Carlos Medina
Hi @ all: Question: what is quickly? if( true == isset( $var ) ){} or if( isset( $var ) ){} Can somebody explain ( not think or believe ), what happend on the Zend Engine when the first or the second code will be use? Regards Carlos -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Check Variable with true or not

2008-09-29 Thread Maciek Sokolewicz
Carlos Medina wrote: Hi @ all: Question: what is quickly? if( true == isset( $var ) ){} or if( isset( $var ) ){} Can somebody explain ( not think or believe ), what happend on the Zend Engine when the first or the second code will be use? Regards Carlos The _exact_ same thing happens.

[PHP] strrev() for persian language!

2008-09-29 Thread shahrzad khorrami
hi all, for reversing of characters, strrev() is good. but for persian characters it doesn't work! Thanks

[PHP] Re: strrev() for persian language!

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, for reversing of characters, strrev() is good. but for persian characters it doesn't work! Thanks How nice of you to let us know! Now, is there a question in here somewhere? or is that all you wanted to say? -- _assuming_ you want to know why this is:

[PHP] Re: strrev() for persian language!

2008-09-29 Thread shahrzad khorrami
Thanks alot I tested what you said and IT WORKS! Thanks Maciek :-)

[PHP] Fwd: strrev() for persian language!

2008-09-29 Thread shahrzad khorrami
hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks

[PHP] return language of a word

2008-09-29 Thread shahrzad khorrami
hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks

[PHP] for the sake of conversation - syntax

2008-09-29 Thread Nathan Rixham
Afternoon All, Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] ?php package com.mydom.thispackage { import com.anotherdom.MysqlDbHandler as DbHandlerA;

[PHP] Re: return language of a word

2008-09-29 Thread Nathan Rixham
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks best way i can see it to use the google language detection api [thats what I do] -

[PHP] Re: Check Variable with true or not

2008-09-29 Thread Nathan Rixham
Maciek Sokolewicz wrote: Carlos Medina wrote: Hi @ all: Question: what is quickly? if( true == isset( $var ) ){} or if( isset( $var ) ){} Can somebody explain ( not think or believe ), what happend on the Zend Engine when the first or the second code will be use? Regards Carlos The

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks How exactly would you expect this to work? I can't think of any way to be 100% sure

[PHP] Re: return language of a word

2008-09-29 Thread shahrzad khorrami
Thanks for reply U+103A0 ... U+103DF How can I use of it?

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. If you really want to do more with unicode and low-level twiddling

Re: [PHP] Concatenating PDF using FPDI

2008-09-29 Thread giga501
Bastien - Thanks for the tip. I tried setting auto_detect_line_endings=ON on my PHP.ini file (I am on a shared host - siteground), but the problem persists. The auto_detect_line_endings parameter on my local machine is OFF. Bastien Koert-3 wrote: On Sun, Sep 28, 2008 at 3:33 AM,

[PHP] Re: return language of a word

2008-09-29 Thread Nathan Rixham
Maciek Sokolewicz wrote: shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. note: *but not ord()* [ord is only for

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD)

[PHP] Reuse MySQL prepared statement

2008-09-29 Thread Nathaniel Hall
I am trying to use a prepared MySQL statement after retrieving the results from a previous query (it's for a multi-level menu). The first query works fine, but the second query does not. I have tried using mysqli_stmt::reset and mysqli_stmt::close, but had no luck with those either. Lastly, the

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Shawn McKenzie
Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP Debugger (APD) v0.9, , by George

[PHP] Re: Reuse MySQL prepared statement

2008-09-29 Thread Nathaniel Hall
Nathaniel Hall wrote: Lastly, the only time I receive error messages is when I use mysqli_stmt::close. I should probably note that the error messages I receive when using mysqli_stmt::close are related to the statement handle being removed. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Reuse MySQL prepared statement

2008-09-29 Thread Richard Heyes
I am trying to use a prepared MySQL statement after retrieving the results from a previous query (it's for a multi-level menu). The first query works fine, but the second query does not. Use a tree structure (I assume it's a tree type menu that has already been written and save yourself the

Re: [PHP] Reuse MySQL prepared statement

2008-09-29 Thread Richard Heyes
Use a tree structure (I assume it's a tree type menu that has already been written and save yourself the hassle. The PEAR HTML_TreeMenu code can Create a tree structure from a Tree object (my own tree class at phpguru.org). Sorry, forgot to mention that said Tree object can create a tree

[PHP] OT - Visio Network Charting Application

2008-09-29 Thread Jim Lucas
To all curious... I realize that this has nothing to do with PHP, but here goes. I have Googling, but not able to find a mailing list on visio review and visio top 10 and other search terms related to visio. So, I thought I would ask for the lists opinions on visio software. I am in need of

Re: [PHP] return language of a word

2008-09-29 Thread Robin Vickery
2008/9/29 shahrzad khorrami [EMAIL PROTECTED]: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. As others have said, you can check what unicode block the characters are

Re: [PHP] Reuse MySQL prepared statement

2008-09-29 Thread Eric Butera
On Mon, Sep 29, 2008 at 11:21 AM, Richard Heyes [EMAIL PROTECTED] wrote: Use a tree structure (I assume it's a tree type menu that has already been written and save yourself the hassle. The PEAR HTML_TreeMenu code can Create a tree structure from a Tree object (my own tree class at

RE: [PHP] How to submit form via PHP

2008-09-29 Thread Richard Lynch
-Original Message- No it doesn't... without an action statement... Sorry to drag up an old thread, but I just saw this. Is that true of all browsers? I'm wondering because I just coded a site to use this behavior, then I saw that the html specification says the action attribute is

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced

[PHP] extract column from multidimentional array

2008-09-29 Thread It flance
Hi, below you will find the code for a small script where i'm able to extract a row but not a column. So the question is how can I do that. Here is the code: ?php $arr = array( array('00', '01', '02', '03'), array('10', '11', '12', '13'),

[PHP] Re: OT - Visio Network Charting Application

2008-09-29 Thread Nathaniel Hall
Jim Lucas wrote: To all curious... I realize that this has nothing to do with PHP, but here goes. I have Googling, but not able to find a mailing list on visio review and visio top 10 and other search terms related to visio. So, I thought I would ask for the lists opinions on visio

RE: [PHP] error warning while connecting to posgreSQL

2008-09-29 Thread Richard Lynch
-Original Message- i try to understand the error_reporting statement and to avoid all warning or error messages. for example i stop the postgresql service and i try to connect to it. when error_reporting is set to E_ALL, i get the following warning : *Warning*: pg_connect()

RE: [PHP] How to submit form via PHP

2008-09-29 Thread Richard Lynch
Actually, I believe action= submitting to the same URL is *documented* HTTP spec behavior. I welcome correction/confirmation if somebody wants to wade through the docs again... -Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 4:13 AM

RE: [PHP] PHP + Cron jobs

2008-09-29 Thread Richard Lynch
If you are running PHP as CGI, replacing the CGI with CLI could be problematic down the road... From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 6:12 AM To: Richard Lynch Cc: Per Jessen; php-general@lists.php.net Subject: Re: [PHP] PHP + Cron jobs Yup, you're

Re: [PHP] extract column from multidimentional array

2008-09-29 Thread Nilesh Govindrajan
On Monday 29 September 2008 09:34:10 pm It flance wrote: Hi, below you will find the code for a small script where i'm able to extract a row but not a column. So the question is how can I do that. Here is the code: ?php $arr = array( array('00', '01', '02', '03'),

RE: [PHP] OT - Visio Network Charting Application

2008-09-29 Thread bruce
hey jim... you might try sending this out on the centos/fedora/redhat mailing list, or one of the irc channels.. i'm willing to bet that you'll get a few positive replies! have fun and let us know... -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Monday, September

Re: [PHP] extract column from multidimentional array

2008-09-29 Thread Philip Thompson
On Sep 29, 2008, at 11:08 AM, Boyd, Todd M. wrote: -Original Message- From: It flance [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 11:04 AM To: php-general@lists.php.net Subject: [PHP] extract column from multidimentional array Hi, below you will find the code for a

RE: [PHP] extract column from multidimentional array

2008-09-29 Thread Boyd, Todd M.
-Original Message- From: It flance [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 11:04 AM To: php-general@lists.php.net Subject: [PHP] extract column from multidimentional array Hi, below you will find the code for a small script where i'm able to extract a row but

Re: [PHP] error warning while connecting to posgreSQL

2008-09-29 Thread Nilesh Govindrajan
On Monday 29 September 2008 10:02:06 pm Richard Lynch wrote: -Original Message- i try to understand the error_reporting statement and to avoid all warning or error messages. for example i stop the postgresql service and i try to connect to it. when error_reporting is set to

Re: [PHP] extract column from multidimentional array

2008-09-29 Thread Nilesh Govindrajan
On Monday 29 September 2008 10:15:29 pm Philip Thompson wrote: On Sep 29, 2008, at 11:08 AM, Boyd, Todd M. wrote: -Original Message- From: It flance [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 11:04 AM To: php-general@lists.php.net Subject: [PHP] extract column

Re: [PHP] Reuse MySQL prepared statement

2008-09-29 Thread Nathaniel Hall
Eric Butera wrote: On Mon, Sep 29, 2008 at 11:21 AM, Richard Heyes [EMAIL PROTECTED] wrote: Use a tree structure (I assume it's a tree type menu that has already been written and save yourself the hassle. The PEAR HTML_TreeMenu code can Create a tree structure from a Tree object (my own tree

[PHP] Wanted PHP Developers LogicManse

2008-09-29 Thread logicmanse solutions
LogicManse is an ambitious, growing Multinational Web and Mobile services development firm headquartered in Canada. We have completed 18 months of operations, developing WebApps on LAMP and MS/.NET stacks for clients from all over the world. We are now seeking to expand our workforce with highy

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Eric Butera
On Mon, Sep 29, 2008 at 11:59 AM, Nathan Rixham [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group

[PHP] Using oci_execute...

2008-09-29 Thread Walter Galvão
Hi, Im using the oracle instant client basic in my php app. When a query returns few rows, there is no problem. Otherwise, the oci_execute method doesn return any records neither errors! How can i solve this problem?? My implementation: function executarSQL($conn, $stmt, $consulta){ echo

[PHP] Using oci_execute

2008-09-29 Thread Walter Galvão
Hi, Im using the oracle instant client basic in my php app, with apache server. When a query returns few rows, there is no problem. Otherwise, the oci_execute method doesn return any records neither errors! How can i solve this problem?? My implementation: function executarSQL($conn, $stmt,

[PHP] Re: Reuse MySQL prepared statement

2008-09-29 Thread Nathaniel Hall
I have figured out the problem. While I was resetting the first query and not closing it, I was closing the second query. That kept any subsequent queries from running. Thanks Jack! -- Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: [PHP-DB] Using oci_execute

2008-09-29 Thread Christopher Jones
Walter Galvão wrote: Hi, Im using the oracle instant client basic in my php app, with apache server. When a query returns few rows, there is no problem. Otherwise, the oci_execute method doesn return any records neither errors! How can i solve this problem?? My implementation: function

Re: [PHP] Reuse MySQL prepared statement

2008-09-29 Thread Richard Heyes
I would recommend using using a preorder tree traversal for storing the data. It is a little different at first, but once you get the idea it is pretty slick to work with. The main advantage is to build the tree structure you only need one query as opposed to a recursive algorithm. This

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Micah Gersten
Not according to this: http://www.w3.org/TR/html401/interact/forms.html#adef-action The only defined behaviour is when you specify a URI. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Lynch wrote: Actually, I believe action= submitting to the

[PHP] Re: [PHP-DB] Using oci_execute

2008-09-29 Thread Walter Galvão
What version of PHP? *5* What version of Instant Client? * instantclient-basic-win32-10.2.0.3-20061115* What version of the DB? *10G * Are you exceeding the PHP script time out, or exceeding the memory limit? *I dont know. Doesnt appear any message. The script prints the last message before the

[PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Rene Veerman
, 'result' = $result ); which when executed returns [cmd]=string(128) nice -n 19 ffmpeg -i /data/web/secret/20080929 201651/work/MVI_1993.avi [output]=array(0) { } [result]=int(1) } if i run the same cmd on the commandline, it nicely returns: FFmpeg version SVN-rUNKNOWN, Copyright (c

RE: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Richard Lynch
, $result); return array ( 'cmd' = $cmd, 'output' = $output, 'result' = $result ); which when executed returns [cmd]=string(128) nice -n 19 ffmpeg -i /data/web/secret/20080929 201651/work/MVI_1993.avi [output]=array(0) { } [result]=int(1

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Ashley Sheridan
( 'cmd' = $cmd, 'output' = $output, 'result' = $result ); which when executed returns [cmd]=string(128) nice -n 19 ffmpeg -i /data/web/secret/20080929 201651/work/MVI_1993.avi [output]=array(0) { } [result]=int(1) } if i run the same cmd

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Daniel Brown
On Mon, Sep 29, 2008 at 2:53 PM, Rene Veerman [EMAIL PROTECTED] wrote: Hi, i have the following php statements; I'm wondering why exec()'s $output remains empty.. Any help is greatly appreciated.. ?php $cmd = 'nice -n 19 ffmpeg -i '.$sourcePath.''; exec ($cmd, $output, $result);

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Rene Veerman
bingo, this fixed it :) thx (all) for answering so quickly :) Daniel Brown wrote: Try this instead, just to make sure everything's running as expected: ?php $cmd = 'nice -n 19 ffmpeg -i '.$sourcePath.' 21'; exec($cmd,$ret,$err); print_r($ret); ? $ret (or whatever you name the

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Rene Veerman
I have other ffmpeg statements that i execute in the same manner. They do produce the desired result-files, but also do _not_ have $output set to the text i see when i run the commands from the commandline.. I'd like to get output from all my executions of ffmpeg, its usefull for detailing

[PHP] Re: [PHP-DB] Using oci_execute

2008-09-29 Thread Christopher Jones
Walter Galvão wrote: Are you exceeding the PHP script time out, or exceeding the memory limit? I dont know. Doesnt appear any message. The script prints the last message before the oci_execute call. I'd start by looking at the max_execution_time and memory_limit settings in php.ini.

[PHP] Time Loop

2008-09-29 Thread MDB
Hello All, I am trying to figure out how to loop through 2 given times. I have a start time and a end time and want to look through every X mins and add a radio button. Below is my latest try, can someone please help me out? $endTime = 17:00:00; $currentTime=09:00:00;

Re: [PHP] Time Loop

2008-09-29 Thread Robert Cummings
On Mon, 2008-09-29 at 17:01 -0400, MDB wrote: Hello All, I am trying to figure out how to loop through 2 given times. I have a start time and a end time and want to look through every X mins and add a radio button. Below is my latest try, can someone please help me out? $endTime

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Lupus Michaelis
Micah Gersten a écrit : Not according to this: http://www.w3.org/TR/html401/interact/forms.html#adef-action The only defined behaviour is when you specify a URI. The empty string into an HTML document is a valid relative URI ;) According the same document gave (just follow the references

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-29 Thread Bastien Koert
On Mon, Sep 29, 2008 at 1:28 PM, logicmanse solutions [EMAIL PROTECTED] wrote: LogicManse is an ambitious, growing Multinational Web and Mobile services development firm headquartered in Canada. We have completed 18 months of operations, developing WebApps on LAMP and MS/.NET stacks for

Re: [PHP] Re: [PHP-DB] Using oci_execute

2008-09-29 Thread Chris
Walter Galvão wrote: What version of PHP? *5* What version of Instant Client? * instantclient-basic-win32-10.2.0.3-20061115* What version of the DB? *10G * Are you exceeding the PHP script time out, or exceeding the memory limit? *I dont know. Doesnt appear any message. The script prints the

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Ashley Sheridan
On Mon, 2008-09-29 at 23:56 +0200, Lupus Michaelis wrote: Micah Gersten a écrit : Not according to this: http://www.w3.org/TR/html401/interact/forms.html#adef-action The only defined behaviour is when you specify a URI. The empty string into an HTML document is a valid relative URI

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Ashley Sheridan
On Mon, 2008-09-29 at 23:40 +0100, Ashley Sheridan wrote: On Mon, 2008-09-29 at 23:56 +0200, Lupus Michaelis wrote: Micah Gersten a écrit : Not according to this: http://www.w3.org/TR/html401/interact/forms.html#adef-action The only defined behaviour is when you specify a URI.

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Lupus Michaelis
Ashley Sheridan a écrit : From the link you gave, we stick on http://www.w3.org/TR/html401/types.html#type-uri, so it references an IETF RFC http://www.ietf.org/rfc/rfc1808.txt that describes what is an URI. The fourth section describes how we have to determine the resolution of an

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Nisse Engström
On Mon, 29 Sep 2008 11:33:41 -0500, Richard Lynch wrote: Actually, I believe action= submitting to the same URL is *documented* HTTP spec behavior. I welcome correction/confirmation if somebody wants to wade through the docs again... HTML 4.01 says: action = uri [CT] This

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Shawn McKenzie
Lupus Michaelis wrote: Ashley Sheridan a écrit : From the link you gave, we stick on http://www.w3.org/TR/html401/types.html#type-uri, so it references an IETF RFC http://www.ietf.org/rfc/rfc1808.txt that describes what is an URI. The fourth section describes how we have to determine

RE: [PHP] How to submit form via PHP

2008-09-29 Thread Richard Lynch
I can't speak to cell phones, but it works on all normal browsers I've ever seen... From: Nisse Engström [EMAIL PROTECTED] Sent: Monday, September 29, 2008 6:11 PM To: php-general@lists.php.net Subject: Re: [PHP] How to submit form via PHP On Mon, 29 Sep

Re: [PHP] How to submit form via PHP

2008-09-29 Thread Waynn Lue
Hm, it specifies base though. Does that mean the full query string won't be guaranteed to be passed along? On 9/29/08, Lupus Michaelis [EMAIL PROTECTED] wrote: Ashley Sheridan a écrit : From the link you gave, we stick on http://www.w3.org/TR/html401/types.html#type-uri, so it references

[PHP] question about EOF

2008-09-29 Thread LKSunny
Hello, i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? ? echo EOF some text can i calculate on inner EOF ? 10*100 display 1000 ? can i add function on inner EOF ? date('Y') display 2008 ? any more text. EOF; //i want output is /* some text can