[PHP] Reading & Writing XML Documents...

2007-05-14 Thread Anthony J. Maske
Can anyone point me to some good online reference/examples of
reading/writing XML documents?


Thanks,

Anthony



RE: [PHP] Evaluating strings...

2007-04-10 Thread Anthony J. Maske
Got it...  Thanks mucho!




Anthony J. Maske
[EMAIL PROTECTED]
http://home.comcast.net/~ajmaske




-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 9:03 PM
To: Anthony J. Maske
Cc: PHP General
Subject: Re: [PHP] Evaluating strings...

Anthony J. Maske wrote:
> Hey,  Thanks for the quick response on Retrieving parameters...
> 
> This is another that has me stumped...
> 
>   if (trim($Line) = '') {

That should be ==

basically that is trying to set trim($line) to be equal to '' 
which won't work (and you get an error message).

== means compare the values.

=== means compare the values AND the types (eg make sure they are both 
integers or strings).

-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Evaluating strings...

2007-04-10 Thread Anthony J. Maske
Hey,  Thanks for the quick response on Retrieving parameters...

This is another that has me stumped...

  if (trim($Line) = '') {

$InBody = true;

  } elseif (trim($Line) = '') {

$InBody = false;

  }

$Line is a line from a html file, I'm trying to parse through it to ignore
everything but the  section.  When I run the above I get the
following...

Fatal error: Can't use function return value in write context in
C:\wwwRoot\anthony.maske\cfr.php on line 43

If I do this...

$Tag = trim($Line);

  if ($Tag = '') {

$InBody = true;

  } elseif ($Tag = '') {

$InBody = false;

  }

Why won't the later work?  What am I missing in the first snip...

Thanks again...!


Anthony

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Retrieving parameters passed from .html...?

2007-04-10 Thread Anthony J. Maske
See... the second I sent this I took a sip of red-bull and my brain cleared
up...  

$topicID = $_GET['showtopic'];

Right?




Anthony J. Maske
[EMAIL PROTECTED]
http://home.comcast.net/~ajmaske



-Original Message-----
From: Anthony J. Maske [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 8:33 PM
To: PHP General
Subject: [PHP] Retrieving parameters passed from .html...?

Hey all,

My first post here..., new to php and so far doing great picking it up...
but, tonight I'm having a brain fart... 

How do you pick up (read) the parameters passed into a php script from an
html file?

Given...  http://somewhere/dosomething.php?showtopic=9

How do you read or get the value showtopic and the value of 9?

I know this is simple but I'm pulling my hair out here...


Thanks!



Anthony 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Retrieving parameters passed from .html...?

2007-04-10 Thread Anthony J. Maske
Hey all,

My first post here..., new to php and so far doing great picking it up...
but, tonight I'm having a brain fart... 

How do you pick up (read) the parameters passed into a php script from an
html file?

Given...  http://somewhere/dosomething.php?showtopic=9

How do you read or get the value showtopic and the value of 9?

I know this is simple but I'm pulling my hair out here...


Thanks!



Anthony 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php