> but you're trying to pass stuff to it:
>
>public function tostring() {
> $str = $this->binstr($this->bits[0]);
> for ($i=1;$i<8;$i++)
>$str .= "," . $this->binstr($this->bits[$i]);
> return $str;
>}
Slap (on my face)! My stupidity... I come from a strongly typed
>
>>
>> SELECT something FROM tbl_name
>>-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;
>>
>> Taking that and changing it so it works for you would result in the
>> following.
>>
>> $query .= " WHERE DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= `stamp`";
>>
>> Try that and let us know your
On Wed, 2009-02-25 at 07:17 -0600, Terion Miller wrote:
> >
> >>
> >> SELECT something FROM tbl_name
> >>-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;
> >>
> >> Taking that and changing it so it works for you would result in the
> >> following.
> >>
> >> $query .= " WHERE DATE_SUB(C
Hi everyone,
I've installed eAccelerator 0.9.5.3 for PHP (installed as an Apache module).
I have noticed that when I use my TYPO3 application, I am getting memory
leak errors in Apache's error log. These errors only appear after I restart
Apache, and not whilst I am browsing the PHP pages. If
WHERE
date >= DATE_SUB(NOW(), INTERVAL 7 DAY)
Works just fine for me.
R
On Tue, Feb 24, 2009 at 4:15 PM, Terion Miller wrote:
> Need syntax help when it comes to using a timestamp.
> What I'm trying to say in my query WHERE clause is to select records if the
> timestamp on the record is in t
jpmad4it wrote:
> Hi everyone,
>
> I've installed eAccelerator 0.9.5.3 for PHP (installed as an Apache module).
>
> I have noticed that when I use my TYPO3 application, I am getting memory
> leak errors in Apache's error log. These errors only appear after I restart
> Apache, and not whilst I a
Thanks Shawn. I tried that but the log just reports the following, which I
guess is usual:
EACCELERATOR hit: /path/to/script.php
EACCELERATOR cached: /path/to/script.php
There are no mention of memory leaks, or anything else.
Anyone got any other suggestions?
--
View this message in context:
I really need your insight.
I'm a software developer who is wishing to do Web Development.
I love to program and I'm learning more about Web Design but my main skills
are in programming.
How do you get work as a Web Developer?
One could apply for a web developer job at a Web company
I guess you are interested about php.
the freelancers work at www.scriptlance.com www.elance.com www.odesk.com
www.joomlalancer.com www.getacoder.com www.getafreelancer.com and many more.
I am a Web Developer at
https://www.scriptlance.com/cgi-bin/freelancers/feedback.cgi?p=lenin9el with
this id
Hi,
I have a code as in the following:
This is the input file:
1
23kd
3dkd2
" "
4
5
6
For the output, I get nothing running it from the command prompt, but I would
like to have " " in the output,
could anyone please give me some guides on what I have done wrong in my regular
expressio
Alice Wei wrote:
> Hi,
>
> I have a code as in the following:
>
>
> $file = "test.txt";
> $fp = fopen($file, "r");
>
>while(!feof($fp)) {
>$data = fgets($fp, 1024);
>
>if ((preg_match("/0/",$data)) ||
> (preg_match("/\"\s\"/",$data)) ||
> (preg_match("/
Shawn McKenzie wrote:
> Alice Wei wrote:
>> Hi,
>>
>> I have a code as in the following:
>>
>> >
>> $file = "test.txt";
>> $fp = fopen($file, "r");
>>
>>while(!feof($fp)) {
>>$data = fgets($fp, 1024);
>>
>>if ((preg_match("/0/",$data)) ||
>> (preg_match("/\"\s\"/",
Shawn McKenzie wrote:
> Shawn McKenzie wrote:
>> Alice Wei wrote:
>>> Hi,
>>>
>>> I have a code as in the following:
>>>
>>> >>
>>> $file = "test.txt";
>>> $fp = fopen($file, "r");
>>>
>>>while(!feof($fp)) {
>>>$data = fgets($fp, 1024);
>>>
>>>if ((preg_match("/0/",$data)
Thanks for the info.
It seems to me that there must to other places a freelance Web Developer
fines work.
How do you find work in PHP Web programming?
Work a company, through this site and from God.
I wish to know more than handing out a business card.
Thanks in advance.
./Ernie
-Orig
I want to insert a new table entry 1 number higher than the highest in
the field (id). I cannot use auto-increment.
And I want to show the value of the field to be added in an input field
on the web page:
if (isset($_REQUEST["AddNewBooksRequest"])) {
$SQL = "SELECT MAX(id) FROM book";
$
Not sure that this is the problem BUT you should probably qualify the name of
the variable such that "SELECT MAX(id) AS id FROM book". But you don't want
"max(id) as id" but rather "max(id) + 1 as id". With that you can then just
return the final value. Also, if you don't want to alias the val
On Wed, 2009-02-25 at 14:10 -0800, Gary W. Smith wrote:
> Not sure that this is the problem BUT you should probably qualify the name of
> the variable such that "SELECT MAX(id) AS id FROM book". But you don't want
> "max(id) as id" but rather "max(id) + 1 as id". With that you can then just
> r
Hi,
Apparently I can't set the value for expect.timeout to any
values other than 0 (the default is 10). Can someone try
the following script and see if you see the same problem as
me? My php is 5.1.6, php-expect is 0.2.4, the platform is a
Redhat Enterprise Linux 5.3
Test method:
1. Drop
On Wed, 2009-02-25 at 18:08 -0500, Clement Yui-Wah Lee wrote:
> Hi,
>
> Apparently I can't set the value for expect.timeout to any
> values other than 0 (the default is 10). Can someone try
> the following script and see if you see the same problem as
> me? My php is 5.1.6, php-expect is 0.2.
Ash,
Thanks for your answer. I am quite sure that I do have the
needed permission to effect the change. As you can tell
from my test script, I was able to set timeout to 0 (zero),
and I could also set logfile to "/tmp/tmp". I just could
not set timeout to any values other than 0 or the def
On Wed, 2009-02-25 at 19:03 -0500, PJ wrote:
> Ashley Sheridan wrote:
> > On Wed, 2009-02-25 at 14:10 -0800, Gary W. Smith wrote:
> >> Not sure that this is the problem BUT you should probably qualify the
> >> name of the variable such that "SELECT MAX(id) AS id FROM book". But
> >> you don't want
Ashley Sheridan wrote:
> On Wed, 2009-02-25 at 14:10 -0800, Gary W. Smith wrote:
>> Not sure that this is the problem BUT you should probably qualify the
>> name of the variable such that "SELECT MAX(id) AS id FROM book". But
>> you don't want "max(id) as id" but rather "max(id) + 1 as id". With
>>
>Being rather new to all this, I understood from the MySql manual that
>the auto_increment is to b e used immediately after an insertion not
>intermittently. My application is for administrators (the site owner &
>designates) to update the database from and administration directory,
>accessed by us
>Being rather new to all this, I understood from the MySql manual that
>the auto_increment is to b e used immediately after an insertion not
>intermittently. My application is for administrators (the site owner &
>designates) to update the database from and administration directory,
>accessed by u
Hello -- - Ernie -- -- -
Consulting work is a business. Work doesn't fall from the sky. You
have to figure out what you do. Not good enough to say "I'm a
programmer" -- that and a dollar will get you half-a-cup of coffee at
McDonalds.
Figure out where your strengths are. Figure out where
Very wise words or wisdom Ken. And Ernie, I just gave you most of the
renowned places where freelancers or even large companies bid for works.
There are programmers like you and as Ken said, even thousand times better
programmers than you who are going along the way. Its a wonder how you do
not kno
PJ wrote:
From: PJ [mailto:af.gour...@videotron.ca]
Sent: Wed 2/25/2009 2:01 PM
To: MySql; php-general@lists.php.net
Subject: non-auto increment question
I want to insert a new table entry 1 number higher than the highest in
the field (id). I cannot use auto-increment.
And I want to show the v
Jim Lucas wrote:
PJ wrote:
From: PJ [mailto:af.gour...@videotron.ca]
Sent: Wed 2/25/2009 2:01 PM
To: MySql; php-general@lists.php.net
Subject: non-auto increment question
I want to insert a new table entry 1 number higher than the highest in
the field (id). I cannot use auto-increment.
And I
28 matches
Mail list logo