[PHP] PHP outside HTML

2001-12-05 Thread John Kolvereid

Hi,
I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
  John Kolvereid
  http://www.odinfo.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP outside HTML

2001-12-05 Thread Tyler Longren

PHP can be used on the command line if necessary.  Or the \n characters can
be printed to a text file or some other document that use's \n.  To compile
PHP for use on the command line, don't specify a web server to compile it
with.  Example...instead of this:
./configure --with-apxs2=/usr/local/apach2/bin/apxs --with-mysql

do this:
./configure --with-mysql

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com

- Original Message -
From: John Kolvereid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 12:24 AM
Subject: [PHP] PHP outside HTML


 Hi,
 I'm a little confused.  I see the advantage of PHP within HTML.
 However, a few of the examples of ECHO include the '\n' char.  Since
 this is not valid within HTML, I conclude they are addressing this for
 OUTSIDE HTML.  Please advise.  Thanks.

 --
   John Kolvereid
   http://www.odinfo.com
   http://www.kolvereid.com
   [EMAIL PROTECTED]
   1.610.296.4485



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP outside HTML

2001-12-05 Thread Martin Towell

it's so it's easier to read the output

-Original Message-
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP outside HTML


Hi,
I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
  John Kolvereid
  http://www.odinfo.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] PHP outside HTML

2001-12-05 Thread David Robley

On Thu,  6 Dec 2001 16:54, John Kolvereid wrote:
 Hi,
 I'm a little confused.  I see the advantage of PHP within HTML.
 However, a few of the examples of ECHO include the '\n' char.  Since
 this is not valid within HTML, I conclude they are addressing this for
 OUTSIDE HTML.  Please advise.  Thanks.


Among other uses, it makes your source code easier to read in a 'View 
Source'.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I'm embarrassed, Tom admitted readily.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP outside HTML

2001-12-05 Thread Michael A. Peters

On Wed, 05 Dec 2001 22:24:08 -0800
John Kolvereid [EMAIL PROTECTED] mentioned:

 Hi,
 I'm a little confused.  I see the advantage of PHP within HTML.
 However, a few of the examples of ECHO include the '\n' char.  Since
 this is not valid within HTML, I conclude they are addressing this for
 OUTSIDE HTML.  Please advise.  Thanks.

I find it extremely useful in general web programming.
For example, I have a cable modem with dhcp.
As such, occasionally my IP address changes- such as after I disconnect
from the web to go on vacation.

I use CVS to maintain my website that is on an external server.
If my IP address changes here at home, that means that the CVSROOT
environmental variable in my .bashrc and in all the CVS/Root files needs
to be changed, or I won't be able to use cvs.

So I have a password protected directory with a php script in it.
Once a day, my crontab uses wget with the username/password I specified to
wget that script.

What the php script does is write a bashrc file reflecting the new
CVSROOT.
\n is very handy for that, as it tells php to send a newline character.

//note- no, php does not have permission to write my .bashrc but I have a
cron job that cats the new bashrc (if it exists) onto the old one- and
updates the Root file in all the CVS directories

PHP is a fully featured wrapper language.
It can be used for everything from database to e-mail to pdf generation to
ldap to swf to you name it.
The ability to send the newline character is extremely critical for many
of these things.


 
 --
   John Kolvereid
   http://www.odinfo.com
   http://www.kolvereid.com
   [EMAIL PROTECTED]
   1.610.296.4485
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]