php-general Digest 6 Dec 2006 10:48:30 -0000 Issue 4499

2006-12-06 Thread php-general-digest-help
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

[PHP] PHP SQL Builder with JOIN support

2006-12-06 Thread Kris Leech
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

Re: [PHP] utf8 encoding £ to £ probl em

2006-12-06 Thread Colin Guthrie
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

[PHP] Reading and changing XML

2006-12-06 Thread Rosen
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

Re: [PHP] Reading and changing XML

2006-12-06 Thread T . Lensselink
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Colin Guthrie
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:

[PHP] Include problem

2006-12-06 Thread Ashley Hales
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

Re: [PHP] Help with strange include problem in PHP 5.2.0

2006-12-06 Thread Markus Mayer
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

Re: [PHP] Include problem

2006-12-06 Thread Dave Goodchild
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

Re: [PHP] Explicit Stream Flush with fsockopen()

2006-12-06 Thread Oliver John V. Tibi
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. :)

[PHP] PHP analytics

2006-12-06 Thread Rick.
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

Re: [PHP] PHP analytics

2006-12-06 Thread André Medeiros
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

RE: [PHP] PHP analytics

2006-12-06 Thread Edward Kay
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

Re: [PHP] PHP analytics

2006-12-06 Thread André Medeiros
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

Re: [PHP] PHP analytics

2006-12-06 Thread Jochem Maas
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

RE: [PHP] PHP analytics

2006-12-06 Thread Vincent DUPONT
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

Re: [PHP] PHP analytics

2006-12-06 Thread André Medeiros
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Ivo F.A.C. Fokkema
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

Re: [PHP] Sending E-mail

2006-12-06 Thread Ivo F.A.C. Fokkema
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

Re: [PHP] firefox only problem

2006-12-06 Thread Youri LACAN-BARTLEY
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

[PHP] Re: firefox only problem

2006-12-06 Thread Al
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

[PHP] Re: firefox only problem

2006-12-06 Thread Al
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Chris
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

[PHP] Re: PHP analytics

2006-12-06 Thread Colin Guthrie
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

[PHP] PHP5 Inheritance/method override problem

2006-12-06 Thread Richard Morris
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

Re: [PHP] PHP5 Inheritance/method override problem

2006-12-06 Thread Roman Neuhauser
# [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

RE: [PHP] PHP5 Inheritance/method override problem

2006-12-06 Thread Edward Kay
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

Re: [PHP] PHP5 Inheritance/method override problem

2006-12-06 Thread Jochem Maas
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

RE: [PHP] PHP5 Inheritance/method override problem

2006-12-06 Thread Brad Fuller
-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

[PHP] PHP Grammar

2006-12-06 Thread yo plop
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

RE: [PHP] PHP5 Inheritance/method override problem

2006-12-06 Thread Edward Kay
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

Re: [PHP] PHP Grammar

2006-12-06 Thread Satyam
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Jo�o C�ndido de Souza Neto
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

[PHP] Re: PHP5 Inheritance/method override problem

2006-12-06 Thread Richard Morris
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

[PHP] Byte order Mark (BOM, UTF-8, Header)

2006-12-06 Thread Bernhard Zwischenbrugger
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

Re: [PHP] Byte order Mark (BOM, UTF-8, Header)

2006-12-06 Thread Jon Anderson
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

[PHP] PHP Accelerator

2006-12-06 Thread Tim Traver
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

Re: [PHP] PHP Accelerator

2006-12-06 Thread Robert Cummings
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

[PHP] Ensuring that variable contains a number

2006-12-06 Thread Dotan Cohen
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

Re: [PHP] Ensuring that variable contains a number

2006-12-06 Thread 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

RE: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Brad Fuller
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

RE: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Ray Hauge
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Jonesy
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

Re: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Dotan Cohen
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.

RE: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Peter Lauri
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:

[PHP] PHP Installation question

2006-12-06 Thread Beauford
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

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Curt Zirzow
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

[PHP] Re: taking a one off payment

2006-12-06 Thread Mark R. Cervarich
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,

Re: [PHP] PHP Installation question

2006-12-06 Thread Chris
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

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Curt Zirzow
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

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Dotan Cohen
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Chuck Anderson
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

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Chuck Anderson
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

RE: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread bruce
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

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Jochem Maas
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:

[PHP] Fatal error: Call to a member function on a non-object

2006-12-06 Thread XeRnOuS ThE
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

RE: [PHP] PHP Installation question

2006-12-06 Thread Beauford
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-

Re: [PHP] PHP Installation question

2006-12-06 Thread Chris
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

Re: [PHP] Fatal error: Call to a member function on a non-object

2006-12-06 Thread Ryan Creaser
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

[PHP] Re: [PHP-DEV] Making a method called list or other language constructs names.

2006-12-06 Thread Richard Lynch
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

Re: [PHP] Re: taking a one off payment

2006-12-06 Thread Lester Caine
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