php-general Digest 6 Dec 2006 10:48:30 - Issue 4499
Topics (messages 245542 through 245545):
Newsgroup connect time has become very long
245542 by: Al
245543 by: Al
PHP SQL Builder with JOIN support
245544 by: Kris Leech
Re: utf8 encoding £ to £ problem
Does anyone know of a PHP class/function(s) which will generate SQL with
support for JOIN's to other tables.
I have used SQL Query Builder by David Regla Demaree, which is great for
simple SQL but lacks support for JOIN's.
Many thanks in advance, Kris.
--
PHP General Mailing List
Hi,
Chris Dean wrote:
Just the £ and in my case I need to use that symbol, can't really get round
it sensibly with pound;
I think Jochen is right about the double encoding.
The question I have to ask is where does your £ sign come from?
I can think of 3 places:
1) in the text.
2) from a
Hi,
I need some help. Which is the best way to parse XML file ( reading some
fields ) and change some of them ?
Thanks in advance,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you want to do some simple XML handeling you could go for simpleXML :
http://nl3.php.net/manual/en/ref.simplexml.php
For the more advanced XML handeling i would go for DOM :
http://nl3.php.net/manual/en/ref.dom.php
On Wed, 6 Dec 2006 12:47:01 +0200, Rosen [EMAIL PROTECTED] wrote:
Hi,
I
Al wrote:
Anyone having problems connecting the last few days? Or, is there
something wrong on my end. Al other sites are working just fine.
Newsgroup? I presume you are using Gmane (as I am).
Seems fine for me.
Col.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am trying to use includes on a free php server but I cannot set the
includes_path myself. Consequently when I try to include common elements or
library files I run into trouble as I am unable to store or gain acesss to a
central includes folder for the entire of my website to access. Is
Hi Richard,
I think I've identified the problem. It appears to be a problem with
PHPMyAdmin rather than PHP itself.
The directory permissions we have are the minimum we need, usually 710, file
permissions are 640. The group part of the permissions is how the apache
gets to the files in the
Use ini_set or an .htaccess file - try the first, and if that doesn't work
use an .htaccess file if you have them enabled in the server (and it's
Apache of course!).
On 12/6/06, Ashley Hales [EMAIL PROTECTED] wrote:
I am trying to use includes on a free php server but I cannot set the
Hi Richard,
Thanks for the help, and I almost forgot to thank you for it. Reason for
the timeout to occur in the posts that I have mentioned before was a
simple End Of Transmission character (EOT, ASCII 4) that terminates
every message sent to and from the server.
And by the way, thank you. :)
Hello
I am new to php and I would like some guidance from those who have a bit more
expereince with PHP
I will be attempting to do a bit of tracking and web analytics. Basically, the
user will login
and from there everything that he clicked will be recorded in a database and
analyzed
i.e
Storing the document that is being called and get paramaters on a DB
is very simple
You would have an include like
$doc = $_SERVER['PHP_SELF'];
$get_vars = serialize($_GET);
mysql_query('INSERT INTO logs (page, vars) VALUES (' . $doc . ', '
. addslashes($get_vars) . ')');
Of course you'd need
What you describe is certainly possible, and many sites have this
functionality.
If you're just starting out however, look into Google Analytics. It gives
you more info than you care to imagine and is free. It's also takes 2secs to
install (except I think there's a waiting list to get your
Not really, it's instant now. You just have to have a google account.
On 12/6/06, Edward Kay [EMAIL PROTECTED] wrote:
What you describe is certainly possible, and many sites have this
functionality.
If you're just starting out however, look into Google Analytics. It gives
you more info than
Rick. wrote:
Hello
I am new to php and I would like some guidance from those who have a bit more
expereince with PHP
I will be attempting to do a bit of tracking and web analytics. Basically,
the user will login
and from there everything that he clicked will be recorded in a
You could look for Apache logs analysers, too
vincent
-Original Message-
From: Rick. [mailto:[EMAIL PROTECTED]
Sent: Wed 6/12/2006 12:48
To: php-general@lists.php.net
Subject: [PHP] PHP analytics
Hello
I am new to php and I would like some guidance from those who have a bit more
Do those log GET params?
On 12/6/06, Vincent DUPONT [EMAIL PROTECTED] wrote:
You could look for Apache logs analysers, too
vincent
-Original Message-
From: Rick. [mailto:[EMAIL PROTECTED]
Sent: Wed 6/12/2006 12:48
To: php-general@lists.php.net
Subject: [PHP] PHP analytics
Hello
I
On Wed, 06 Dec 2006 10:49:52 +, Colin Guthrie wrote:
Al wrote:
Anyone having problems connecting the last few days? Or, is there
something wrong on my end. Al other sites are working just fine.
Newsgroup? I presume you are using Gmane (as I am).
I'm using Pan and it's taking ages
Also, try to use a local email address first. Possibly it gets sent, but
the remote server blocks the email as spam. You can check that by having
the email sent to your local user, and check if it arrives there.
HTH
On Mon, 04 Dec 2006 16:53:19 +0100, Jochem Maas wrote:
Janet Smith wrote:
I
Hi Ross,
you might want to look at the way you define your CSS ids
#side, #main, #holder, {height: 1400px;}
should probably be
#side, #main, #holder {height: 1400px;}
Now that's just a question of removing that extra trailing comma.
You might also want to look into the way Firefox handles
First thing to do is to make your code W3C compliant. Both the html and css
validators identify errors.
Ross wrote:
This is the head of my doc. It is supposed to change the page height based
on the selection from the menu. It works in IE and validates ok but it is no
go in firefox. Any
First thing to do is to make your code W3C compliant. Both the html and css
validators identify errors.
Ross wrote:
This is the head of my doc. It is supposed to change the page height based
on the selection from the menu. It works in IE and validates ok but it is no
go in firefox. Any
I'm having terrible response times for connecting to the news server,
getting new headers and downloading messages.
Can take minutes to do one task or times out.
I'm using Outlook Express 6.
Al [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Anyone having problems connecting the
Rick. wrote:
I am new to php and I would like some guidance from those who have a bit more
expereince with PHP
I will be attempting to do a bit of tracking and web analytics. Basically,
the user will login
and from there everything that he clicked will be recorded in a database and
Hi,
I came across this problem and I was wondering if someone might be able
to explain to my why it is happening. I put together a short example to
illustrate the problem that I am having.
Basically I have one class that performs a certain task. I then have a
second class which extends
# [EMAIL PROTECTED] / 2006-12-06 07:22:22 -0800:
Basically I have one class that performs a certain task. I then have a
second class which extends the first class and performs some tasks in
addition to the first class. Even though ClassA should know nothing
about ClassB since ClassA is
Hi Richard,
This is very strange. I can certainly reproduce the problem. Putting a
var_dump($this) in ClassA's save method shows that PHP sees $this as an
instance of ClassB - when it should be of ClassA.
I'm afraid it's stumped me too! Does anyone else have any thoughts?
Edward
Hi,
I came
Edward Kay wrote:
Hi Richard,
This is very strange. I can certainly reproduce the problem. Putting a
var_dump($this) in ClassA's save method shows that PHP sees $this as an
instance of ClassB - when it should be of ClassA.
what *you* think it should be and what php's developers decided it
-Original Message-
From: Richard Morris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 10:22 AM
To: php-general@lists.php.net
Subject: [PHP] PHP5 Inheritance/method override problem
Hi,
I came across this problem and I was wondering if someone might be able
to
Hello
I have been asked to do a compiler from PHP5 to C code using Lex and Yacc
I don't think i can find it already done and open source, but if i could get
the PHP grammar (in Lex/Yacc would be awesome) it would be a great help for
me, as the one i begin to write is full of conflicts.
Does
Hi Richard,
This is very strange. I can certainly reproduce the problem. Putting a
var_dump($this) in ClassA's save method shows that PHP sees $this as an
instance of ClassB - when it should be of ClassA.
what *you* think it should be and what php's developers decided
it should be
http://phpcompiler.org/
- Original Message -
From: yo plop [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Wednesday, December 06, 2006 5:59 PM
Subject: [PHP] PHP Grammar
Hello
I have been asked to do a compiler from PHP5 to C code using Lex and Yacc
I don't think i can find
I´m using outtlook express 6 as well and i´m facing the same trouble.
Chris [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
I'm having terrible response times for connecting to the news server,
getting new headers and downloading messages.
Can take minutes to do one task or
Edward Kay wrote:
Hi Richard,
This is very strange. I can certainly reproduce the problem. Putting a
var_dump($this) in ClassA's save method shows that PHP sees $this as an
instance of ClassB - when it should be of ClassA.
what *you* think it should be and what php's developers decided
it
The Problem:
If I edit a php file with Microsoft Notepad and save with UTF-8 encoding
there is a problem with headers.
example:
?php
header(Content-type: text/xml);
echo somexml/;
?
PHP tells me, that the header is already set, because of the (invisible)
BOM
Bernhard Zwischenbrugger wrote:.
My Question:
Is PHP UTF-8 ready?
Is there an other reason to stick on iso-8859-1 or ascii beside the BOM?
Is it a PHP bug, or is it a bug of the editor software?
My opinion is that it is basically a code problem. You have data before
the ?php (the
Hi,
I've been happily using the Free PHP Accelerator for years now, and I
recently updated to php 4.4, and I get the following error :
the ionCube PHP Accelerator requires Zend Engine API version 20021010.
The Zend Engine API version 20050606 which is installed, is newer.
Contact Nick
On Wed, 2006-12-06 at 11:30 -0800, Tim Traver wrote:
Hi,
I've been happily using the Free PHP Accelerator for years now, and I
recently updated to php 4.4, and I get the following error :
the ionCube PHP Accelerator requires Zend Engine API version 20021010.
The Zend Engine API version
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number);
if ( $number1 ) { $number=1; }
But I'm sure that there is a better way. What would that be?
Dotan Cohen
On 06/12/06, Melanie Maddix [EMAIL PROTECTED] wrote:
[snip]
How can I ensure that a variable contains a postive integer number?
[/snip]
Hi Dotan,
Check the php manual for is_int() and is_numeric().
Thanks, Melanie. I completely forget- I already knew about those
functions! That's what
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number);
if ( $number1 ) { $number=1; }
But I'm sure that there is a better way. What would that be?
this will check that $input is a positive
I think that will only check for a digit value of some kind. It's not
going to check that $input is positive or if it is an integer. For
instance, it could be a negative float value as long as $input is
interpreted as a float and not a string. The period would throw it off
it it's a string. I'd
On Wed, 06 Dec 2006 10:49:52 +, Colin Guthrie wrote:
Al wrote:
Anyone having problems connecting the last few days? Or, is there
something wrong on my end. Al other sites are working just fine.
Newsgroup? I presume you are using Gmane (as I am).
I can't determine by the OP's headers how
On 06/12/06, Ray Hauge [EMAIL PROTECTED] wrote:
I think that will only check for a digit value of some kind. It's not
going to check that $input is positive or if it is an integer. For
instance, it could be a negative float value as long as $input is
interpreted as a float and not a string.
Except the check for \n and \r? I mean any class that you think is good
doing this? Is PHP Mailer doing any check of its variables?
/Peter
-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 11:10 PM
To: php-general@lists.php.net
Subject:
Hi,
I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().
The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:
./configure --with-mysql
On 12/6/06, Peter Lauri [EMAIL PROTECTED] wrote:
Hi,
Are there any general protection methods to minimize the risk of robots
using your mailing forms as spam senders?
Yes, validate and escape data properly, the most important thing you
want to protect is anything that goes into the
http://checkout.google.com -- Google's answer to PayPal.
Best part is, they are taking NO FEES from now through 12/31/2007.
So you can use them to receive credit card payments for just over a
year for FREE.
I've used it, and once account was setup, I was paid within 2-3 days.
Best part is,
Beauford wrote:
Hi,
I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().
The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:
./configure
On 12/6/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I will be out of the office until Monday 11th December. If you have any urgent
enquiries, please direct them to Craig Mead on 1300 651 593 or [EMAIL PROTECTED]
how stupid people are, i hope mr fielding never needs help from me
cause he
On 07/12/06, Curt Zirzow [EMAIL PROTECTED] wrote:
On 12/6/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I will be out of the office until Monday 11th December. If you have any
urgent enquiries, please direct them to Craig Mead on 1300 651 593 or [EMAIL
PROTECTED]
how stupid people are, i
Al wrote:
Anyone having problems connecting the last few days? Or, is there something
wrong on my end. All other sites are working just fine.
Thanks.
Same here. The group has become nearly unusable. I've been ignoring it
for days as most of the time I get a timeout - from Thunderbird
Al wrote:
Anyone having problems connecting the last few days? Or, is there something
wrong on my end. All other sites are working just fine.
Thanks.
Same here. The group has become nearly unusable. I've been ignoring it
for days as most of the time I get a timeout - from Thunderbird
and what's the issue/problem with an out of office reply?
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 5:12 PM
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Subject: Re: [PHP] How to not be abused by mail form injectors?
On
bruce wrote:
and what's the issue/problem with an out of office reply?
n*1000 people on this list don't care to recieve it.
basic list etiquette.
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 5:12 PM
To: [EMAIL PROTECTED]
Cc:
I am working on a set of PHP framework so to speak, designed to create
module based community content management based scripts. I just started
updating the authentication handlers, which are all PHP 4 classes, and
reworking a long list of changes. The new version i am coding is near
I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no
idea, and not sure how to find out.
Sort of figured out the MySQL problem, but now I get an error when I run
'make'. This is not a biggie, but the other problem I need to get resolved.
Thanks
-Original Message-
Beauford wrote:
I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no
idea, and not sure how to find out.
Zlib is different to zlib-dev/zlib-devel.
The zlib package only contains the binaries and man pages.
The zlib-devel package contains the header files (zlib.h for
XeRnOuS ThE wrote:
First, if a fatal error is occurring on line 24, why is it executing
line 24 successfully and returning data?
Second, if there’s a fatal error on line 24, why is line 25 still
processed?
Maybe because you're running it twice? Line 41 with the $this-Auth( ...
seems to
If you want to write a new parser, or even just submit a patch to
fix this, you'll probably figure out why you can't use list as a
method name in your class...
Or you'll actually submit a useful patch. :-)
Either way, the problem will be solved, eh?
:-) :-) :-)
On Wed, December 6, 2006 12:22
Mark R. Cervarich wrote:
http://checkout.google.com -- Google's answer to PayPal.
Best part is, they are taking NO FEES from now through 12/31/2007.
So you can use them to receive credit card payments for just over a year
for FREE.
At 2% + $20 per transaction they needed to do something to
61 matches
Mail list logo