Re: [PHP] PHP Newbie List

2008-02-26 Thread Greg Donald
On 2/26/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > Speak for yourself. My code is always 100% spotless, efficient, > and runs the first time, completely bug-free, every single time, as it > has for years. Well, in Ruby on Rails, it has this.. nevermind. -- Greg Donald http://destine

Re: [PHP] PHP Newbie List

2008-02-26 Thread tedd
At 12:11 PM -0800 2/26/08, revDAVE wrote: Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? -- Thanks - RevDave Welcome. We're used to bugs. Besides, we're all beginners in something. So, ask away -- we'll be more than happy to

Re: [PHP] PHP Newbie List

2008-02-26 Thread Jason Pruim
On Feb 26, 2008, at 3:30 PM, Wolf wrote: revDAVE <[EMAIL PROTECTED]> wrote: Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? -- Thanks - RevDave Cool @ hosting4days . com [db-lists] We're glad to help around here, jus

Re: [PHP] PHP Newbie List

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 3:30 PM, Wolf <[EMAIL PROTECTED]> wrote: > Sometimes that extra set of eyes helps to find the dangling or missing ';' > better then staring at the code for hours... (I think we've all been here at > some point). Speak for yourself. My code is always 100% spotless,

Re: [PHP] PHP Newbie List

2008-02-26 Thread Wolf
revDAVE <[EMAIL PROTECTED]> wrote: > Rather than bug folks on this cool list for beginner questions - does anyone > know of a good PHP Newbie email List? > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists] We're glad to help around here, just realize that none of us are goin

Re: [PHP] PHP Newbie List

2008-02-26 Thread Jason Pruim
On Feb 26, 2008, at 3:11 PM, revDAVE wrote: Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? Hi revDAVE, I know of no better resource for PHP related help then this lists... I have learned everything I have from these peo

Re: [PHP] PHP Newbie List

2008-02-26 Thread Greg Donald
On 2/26/08, revDAVE <[EMAIL PROTECTED]> wrote: > Rather than bug folks on this cool list for beginner questions - does anyone > know of a good PHP Newbie email List? The newbie list idea was shot down multiple times over the years. Ask here. -- Greg Donald http://destiney.com/ -- PHP Genera

Re: [PHP] PHP Newbie List

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 3:11 PM, revDAVE <[EMAIL PROTECTED]> wrote: > Rather than bug folks on this cool list for beginner questions - does anyone > know of a good PHP Newbie email List? php-general@lists.php.net You're in the right place. ;-) There are forums elsewhere around the

[PHP] PHP Newbie List

