RE: [PHP] mail() silly question

2007-09-01 Thread Brian Seymour
As a general rule, use ' ' for literal strings and " " for strings you want escaped characters and such to take effect. Example: echo 'foo\nbar' will echo foo\nbar where as echo "foo\nbar" will echo foo bar Hope this helped. Brian Seymour Zend Certified Engineer AeroCoreProductions http://www.ae

Re: [PHP] Pragmatically changing a "Record Number"

2007-09-01 Thread Bill Guion
I don't think you really want to do that, either. You don't need a field in the database to accomplish what you are trying to do. Execute your query to select the records you want, sorting them into what ever order you want. When you display the records on your web page, add a PHP variable, say

[PHP] Opensource CPanel

2007-09-01 Thread John Taylor-Johnston
Does anyone recommend a decent server panel, one like cpanel? Something made from PHP preferably? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about making modules

2007-09-01 Thread Robert Degen
Maybe you should deal with some things like * Plugin-Architecture * Extension Points * States !? A look at wikipedia might give most information you need. Regards rob On Sa, Sep 01, 2007 at 11:23:31 +0200, Mark wrote: > Hey, > > i've been trying alot to make php modules (php based.. not r

[PHP] question about making modules

2007-09-01 Thread Mark
Hey, i've been trying alot to make php modules (php based.. not real modules for php in c) but i can't get it working. Here is a sample file: "; } } class test_moduletest extends moduletest { function text() { return "test_moduletest"; }

Re: [PHP] Re: php-tidy

2007-09-01 Thread OOzy Pal
On 9/1/07, Jens Kleikamp <[EMAIL PROTECTED]> wrote: > OOzy Pal schrieb: > > On 9/1/07, Jens Kleikamp <[EMAIL PROTECTED]> wrote: > > > >> OOzy Pal schrieb: > >> > >>> I have php4 running on Ubuntu Feisty. I can see php5-tidy in the > >>> Synaptic (Package Manager) but can not see php4-tidy or php-ti

Re: [PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]

2007-09-01 Thread Richard Heyes
Robert Degen wrote: Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? There is a hosts file, but no resolv.conf or equivalent AFAIK. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and

[PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]

2007-09-01 Thread Robert Degen
>> Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? I remember a "host(s)" ... file somewhere below system32\etc\... but is there any resolv.conf ? I got no win machine here with me, so I can't look it up :-) > Faster for static

Re: [PHP] what is my dns ip address

2007-09-01 Thread Richard Heyes
Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online

Re: [PHP] what is my dns ip address

2007-09-01 Thread Per Jessen
Richard Heyes wrote: > Olav Mørkrid wrote: >> is there a function in php that will return the ip address of the dns >> server on the system? >> >> eg. >> >> $dns_ip = get_dns_ip_address(); > > > Don't know of a specific command that returns them, but you could > parse the output of nslookup an

[PHP] Re: php-tidy

