php-general Digest 2 Jul 2007 12:14:09 - Issue 4880
Topics (messages 258025 through 258028):
Re: Selecting Rows Based on Row Values Being in Array
258025 by: Jim Lucas
Re: Anybody had luck compiling memcache with php6 ?
258026 by: M. Sokolewicz
258027 by: Stut
Re:
kvigor wrote:
Jim,
Please excuse the ignorance, I'm a newbie, but I'm only use to simple
SELECT, INSERT statements.
Your original code: $SQL = SELECT * FROM my_Table WHERE CONCAT(value1,
value2, value3) IN ('.join(',', $list).')
This can be broken down into smaller parts so to explain by
PHP 6 is about as broken as can be, and buggy as hell... why would you
even want to compile it? or extensions for it...?
- Tul
Cathy Murphy wrote:
I am trying to compile memcache 2.1.2 with php6 , but getting errors .
Anybody had luck with this?
Thanks,
Cathy
www.nachofoto.com
--
PHP
M. Sokolewicz wrote:
PHP 6 is about as broken as can be, and buggy as hell... why would you
even want to compile it? or extensions for it...?
1) To help out the developers by testing it
2) To test a project against the next major version
3) For funzies! ;)
Cathy: You might have better luck
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] GET /~ee/mail.php
HTTP/1.1 200 49291 - Mozilla/5.0 (Windows; U; Windows NT 5.1; fr;
rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
$q = ceil( month / 4 );
--
/Thunis
The ships hung in the sky in much the same way that bricks don't.
--The Hitchikers Guide to the Galaxy
revDAVE skrev:
I have segmented a year into four quarters (3 months each)
nowdate = the month of the chosen date (ex: 5-30-07 = month 5)
Q: What is the
hay
i m a C++ programmer and new to web development with basic knowledge of
HTML, CSS and j.script now i want to start learning PHP anybody can direct
me to some good/fast track tutorials \ books for getting start
of course ceil( month / 3 );
--
/Thunis
Don't panic.
--The Hitchikers Guide to the Galaxy
Fredrik Thunberg skrev:
$q = ceil( month / 4 );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've found http://php.net/ to be very helpful. Especially in
troubleshooting.
Muhammad Hassan Samee [EMAIL PROTECTED] 7/2/2007 8:38 AM
hay
i m a C++ programmer and new to web development with basic knowledge
of
HTML, CSS and j.script now i want to start learning PHP anybody can
direct
me to
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] GET /~ee/mail.php
HTTP/1.1 200 49291 - Mozilla/5.0 (Windows; U; Windows
checkout this site http://www.w3schools.com/php/default.asp
On 7/2/07, Davide Bernard [EMAIL PROTECTED] wrote:
I've found http://php.net/ to be very helpful. Especially in
troubleshooting.
Muhammad Hassan Samee [EMAIL PROTECTED] 7/2/2007 8:38 AM
hay
i m a C++ programmer and new to web
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Some contrived example to illustrate the point:
On Monday 02 July 2007 16:38:10 Muhammad Hassan Samee wrote:
hay
i m a C++ programmer and new to web development with basic knowledge of
HTML, CSS and j.script now i want to start learning PHP anybody can direct
me to some good/fast track tutorials \ books for getting start
Hi,
good/fast
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
there is nothing in the language
Daniel Brown a écrit :
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] GET /~ee/mail.php
HTTP/1.1 200 49291 -
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Some contrived example to
Sancar Saran wrote:
Beatiful web design one of the best webs site design books also this kind
of
books wery hard to find (because most of them try to teach you html tag by
tag).
You may look some other photoshop books for generating images.
And of course practice makes perfect
As a
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Not sure I get your requirement
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Some contrived example to
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Daniel Brown a écrit :
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22
On 7/2/07, Daniel Brown [EMAIL PROTECTED] wrote:
{snip}
Note
Sorry, hit the button before I was done typing.
Note the trailing \r\n after the X-Mailer line as well.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
--
PHP General Mailing List
I'm looking for a way to introduce PHP to some Delphi programmers, so I
thought a comparison would show them the major differences, but I can't find
anything like that on the web. Anyone have an article like that or know of
one?
- Dan
--
PHP General Mailing List (http://www.php.net/)
To
Jim Lucas wrote:
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Some
Colin Guthrie wrote:
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
[snipped]
Ave,
Can¹t figure this one out. I¹m using the dbase_replace_record() function to
replace a record in a dbase (.dbf) database. I just want to replace the
value of one of the fields with another value. This is my code:
$db = dbase_open(CRUMBS.DBF, 2) or die(Fatal Error: Could not open
database!);
admin wrote:
Colin Guthrie wrote:
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj-foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Jim Lucas wrote:
admin wrote:
OK, here we go: Propel in Symfony uses generated model classes
representing DB rows, stub classes inheriting from them ready to be used
(such as below), and accessors representing data columns:
[snipped]
This is a little different then what you are trying above,
Linux journal had an article for tesseract
code.google.com/p/tesseract-ocr
the files needed to be cleaned up first though (contrast black text
against white background), so understanding gimp or some other equally
functional command-line image editor is essential. Suggested
alternative was
Jochem Maas wrote:
another solution for the OP might be (although I think it goes against all
design principles):
class A {
function foo() {
echo achoo\n;
}
}
class B extends A {
function foo() {
echo cough\n;
}
function __call($meth, $args) {
$func = array(parent,
Rihad wrote:
Now will you mentally copy and paste the above code several times, doing
the necessary text substitutions, what will you get? Three identical
copies of doSetColumn() in each class! And the real doSetColumn() is a
bit heavier than a one-liner. We come full circle.
I don't
admin wrote:
Once again, calling the parent version of a method externally is
allowed in C++ (and whoever said it was bad design should speak up to
Bjarne Stroustrup ;-)) Any such trick in PHP?
I stand suitably corrected :)
I didn't realise you could do that in C++ to be honest. I'm trying to
Jim Lucas wrote:
Rihad wrote:
Now will you mentally copy and paste the above code several times,
doing the necessary text substitutions, what will you get? Three
identical copies of doSetColumn() in each class! And the real
doSetColumn() is a bit heavier than a one-liner. We come full
admin wrote:
Jochem Maas wrote:
another solution for the OP might be (although I think it goes against
all
design principles):
class A {
function foo() {
echo achoo\n;
}
}
class B extends A {
function foo() {
echo cough\n;
}
function __call($meth, $args) {
Rahul Sitaram Johari wrote:
Ave,
Can¹t figure this one out. I¹m using the dbase_replace_record() function to
replace a record in a dbase (.dbf) database. I just want to replace the
value of one of the fields with another value. This is my code:
$db = dbase_open(CRUMBS.DBF, 2) or die(Fatal
On 6/30/07, jekillen [EMAIL PROTECTED] wrote:
Hello;
I have the following code:
$prps = str_replace(\n, ' ', $input[3]);
Are you sure $input[3] doesn't have two newlines at the end?
Why not use trim() to be sure?
$request = str_replace(// var purpose = {} ;\n, var purpose =
'$prps';\n,
Well then after or before that you have to check that the month value is
between 1 and 12 to make sure there's no input errors, then what if you ever
want ot change the quarters yeah anway I just wanted an excuse to tell
people to go low tech and use a switch, it's only 12 entries, and you
The username and password are probably in a configuration file, look arround
for a config.php, or anything of that variant. Also check in whatever php
code you have ad see if there isnt' a username and pass set in there as a
variagble. There usually is in these guest book scripts. They're
On 6/26/07, jeffry s [EMAIL PROTECTED] wrote:
i made a mistake when i say i can solve this problem to a friend.
finally i realize it is not as simple as i appear to be.
what he ask me to do is write a simple script that, given a word.. the
script will generate a list of words combinaton
from
On 6/25/07, Yashesh Bhatia [EMAIL PROTECTED] wrote:
i'm implementing an imap based mail client
That's a major wheel to go reinventing, have you not tried IMP/Horde?
http://www.horde.org/imp/
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To
On Jul 2, 2007, at 6:07 PM, jekillen wrote:
On Jul 2, 2007, at 3:15 PM, Greg Donald wrote:
On 6/30/07, jekillen [EMAIL PROTECTED] wrote:
Hello;
I have the following code:
$prps = str_replace(\n, ' ', $input[3]);
Are you sure $input[3] doesn't have two newlines at the end?
Why not use
Need to remove all spaces from Array Values... And this doesn't work.
This is similar info that's within array values: $someArray[0] = PHP is
awesome;s/b PHPisawesome
This is similar info that's within array values: $someArray[1] = The Toy
Boat;s/b TheToyBoat
Begin
The function str_replace() DOES NOT change the parameter. Rather,
str_replace() returns the desired string. Try changing your code to:
for($num = 0; $cntr $num; $cntr++)
{
$someArray[$num] = str_replace(' ','',$someArray[$num]);
echo $someArray[$num]br /;
}
jekillen wrote:
On Jul 2, 2007, at 6:07 PM, jekillen wrote:
On Jul 2, 2007, at 3:15 PM, Greg Donald wrote:
On 6/30/07, jekillen [EMAIL PROTECTED] wrote:
Hello;
I have the following code:
$prps = str_replace(\n, ' ', $input[3]);
Are you sure $input[3] doesn't have two newlines at the
Got I'm my bad I really feel SHEEPISH... s/b have done '$someArray ='
Re-read what I thought I read a it worked like a dream.
Thanks Adam
Adam Schroeder [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
The function str_replace() DOES NOT change the parameter. Rather,
Ok Jim,
This is what I have so far and I'm still working it out.
$in_list = .join('',$someArrayList); // do I really need to concatenate
or separate anything here since my array values will be '7orange50lbs'? //
this is the format I want.
$query_One = SELECT * FROM shoe WHERE
I meant to say: Got It, My bad, I really feel SHEEPISH... should have
done...
This is what happens when you're trying to code with a migraine, You start
speaking another language.
Thanks Again
kvigor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Got I'm my bad I really feel
On Mon, July 2, 2007 3:44 pm, admin wrote:
IMHO, you were f'ed from the microsecond where you decided it was a
Good Idea (tm) to have an object instance for each row in the DB...
That just plain won't scale up very well at all for a large table, if
you ever need to get code re-use and do
On Sat, June 30, 2007 12:04 pm, jekillen wrote:
Hello;
I have the following code:
$prps = str_replace(\n, ' ', $input[3]);
$request = str_replace(// var purpose = {} ;\n, var purpose =
'$prps';\n, $request);
In the first line $input[3] is a string formatted with new lines at
the
end
If the date is coming from a database, there might be a
function/format already for that...
And http://php.net/date may also have a format specifier for Quarter.
If not, try this:
$quarter = ((int) ($month / 4)) + 1;
On Sat, June 30, 2007 10:14 am, revDAVE wrote:
I have segmented a year into
I don't even being to understand your question, but it's a MySQL
question anyway.
http://dev.mysql.com/
On Sat, June 30, 2007 12:18 am, kvigor wrote:
Hello All,
I'm attempting to return rows from a mysql DB based on this criteria:
I have a list, in the form of an array that I need to
Jochem Maas wrote:
admin wrote:
Jochem Maas wrote:
another solution for the OP might be (although I think it goes against
all
design principles):
class A {
function foo() {
echo achoo\n;
}
}
class B extends A {
function foo() {
echo cough\n;
}
function __call($meth, $args)
On Fri, June 29, 2007 11:32 am, Jay Blanchard wrote:
[snip]
I am looking for a way to incorporate some simple OCR into a php
script.
The
user will bulk scan a pile of invoices. I want the php script to look
at
each
invoice and read a number off the invoice. The image will then be
renamed,
On Fri, June 29, 2007 10:30 am, David Giragosian wrote:
I've recently been using some limited free time to explore the
Freemovie
(Flash-PHP API) and Ajax technologies.
Can anyone help me to understand whether these can be used together?
Can I,
for example, pull data from MySQL, dynamically
On Sun, July 1, 2007 5:32 am, Ryan A wrote:
Sometimes this gets solved with spitting out some headers telling IE
not to cache while others have (dirty) solved it by adding a hash or
something else unique to the page or the image...
If you need serious legacy support for cave-man days browsers,
54 matches
Mail list logo