2008-02-26 Thread revDAVE
Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? -- Thanks - RevDave Cool @ hosting4days . com [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP newbie question on xslt

2007-03-26 Thread Miguel J. Jiménez
Timothy Murphy escribió: I've been trying some of the programs in the PHP manual at in chapters CLXXXI and CLXXXII to work, for example // Example 2519. Creating an XSLTProcessor load($xsl_filename); $xsl->importStyleSheet($doc); $doc

[PHP] PHP newbie question on xslt

2007-03-26 Thread Timothy Murphy
I've been trying some of the programs in the PHP manual at in chapters CLXXXI and CLXXXII to work, for example // Example 2519. Creating an XSLTProcessor load($xsl_filename); $xsl->importStyleSheet($doc); $doc->load($xml_filename); echo

Re: [PHP] php newbie having trouble going to list page

2006-04-08 Thread Richard Lynch
On Sat, April 8, 2006 10:12 am, David Doonan wrote: > I'm having trouble getting the correct results on a list page. > > The first query is pulling the name of active authors from the d/b > and linking to a list page that is supposed to return essay titles by > the requested author. The list page h

Re: [PHP] php newbie having trouble going to list page

2006-04-08 Thread David Tulloh
David Doonan wrote: > I'm having trouble getting the correct results on a list page. > > The first query is pulling the name of active authors from the d/b and > linking to a list page that is supposed to return essay titles by the > requested author. The list page however is displaying essay t

Re: [PHP] php newbie having trouble going to list page

2006-04-08 Thread chris smith
On 4/9/06, David Doonan <[EMAIL PROTECTED]> wrote: > I'm having trouble getting the correct results on a list page. > > The first query is pulling the name of active authors from the d/b > and linking to a list page that is supposed to return essay titles by > the requested author. The list page ho

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread David Doonan
On Apr 8, 2006, at 12:55 PM, John Hicks wrote: $recordID = $_GET['recordID']; Note that your request URL has a value for 'ID' whereas your program is looking for a value for 'recordID'. Changed above to: $recordID = $_GET['ID']; And all was right with the world. Thanks John! david -- P

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread John Hicks
David Doonan wrote: On Apr 8, 2006, at 11:24 AM, John Hicks wrote: So your solution is this: Include a PHP variable in your SQL query to specify which author you want to select. You probably want something like this: WHERE Author.Author_Name = Writings.Author_Name AND Author.ID = '$MySelecte

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread David Doonan
On Apr 8, 2006, at 11:24 AM, John Hicks wrote: So your solution is this: Include a PHP variable in your SQL query to specify which author you want to select. You probably want something like this: WHERE Author.Author_Name = Writings.Author_Name AND Author.ID = '$MySelectedAuthorID' (but reme

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread John Hicks
David Doonan wrote: I'm having trouble getting the correct results on a display page. The first query is pulling the name of active authors from the d/b and sending a request to only return essay titles by the requested author. The list page however is displaying essay titles by all authors.

[PHP] php newbie having trouble going to list page

2006-04-08 Thread David Doonan
I'm having trouble getting the correct results on a list page. The first query is pulling the name of active authors from the d/b and linking to a list page that is supposed to return essay titles by the requested author. The list page however is displaying essay titles by all authors. No

[PHP] php newbie having trouble going to detail page

2006-04-08 Thread David Doonan
I'm having trouble getting the correct results on a display page. The first query is pulling the name of active authors from the d/b and sending a request to only return essay titles by the requested author. The list page however is displaying essay titles by all authors. No doubt something

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Jason Barnett
PHP5: http://php.net/manual/en/ref.dom.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php newbie question with xml files

2005-05-04 Thread disguised.jedi
> I have an xml document storing some data I need. What I want to do is this: > 1. Scan to the end of the file. > 2. Find the closing tag. > 3. Insert a new entry in before the closing tag. There are specific classes and functions in the PHP core that can help you do just this. > I've tried: > 1.

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message ----- From: "Jared Sherman&

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message ----- From: "Jared Sherman&

[PHP] php newbie question with xml files

2005-05-02 Thread Jared Sherman
I have an xml document storing some data I need. What I want to do is this: 1. Scan to the end of the file. 2. Find the closing tag. 3. Insert a new entry in before the closing tag. I've tried: 1. Creating new files and renaming them to be the original. 2. Writing the file to a dummy file and inse

[PHP] PHP Newbie needs a little help 1-on-1

2004-06-01 Thread Mike
Ok, I'm a pretty fast learn but syntax and basic lack of serious programming background hinder my efforts. I can make Javascript do what I want it to and usually perl also but I'm in over my head with my PHP project and I'm on a deadline. Objective: To create a set of forms that 1) input data

Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread John Nichel
PETCOL wrote: PHP Newbie, I'm trying to find out if a username already appears in my database. I have two users in my table, one is colin so when I enter a username of colin I would normally under ColdFusion anyway just to something like: User already exists do something else, like throw the use

Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread Ryan A
Hi, Do a select query with a COUNT() in it if you dont understand that read the php manual for accessing the database and lookup the mysql COUNT -Ryan On 2/16/2004 1:35:42 AM, PETCOL ([EMAIL PROTECTED]) wrote: > PHP Newbie, > > I'm trying to find out if a username already appears in my datab

[PHP] PHP Newbie Database Records?

2004-02-15 Thread PETCOL
PHP Newbie, I'm trying to find out if a username already appears in my database. I have two users in my table, one is colin so when I enter a username of colin I would normally under ColdFusion anyway just to something like: User already exists do something else, like throw the user back an erro

RE: [PHP] php NEWBIE Question

2003-08-24 Thread Dennis Dujan - Partycult.de
Ok thank you very much -Ursprungliche Nachricht- Von: Chris Kay [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. August 2003 01:37 An: 'Dennis Dujan - Partycult.de' Betreff: RE: [PHP] php NEWBIE Question Try http://au.php.net/manual/en/function.fsockopen.php If your loo

AW: [PHP] php NEWBIE Question

2003-08-24 Thread Dennis Dujan - Partycult.de
ennis -Ursprungliche Nachricht- Von: Curt Zirzow [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. August 2003 01:22 An: [EMAIL PROTECTED] Betreff: Re: [PHP] php NEWBIE Question * Thus wrote Dennis Dujan - Partycult.de ([EMAIL PROTECTED]): > Hi, > can you tell me how is it possible to c

Re: [PHP] php NEWBIE Question

2003-08-24 Thread Curt Zirzow
* Thus wrote Dennis Dujan - Partycult.de ([EMAIL PROTECTED]): > Hi, > can you tell me how is it possible to connect to a linux shell via PHP? Ok, i suppose I should reply to this before you ask the same question with less details, again. Please be a little more specific in your question, like wha

[PHP] php NEWBIE Question

2003-08-24 Thread Dennis Dujan - Partycult.de
Hi, can you tell me how is it possible to connect to a linux shell via PHP? Greetz Dennis

[PHP] PHP Newbie needs assistance to highlight a specific item in a frame window

2003-08-14 Thread Mary D. Taffet
While I am technically capable, having worked with COBOL and perl extensively (but not at the same time !), I am a newbie to PHP. I have the basics for a survey application up and running, but need to be able to highlight one specific piece of text in each of the two main frame windows, and I'm no

Re: [PHP] PHP newbie ... function with several returns ?

2003-03-15 Thread Tom Rogers
Hi, Sunday, March 16, 2003, 10:52:49 AM, you wrote: RD> Hi ... PHP newbie here. RD> I'm migrating from ASP/vbScript. RD> I'd like to set up a subroutine that will change several variables at once. RD> In VB, I can say: RD> Private Sub Change_Variables ($variable1, $variable2) RD> $variable

[PHP] PHP newbie ... function with several returns ?

2003-03-15 Thread Robert Dyke
Hi ... PHP newbie here. I'm migrating from ASP/vbScript. I'd like to set up a subroutine that will change several variables at once. In VB, I can say: Private Sub Change_Variables ($variable1, $variable2) $variable1 = "Something different from it's original value" $variable2 = "I'm chan

Re: [PHP] PHP Newbie question

2002-11-18 Thread Maxim Maletsky
Steps: 1. Install PHP. Already installed? 2. make a file accessible via browser and call it test.php 3. put this into it: "; phpinfo(); ?> 4. Now, access that file. If you see "Hello World" outputted followed by a long blue-gray table with lots of server data -

Re: [PHP] PHP Newbie question

2002-11-18 Thread Stolen
http://www.php.net/manual/en/tutorial.php Bryan Cassidy wrote: This might sound stupid but what the hell. I am running Red Hat 8.0 with Apache. I have apache working fine right now. I am wanting to learn some php but really don't know where to start/look or anything to tell the truth. I do "eve

[PHP] PHP Newbie question

2002-11-18 Thread Bryan Cassidy
This might sound stupid but what the hell. I am running Red Hat 8.0 with Apache. I have apache working fine right now. I am wanting to learn some php but really don't know where to start/look or anything to tell the truth. I do "everything" from my FreeBSD 4.6.2 box but Apache runs on Red Hat. With

[PHP] php newbie question

2002-05-31 Thread Taylor Lewick
I am having a hard time getting apache to load the php4 module. Can I still use PHP for my web stuff...? Thanks Taylor Lewick Unix System Administrator Fortis Benefits 816 881 6073 "Help Wanted. Seeking Telepath..." "You Know where to apply."

RE: [PHP] php newbie

2002-01-02 Thread Niklas Lampén
Yep, but you can't do much without testing your scripts. Niklas -Original Message- From: Martin Schichl [mailto:[EMAIL PROTECTED]] Sent: 2. tammikuuta 2002 13:37 To: [EMAIL PROTECTED]; Php-General Subject: RE: [PHP] php newbie To design, you just need a text editor (or html e

RE: [PHP] php newbie

2002-01-02 Thread Martin Schichl
as > > > >-Original Message- >From: Fady Fouad Shehata [mailto:[EMAIL PROTECTED]] >Sent: 31. joulukuuta 2001 4:34 >To: [EMAIL PROTECTED] >Subject: [PHP] php newbie > > >hi i am new in php ,i just wanted to ask before i begin learning php >,well can i desig

RE: [PHP] php newbie

2002-01-02 Thread Niklas Lampén
ECTED] Subject: [PHP] php newbie hi i am new in php ,i just wanted to ask before i begin learning php ,well can i design php on my personal computer or i need a server to design php ,and the second question is do i need a specific program to design php or i can use my html editor for that -- PHP Ge

[PHP] php newbie

2002-01-02 Thread Fady Fouad Shehata
hi i am new in php ,i just wanted to ask before i begin learning php ,well can i design php on my personal computer or i need a server to design php ,and the second question is do i need a specific program to design php or i can use my html editor for that -- PHP General Mailing List (http://ww

RE: [PHP] PHP newbie alert

2001-12-05 Thread Jonathan Wheat
Sent: Tuesday, December 04, 2001 5:25 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP newbie alert Hello! Being one not to refuse a challenge, I have been asked to administer and update a PHP based website. I was wondering what a good editor is for such a task. I have been having a lo

Re: [PHP] PHP newbie alert

2001-12-04 Thread Richard S. Crawford
HomeSite is up to version 5. I use it primarily for the built-in FTP client, which makes website maintenance very, very easy. At 05:06 PM 12/4/2001, you wrote: >EditPlus2, there might be a newer version, trial never runs out. >HomeSite 4.5, there is a Macromedia version, 60 day trial, very ver

Re: [PHP] PHP newbie alert

2001-12-04 Thread Erik Price
Okay, you brought it up ! ;-) EMACS. If you use Unix, then this is your supersuite. This is your Microsoft Office for plaintext editors. Pros: Easier to learn than vi Many man many many many features Supercustomizeable Integrates tightly with Unix operating system Cons: A little on the bloa

Re: [PHP] PHP newbie alert

2001-12-04 Thread Dan McCullough
EditPlus2, there might be a newer version, trial never runs out. HomeSite 4.5, there is a Macromedia version, 60 day trial, very very worthwhile for a purchase. --- Andrew Forgue <[EMAIL PROTECTED]> wrote: > On Tue, 2001-12-04 at 05:25, shaun murphy wrote: > > Hello! > > > > Being one not to re

Re: [PHP] PHP newbie alert

2001-12-04 Thread Andrew Forgue
On Tue, 2001-12-04 at 05:25, shaun murphy wrote: > Hello! > > Being one not to refuse a challenge, I have been asked to administer and > update a PHP based website. I was wondering what a good editor is for such a > task. I have been having a look at Dreamweaver as I use that quite a lot but > ar

RE: [PHP] PHP newbie alert

2001-12-04 Thread MrBaseball34
> Being one not to refuse a challenge, I have been asked to administer and > update a PHP based website. I was wondering what a good editor is for such a > task. I have been having a look at Dreamweaver as I use that quite a lot but > are there any extensions I should be using? > If you don't wa

RE: [PHP] PHP newbie alert

2001-12-04 Thread Ralph Guzman
I'd suggest Homesite: http://www.macromedia.com/software/homesite/ -Original Message- From: shaun murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 2:25 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP newbie alert Hello! Being one not to refuse a challenge, I have

Re: [PHP] PHP newbie alert

2001-12-04 Thread shaun murphy
t; -- > T. +41 1 253 19 55 > F. +41 1 253 19 56 > W3 www.interaktion.ch > -- > - Original Message - > From: "shaun murphy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, Dec

Re: [PHP] PHP newbie alert

2001-12-04 Thread Stefan Rusterholz
raktion.ch -- - Original Message - From: "shaun murphy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 11:25 AM Subject: [PHP] PHP newbie alert > Hello! > > Being one not to refuse a challenge, I have be

[PHP] PHP newbie alert

2001-12-04 Thread shaun murphy
Hello! Being one not to refuse a challenge, I have been asked to administer and update a PHP based website. I was wondering what a good editor is for such a task. I have been having a look at Dreamweaver as I use that quite a lot but are there any extensions I should be using? -- PHP General

Re: [PHP] php newbie - need advice

2001-11-11 Thread David Robley
On Mon, 12 Nov 2001 15:16, Scott Dudley wrote: > i'm new to php and need some advice. i have a site currently composed > of static pages generated via a c program. i want to convert the site > to php. the first page is an explorer-like table listing summary > information. when a user clicks on

[PHP] php newbie - need advice

2001-11-11 Thread Scott Dudley
i'm new to php and need some advice. i have a site currently composed of static pages generated via a c program. i want to convert the site to php. the first page is an explorer-like table listing summary information. when a user clicks on a row in this table, they're taken to a detail page w

[PHP] php newbie - browser email address

2001-07-24 Thread Scott Dudley
i there a way in php to obtain the email address set in the client's browser? i have no intention of "spamming" those who visit my site but thought it a novel approach to keeping track of hits. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Php Newbie

2001-05-14 Thread Johannes Janson
Hi, > i created a helloworld php file and put it in my > inetpub/wwwroot/php folder and then tried to display > it in the browser but all i saw was my html code. > Can someone help please?! You'll need to configure IIS to parse your PHP files. Use the instruction below. If you wonder which one t

[PHP] Php Newbie

2001-05-14 Thread Heidi Belal
Hi all, I'm trying to learn/use php to develope website. I have downloaded the installable version from php.net and installed it. I'm using win2k and iis web server. And now i have a folder c:/php with the stuff it installed. How do i check that this installation works? i created a helloworld

Re: [PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread Brian Clark
Hi John, @ 2:01:49 PM on 2/7/2001, [EMAIL PROTECTED] wrote: > Please bear with me for a moment. I am new to PHP work, but have > over 10 years experience in various other programming languages > including C/C++ > I'm just getting really frustrated here, and i'm hoping its a simple > mistake. W

RE: [PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread James Moore
[snip] > for ($index = 0; $index < sizeof($books); $index++) > { > $book_data_file = fopen("$thisdir/$books[$index]/book_info.dat", "r"); > echo "Opened $thisdir/$books[$index]/book_info.dat"; > $book_data_in = fread($book_data_file, filesize($book_data_file));

[PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread John Vanderbeck
Hello all, Please bear with me for a moment. I am new to PHP work, but have over 10 years experience in various other programming languages including C/C++ I'm just getting really frustrated here, and i'm hoping its a simple mistake. What I am running into is that ever file I open and read fro

RE: [PHP] PHP newbie question

2001-01-11 Thread Ignacio Vazquez-Abrams
On Thu, 11 Jan 2001, Neil Zanella wrote: > > You are right. According to the PHP manual there is no boolean type > as none is listed in chapter 2.6 but there are variables called TRUE and > FALSE which evaluate to a true value and a false value respectively as > indicated in chapter 2.8. Thanks f

RE: [PHP] PHP newbie question

2001-01-11 Thread Neil Zanella
You are right. According to the PHP manual there is no boolean type as none is listed in chapter 2.6 but there are variables called TRUE and FALSE which evaluate to a true value and a false value respectively as indicated in chapter 2.8. Thanks for quoting from chapter 9. I should be paying more

RE: [PHP] PHP newbie question

2001-01-11 Thread Bryne Jørg Vidar
ion... hence $a is evaluated to "", or 0 if compared to numbers, false if compared to boolean. -Jørg -Original Message- From: Neil Zanella [mailto:[EMAIL PROTECTED]] Sent: 10. januar 2001 19:33 To: Toby Butzon Cc: PHP General Mailing List Subject: Re: [PHP] PHP newbie

Re: [PHP] PHP newbie question

2001-01-10 Thread Hsieh, Wen-Yang
- Original Message - From: "Neil Zanella" <[EMAIL PROTECTED]> To: "Hsieh, Wen-Yang" <[EMAIL PROTECTED]> Cc: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 1:11 PM Subject: Re: [PHP] PHP newbie question

Re: [PHP] PHP newbie question

2001-01-10 Thread Neil Zanella
On Wed, 10 Jan 2001, Hsieh, Wen-Yang wrote: > "" is false. The following three seem to be the same in PHP3: 1) false 2) "" 3) 0 I guess that "" is automatically cast to 0 or to false wherever an integer is required. Where can I find the exact casting rules in PHP3/4 ? Thanks, Neil -- PHP

Re: [PHP] PHP newbie question

2001-01-10 Thread Hsieh, Wen-Yang
- Original Message - From: "Neil Zanella" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 11:58 AM Subject: Re: [PHP] PHP newbie question > > > > "" is false. &

Re: [PHP] PHP newbie question

2001-01-10 Thread Neil Zanella
Thanks and sorry about the confusion... true == 1 and false == 0. To summarize this discussion: 1) Unset variables evaluate to the empty string: outputs the string "something" outputs the string "something" Note that $a == $b evaluates to true even though $a is not set b

Re: [PHP] PHP newbie question

2001-01-10 Thread Joe Stump
This is my weekly flamebait on the subject of unset variables and checking against those. isset() fails on form elements (ie a text box that is left empty) therefore the variable will be set, but it will be set to '' - to check thoroughly you would have to do if(isset($var) && !empty($var)) or,

Re[2]: [PHP] PHP newbie question

2001-01-10 Thread David Tod Sigafoos
Hello Neil, Wednesday, January 10, 2001, 10:33:09 AM, you wrote: >> : >> >> $a evaluates to false, the ! reverses it, and it prints "Hello, World!" NZ> What is bothering me is the following: if variables that are not assigned NZ> a value were to evaluate to false then since false is the same

Re: [PHP] PHP newbie question

2001-01-10 Thread Dave M.
AIL PROTECTED]> To: "Toby Butzon" <[EMAIL PROTECTED]> Cc: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 10:33 AM Subject: Re: [PHP] PHP newbie question > > On Wed, 10 Jan 2001, Toby Butzon wrote: > > > : > >

Re: [PHP] PHP newbie question

2001-01-10 Thread Cynic
since when is false equal to one? in PHP, false is represented by string(0) "", and true by 1. so, you really want At 19:33 10.1. 2001, Neil Zanella wrote the following: -- >On Wed, 10 Jan 2001, Toby Butzon wrote: > >> : >> >> $a

Re: [PHP] PHP newbie question

2001-01-10 Thread Neil Zanella
On Wed, 10 Jan 2001, Toby Butzon wrote: > : > > $a evaluates to false, the ! reverses it, and it prints "Hello, World!" What is bothering me is the following: if variables that are not assigned a value were to evaluate to false then since false is the same as the number 1 the following PHP sc

Re: [PHP] PHP newbie question

2001-01-10 Thread Toby Butzon
- Original Message - From: "Neil Zanella" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, January 09, 2001 11:55 PM Subject: [PHP] PHP newbie question : : Hello, : : I have a question regarding the following 3 one

[PHP] PHP newbie question

2001-01-09 Thread Neil Zanella
Hello, I have a question regarding the following 3 one line .php files: The first script prints the famous words correctly but what baffles me is the second script which should be the same as the third script since $a is not set and hence should evaluate to nothing, but PHP 3.0.15 is eval