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
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
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
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.
hi all,
for reversing of characters, strrev() is good. but for persian characters
it doesn't work!
Thanks
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:
Thanks alot
I tested what you said and
IT WORKS!
Thanks Maciek :-)
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
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
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;
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] -
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
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
Thanks for reply
U+103A0 ... U+103DF
How can I use of it?
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
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,
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
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)
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
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
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/)
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
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
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
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
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
-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
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
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'),
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
-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()
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
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
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'),
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
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
-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
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
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
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
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
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
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
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,
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:
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
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
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
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
,
'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
, $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
(
'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
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);
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
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
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.
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;
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
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
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
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
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
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.
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
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
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
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
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
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
69 matches
Mail list logo