Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:54 -0500, tedd wrote: > At 9:37 PM + 1/12/09, Ashley Sheridan wrote: > >On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: > >> On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >> > > >> > True, css does not allow numeric classes (like sessions). But, I > >>

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:51 -0500, tedd wrote: > At 4:17 PM -0500 1/12/09, Robert Cummings wrote: > >On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >> > >> True, css does not allow numeric classes (like sessions). But, I > >> never need them anyway. > >> > >> As I provided before: > >> > >> h

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 16:54 -0500, tedd wrote: > At 9:37 PM + 1/12/09, Ashley Sheridan wrote: > >On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: > >> On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >> > > >> > True, css does not allow numeric classes (like sessions). But, I > >>

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 9:37 PM + 1/12/09, Ashley Sheridan wrote: On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > > True, css does not allow numeric classes (like sessions). But, I > never need them anyway. > > As I provided before: > > http://we

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 4:17 PM -0500 1/12/09, Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for alternating row style

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 21:45 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: > > > >> Robert Cummings wrote: > >> > >>> On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >>> > True, css does not allow numeric classes

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >> True, css does not allow numeric classes (like sessions). But, I > >> never need them anyway. > >> > >> As I provided before: > >> > >> http://webbytedd.com/b/co

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:26 -0500, Eric Butera wrote: > On Mon, Jan 12, 2009 at 4:17 PM, Robert Cummings > > > > > >abc > >abc > >abc > > > > > > Cheers, > > Rob. > > -- > > http://www.interjinn.com > > Application and Templating Framework for PHP > > > > > > -- > > PHP General Maili

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for alternating row style. abc abc abc

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: > On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > > > > True, css does not allow numeric classes (like sessions). But, I > > never need them anyway. > > > > As I provided before: > > > > http://webbytedd.com/b/color-rows/ > > > > this i

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:17 PM, Robert Cummings wrote: > On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: >> >> True, css does not allow numeric classes (like sessions). But, I >> never need them anyway. >> >> As I provided before: >> >> http://webbytedd.com/b/color-rows/ >> >> this is my solution

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > > True, css does not allow numeric classes (like sessions). But, I > never need them anyway. > > As I provided before: > > http://webbytedd.com/b/color-rows/ > > this is my solution for alternating row style. abc abc abc That's ju

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 7:47 PM + 1/12/09, Ashley Sheridan wrote: Ehat's what I do do, but the 'odd' has to come from PHP, as unfortunately, numerical selectors in CSS aren't supported by (AFAIK) any browsers at the moment. So for example, if I was coding for alternate rows in a table, I might do: for($i=0; $i<$s

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 19:43 +, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: > >> "Ashley Sheridan" <> wrote in message > >> news:1231681793.3527.2.ca...@localhost.localdomain... > >>> On Sun, 2009-01-11 at 08:08 -0500, tedd wrote:

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: "Ashley Sheridan" <> wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: At 4:16 PM -0500 1/10/09, Paul M Foster wrote: And let me present an alte

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: > "Ashley Sheridan" <> wrote in message > news:1231681793.3527.2.ca...@localhost.localdomain... > > On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: > >> At 4:16 PM -0500 1/10/09, Paul M Foster wrote: > >> >And let me present an alternative p

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 11:20 -0500, Jason Pruim wrote: > On Jan 12, 2009, at 1:43 AM, Paul M Foster wrote: > > > On Mon, Jan 12, 2009 at 12:04:15AM -0500, John Corry wrote: > > > > > > But here's a question for those of you who work in a collaborative > > environment-- are you really ever in a situ

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Frank Stanovcak
"Ashley Sheridan" <> wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... > On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: >> At 4:16 PM -0500 1/10/09, Paul M Foster wrote: >> >And let me present an alternative perspective. Never do something like: >> > >> > >> > >> >Let Apache

Re: Re: [PHP] Couple of beginner questions

2009-01-12 Thread jcorry
On Jan 12, 2009 11:20am, Jason Pruim wrote: It's actually pretty normal and can work really well. Especially if the HTML person also did the graphic design and KNOWS how to make it work as a web page. We let them build HTML files, which are then turned into Smarty templates with the nec

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Jason Pruim
On Jan 12, 2009, at 1:43 AM, Paul M Foster wrote: On Mon, Jan 12, 2009 at 12:04:15AM -0500, John Corry wrote: But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere

Re: [PHP] Couple of beginner questions

2009-01-12 Thread ceo
> are you really ever in a situation where some HTML weenie is coding > HTML pages and you're somewhere else doing the PHP work? Yes. I have been there several times, and am there now. In a well-run organization with good communication and a decent framework, it works out well. Other

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Paul M Foster
On Sun, Jan 11, 2009 at 11:28:49PM -0800, Lars Torben Wilson wrote: > 2009/1/11 Paul M Foster : > > But here's a question for those of you who work in a collaborative > > environment-- are you really ever in a situation where some HTML weenie > > is coding HTML pages and you're somewhere else d

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 10:16 AM, wrote: > >> $ mv hello-world.php hello-world.html > > Isn't this backwards?... > > :-) > > 39% seems awfully high overhead for what is essentially an extra readfile. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 12:25 PM -0500 1/11/09, Robert Cummings wrote: Although, to be honest I tend to vertically spread my tags/attributes: $imgHTML = ''; This makes it easy to see at a glance what is there and to also comment out lines easily. I vertically stack variables as well, such as in developing a

Re: [PHP] Couple of beginner questions

2009-01-12 Thread ceo
> $ mv hello-world.php hello-world.html Isn't this backwards?... :-) 39% seems awfully high overhead for what is essentially an extra readfile. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 5:01 PM + 1/11/09, Nathan Rixham wrote: i love these discussions on pedantics and semantics! [and] keep the layers as seperate as possible That's the main topic of this thread. But you missed the point of the debate. I was claiming that one should not have any html within an echo, wh

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 3:36 PM + 1/11/09, Ashley Sheridan wrote: > I was thinking more along the lines of this: [1] echo ""; which looks like this otherwise: [2] Ash: I see and understand what you are saying. To me, [2] is more understandable/preferable than [1]. To each their own. Cheers, tedd --

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Peter Ford wrote: Paul M Foster wrote: (snip) But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way t

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Paul M Foster wrote: But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way things *should* be done? P

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Peter Ford
Paul M Foster wrote: (snip) > But here's a question for those of you who work in a collaborative > environment-- are you really ever in a situation where some HTML weenie > is coding HTML pages and you're somewhere else doing the PHP work? Or is > that some academic's view of the way things *should

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Paul M Foster
On Mon, Jan 12, 2009 at 12:04:15AM -0500, John Corry wrote: > One of the best things that ever happened to me (with regards to > writing PHP) was deciding not to embed it in HTML anymore. > > I either: > a) generate the HTML from classes I've built (HTML, Forms, Tables, > Images, etc) or use an e

