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
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
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
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
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";
}
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
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
>> 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
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
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
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
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
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
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
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
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
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
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;
> >
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;
>
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?
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
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
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=
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
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
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
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
what is the time shown by gmail with every mail ?
28 matches
Mail list logo