php vs. html

Good Afternoon,

here is my question of the day…

I am working on changing the footer address of a we….

turns out the WHOLE site is mainly .php

is that a good or a bad thing? and why

I want to approch this client with info on why it should be redone.

the link is:
http://www.msurgeon.com

thanks for your input!

J


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Strictly speaking it doesn’t matter if the file extension uses .html or .php … unless! The site’s functionality is dependent upon something specific to PHP like a CMS, form processing or any number of other things.

Todd

Good Afternoon,

here is my question of the day…

I am working on changing the footer address of a we….

turns out the WHOLE site is mainly .php

is that a good or a bad thing? and why

I want to approch this client with info on why it should be redone.

the link is:
http://www.msurgeon.com

thanks for your input!

J


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

ok… can you look at the link I included please and see if there are dependancies?

On Sep 20, 2013, at 12:05 PM, Todd email@hidden wrote:

Strictly speaking it doesn’t matter if the file extension uses .html or .php … unless! The site’s functionality is dependent upon something specific to PHP like a CMS, form processing or any number of other things.

Todd
http://xiiro.com

Good Afternoon,

here is my question of the day…

I am working on changing the footer address of a we….

turns out the WHOLE site is mainly .php

is that a good or a bad thing? and why

I want to approach this client with info on why it should be redone.

the link is:
http://www.msurgeon.com

thanks for your input!

J


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Files ending in .php are (usually) HTML with embedded PHP (programming language) instructions within them. The Web server, instead of doing what it usually does (looking up the referenced file and serving it) will pass the file on to the PHP interpreter, which runs as a plug-in on the server. The interpreter runs the program (written in PHP) and emits only HTML – altered by the output of the program.

This process adds a little bit of overhead to the normal serving process, but on a modern server, it’s too little to measure or worry about.

The thing you need to ask yourself here is this: why did anyone go to the trouble? Finding a completely no-code HTML page with a .php file extension is like finding a perfectly mint '65 Speedster in your barn. It’s far more likely that there is a block of PHP code somewhere within that page that is actually performing some function that you could not duplicate in plain HTML. So it needs to be PHP, because that code is doing something useful.

Walter

On Sep 20, 2013, at 11:59 AM, Julie Maxwell wrote:

Good Afternoon,

here is my question of the day…

I am working on changing the footer address of a we….

turns out the WHOLE site is mainly .php

is that a good or a bad thing? and why

I want to approch this client with info on why it should be redone.

the link is:
http://www.msurgeon.com

thanks for your input!

J


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Only if you put the actual source code on Pastie or Gist. The PHP code is stripped out as the page is served, leaving ONLY raw HTML behind. Do you have access to the source code, or are you strictly browsing this from the URL?

Walter

On Sep 20, 2013, at 12:07 PM, Julie Maxwell wrote:

ok… can you look at the link I included please and see if there are dependancies?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have FTP access to all.

What file should I look for and cut / paste from

Sent from my iPhone

On Sep 20, 2013, at 12:08 PM, Walter Lee Davis email@hidden wrote:

Only if you put the actual source code on Pastie or Gist. The PHP code is stripped out as the page is served, leaving ONLY raw HTML behind. Do you have access to the source code, or are you strictly browsing this from the URL?

Walter

On Sep 20, 2013, at 12:07 PM, Julie Maxwell wrote:

ok… can you look at the link I included please and see if there are dependancies?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Speaking as a non-expert, I think no. That’s the nature of PHP – we don’t
see it from the browser because the browser processes the instructions
before delivering it to the viewer. The only way to even see the PHP and
what it is doing is to see it in the raw files the web developer uploads it
to the server. If it is a cms like Wordpress, then you can edit much of the
raw PHP but only within the CMS-server administration.


Ernie Simpson

ok… can you look at the link I included please and see if there are

dependancies?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dealer’s choice, as long as there’s some PHP in the file.

Todd

What file should I look for and cut / paste from


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Open up one or another of the files that end in .php, and look for anything that appears within the opening and closing PHP delimiters. This will look like this:

<?php
some_code_here($foo, $bar, $baz){
	return $foo * $bar - $baz;
}
?>

Look for anything with $dollar_sign_naming (PHP variables) or curly-braces (function and class bodies) or that just looks like someone took a food processor to a word processor.

Walter

On Sep 20, 2013, at 12:24 PM, Todd wrote:

Dealer’s choice, as long as there’s some PHP in the file.

Todd
http://xiiro.com

