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
> >>
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
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
> >>
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
"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
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
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
> 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
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
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
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
> $ 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
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
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
--
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
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
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
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
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
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
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
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
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=
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 =
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
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";
> >?>
>
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
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
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";
> > > >
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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...
> "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)
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
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
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
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
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
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
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
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 contains html
and no php? If so are th
74 matches
Mail list logo