Re: [PHP] PHP and HTML Conventions

2004-07-12 Thread Matthew Sims
> Hi all.
>
> I just wondered if the general convention was to use entirely PHP and
> simply
> encase HTML TAGs within that or use a mix and simply use PHP TAGs when
> required.
>
>
>
> --
> -
>  Michael Mason


I'm trying to get myself to use PHP tags when required. When I first
started learning PHP with HTML I would encase entire tables under PHP tags
out of bad learning habits. Not only was it ugly to look at (so many echo
statments, quotes ("") and escape slashes (\") ) but it became really hard
to read the code.

Also, using the PHP tags can mean fewer characters in your webpage making
it slightly smaller.

But...that's just my preference. :)

--Matthew Sims
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Use Smarty(http://smarty.php.net/) and Maguma Studio(http://www.maguma.com/).
~Paul

On Sunday 02 March 2003 07:13 pm, Sunfire wrote:
> where could i get a templet editor from that is good and fairly easy to
> use?
>
[snip]

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
[EMAIL PROTECTED]
www.webpowerdesign.net
"The webthe way you want it!"


"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+YqJUDyXNIUN3+UQRAlfbAJ9/GVpqmnhQHJOFCZmegOOxh/6JwwCfTJzG
H8abV4rC/ddiNb623gOVTLg=
=U6rL
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
Smarty is an excellent template engine, it is available at
http://smarty.php.net

Jason
On Sun, 2003-03-02 at 17:13, Sunfire wrote:
> where could i get a templet editor from that is good and fairly easy to use?
> 
> - Original Message -
> From: "Jason Sheets" <[EMAIL PROTECTED]>
> To: "Sunfire" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, March 02, 2003 7:07 PM
> Subject: Re: [PHP] php and html differences
> 
> 
> > On Sun, 2003-03-02 at 16:55, Sunfire wrote:
> > > - Original Message -
> > > From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
> > > To: "Sunfire" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Sunday, March 02, 2003 5:58 PM
> > > Subject: Re: [PHP] php and html differences
> > >
> > >
> > > > At 21:25 02.03.2003, Sunfire said:
> > > > [snip]
> > > >
> > > > Boy - some of my applicatinos server a couple of hundred pages out of
> a
> > > > single script (from the database, that is)...
> > > >
> > > wow a very large script then... must be right on what im doing then...
> so
> > > how do you stop him from editing my scripts with a gui html editor
> then...ug
> > You might consider using a template engine, seperate your HTML from your
> > PHP logic, that way if he is in charge of the HTML he doesn't touch your
> > code.  I'd suggest using CVS as well or at least making backups so you
> > don't have to rewrite stuff when someone messes it up.  Other than that
> > you could make it a policy where only you change your scripts, they can
> > submit patches to you and you can apply them but they don't have direct
> > edit access to your code.
> >
> > Jason
> > >
> > >
> > > >
> > > > --
> > > >>O Ernest E. Vogelsinger
> > > >(\)ICQ #13394035
> > > > ^ http://www.vogelsinger.at/
> > > >
> > > >
> > > >
> > >
> > >
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
> > --
> > Jason Sheets <[EMAIL PROTECTED]>
> >
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
-- 
Jason Sheets <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
where could i get a templet editor from that is good and fairly easy to use?

- Original Message -
From: "Jason Sheets" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 7:07 PM
Subject: Re: [PHP] php and html differences


> On Sun, 2003-03-02 at 16:55, Sunfire wrote:
> > - Original Message -
> > From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
> > To: "Sunfire" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Sunday, March 02, 2003 5:58 PM
> > Subject: Re: [PHP] php and html differences
> >
> >
> > > At 21:25 02.03.2003, Sunfire said:
> > > [snip]
> > >
> > > Boy - some of my applicatinos server a couple of hundred pages out of
a
> > > single script (from the database, that is)...
> > >
> > wow a very large script then... must be right on what im doing then...
so
> > how do you stop him from editing my scripts with a gui html editor
then...ug
> You might consider using a template engine, seperate your HTML from your
> PHP logic, that way if he is in charge of the HTML he doesn't touch your
> code.  I'd suggest using CVS as well or at least making backups so you
> don't have to rewrite stuff when someone messes it up.  Other than that
> you could make it a policy where only you change your scripts, they can
> submit patches to you and you can apply them but they don't have direct
> edit access to your code.
>
> Jason
> >
> >
> > >
> > > --
> > >>O Ernest E. Vogelsinger
> > >(\)ICQ #13394035
> > > ^ http://www.vogelsinger.at/
> > >
> > >
> > >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
> --
> Jason Sheets <[EMAIL PROTECTED]>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Jason Sheets
On Sun, 2003-03-02 at 16:55, Sunfire wrote:
> - Original Message -
> From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
> To: "Sunfire" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, March 02, 2003 5:58 PM
> Subject: Re: [PHP] php and html differences
> 
> 
> > At 21:25 02.03.2003, Sunfire said:
> > [snip]
> >
> > Boy - some of my applicatinos server a couple of hundred pages out of a
> > single script (from the database, that is)...
> >
> wow a very large script then... must be right on what im doing then... so
> how do you stop him from editing my scripts with a gui html editor then...ug
You might consider using a template engine, seperate your HTML from your
PHP logic, that way if he is in charge of the HTML he doesn't touch your
code.  I'd suggest using CVS as well or at least making backups so you
don't have to rewrite stuff when someone messes it up.  Other than that
you could make it a policy where only you change your scripts, they can
submit patches to you and you can apply them but they don't have direct
edit access to your code.

Jason
> 
> 
> >
> > --
> >>O Ernest E. Vogelsinger
> >(\)ICQ #13394035
> > ^ http://www.vogelsinger.at/
> >
> >
> >
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
-- 
Jason Sheets <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire

- Original Message -
From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 5:58 PM
Subject: Re: [PHP] php and html differences


> At 21:25 02.03.2003, Sunfire said:
> [snip]
> >i guess this is a php related question (well sort of)  the person i work
> >with decided that he was going to edit a few of my php scripts that make
a
>
> ... oh my god.
your telling me...messed up the whole thing and i had to basically rewrite a
700 line script cuz of it too
>
> >he told me a few things that i dont quite understand (or for that matter
i
> >dont belive what he says is really true)..
> >he said:
> >1. on the instance about testing certain conditions to determine what
page
> >to show..frames or a frameset can do exactly the same thing...i told him
no
> >it didnt (who is right?)
>
> Framesets are HTML constructs to divide a browser window in adjacent areas
> to display more than one page at the same time. There's nothing what a
> frameset construct can do to implement any logic - the page that's shown
in
> a frame is available in the "src" tag.
yup i got that but he uses frames way too much and it bothers my
scripts..i.e. cant always get a table to fit in the frame the way he wants
it to..
>
> >2. he asked me in the scripts that have 3 or more pages built into them
how
> >was the logo at the top of the page being shown.. i just told him that i
> >used normal html and put the logo at the top of the pages.. he said
frames
> >wont let you do that (who is right??)
>
> Not within the frameset, of course... if you have a frameset you don't
have
> a body, that's it.
i mean i hard coded the logo inside of the php script for every page that
was in there.. he said frames cant display a logo
>
> >so im confused about that one.. he also said that plain html had an if
else
> >statement in it.. i never heard of such a thing...
>
> Never heard such bullshit.
me either...
>
> >can somebody get me unconfused? and is it not really a good idea to have
3
> >or more pages built inside a php script? should the pages be called from
the
> >script some way else?
>
> Boy - some of my applicatinos server a couple of hundred pages out of a
> single script (from the database, that is)...
>
wow a very large script then... must be right on what im doing then... so
how do you stop him from editing my scripts with a gui html editor then...ug


>
> --
>>O Ernest E. Vogelsinger
>(\)ICQ #13394035
> ^ http://www.vogelsinger.at/
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Ernest E Vogelsinger
At 21:54 02.03.2003, Sunfire said:
[snip]
>well i told him it was probably java or something of the sort cuz he uses
>java in his pages sometimes expecially when it comes to buttons or something

right, you can do some logic with JavaScript (don't confuse that with Java
please!). There's a big BUT there - you can never be sure the client
browser gets it right, be it because JS is switched off, or some malicious
guy tries to trick your application.

>oh well he said that frames are good for the sighted people because it makes
>things easier to find and makes the page look better...is this true or are
>frames just utterly useless?

Layout is a matter of taste, there's no final judgement about this, I
believe. I don't really like your particular layout of the site for two
reasons:
- the graphics render horribly (still alpha, going to be better?)
- the list scrolls endlessly - there must be a better way to display
records found

That doesn't mean that frames are the way to go - usually frames make a
site more complicated from a technical view. With languages like PHP it's
very easy to generate good-looking pages that are easy to navigate - start
your thoughts by trying to separate data and logic from presentation.

>btw i am also totally blind using jaws for windows and even though i have
>great concepts of where to put stuff on pages he is telling me its all wrong
>visually and it needs to be redone so he told me where to put stuff and i
>had to move everything around on it..

If he's the boss you should do what he wants; if you believe you have a
better concept try to make an alternative presentation.

>sorry if this starting to fall outside php line but as far as php goes i
>think its important things to concider in my php/sql programming life..
>i know im not talking direct code but i do need to know if i have layout
>problems or if the guy is taking his sight for granted...

Presentation doesn't have anything to do with web programming - that's the
HTML stuff. It's just composed by your application. Have a look at some
template engines like Smarty to get an idea.


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Ernest E Vogelsinger
At 21:25 02.03.2003, Sunfire said:
[snip]
>i guess this is a php related question (well sort of)  the person i work
>with decided that he was going to edit a few of my php scripts that make a

... oh my god.

>he told me a few things that i dont quite understand (or for that matter i
>dont belive what he says is really true)..
>he said:
>1. on the instance about testing certain conditions to determine what page
>to show..frames or a frameset can do exactly the same thing...i told him no
>it didnt (who is right?)

Framesets are HTML constructs to divide a browser window in adjacent areas
to display more than one page at the same time. There's nothing what a
frameset construct can do to implement any logic - the page that's shown in
a frame is available in the "src" tag.

>2. he asked me in the scripts that have 3 or more pages built into them how
>was the logo at the top of the page being shown.. i just told him that i
>used normal html and put the logo at the top of the pages.. he said frames
>wont let you do that (who is right??)

Not within the frameset, of course... if you have a frameset you don't have
a body, that's it.

>so im confused about that one.. he also said that plain html had an if else
>statement in it.. i never heard of such a thing...

Never heard such bullshit.

>can somebody get me unconfused? and is it not really a good idea to have 3
>or more pages built inside a php script? should the pages be called from the
>script some way else?

Boy - some of my applicatinos server a couple of hundred pages out of a
single script (from the database, that is)...


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
already did that.. he even said whats new... *fear that* if i work for
someone like that?? hrm...


- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 3:55 PM
Subject: Re: [PHP] php and html differences


> If I was you, I would tell him he's insane.
>
> Sunfire wrote:
>
> >hi..
> >
> >i guess this is a php related question (well sort of)  the person i work
> >with decided that he was going to edit a few of my php scripts that make
a
> >web page out of variables and just different conditions that happen in
the
> >script.. he thought that he could use a gui html editor and edit the
page..
> >well it worked and nothing happened bad... he just left any component
alone
> >that had a "/" in them next to the name of it.. well the other thing that
> >happened was in another script i have there is 3 or so web pages built
into
> >the script.. based on what happens from the page thet calls that script
> >either one of those 3 pages could be displayed.. well when i told him
that
> >depending on what happens with the form that calls that page 1 of 3 pages
> >can come up because certain things are being tested and so on..
> >
> >he told me a few things that i dont quite understand (or for that matter
i
> >dont belive what he says is really true)..
> >he said:
> >1. on the instance about testing certain conditions to determine what
page
> >to show..frames or a frameset can do exactly the same thing...i told him
no
> >it didnt (who is right?)
> >2. he asked me in the scripts that have 3 or more pages built into them
how
> >was the logo at the top of the page being shown.. i just told him that i
> >used normal html and put the logo at the top of the pages.. he said
frames
> >wont let you do that (who is right??)
> >
> >so im confused about that one.. he also said that plain html had an if
else
> >statement in it.. i never heard of such a thing...
> >
> >can somebody get me unconfused? and is it not really a good idea to have
3
> >or more pages built inside a php script? should the pages be called from
the
> >script some way else?
> >
> >tnx
> >
> >
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
well i have learned how to actually make better choices with the php and how
to display certain parts of a page rather than redo the whole page... so i
would have a certain web page with a table for example  and the first row
shows a static text from a db.. lets say its a company name  with a phone
number.. i found i can do:












To: "Sunfire" <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 3:32 PM
Subject: RE: [PHP] php and html differences


> 3 or more possible pages from one php page is what php was designed for.
It
> dynamically creates the page depending on what choices the client makes or
> criteria based on what type of browser the user is using or even where the
> client is (subnet).  You may be able to streamline the code though to make
> things easier to follow and shorten the scripts if you only change a
portion
> of the page depending on aforementioned criteria rather then rewriting the
> entire html 3 or more times.  I have never heard of dynamic choices being
> made in frames based on html alone.  A lot of reference books on html tend
> to throw in javascript pieces to help achieve some html authors' desired
> effect.  To my knowledge it isn't part of html though.
>
> Larry S. Brown
> Dimension Networks, Inc.
> (727) 723-8388
>
> -Original Message-
> From: Sunfire [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 02, 2003 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php and html differences
>
> hi..
>
> i guess this is a php related question (well sort of)  the person i work
> with decided that he was going to edit a few of my php scripts that make a
> web page out of variables and just different conditions that happen in the
> script.. he thought that he could use a gui html editor and edit the
page..
> well it worked and nothing happened bad... he just left any component
alone
> that had a "/" in them next to the name of it.. well the other thing that
> happened was in another script i have there is 3 or so web pages built
into
> the script.. based on what happens from the page thet calls that script
> either one of those 3 pages could be displayed.. well when i told him that
> depending on what happens with the form that calls that page 1 of 3 pages
> can come up because certain things are being tested and so on..
>
> he told me a few things that i dont quite understand (or for that matter i
> dont belive what he says is really true)..
> he said:
> 1. on the instance about testing certain conditions to determine what page
> to show..frames or a frameset can do exactly the same thing...i told him
no
> it didnt (who is right?)
> 2. he asked me in the scripts that have 3 or more pages built into them
how
> was the logo at the top of the page being shown.. i just told him that i
> used normal html and put the logo at the top of the pages.. he said frames
> wont let you do that (who is right??)
>
> so im confused about that one.. he also said that plain html had an if
else
> statement in it.. i never heard of such a thing...
>
> can somebody get me unconfused? and is it not really a good idea to have 3
> or more pages built inside a php script? should the pages be called from
the
> script some way else?
>
> tnx
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and html differences

2003-03-02 Thread Leif K-Brooks
If I was you, I would tell him he's insane.

Sunfire wrote:

hi..

i guess this is a php related question (well sort of)  the person i work
with decided that he was going to edit a few of my php scripts that make a
web page out of variables and just different conditions that happen in the
script.. he thought that he could use a gui html editor and edit the page..
well it worked and nothing happened bad... he just left any component alone
that had a "/" in them next to the name of it.. well the other thing that
happened was in another script i have there is 3 or so web pages built into
the script.. based on what happens from the page thet calls that script
either one of those 3 pages could be displayed.. well when i told him that
depending on what happens with the form that calls that page 1 of 3 pages
can come up because certain things are being tested and so on..
he told me a few things that i dont quite understand (or for that matter i
dont belive what he says is really true)..
he said:
1. on the instance about testing certain conditions to determine what page
to show..frames or a frameset can do exactly the same thing...i told him no
it didnt (who is right?)
2. he asked me in the scripts that have 3 or more pages built into them how
was the logo at the top of the page being shown.. i just told him that i
used normal html and put the logo at the top of the pages.. he said frames
wont let you do that (who is right??)
so im confused about that one.. he also said that plain html had an if else
statement in it.. i never heard of such a thing...
can somebody get me unconfused? and is it not really a good idea to have 3
or more pages built inside a php script? should the pages be called from the
script some way else?
tnx



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
 

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php and html differences

2003-03-02 Thread Sunfire
well i told him it was probably java or something of the sort cuz he uses
java in his pages sometimes expecially when it comes to buttons or something
of that sort.. he has done about 24 web sites and all but 2 or 3 are framed
based with a minimum of 4 frames in it.. 1 for the logo 1 for a nav bar and
2 for content .. if he doesnt do that then he has a logo fram 2 nav bars and
a main content frame.. after that it can get up to 6 or even some pages i
seen with 8 frames in it... its annoying and i told him that for people that
are visually impared (which he is that himself) or people who use jaws for
windows screen reader on their computer frames arent the best thing in the
world to use.. i told him that frames can be usefull to a point but overall
they suck and moreso its a bad thing to get into for the blind users of his
pages.. he has the problem though of saying it doesnt make a bit of
difference to him if people have frames turned off or cant display frames or
the blind people have a hrd time with it...its their problem and not his.. i
told him toput a  section in the pages but he absolutely refuses
and so whatever i make with php/sql  has to fit in a frame 650 pixels wide
and we are running into lots of problems trying to get ie and netscape to
show the same thing in both browsers.. so i told him to drop the frames and
i basically got yelled at for it..

oh well he said that frames are good for the sighted people because it makes
things easier to find and makes the page look better...is this true or are
frames just utterly useless?

if you want a look at some of the stuff we done go to
www.wellstonmichigan.com/members/membersmain.htm and take a look... its a
front end part of a program i made for his web site...

btw i am also totally blind using jaws for windows and even though i have
great concepts of where to put stuff on pages he is telling me its all wrong
visually and it needs to be redone so he told me where to put stuff and i
had to move everything around on it..

if you do take a look at those pages the whole layout was my idea and i
wrote it myself without his changes... let me know if i am doing ok with it
or if he is right in that m atter..


sorry if this starting to fall outside php line but as far as php goes i
think its important things to concider in my php/sql programming life..
i know im not talking direct code but i do need to know if i have layout
problems or if the guy is taking his sight for granted...

tnx

- Original Message -
From: "Darren Young" <[EMAIL PROTECTED]>
To: "'Sunfire'" <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 3:22 PM
Subject: RE: [PHP] php and html differences


> No, there are no "test" or "conditional" functions inside HTML, perhaps
> he's thinking of JavaScript. All HTML does is tells the browser how to
> render the page. It's extremely "dumb" and is best that way. The only
> thing I can think of at all is SSI or Server Side Includes which _can_
> do some very limited intelligent things. But that tends to be server
> specific and isn't used all that much any more. SSI was handy before
> dynamic languages were around such as PHP.
>
> Frames are just bad, it's too bad they were ever designed. All they do
> is provide "compartments" to render text on the browser, again there is
> no intelligence involved. Now, I could be wrong here since I stopped
> using frames many years ago so do some more research. You can always
> check the HTML specs at www.w3c.org or on Netscape's developer site.
> Netscape came up with the whole frame thing anyways.
>
> Frames won't let you display a logo? Get this guy a book on HTML and a
> clue at Kmart.
>
> I have MANY PHP pages that build the screen differently depending on the
> way it's called. While it may increase the individual page complexity,
> it does reduce overall site complexity. I prefer fewer pages doing more
> than tons of pages doing little things.
>
> I'd say overall you're on the right track and should stick to your guns.
>
> -Original Message-
> From: Sunfire [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 02, 2003 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php and html differences
>
>
> hi..
>
> i guess this is a php related question (well sort of)  the person i work
> with decided that he was going to edit a few of my php scripts that make
> a web page out of variables and just different conditions that happen in
> the script.. he thought that he could use a gui html editor and edit the
> page.. well it worked and nothing happened bad... he just left any
> component alone that had a "/" in them next to the name of it.. well the
> other thing that happened was in another script i have there is 3 or so
> web pages built into th

RE: [PHP] php and html

2002-07-18 Thread Jay Blanchard

[snip]
I am running into a situation where I need some serious help.  My
environment is:

Workstation - W2k, Frontpage
Server - Cobalt RaQ4i, Linux, Apache

Problem:  I need to access MySQL to display inventory information on the web
page.  When I have modified the httpd.conf file to parse html files through
php, the embedded php code works.  However, FrontPage no longer works and a
Web statisics application will not work (Webalizer).  I know I am not
setting something correctly, but dang if I know what it is.

I really need some help on this.  Please realize that I am relatively new to
internet programming, linux, php, etc.  I have done okay so far, but this is
beyond me at this point.  Any help will be greatly appreciated.
[/snip]

Ahem ... we got it the first time... :^]

What exactly did you modify in httpd.conf?

Jay

"Vegetarian: primitive word for lousy hunter "

*
* Want to meet other PHP developers *
* in your area? Check out:  *
* http://php.meetup.com/*
* No developer is an island ... *
*





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php