What file should I look for and cut / paste from


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I saw this after I created this:

is
On Sep 20, 2013, at 12:36 PM, Walter Lee Davis email@hidden wrote:

Open up one or another of the files that end in .php, and look for anything that appears within the opening and closing PHP delimiters. This will look like this:

<?php some_code_here($foo, $bar, $baz){ return $foo * $bar - $baz; } ?>

Look for anything with $dollar_sign_naming (PHP variables) or curly-braces (function and class bodies) or that just looks like someone took a food processor to a word processor.

Walter

On Sep 20, 2013, at 12:24 PM, Todd wrote:

Dealer’s choice, as long as there’s some PHP in the file.

Todd
http://xiiro.com

What file should I look for and cut / paste from


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Look for anything … that just looks like someone took a food processor to
a word processor.

… hang on, I’m googling for the internet slang to indicate that I just
laughed so hard I wet my adult diaper…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Personally, I think this would be complex for me - the non expert who
sometimes works with Wordpress and has even re-written a simpler php cms.

To change the footer - maybe. First you have to figure out which file has
the bit of code for that, then work out the php deals with it (sometimes
it’s as easy as editing the html code inside the php code). Then rewrite
the code - no Freeway involved.

Why should this client have a redesign? Good question. What are their goals
for this site, and how well does it meet those goals?

It fails as a mobile friendly site, do they have a mobile strategy for
their users/visitors?

It fails from a semantic pov - how much do they value SEO and webstandards
friendliness?

When was the last time they worked on their site? Does it need a design
refresh?


Ernie Simpson


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I changed the footer no issues…

it fails at a lot -

and the last time the site was done was 2005 ….

On Sep 20, 2013, at 12:43 PM, Ernie Simpson email@hidden wrote:

Personally, I think this would be complex for me - the non expert who
sometimes works with Wordpress and has even re-written a simpler php cms.

To change the footer - maybe. First you have to figure out which file has
the bit of code for that, then work out the php deals with it (sometimes
it’s as easy as editing the html code inside the php code). Then rewrite
the code - no Freeway involved.

Why should this client have a redesign? Good question. What are their goals
for this site, and how well does it meet those goals?

It fails as a mobile friendly site, do they have a mobile strategy for
their users/visitors?

It fails from a semantic pov - how much do they value SEO and webstandards
friendliness?

When was the last time they worked on their site? Does it need a design
refresh?


Ernie Simpson


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

and the last time the site was done was 2005 ….

Well, there you have it. Technology and the internet have changed
drastically since then – definitely time for an update. If they don’t need
a cms or dynamic content then I don’t think there’s any good reason for
them to have PHP site. Ask them what they think, what they want the site to
do for them… how it fits into their plan. Make them a proposal, see what
they say.

Best luck,


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks!

I appreciate all input about this…
On Sep 20, 2013, at 12:58 PM, Ernie Simpson email@hidden wrote:

and the last time the site was done was 2005 ….

Well, there you have it. Technology and the internet have changed
drastically since then – definitely time for an update. If they don’t need
a cms or dynamic content then I don’t think there’s any good reason for
them to have PHP site. Ask them what they think, what they want the site to
do for them… how it fits into their plan. Make them a proposal, see what
they say.

Best luck,


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Would that be sNews? One of the earlier CMS, isn’t it?

Todd

who sometimes works with Wordpress and has even re-written a simpler php cms.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Would that be sNews? One of the earlier CMS, isn’t it?

That’s the one. I must’ve hammered and rewired that thing inside out –
which made for a singular learning experience. I’d probably rewrite our
beloved Freeway too, if I was a programmer… but I already used up all those
little neurony things that used to be in my head.

What drove me to learn anything was, like most folks, I want what I want
and everyone is busy making something else.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m not sure why but sNews popped into my noggin’ last week so I looked it up and it’s still alive and kickin’. I remember you working on it, I think you may have posted it on FWT many moons ago.

That’s a great way to learn something. That’s what I like about MODX: it’s designed to be tweaked. You should apply your acquired sNews skills to another CMS.

Todd

Would that be sNews? One of the earlier CMS, isn’t it?

That’s the one. I must’ve hammered and rewired that thing inside out –
which made for a singular learning experience. I’d probably rewrite our
beloved Freeway too, if I was a programmer… but I already used up all those
little neurony things that used to be in my head.

What drove me to learn anything was, like most folks, I want what I want
and everyone is busy making something else.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options