Re: [PHP] Re: PHP in HTML code

2010-03-19 Thread Peter Lind
On 19 March 2010 10:17, Michael A. Peters wrote: > > I don't care what people do in their code. > I do not like released code with short tags, it has caused me problems when > trying to run php webapps that use short tags, I have to go through the code > and change them. > > So what people do with

Re: [PHP] Re: PHP in HTML code

2010-03-19 Thread Michael A. Peters
Jan G.B. wrote: 2010/3/18 tedd : Calling it "ranting" or "religious" unjustly demeans the discussion and is inflammatory. In all of this, I've simply said it's your choice. What I said was: *persons ranting about short open tags* *are just like some religious people * I don't care what peopl

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 1:37 PM, Ashley Sheridan wrote: > On Thu, 2010-03-18 at 18:37 +0100, Jan G.B. wrote: > > > > > > > 2010/3/18 Ashley Sheridan > > > > > > On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > > > > > 2010/3/18 Ashley Sheridan > > > > > > > I

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 18:37 +0100, Jan G.B. wrote: > > > 2010/3/18 Ashley Sheridan > > > On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > > > 2010/3/18 Ashley Sheridan > > > > > I'd rather have short tags turned off than remember each t

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan > On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > > 2010/3/18 Ashley Sheridan > > > I'd rather have short tags turned off than remember each time that I have > > to keep breaking up the < and ?php before I output it in-case the parser > > gets confused. > > > > Y

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > 2010/3/18 Ashley Sheridan > > > I'd rather have short tags turned off than remember each time that I have > > to keep breaking up the < and ?php before I output it in-case the parser > > gets confused. > > > > You don't need to break anythin

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan > I'd rather have short tags turned off than remember each time that I have > to keep breaking up the < and ?php before I output it in-case the parser > gets confused. > You don't need to break anything up. It's perfectly valid and without problems: '; ?>

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 11:28 AM, tedd wrote: > At 9:34 AM + 3/18/10, Pete Ford wrote: > >> >> I do tend to use > camp here. >> > > > Whoa, that's even worse -- make a choice and stick with it -- IMO. > > I'm all for consistency and have often found myself redoing dozens of > scripts because

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 17:57 +0100, Jan G.B. wrote: > Sure - XML is often used and served. But in general, a web server only > parses PHP-Files (ie. .+\.php\d?) unless you configure your server to > parse any file or .xml files. So the XML for the interpreter. I wasn't meaning that xml files wou

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan > Technically, PHP isn't embedded in any language; it's the other way around. > > XML and PHP are used together more often than you might realise. Consider > Ajax and RSS, which are becoming more and more popular. Also, there are > sites out there that are almost entirel

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 17:32 +0100, Jan G.B. wrote: > 2010/3/18 tedd : > > Calling it "ranting" or "religious" unjustly demeans the discussion and is > > inflammatory. > > In all of this, I've simply said it's your choice. > > What I said was: > *persons ranting about short open tags* *are just li

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 tedd : > Calling it "ranting" or "religious" unjustly demeans the discussion and is > inflammatory. > In all of this, I've simply said it's your choice. What I said was: *persons ranting about short open tags* *are just like some religious people * I did not address you. On the other h

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread tedd
At 4:11 PM +0100 3/18/10, Jan G.B. wrote: I agree. And I believe the persons ranting about short open tags are just like some religious people. It's almost like a war between Linux/Windows/Mac, IE/FF or ASP/PHP. Also, people love to recommend things that others recommended before. It mustn't make

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread tedd
At 9:34 AM + 3/18/10, Pete Ford wrote: I do tend to use middle camp here. Whoa, that's even worse -- make a choice and stick with it -- IMO. I'm all for consistency and have often found myself redoing dozens of scripts because I changed something -- not because the change worked and th

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Pete Ford : > On 17/03/10 18:59, Tommy Pham wrote: >> >> On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman  wrote: >>> >>> hmm.. seems easier to me to push a filetree of .php's with>> the str_replace(), than it is to get all the>> with your wishes, which may not apply to their situation ;-)

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Pete Ford
On 17/03/10 18:59, Tommy Pham wrote: On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman wrote: hmm.. seems easier to me to push a filetree of .php's with wrote: At 8:55 PM -0400 3/16/10, Adam Richardson wrote: That said, I'm not taking exception with those who don't use the short tag, only with

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread tedd
At 11:59 AM -0700 3/17/10, Tommy Pham wrote: http://www.php.net/manual/en/language.basic-syntax.phpmode.php "There are four different pairs of opening and closing tags which can be used in PHP. Two of those, and , are always available. The other two are short tags and ASP style tags, and can b

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread Tommy Pham
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman wrote: > hmm.. seems easier to me to push a filetree of .php's with the str_replace(), than it is to get all the with your wishes, which may not apply to their situation ;-) > > On Wed, Mar 17, 2010 at 5:14 PM, tedd wrote: >> At 8:55 PM -0400 3/16/

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread Rene Veerman
hmm.. seems easier to me to push a filetree of .php's with wrote: > At 8:55 PM -0400 3/16/10, Adam Richardson wrote: >> >> That said, I'm not taking exception with those who don't use the short >> tag, only with those who say I shouldn't. > > Exception or not, it's still your choice and using shor

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread tedd
At 8:55 PM -0400 3/16/10, Adam Richardson wrote: That said, I'm not taking exception with those who don't use the short tag, only with those who say I shouldn't. Exception or not, it's still your choice and using short tags can cause problems. My view, why create problems when there is a sol

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Adam Richardson
On Tue, Mar 16, 2010 at 7:06 PM, Ashley Sheridan wrote: > On Tue, 2010-03-16 at 23:42 +0100, Rene Veerman wrote: > > > maybe adding a > then deprecating > > > On Tue, Mar 16, 2010 at 7:18 PM, tedd wrote: > > > At 5:54 PM + 3/15/10, Jochem Maas wrote: > > >> > > >> Op 3/13/10 3:49 PM, Jorge

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ashley Sheridan
On Tue, 2010-03-16 at 23:42 +0100, Rene Veerman wrote: > maybe adding a then deprecating > On Tue, Mar 16, 2010 at 7:18 PM, tedd wrote: > > At 5:54 PM + 3/15/10, Jochem Maas wrote: > >> > >> Op 3/13/10 3:49 PM, Jorge Gomes schreef: > >>> > >>> First of all, i recommend the use of normal p

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Rene Veerman
maybe adding a wrote: > At 5:54 PM + 3/15/10, Jochem Maas wrote: >> >> Op 3/13/10 3:49 PM, Jorge Gomes schreef: >>> >>>  First of all, i recommend the use of normal php tags () >>> because >>>  the short tags are atm marked as* **DEPRECATED*. >> >> that's a documentation error. >> >>> >>>  You

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread tedd
At 5:54 PM + 3/15/10, Jochem Maas wrote: Op 3/13/10 3:49 PM, Jorge Gomes schreef: First of all, i recommend the use of normal php tags () because the short tags are atm marked as* **DEPRECATED*. that's a documentation error. You should also echo your values to the page, instead using

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Bob McConnell
From: Ford, Mike > From: Ashley Sheridan >> On Tue, 2010-03-16 at 11:16 +, Ford, Mike wrote: >> > >> > >> Proof: http://marc.info/?l=php-internals&m=126832992915664&w=2 > >> >> >> That's not really proof of anything, it's just an archived email >> from this list... > > Well, firstly it's a

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ford, Mike
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: 16 March 2010 11:16 > > On Tue, 2010-03-16 at 11:16 +, Ford, Mike wrote: > > > > > Proof: http://marc.info/?l=php-internals&m=126832992915664&w=2 > > > > That's not really proof of anything, it'

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ashley Sheridan
On Tue, 2010-03-16 at 11:16 +, Ford, Mike wrote: > > -Original Message- > > From: Bob McConnell [mailto:r...@cbord.com] > > Sent: 15 March 2010 18:13 > > > > From: Jochem Maas > > > > > Op 3/13/10 3:49 PM, Jorge Gomes schreef: > > >> First of all, i recommend the use of normal php ta

