[PHP] A dumb question regarding sending email

2008-08-12 Thread tedd
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

Re: [PHP] A dumb question regarding sending email

2008-08-12 Thread Chris
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

RE: [PHP] Classes - Dumb question

2007-10-15 Thread Jay Blanchard
[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

Re: [PHP] Classes - Dumb question

2007-10-15 Thread Nathan Nobbe
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.

RE: [PHP] Classes - Dumb question

2007-10-15 Thread tedd
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

Re: [PHP] Classes - Dumb question

2007-10-15 Thread Nathan Nobbe
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

Re: [PHP] Classes - Dumb question

2007-10-15 Thread Larry Garfield
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

Re: [PHP] Classes - Dumb question

2007-10-15 Thread Nathan Nobbe
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.

Re: [PHP] Classes - Dumb question

2007-10-13 Thread Christian Hänsel
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

Re: [PHP] Classes - Dumb question

2007-10-12 Thread Nathan Nobbe
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

Re: [PHP] Classes - Dumb question

2007-10-12 Thread Stut
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; ..

Re: [PHP] Classes - Dumb question

2007-10-12 Thread Nathan Nobbe
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

RE: [PHP] Classes - Dumb question

2007-10-12 Thread Jay Blanchard
[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

RE: [PHP] Classes - Dumb question

2007-10-12 Thread Jay Blanchard
[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

RE: [PHP] Classes - Dumb question

2007-10-12 Thread tedd
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

Re: [PHP] Classes - Dumb question

2007-10-12 Thread tedd
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 =

RE: [PHP] Classes - Dumb question

2007-10-12 Thread tedd
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

[PHP] Classes - Dumb question

2007-10-11 Thread Christian Hänsel
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

RE: [PHP] Classes - Dumb question

2007-10-11 Thread Jay Blanchard
[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

RE: [PHP] Classes - Dumb question

2007-10-11 Thread Robert Cummings
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

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Jason Pruim
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

RE: [PHP] Classes - Dumb question

2007-10-11 Thread Jay Blanchard
[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

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Larry Garfield
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

[PHP] A dumb question - Regarding a php cms

2005-09-17 Thread Troy Pieterman
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,

Re: [PHP] A dumb question - Regarding a php cms

2005-09-17 Thread Jose Miguel
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

Re: [PHP] A dumb question - Regarding a php cms

2005-09-17 Thread Dragan Stanojevic - Nevidljivi
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

Re: [PHP] A dumb question

2004-02-12 Thread David T-G
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

RE: [PHP] A dumb question

2004-02-12 Thread Alex Hogan
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

Re: [PHP] A dumb question

2004-02-12 Thread John Nichel
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

Re: [PHP] A dumb question

2004-02-12 Thread Jeremy Schroeder
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.

[PHP] A dumb question

2004-02-11 Thread Jeremy Schroeder
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

RE: [PHP] A dumb question

2004-02-11 Thread Chris W. Parker
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. :)

RE: [PHP] A dumb question

2004-02-11 Thread Chris W. Parker
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:

Re: [PHP] A dumb question

2004-02-11 Thread Paul Furman
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

[PHP] Re: DUMB QUESTION I'M SURE

2003-01-02 Thread Fernando Serboncini
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... ?

[PHP] Re: Dumb question

2002-08-21 Thread David Robley
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

[PHP] very dumb question, need help

2001-04-02 Thread Jacky
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

Re: [PHP] very dumb question, need help

2001-04-02 Thread Hardy Merrill
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