Re: [PHP] Couple of beginner questions

2009-01-11 Thread John Corry
One of the best things that ever happened to me (with regards to writing PHP) was deciding not to embed it in HTML anymore. I either: a) generate the HTML from classes I've built (HTML, Forms, Tables, Images, etc) or use an equivalent PEAR class - or - b) Use Smarty templates...in which I still

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Chris
tedd wrote: At 11:35 AM -0800 1/9/09, VamVan wrote: -- Remember as you re still a beginner try to avoid using ?> at the end of complete PHP code page. or else if you have empty lines at the end of the file "then you wont see blank page of death in PHP". I'm not a beginner, but this is a pract

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Robert Cummings
On Sun, 2009-01-11 at 21:01 +, Nathan Rixham wrote: > Robert Cummings wrote: > > > >> example: > >> http://www.w3.org/TR/xhtml1/ > >> > >> from the source: > >> > >> XHTML™ 1.0 The Extensible > HyperText Markup Language (Second Edition) > >> > >> because the document is the "XHTML™ 1.0 The Ext

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2009-01-11 at 18:14 +, Nathan Rixham wrote: Robert Cummings wrote: the above means that moving back to the original example(s) I'd simply whatever I'd probably do: Whatever Which would expand to: Whatever Which would expand to a bunch of

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Robert Cummings
On Sun, 2009-01-11 at 18:14 +, Nathan Rixham wrote: > Robert Cummings wrote: > > > >> the above means that moving back to the original example(s) I'd simply > >> > >> whatever > >> > > > > I'd probably do: > > > > Whatever > > > > Which would expand to: > > > > Whatever > name=

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2009-01-11 at 17:01 +, Nathan Rixham wrote: i love these discussions on pedantics and semantics! personally (when I need to) I always go for a bit of concatenation so in the example above: // somewhere in the business logic / functional layer $imgHTML =

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Robert Cummings
On Sun, 2009-01-11 at 17:01 +, Nathan Rixham wrote: > > i love these discussions on pedantics and semantics! > > personally (when I need to) I always go for a bit of concatenation so in > the example above: > > // somewhere in the business logic / functional layer > $imgHTML = ''; I do the

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2009-01-11 at 10:16 -0500, tedd wrote: At 3:02 PM + 1/11/09, Ashley Sheridan wrote: On Sun, 2009-01-11 at 09:46 -0500, tedd wrote: At 1:49 PM + 1/11/09, Ashley Sheridan wrote: > > >Unless it's something like this: > >echo "$whatever"; > >?> >

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Ashley Sheridan
On Sun, 2009-01-11 at 10:44 -0500, Eric Butera wrote: > On Sun, Jan 11, 2009 at 10:36 AM, Ashley Sheridan > wrote: > > echo " > Gross! If that is what you're doing use a printf or change attr > quotes to '. I've seen entire html pages escaped out like that. > No it was just an example, normall

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Eric Butera
On Sun, Jan 11, 2009 at 10:36 AM, Ashley Sheridan wrote: > echo "http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Ashley Sheridan
On Sun, 2009-01-11 at 10:16 -0500, tedd wrote: > At 3:02 PM + 1/11/09, Ashley Sheridan wrote: > >On Sun, 2009-01-11 at 09:46 -0500, tedd wrote: > >> At 1:49 PM + 1/11/09, Ashley Sheridan wrote: > > > > > >> >Unless it's something like this: > >> > > >> > >> >echo "$whatever"; > > > >