RE: [PHP] Re: PHP in HTML code

2010-03-16 Thread Ford, Mike
> -Original Message- > From: Bob McConnell [mailto:r...@cbord.com] > Sent: 15 March 2010 18:13 > > From: Jochem Maas > > > Op 3/13/10 3:49 PM, Jorge Gomes schreef: > >> First of all, i recommend the use of normal php tags ( ?>) > because > >> the short tags are atm marked as* **DEPRECATED

RE: [PHP] Re: PHP in HTML code

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 14:12 -0400, Bob McConnell wrote: > From: Jochem Maas > > > Op 3/13/10 3:49 PM, Jorge Gomes schreef: > >> First of all, i recommend the use of normal php tags () > because > >> the short tags are atm marked as* **DEPRECATED*. > > > > that's a documentation error. > > No it

RE: [PHP] Re: PHP in HTML code

2010-03-15 Thread Bob McConnell
From: Jochem Maas > Op 3/13/10 3:49 PM, Jorge Gomes schreef: >> First of all, i recommend the use of normal php tags () because >> the short tags are atm marked as* **DEPRECATED*. > > that's a documentation error. No it's not. The short tags conflict with both XML and XHTML and therefore are bei

Re: [PHP] Re: PHP in HTML code

2010-03-15 Thread Jochem Maas
Op 3/13/10 3:49 PM, Jorge Gomes schreef: > First of all, i recommend the use of normal php tags () because > the short tags are atm marked as* **DEPRECATED*. that's a documentation error. > > You should also echo your values to the page, instead using the shortcut (stop being a lazy ass! :P):

