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]