Re: [PHP] Couple of beginner questions

2009-01-11 Thread tedd
At 3:02 PM + 1/11/09, Ashley Sheridan wrote: On Sun, 2009-01-11 at 09:46 -0500, tedd wrote: At 1:49 PM + 1/11/09, Ashley Sheridan wrote: > > >Unless it's something like this: > >echo "$whatever"; > >?> > Here's the alterative I would use: > I'm not wanting ti nitpick, bu

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Ashley Sheridan
On Sun, 2009-01-11 at 09:46 -0500, tedd wrote: > At 1:49 PM + 1/11/09, Ashley Sheridan wrote: > > > >Unless it's something like this: > > > > >echo "$whatever"; > >?> > > > >Which is unlikely for a header tag, but I know this sort of format gets > >used a lot by me and others, especially for se

Re: [PHP] Couple of beginner questions

2009-01-11 Thread tedd
At 1:49 PM + 1/11/09, Ashley Sheridan wrote: Unless it's something like this: $whatever"; ?> Which is unlikely for a header tag, but I know this sort of format gets used a lot by me and others, especially for setting alternate row styles on tables (damn browsers and not supporting alternat

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Ashley Sheridan
On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: > At 4:16 PM -0500 1/10/09, Paul M Foster wrote: > >And let me present an alternative perspective. Never do something like: > > > > > > > >Let Apache (or whatever) interpret HTML as HTML, and don't make it > >interpret PHP code as HTML. > > > >Instead,

Re: [PHP] Couple of beginner questions

2009-01-11 Thread tedd
At 4:16 PM -0500 1/10/09, Paul M Foster wrote: And let me present an alternative perspective. Never do something like: Let Apache (or whatever) interpret HTML as HTML, and don't make it interpret PHP code as HTML. Instead, do: Hello world If you're going to use PHP in the middle of a bunch

Re: [PHP] Couple of beginner questions

2009-01-10 Thread Paul M Foster
On Sat, Jan 10, 2009 at 09:46:14AM -0500, tedd wrote: > At 8:48 AM -0500 1/10/09, Gary wrote: >> Looks like a great link, thank you. >> >> But am I to understand that all I need to do is change the extention on a >> file to php from html for all to be right with the world? > > Yup. > > By changing

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
At 8:48 AM -0500 1/10/09, Gary wrote: Looks like a great link, thank you. But am I to understand that all I need to do is change the extention on a file to php from html for all to be right with the world? Yup. By changing the suffix (extension), you are telling the server that this file is

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
At 11:35 AM -0800 1/9/09, VamVan wrote: -- Remember as you re still a beginner try to avoid using ?> at the end of complete PHP code page. or else if you have empty lines at the end of the file "then you wont see blank page of death in PHP". I'm not a beginner, but this is a practice that many

Re: [PHP] Couple of beginner questions

2009-01-10 Thread Gary
Looks like a great link, thank you. But am I to understand that all I need to do is change the extention on a file to php from html for all to be right with the world? Gary "tedd" wrote in message news:p06240803c58e55325...@[192.168.1.101]... > At 12:18 PM -0500 1/9/09, Gary wrote: >>I've done

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
At 12:18 PM -0500 1/9/09, Gary wrote: I've done a number of sites in html and am now venturing into php. Can I create a page in html and insert php code that will work? (for example, take an existing page and insert a date command) Can I create a page with the php extension that contains only c

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 5:53 PM, wrote: > > I'm talking about having PHP rip through .html files without any > > inside of them. > > You added > > Don't do that. :-) > > ln -s foo.html foo.php > > Surf to both and time it. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscrib

Re: [PHP] Couple of beginner questions