Re: [PHP] Re: PHP in HTML code

2010-03-13 Thread Jorge Gomes
First of all, i recommend the use of normal php tags () because the short tags are atm marked as* **DEPRECATED*. You should also echo your values to the page, instead using the shortcut remember that between tags, we have normal php code. Rewards ___ Jo

[PHP] Re: PHP in HTML code

2010-03-12 Thread David Robley
Martine Osias wrote: > An HTML/PHP code migrated to a different hosting platform seems to behave > differently. The PHP statements within HTML fields or within tables does > not execute > > PHP within table: > > >align="left"> > > > This PHP code doesn't print in the HTML page. > > PHP

[PHP] PHP in HTML code

2010-03-12 Thread Martine Osias
An HTML/PHP code migrated to a different hosting platform seems to behave differently. The PHP statements within HTML fields or within tables does not execute PHP within table: This PHP code doesn't print in the HTML page. PHP within form field: readonly=""> This PHP code shows on the

[PHP] Re: How Can I send mail in php in HTML format?

2005-07-28 Thread Manuel Lemos
Hello, on 07/28/2005 04:30 PM Tomás Rodriguez Orta said the following: Hello friends. How Can I send mail from php in HTML format?. I use the mail() function, but I dont know doing.somebody can I help me? You may want to take a look at this class that can compose and send HTML messages, if

RE: [PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread Programmer
Original Message- From: Tomás Rodriguez Orta [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 2:31 PM To: php-general@lists.php.net Subject: [PHP] How Can I send mail in php in HTML format? Hello friends. How Can I send mail from php in HTML format?. I u

Re: [PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 12:30 -0700, Tomás Rodriguez Orta wrote: > Hello friends. > > How Can I send mail from php in HTML format?. > I use the mail() function, but I dont know doing.somebody can I help me? > > &g

[PHP] Re: How Can I send mail in php in HTML format?

2005-07-28 Thread Sonia
Also Richard Heyes has a updated his class to work with PHP 5, you can also get updated version of the PHP 4 class! http://www.phpguru.org/static/htmlMimeMail5.html Sonia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread John Nichel
Tomás Rodriguez Orta wrote: Hello friends. How Can I send mail from php in HTML format?. I use the mail() function, but I dont know doing.somebody can I help me? http://www.google.com/search?hl=en&q=php+send+html+email&btnG=Google+Search -- John C. Nichel ÜberGeek KegWorks.com 716.

Re: [PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread Philip Hallstrom
How Can I send mail from php in HTML format?. I use the mail() function, but I dont know doing.somebody can I help me? Pear has a package: http://pear.php.net/package/Mail_Mime Here's an example: http://pear.php.net/manual/en/package.mail.mail-mime.example.php -philip -- PHP Ge

[PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread Tomás Rodriguez Orta
Hello friends. How Can I send mail from php in HTML format?. I use the mail() function, but I dont know doing.somebody can I help me? Best regards TOMAS - Este correo fue escaneado en busca de virus con el MDaemon

Re: [PHP] Parsing php in html with IIS

2004-12-16 Thread Richard Lynch
Eric Lindsey wrote: > How do I configure my IIS server to parse a specific .html > file for php code? I know how to do this on apache, but windows scares > me :-) So far, all the answers assume he wants to have *ALL* .html files parsed as PHP. He only wants *ONE* *SPECIFIC* .html fil

[PHP] Parsing php in html with IIS

2004-12-15 Thread Eric Lindsey
Gents, How do I configure my IIS server to parse a specific .html file for php code? I know how to do this on apache, but windows scares me :-) THANKS! Eric Lindsey Colorado Information Technologies Inc. http://www.coinfotech.com

RE: [PHP] Parsing php in html with IIS

2004-12-15 Thread phpninja
bject: [PHP] Parsing php in html with IIS Gents, How do I configure my IIS server to parse a specific .html file for php code? I know how to do this on apache, but windows scares me :-) THANKS! Eric Lindsey Colorado Information Technologies Inc. http://www.coinfotech.com

Re: [PHP] Parsing php in html with IIS

2004-12-15 Thread Greg Donald
On Wed, 15 Dec 2004 15:02:08 -0700, Eric Lindsey <[EMAIL PROTECTED]> wrote: > How do I configure my IIS server to parse a specific .html > file for php code? I know how to do this on apache, but windows scares > me :-) http://www.php.net/manual/en/install.windows.iis.php -- Greg Do

Re: [PHP] RE: [newbie] embed php in html file

2003-04-04 Thread Neil Freeman
Take a look at auto_prepend_file within php.ini Bobby Rahman wrote: *** This Message Was Virus Checked With : SAVI 3.66 February 2003 Last Updated 2nd April 2003 **

RE: [PHP] RE: [newbie] embed php in html file

2003-04-03 Thread Matt Schroebel
> -Original Message- > From: Bobby Rahman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 11:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] RE: [newbie] embed php in html file > > I have a header.php : > session_start(); > echo " colo