2007-09-01 Thread Jens Kleikamp
OOzy Pal schrieb: > I have php4 running on Ubuntu Feisty. I can see php5-tidy in the > Synaptic (Package Manager) but can not see php4-tidy or php-tidy. How > can I install php4-tidy for php4? > On linux: - download the source - untar and go to directory - /path/to/phpize - ./configure ( maybe

[PHP] php-tidy

2007-09-01 Thread OOzy Pal
I have php4 running on Ubuntu Feisty. I can see php5-tidy in the Synaptic (Package Manager) but can not see php4-tidy or php-tidy. How can I install php4-tidy for php4? -- OOzy Ubuntu-Feisty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is my dns ip address

2007-09-01 Thread Richard Heyes
Olav Mørkrid wrote: is there a function in php that will return the ip address of the dns server on the system? eg. $dns_ip = get_dns_ip_address(); Don't know of a specific command that returns them, but you could parse the output of nslookup and cache the results. -- Richard Heyes +44 (0

[PHP] what is my dns ip address

2007-09-01 Thread Olav Mørkrid
is there a function in php that will return the ip address of the dns server on the system? eg. $dns_ip = get_dns_ip_address(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best Practices for calling 'setup' classes that extend 'parent' classes?

2007-09-01 Thread Graham Anderson
Many thanks :) This was very helpful. On Aug 26, 2007, at 8:27 PM, Richard Lynch wrote: Put all your classes into a single directory structure. Use http://php.net/set_include_path (or php.ini or .htaccess) to provide the FULL PATH to that directory. PHP now knows where to "start" its search

Re: [PHP] strange reference behavior

2007-09-01 Thread Robert Enyedi
Thanks for the clarifications. Regards, Robert Robert Cummings wrote: On Sat, 2007-09-01 at 11:39 +0100, Martin Ellingham wrote: Robert Enyedi wrote: Hi, I've been studying the PHP reference mechanism (with PHP 5.2.1) and I'm unsure if the following behavior is normal. This code works as

RE: [PHP] mail() silly question

2007-09-01 Thread Bastien Koert
no difference bastien > Date: Sat, 1 Sep 2007 08:00:11 -0500> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: [PHP] mail() silly question>> I have a question that might be too silly for those of you who are PHP> gurus.>> Here it c

Re: [PHP] strange reference behavior

2007-09-01 Thread Robert Cummings
On Sat, 2007-09-01 at 11:39 +0100, Martin Ellingham wrote: > Robert Enyedi wrote: > > Hi, > > > > I've been studying the PHP reference mechanism (with PHP 5.2.1) and > > I'm unsure if the following behavior is normal. > > > > This code works as expected: > > > > $a = 2; > > $b = &$a; > >

Re: [PHP] strange reference behavior

2007-09-01 Thread Robert Cummings
On Sat, 2007-09-01 at 13:06 +0300, Robert Enyedi wrote: > Hi, > > I've been studying the PHP reference mechanism (with PHP 5.2.1) and I'm > unsure if the following behavior is normal. > > This code works as expected: > > $a = 2; > $b = &$a; > //$c = &$a; > $c = $b; >

Re: [PHP] Re: Which CAPTCHA is the besta?

2007-09-01 Thread Ronald Wiplinger
Hamza Saglam wrote: Not a script you can install/hack but why don't you have a look at: http://recaptcha.net/ ? I am going to try that one. It sounds good and gives me a feeling to do something good to the community as well. Which version have you tried? Java or PHP? How to set-up PHP?

Re: [PHP] mail() silly question

2007-09-01 Thread chris smith
On 9/1/07, Rodrigo Poblanno Balp <[EMAIL PROTECTED]> wrote: > I have a question that might be too silly for those of you who are PHP > gurus. > > Here it comes: > > I had a mail (specifically in the headers) function call like this: > > $header = ""; > $header .= 'From: [EMAIL PROTECTED]"; > $heade

Re: [PHP] mail() silly question

2007-09-01 Thread Ludovic André
Hi, Question: Why? What's the real difference between $header .= 'From: [EMAIL PROTECTED]' . "\r\n"; and $header .= 'From: [EMAIL PROTECTED]"; Your second declaration is incorrect: you start with a single quote ('), and you end with a double ("). So, you'd say "ok, let's fix it": $head

[PHP] mail() silly question

2007-09-01 Thread Rodrigo Poblanno Balp
I have a question that might be too silly for those of you who are PHP gurus. Here it comes: I had a mail (specifically in the headers) function call like this: $header = ""; $header .= 'From: [EMAIL PROTECTED]"; $header .= 'MIME-Version: 1.0\r\n"; $header .= 'Content-type: text/html; charset=

Re: [PHP] strange reference behavior

2007-09-01 Thread Martin Ellingham
Robert Enyedi wrote: Hi, I've been studying the PHP reference mechanism (with PHP 5.2.1) and I'm unsure if the following behavior is normal. This code works as expected: $a = 2; $b = &$a; //$c = &$a; $c = $b; $a = 1; echo $c."\n"; // Prints "2" as expected but this

[PHP] strange reference behavior

2007-09-01 Thread Robert Enyedi
Hi, I've been studying the PHP reference mechanism (with PHP 5.2.1) and I'm unsure if the following behavior is normal. This code works as expected: $a = 2; $b = &$a; //$c = &$a; $c = $b; $a = 1; echo $c."\n"; // Prints "2" as expected but thi

Re: [PHP] regular expression question

2007-09-01 Thread Richard Heyes
But how? The +[a-z]{2,} seems to allow at least two a-z clusters, but it doesn't include a period. /ml Almost correct. The plus belongs to whatever comes before it, not after. So what you're referring to as matching two or more characters but not the period, is this: [a-z]{2,} And this will

Re: [PHP] Is a small memory footprint better for a php script?

2007-09-01 Thread Per Jessen
Mark wrote: > Hey, > > I'm wondering something about memory usage. > I just looked at how much memory the newest phpbb is using and that's > over 2 mega bytes!! > > Now i'm working on a php script that is currently using around 600 > kilo bytes. > > The question now is: what is better? a script

Fwd: [PHP] How to show proper time to users from around the world

2007-09-01 Thread Hemanth
what is the time shown by gmail with every mail ?