Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12578 > unrolled thread
| Started by | richard <member@newsguy.com> |
|---|---|
| First post | 2014-01-11 15:00 -0500 |
| Last post | 2014-01-12 03:00 +0000 |
| Articles | 15 — 9 participants |
Back to article view | Back to comp.lang.php
how did I wind up with double headers? richard <member@newsguy.com> - 2014-01-11 15:00 -0500
Re: how did I wind up with double headers? Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-11 21:00 +0000
Re: how did I wind up with double headers? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-01-11 21:07 +0000
Re: how did I wind up with double headers? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-11 22:07 +0100
Re: how did I wind up with double headers? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-01-11 21:08 +0000
Re: how did I wind up with double headers? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2014-01-11 22:04 +0000
Re: how did I wind up with double headers? Dave Pyles <dave@user.invalid> - 2014-01-11 18:19 -0500
Re: how did I wind up with double headers? Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-11 19:23 -0500
Re: how did I wind up with double headers? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-01-12 00:30 +0000
Re: how did I wind up with double headers? richard <member@newsguy.com> - 2014-01-11 18:18 -0500
Re: how did I wind up with double headers? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2014-01-12 00:20 +0000
Re: how did I wind up with double headers? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-12 01:18 +0100
Re: how did I wind up with double headers? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-01-12 00:37 +0000
Re: how did I wind up with double headers? Evan Platt <evan@theobvious.espphotography.com.invalid> - 2014-01-11 17:29 -0800
Re: how did I wind up with double headers? The Natural Philosopher <tnp@invalid.invalid> - 2014-01-12 03:00 +0000
| From | richard <member@newsguy.com> |
|---|---|
| Date | 2014-01-11 15:00 -0500 |
| Subject | how did I wind up with double headers? |
| Message-ID | <1iz6hl98tu34s$.6mf0ex4z93no.dlg@40tude.net> |
http://mroldies.net/home.php View the page source. You will see I have two sets of headers. Yet, the original document does not! Where in the hell did the extra headers come from?
[toc] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2014-01-11 21:00 +0000 |
| Message-ID | <lasbcu$fth$1@dont-email.me> |
| In reply to | #12578 |
On Sat, 11 Jan 2014 15:00:48 -0500, richard wrote: > http://mroldies.net/home.php > > View the page source. > You will see I have two sets of headers. No you don't. The error is more fundamental than that. You appear to have nested a whole html document inside the body section of another html document. Please add "I am wholly unable to perceive the magnitude and scope of my coding fuck ups." to your cv. > Yet, the original document does not! > Where in the hell did the extra headers come from? The error comes from your fucked up code. Beyond that, it really is impossible to say precisely how you fucked up, although the chances are quite high that it is in some way a repetition of a previous fuck up. -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Doug Miller <doug_at_milmac_dot_com@example.com> |
|---|---|
| Date | 2014-01-11 21:07 +0000 |
| Message-ID | <XnsA2B2A4040ADF0dougmilmaccom@78.46.70.116> |
| In reply to | #12578 |
richard <member@newsguy.com> wrote in news:1iz6hl98tu34s$.6mf0ex4z93no.dlg@ 40tude.net: > http://mroldies.net/home.php > > View the page source. > You will see I have two sets of headers. Maybe *you* should view the page source. You have a lot more than that duplicated. > Yet, the original document does not! When will you ever learn to validate? http://validator.w3.org/check?uri=http%3A%2F%2Fmroldies.net%2Fhome.php&charset=% 28detect+automatically%29&doctype=Inline&group=0 > Where in the hell did the extra headers come from? Probably the same place the *entire*extra*HTML*document* came from... ya think? This page has two each of darn near everything.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-01-11 22:07 +0100 |
| Message-ID | <1456351.8oNpGW8y5a@PointedEars.de> |
| In reply to | #12578 |
At the risk of feeding a troll… – why isn't my killfile working? richard wrote: > http://mroldies.net/home.php > > View the page source. > You will see I have two sets of headers. Those are not headers, but “head” elements. > Yet, the original document does not! > Where in the hell did the extra headers come from? You have messed up your PHP program again – duplicate includes? Regarding preserving music from the 1960s: Ever heard of Spotify [1]? Do a service to humanity – and yourself: what about copyright? –, stop your project, and learn programming on something a lot more simple; if you can. TIA. PointedEars ___________ [1] <http://www.spotify.com/> -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
[toc] | [prev] | [next] | [standalone]
| From | Doug Miller <doug_at_milmac_dot_com@example.com> |
|---|---|
| Date | 2014-01-11 21:08 +0000 |
| Message-ID | <XnsA2B2A447FAF9Edougmilmaccom@78.46.70.116> |
| In reply to | #12578 |
richard <member@newsguy.com> wrote in news:1iz6hl98tu34s$.6mf0ex4z93no.dlg@ 40tude.net: > Where in the hell did the extra headers come from? How in the hell do you expect anybody to answer that? WE CAN'T SEE YOUR PHP CODE.
[toc] | [prev] | [next] | [standalone]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2014-01-11 22:04 +0000 |
| Message-ID | <lasf5r$60u$1@dont-email.me> |
| In reply to | #12582 |
Doug Miller wrote: > richard the sto0pid wrote: >> Where in the hell did the extra headers come from? > > How in the hell do you expect anybody to answer that? WE CAN'T SEE YOUR > PHP CODE. Prace bets now. His PHP code has a "=" instead of a "==". [ ] Yes [ ] No -- -bts -This space for rent, but the price is high
[toc] | [prev] | [next] | [standalone]
| From | Dave Pyles <dave@user.invalid> |
|---|---|
| Date | 2014-01-11 18:19 -0500 |
| Message-ID | <lasjhs$6ff$1@dont-email.me> |
| In reply to | #12583 |
On 1/11/2014 5:04 PM, Beauregard T. Shagnasty wrote: > Doug Miller wrote: > >> richard the sto0pid wrote: >>> Where in the hell did the extra headers come from? >> >> How in the hell do you expect anybody to answer that? WE CAN'T SEE YOUR >> PHP CODE. > > Prace bets now. His PHP code has a "=" instead of a "==". > > [ ] Yes [ ] No > [X] Yes [ ] No Dave Pyles
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-01-11 19:23 -0500 |
| Message-ID | <lasn9t$o6b$1@dont-email.me> |
| In reply to | #12583 |
On 1/11/2014 5:04 PM, Beauregard T. Shagnasty wrote: > Doug Miller wrote: > >> richard the sto0pid wrote: >>> Where in the hell did the extra headers come from? >> >> How in the hell do you expect anybody to answer that? WE CAN'T SEE YOUR >> PHP CODE. > > Prace bets now. His PHP code has a "=" instead of a "==". > > [ ] Yes [ ] No > Sorry, I don't take sucker bets :) -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Doug Miller <doug_at_milmac_dot_com@example.com> |
|---|---|
| Date | 2014-01-12 00:30 +0000 |
| Message-ID | <XnsA2B2C65C91492dougmilmaccom@78.46.70.116> |
| In reply to | #12583 |
"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in news:lasf5r$60u$1 @dont-email.me: > > Prace bets now. His PHP code has a "=" instead of a "==". > > [X ] Yes [ ] No >
[toc] | [prev] | [next] | [standalone]
| From | richard <member@newsguy.com> |
|---|---|
| Date | 2014-01-11 18:18 -0500 |
| Message-ID | <g6azku8wa1qg.10do8re9dcoe6$.dlg@40tude.net> |
| In reply to | #12578 |
On Sat, 11 Jan 2014 15:00:48 -0500, richard wrote:
> http://mroldies.net/home.php
>
> View the page source.
> You will see I have two sets of headers.
> Yet, the original document does not!
> Where in the hell did the extra headers come from?
For you whiners that insist, here's the damn whole page with code.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mr Oldies Preserving Rock and Roll Forever!</title>
<style>
</style>
</head>
<body>
<?php
$go=$_GET['a'];
if(empty($go)){$go=0;}
if ($go==0){include "http://mroldies.net/home1.php";}
if ($go==1){include "http://mroldies.net/test/index2.php";}
if ($go==2){include "http://mroldies.net/radio/24hours.php";}
?>
</body>
</html>
[toc] | [prev] | [next] | [standalone]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2014-01-12 00:20 +0000 |
| Message-ID | <lasn49$leh$1@dont-email.me> |
| In reply to | #12585 |
richard the sto0pid wrote:
> richard the sto0pid wrote:
>> http://mroldies.net/home.php
>>
>> View the page source.
>> You will see I have two sets of headers.
>> Yet, the original document does not!
>> Where in the hell did the extra headers come from?
>
> For you whiners that insist, here's the damn whole page with code.
>
> <!DOCTYPE html>
> <html lang="en">
> <head>
> <meta charset="utf-8">
> <title>Mr Oldies Preserving Rock and Roll Forever!</title>
>
> <style>
>
> </style>
>
> </head>
>
> <body>
>
> <?php
>
> $go=$_GET['a'];
> if(empty($go)){$go=0;}
>
> if ($go==0){include "http://mroldies.net/home1.php";}
> if ($go==1){include "http://mroldies.net/test/index2.php";}
> if ($go==2){include "http://mroldies.net/radio/24hours.php";}
If you were smart enough, you would use an if/elseif or a switch command
there, saving processing time. But that's beyond your meager abilities.
> ?>
>
>
> </body>
> </html>
And if you had even a modicum of ability, you would know that each one of
those possible includes *already has* html, head, and body elements.
It's so simple, even a child could understand it.
--
-bts
-This space for rent, but the price is high
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-01-12 01:18 +0100 |
| Message-ID | <4555789.NIToQkNJ70@PointedEars.de> |
| In reply to | #12585 |
richard wrote:
> On Sat, 11 Jan 2014 15:00:48 -0500, richard wrote:
>> http://mroldies.net/home.php
>>
>> View the page source.
>> You will see I have two sets of headers.
>> Yet, the original document does not!
>> Where in the hell did the extra headers come from?
>
> For you whiners that insist, here's the damn whole page with code.
Evidently, *you* are the whiner.
> <!DOCTYPE html>
> <html lang="en">
> <head>
> <meta charset="utf-8">
> <title>Mr Oldies Preserving Rock and Roll Forever!</title>
>
> <style>
>
> </style>
Remove that empty “style” element.
>
>
>
Why all those empty lines?
> </head>
>
> <body>
>
> <?php
>
> $go=$_GET['a'];
> if(empty($go)){$go=0;}
>
> if ($go==0){include "http://mroldies.net/home1.php";}
(null == 0) and ("" == 0), so if you compare like this (with type juggling),
you can skip the initialization.
> if ($go==1){include "http://mroldies.net/test/index2.php";}
> if ($go==2){include "http://mroldies.net/radio/24hours.php";}
As you have been told before: This will include whatever PHP *generates*
from these resources, if it parses them on <http://mroldies.net/>. Very
likely you want to use the relative file paths instead of URIs, e. g.
"home1.php".
It is also the worst possible way of selecting content for inclusion.
You could at least have used “switch” or a mapping array.
--
When all you know is jQuery, every problem looks $(olvable).
[toc] | [prev] | [next] | [standalone]
| From | Doug Miller <doug_at_milmac_dot_com@example.com> |
|---|---|
| Date | 2014-01-12 00:37 +0000 |
| Message-ID | <XnsA2B2C7A4634A2dougmilmaccom@78.46.70.116> |
| In reply to | #12585 |
richard <member@newsguy.com> wrote in news:g6azku8wa1qg.10do8re9dcoe6$.dlg@
40tude.net:
> For you whiners that insist, here's the damn whole page with code.
Idiot. The only "whiner" here, RtS, is *you*.
You *still* have not figured out that *you* are the only one who can see your PHP code, and
the only thing visible to the rest of the universe is the HTML that it generates, *not* the script
itself -- which means that if you want us to tell you what's wrong with your PHP code, you
HAVE TO include that code in your post. WE CANNOT SEE IT OTHERWISE.
> <!DOCTYPE html>
[...]
> <body>
> <?php
> $go=$_GET['a'];
> if(empty($go)){$go=0;}
>
> if ($go==0){include "http://mroldies.net/home1.php";}
Aaaaaand there's your problem right there.
Hint: what's in that file that you're including?
> if ($go==1){include "http://mroldies.net/test/index2.php";}
> if ($go==2){include "http://mroldies.net/radio/24hours.php";}
>
>
>
> ?>
>
>
> </body>
> </html>
[toc] | [prev] | [next] | [standalone]
| From | Evan Platt <evan@theobvious.espphotography.com.invalid> |
|---|---|
| Date | 2014-01-11 17:29 -0800 |
| Message-ID | <avr3d9pjcanvlh14397pvnrovb66etlfhs@4ax.com> |
| In reply to | #12578 |
On Sat, 11 Jan 2014 15:00:48 -0500, richard <member@newsguy.com> wrote: >http://mroldies.net/home.php > >View the page source. >You will see I have two sets of headers. >Yet, the original document does not! >Where in the hell did the extra headers come from? Obvious. PRBKAC. -- To reply via e-mail, remove The Obvious and .invalid from my e-mail address.
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2014-01-12 03:00 +0000 |
| Message-ID | <lat0gv$dm1$2@news.albasani.net> |
| In reply to | #12578 |
On 11/01/14 20:00, richard wrote: > http://mroldies.net/home.php > > View the page source. > You will see I have two sets of headers. > Yet, the original document does not! > Where in the hell did the extra headers come from? > probably you included something richard. But knowing you, it could be almost anything. -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web