[PHP] RE: [newbie] embed php in html file

2003-04-03 Thread Bobby Rahman
Hiya I need advice for an optimum solution to display the username that is logged in on every html form page of my application. I have a header.php : session_start(); echo "Logged in as: ".$_SESSION['curr_user'].""; ?> Now I have many html forms which user's see What I want to know is how t

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
To: Peter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] PHP in HTML Do you really find it noticeable quicker? Benchmarks I've seen (none of them that current) don't seem to support that. Depending on the software versions involved, it seems to be anywhere from much faster through PHP to a fe

RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz
ge- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: Friday, 17 May 2002 3:52 PM > To: Peter > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] PHP in HTML > > > On Fri, 17 May 2002, Peter wrote: > >> there are also possible good reasons for sending .html fi

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
I find it better than having every page go thru php not to mention quicker. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 3:52 PM To: Peter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] PHP in HTML On Fri, 17 May 2002, Peter wrote: >> the

RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, Peter wrote: >> there are also possible good reasons for sending .html files through >> php. like if you don't want users to know that your website is written >> in php. > > a better way to do that would be to make up your own extension so > instead of having your server use

Re: [PHP] PHP in HTML

2002-05-16 Thread Jason Wong
On Friday 17 May 2002 13:33, Jerome Houston wrote: > yeah, just find in your web server where to tell it what kind of files to > send through php. > > there are also possible good reasons for sending .html files through php. > like if you don't want users to know that your website is written in ph

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
there are also possible good reasons for sending .html files through php. like if you don't want users to know that your website is written in php. -jerome a better way to do that would be to make up your own extension so instead of having your server use .php for php files make it use .web

Re: [PHP] PHP in HTML

2002-05-16 Thread Jerome Houston
yeah, just find in your web server where to tell it what kind of files to send through php. there are also possible good reasons for sending .html files through php. like if you don't want users to know that your website is written in php. -jerome Original Message Follows From: Just

RE: [PHP] PHP in HTML

2002-05-16 Thread Peter
--Original Message- From: Jeremy [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 May 2002 12:14 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP in HTML Hi Folks, A simple question that has me puzzled, obviously I have a config file wrong somewhere.. Why does a filename.php file run as php and a filename

Re: [PHP] PHP in HTML

2002-05-16 Thread Justin French
Your Apache config file will be set to only parse PHP pages if they have the .php extension this is a feature, not a big, because otherwise every html page on your server will be parsed, rather than just the php ones... you could modify your apache config iff you wished, but I wouldn't. .html

[PHP] PHP in HTML

2002-05-16 Thread Jeremy
Hi Folks, A simple question that has me puzzled, obviously I have a config file wrong somewhere.. Why does a filename.php file run as php and a filename.html with php code embedded not produce a php result? cheers, Jeremy Burton Senior Consultant PERTH TOURIST LOUNGE Level 2 Carillon City Mur

[PHP] Re: php in html-- what gives?

2001-07-24 Thread J Smith
Not all files on a web server are parsed by PHP. Generally, you need to specifically tell the web server to use PHP to parse files based on their extension. I'm assuming you're using Apache as the web server here, so for IIS or iPlanet or whatever this may be different... For Apache, open u

Re: [PHP] php in html-- what gives?

2001-07-24 Thread Ben Bleything
Put it in a .php file. Your webserver probably doesn't interpret PHP in HTML files (as is proper). If it MUST be in a HTML file, you'll have to set up your webserver to interpret php in html files... that process depends on your webserver. Ben On Tue, 24 Jul 2001, CGI GUY wrote: &g

[PHP] php in html-- what gives?

2001-07-24 Thread CGI GUY
I'm trying to test the following: I have created a simple cookie script: I have placed it in an html page, at the very top (no spaces, lines, etc.), and have left no lines/spaces between the '?>' and '' tags. Yet the script does not execute (nor does it return an error of any kind). What gives

Re: [PHP] in html

2001-01-09 Thread Chris Hayes
> Anyways, I want a new line but when I use the to do it makes a gap > between the last line. does anyone know how to make the or any new line > in html for that matter to only make a small gap? should just make a new line with the current font size. First check the output HTML: Are you i