Hi gang:
I wish I had another identify for asking dumb questions, but it's
late and I'm tried -- so here goes.
I have a herdoc that I send out as an email -- no problems there.
However, how do I include a link within it?
If I use http://example.com, it's just a string but not an actual
tedd wrote:
Hi gang:
I wish I had another identify for asking dumb questions, but it's late
and I'm tried -- so here goes.
I have a herdoc that I send out as an email -- no problems there.
However, how do I include a link within it?
If I use http://example.com, it's just a string but not
[snip]
With a class you can inherit all of the base class functionality
into a new customer type. You do not have to break open the base
class to add a case, you just have to create an extension class.
Documentation is unique to each class.
No matter what, you have to break something open to
On 10/15/07, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
With a class you can inherit all of the base class functionality
into a new customer type. You do not have to break open the base
class to add a case, you just have to create an extension class.
Documentation is unique to each class.
At 5:42 AM -0500 10/15/07, Jay Blanchard wrote:
[snip]
With a class you can inherit all of the base class functionality
into a new customer type. You do not have to break open the base
class to add a case, you just have to create an extension class.
Documentation is unique to each class.
No
On 10/15/07, tedd [EMAIL PROTECTED] wrote:
I understand the class concept. But, I am not familiar with autoload.
Stut also made mention of that, so I shall investigate post haste.
__autoload is pretty tight; but if you dont want to have all your class
files in the same
directory, i suggest
On Monday 15 October 2007, Nathan Nobbe wrote:
On 10/15/07, tedd [EMAIL PROTECTED] wrote:
I understand the class concept. But, I am not familiar with autoload.
Stut also made mention of that, so I shall investigate post haste.
__autoload is pretty tight; but if you dont want to have all
On 10/15/07, Larry Garfield [EMAIL PROTECTED] wrote:
On Monday 15 October 2007, Nathan Nobbe wrote:
On 10/15/07, tedd [EMAIL PROTECTED] wrote:
I understand the class concept. But, I am not familiar with autoload.
Stut also made mention of that, so I shall investigate post haste.
Jay Blanchard [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
[snip]
First of all what you call normal is procedural or functional
programming. There is nothing wrong with doing things this way and may
be
especially quick and efficient when doing basic web sites and
On 10/12/07, Larry Garfield [EMAIL PROTECTED] wrote:
On Thursday 11 October 2007, Jay Blanchard wrote:
[snip]
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal functions
all
tedd wrote:
function customer($whatWas, $customertype, $whatAdditional)
{
/* do what was (i.e., common to all) */
/* then do what's additional unique to type */
switch(1)
{
case $customertype =='Commercial':
commercialCustomer($whatAdditional);
break;
..
On 10/12/07, Jay Blanchard [EMAIL PROTECTED] wrote:
No doubt. (are you by chance continuing the other argument, re:
interfaces?), but you have to break open the original tested function, add
code to it, test it, etc. Every time you add a new case you have to break
open the existing function
[snip]
First of all what you call normal is procedural or functional
programming. There is nothing wrong with doing things this way and may
be
especially quick and efficient when doing basic web sites and
applications.
Document well and you will have no problem maintaining your code.
One
[snip]
Yes, but I could do that procedurally from within the customer
function by simply adding a customer type (needed regardless) and
using a switch to direct and collect the additional data needed.
In either case, I still have to write more code to accommodate
scaling. And, if I have
At 7:36 AM -0500 10/11/07, Jay Blanchard wrote:
[snip]
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal functions all
the time. I have never even bothered working with classes, but now I
At 2:44 PM +0100 10/12/07, Stut wrote:
You can limit the need to add more code like so...
function customer($whatWas, $customertype, $whatAdditional)
{
/* do what was (i.e., common to all) */
/* then do what's additional unique to type */
$func =
At 9:03 AM -0500 10/12/07, Jay Blanchard wrote:
tedd said:
In either case, I still have to write more code to accommodate
scaling. And, if I have more customer types, then it's a simple
matter to add more customer functions and addition case statements to
the initial customer function. I don't
Howdy fellas,
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal functions all
the time. I have never even bothered working with classes, but now I would
love to know what makes the
[snip]
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal functions all
the time. I have never even bothered working with classes, but now I would
love to know what makes the classes so
On Thu, 2007-10-11 at 07:36 -0500, Jay Blanchard wrote:
[snip]
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal functions all
the time. I have never even bothered working with
On Oct 11, 2007, at 8:36 AM, Jay Blanchard wrote:
[snip]
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal
functions all
the time. I have never even bothered working with classes, but
[snip]
Not trying to hijack the thread... Hopefully this is related enough,
if not I apologize. Would a good use of a class be to write a generic
database connection script? and then feed in the different variables,
such as customer login, database, stuff like that?
something like class
On Thursday 11 October 2007, Jay Blanchard wrote:
[snip]
okay, this is really (!) embarassing, but I have to ask:
Why would I want to use classes in PHP?
I have been using PHP for years now and writing the normal functions all
the time. I have never even bothered working with classes, but
Im trying to run Syntax desktop which is a php cms (on my own server
win2003).
In the installation readme it tells me to edit a cfg.php file, i have done
this but the cms still does not load, i have a feeling its becuase it dosnt
know where to load its files from, here is the code that tells it,
Regarding paths, in a Windows enviroment, you should use double slash, like:
c:\\www\\syntax desktop\\
Cheers.
On 18 Sep 2005 09:13:56 +1000, Troy Pieterman [EMAIL PROTECTED]
wrote:
Im trying to run Syntax desktop which is a php cms (on my own server
win2003).
In the installation readme
Troy Pieterman wrote:
Im trying to run Syntax desktop which is a php cms (on my own server
win2003).
In the installation readme it tells me to edit a cfg.php file, i have done
this but the cms still does not load, i have a feeling its becuase it dosnt
know where to load its files from, here
Jeremy --
You have started a new thread by taking an existing message and replying
to it while merely changing the Subject: line.
That is bad, because it breaks threading. Whenever you reply to a
message, your mail client generates a References: header that tells all
recipients to which
HAND?
I haven't seen that one...
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 11:34 AM
To: PHP General list
Cc: Jeremy Schroeder
Subject: Re: [PHP] A dumb question
Jeremy --
You have started a new thread by taking an existing
Alex Hogan wrote:
HAND?
I haven't seen that one...
Have A Nice Day
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry for the mistake.
I check the email I sent and I only sent it to the group, I changed the
subject an removed all the of the message.
Blake
David T-G wrote:
Jeremy --
You have started a new thread by taking an existing message and replying
to it while merely changing the Subject: line.
Hey Group
I am starting to write class and objects and came across some syntax
that I dont understand.
What does the ampersand do in the bottom example code, they both work.
$n1 = $num1 - function();
$n1 = $num1 - function();
-Blake
--
PHP General Mailing List (http://www.php.net/)
To
Jeremy Schroeder mailto:[EMAIL PROTECTED]
on Wednesday, February 11, 2004 11:39 AM said:
What does the ampersand do in the bottom example code, they both work.
$n1 = $num1 - function();
$n1 = $num1 - function();
I think in this it's what's called a reference. Don't know much else. :)
Chris W. Parker
on Wednesday, February 11, 2004 11:45 AM said:
I think in this it's what's called a reference. Don't know much else.
:)
Ok that should be I think this is what's called... had to correct
that.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Chris W. Parker wrote:
Chris W. Parker
on Wednesday, February 11, 2004 11:45 AM said:
I think in this is what's called a reference.
Sounds like that's simply a way of making an alias for a variable:
http://us2.php.net/manual/en/language.references.php
--
PHP General Mailing List
on the line that starts with $query = there's an extra .
the line should be:
$query = SELECT shops.name FROM shops WHERE name = .$name;
[]s
Fernando
Adam French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm just starting out, this is my script...
?
In article 000901c2498b$ce972950$0e00a8c0@luke,
[EMAIL PROTECTED] says...
Hey guys, got a basic question for you...
?
function getvar()
{
$vari = bollocks;
}
getvar();
echo $vari;
?
How do I make that function return the variable?
Thanks,
Liam
Strangely, by using
Hi all
I have been to look at manual about session, in php4, still not quite get it.
Basically if I have sniplet below in one page, how do I assign value into that session
and how do I call it up in next page? I sthe way I assign value into session correct?
( I think it did not, because it did
At the top of every script that will register or use session
variables, I do "session_register" - something like this:
script_1.php
?php
session_start();
session_register("test");
$test = "myname";
?
script_2.php
?php
session_start();
echo "Value
38 matches
Mail list logo