2009-01-09 Thread ceo
I'm talking about having PHP rip through .html files without any inside of them. You added Don't do that. :-) ln -s foo.html foo.php Surf to both and time it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 4:45 PM, wrote: > > With all due respect, Eric, you're not testing what we're discussing. > > A "real" CLI test would be more like: > > time cat foo.html > time php -q foo.html > > I.E., how long does PHP take to read/write foo.html without breaking into PHP > "mode" for s

Re: [PHP] Couple of beginner questions

2009-01-09 Thread ceo
With all due respect, Eric, you're not testing what we're discussing. A "real" CLI test would be more like: time cat foo.html time php -q foo.html I.E., how long does PHP take to read/write foo.html without breaking into PHP "mode" for static HTML. Of course, it's still a lousy bench

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Frank Stanovcak
"VamVan" wrote in message news:12eb8b030901091135u4e17f1f3p24698dbc8f5a2...@mail.gmail.com... > -- Remember as you re still a beginner try to avoid using ?> at the end of > complete PHP code page. or else if you have empty lines at the end of the > file "then you wont see blank page of death in

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 15:36, Eric Butera wrote: > > I was just talking myself. I use objects and such so I'm really not > as worried about performance either. But it was a "downside" that I > knew about from some css/js stuff I'd done a while ago. I still had 2 > files on my box from some fram

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 3:22 PM, wrote: > > The slowdown of just running raw HTML through PHP was once benchmarked as > about 5 to 10 %. > > You could, in theory, use .htaccess and to ForceType specific .html > files as PHP, while leaving the rest of your .html files as static. > > I am not rec

Re: [PHP] Couple of beginner questions

2009-01-09 Thread ceo
The slowdown of just running raw HTML through PHP was once benchmarked as about 5 to 10 %. You could, in theory, use .htaccess and to ForceType specific .html files as PHP, while leaving the rest of your .html files as static. I am not recommending this, just being pedantic. :-) Defini

Re: [PHP] Couple of beginner questions

2009-01-09 Thread VamVan
Hey Gary, I've done a number of sites in html and am now venturing into php. Can I create a page in html and insert php code that will work? (for example, take an existing page and insert a date command) --- Of course you can do that. But it is not advised. Becoming better in PHP in few months y

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 12:47 PM, Jason Pruim wrote: > > On Jan 9, 2009, at 12:18 PM, Gary wrote: > >> Can I create a page with the php extension that contains only contains >> html >> and no php? If so are there advantages/disadvantages? > > Yes, Look at heredoc syntax on the php.net site. Works

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Gary
Dan I think you misunderstood the question. The question was not is there an advantage of php over html, but the advantage of having a file with the extension of php over an extension of html. ""Dan Shirah"" wrote in message news:a16da1ff0901091019m3d513ebeyf341b2d39c669...@mail.gmail.com...

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Dan Shirah
> "so would I be correct that the only advantage to > having a page with a php extension is that you can use a testing server?" There are FAR more benefits! 1) PHP is FREE! So you save money from the get go 2) PHP is open source! So it is constantly being updated and improved by users/devs. 3)

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 12:18 PM, Gary wrote: > Can I create a page with the php extension that contains only contains html > and no php? If so are there advantages/disadvantages? > > Can I mix and match file formats (php/html) in a single site? If it were me, I'd make sure all the files were .ph

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Jason Pruim
On Jan 9, 2009, at 12:18 PM, Gary wrote: I've done a number of sites in html and am now venturing into php. Can I create a page in html and insert php code that will work? (for example, take an existing page and insert a date command) Yes you can Can I create a page with the php extensio

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Wolf
Eric Butera wrote: > On Fri, Jan 9, 2009 at 12:22 PM, Wolf wrote: > > > > Gary wrote: > >> I've done a number of sites in html and am now venturing into php. > >> > >> Can I create a page in html and insert php code that will work? (for > >> example, take an existing page and insert

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 12:18 PM, Gary wrote: > I've done a number of sites in html and am now venturing into php. > > Can I create a page in html and insert php code that will work? (for > example, take an existing page and insert a date command) Not unless you configure your web server to parse

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 12:22 PM, Wolf wrote: > > Gary wrote: >> I've done a number of sites in html and am now venturing into php. >> >> Can I create a page in html and insert php code that will work? (for >> example, take an existing page and insert a date command) > Yup Um... if the file

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Gary
Thanks for your input wolf, so would I be correct that the only advantage to having a page with a php extension is that you can use a testing server? Thanks again. gary "Wolf" wrote in message news:20090109172254.7y5r1.75233.r...@cdptpa-web07-z01... > > Gary wrote: >> I've done a number

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Wolf
Gary wrote: > I've done a number of sites in html and am now venturing into php. > > Can I create a page in html and insert php code that will work? (for > example, take an existing page and insert a date command) Yup > Can I create a page with the php extension that contains only cont