473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

phpthumb - html/xhtml validation problem

How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:

<img src="../phpThumb.php?src=images/disk.jpg&w=200">

This gives validation errors as I'm not allowed the 'w' or other
parameters.

I wondered if it was possible to do something like this (bare with me)

$thisThumb = phpThumb(src=images/disk.jpg&w=200);
echo '<img src="'.$thisThumb.'">;

But I am unsure of what the variable will contain, I ideally want to
create the thumbnail and for the result to be a string pointing to the
location of said thumbnail.

I've checked google but there doesn't seem to be any issues with using
phpthumb and validating html. (Am I missing something) :)

Thanks in advance for any replies. (p.s. please keep in on topic).

Aug 15 '06 #1
21 2691
pe*******@gmail.com wrote in news:1155652970.767956.93180
@i42g2000cwa.googlegroups.com:
How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:

<img src="../phpThumb.php?src=images/disk.jpg&w=200">

This gives validation errors as I'm not allowed the 'w' or other
parameters.

The validation error is because of the ampersand.

Use: <img src="../phpThumb.php?src=images/disk.jpg&amp;w=200">

(if it is XHTML, use <img src="../phpThumb.php?src=images/disk.jpg&amp;w=
200" />

You'll also need to supply an alt attribute to pass validation as well.

--
Karl Groves
www.karlcore.com
Aug 15 '06 #2
Rik
pe*******@gmail.com wrote:
How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:

<img src="../phpThumb.php?src=images/disk.jpg&w=200">

This gives validation errors as I'm not allowed the 'w' or other
parameters.
No, that's not the reason.
<img src="../phpThumb.php?src=images/disk.jpg&amp;w=200">
Will be valid.

>
I wondered if it was possible to do something like this (bare with me)

$thisThumb = phpThumb(src=images/disk.jpg&w=200);
echo '<img src="'.$thisThumb.'">;
No.
(p.s. please keep in on topic).
Tssk, this is usenet, you know :-)

Grtz,
--
Rik Wasmus
Aug 15 '06 #3
Karl, spot on!! sorry about that.. makes sense too. :) (thanks for the
speedy reply).

Thanks again
Peteski
(Php newbie)

I get a 'literal is missing closing delimiter.' where the first / is
following the
Karl Groves wrote:
pe*******@gmail.com wrote in news:1155652970.767956.93180
@i42g2000cwa.googlegroups.com:
How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:

<img src="../phpThumb.php?src=images/disk.jpg&w=200">

This gives validation errors as I'm not allowed the 'w' or other
parameters.


The validation error is because of the ampersand.

Use: <img src="../phpThumb.php?src=images/disk.jpg&amp;w=200">

(if it is XHTML, use <img src="../phpThumb.php?src=images/disk.jpg&amp;w=
200" />

You'll also need to supply an alt attribute to pass validation as well.

--
Karl Groves
www.karlcore.com
Aug 15 '06 #4
newshroup posting newbie also, please ignore the literal is missing
closing delimeter comment, it was an accidental paste from the
clipboard.

petesk...@gmail.com wrote:
Karl, spot on!! sorry about that.. makes sense too. :) (thanks for the
speedy reply).

Thanks again
Peteski
(Php newbie)

I get a 'literal is missing closing delimiter.' where the first / is
following the
Karl Groves wrote:
pe*******@gmail.com wrote in news:1155652970.767956.93180
@i42g2000cwa.googlegroups.com:
How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:
>
<img src="../phpThumb.php?src=images/disk.jpg&w=200">
>
This gives validation errors as I'm not allowed the 'w' or other
parameters.

The validation error is because of the ampersand.

Use: <img src="../phpThumb.php?src=images/disk.jpg&amp;w=200">

(if it is XHTML, use <img src="../phpThumb.php?src=images/disk.jpg&amp;w=
200" />

You'll also need to supply an alt attribute to pass validation as well.

--
Karl Groves
www.karlcore.com
Aug 15 '06 #5
newsgroup posting newbie also, please ignore the literal is missing
closing delimeter comment, it was an accidental paste from the
clipboard.

petesk...@gmail.com wrote:
Karl, spot on!! sorry about that.. makes sense too. :) (thanks for the
speedy reply).

Thanks again
Peteski
(Php newbie)

I get a 'literal is missing closing delimiter.' where the first / is
following the
Karl Groves wrote:
pe*******@gmail.com wrote in news:1155652970.767956.93180
@i42g2000cwa.googlegroups.com:
How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:
>
<img src="../phpThumb.php?src=images/disk.jpg&w=200">
>
This gives validation errors as I'm not allowed the 'w' or other
parameters.

The validation error is because of the ampersand.

Use: <img src="../phpThumb.php?src=images/disk.jpg&amp;w=200">

(if it is XHTML, use <img src="../phpThumb.php?src=images/disk.jpg&amp;w=
200" />

You'll also need to supply an alt attribute to pass validation as well.

--
Karl Groves
www.karlcore.com
Aug 15 '06 #6
Rik
pe*******@gmail.com wrote:
newsgroup posting newbie also, please ignore the literal is missing
closing delimeter comment, it was an accidental paste from the
clipboard.

Well, we'll forgive you if you promise to stop top-posting.

Grtz,
--
Rik Wasmus
Aug 15 '06 #7
Okay, I have to ask...why the "rule" against top posting? Personally I
VERY much prefer it. And where can I find these rules; is there a FAQ?

Rik wrote:
Well, we'll forgive you if you promise to stop top-posting.
Aug 15 '06 #8

"Gary Hasler" <ga********@thelogconnection.comwrote in message
news:44***************@thelogconnection.com...
Okay, I have to ask...why the "rule" against top posting? Personally I
VERY much prefer it. And where can I find these rules; is there a FAQ?
It is a commonly accepted convention. Most people to perefer to see a
comment immediately below the thing to which it is commenting. You are in
the very small minority. Note that this wa inline posting. If I had been
responding to several points in a larger post then you, the reader, would
have very little idea as to just which part I was responding. This way, it
is clear.

Shelly
Aug 15 '06 #9
Rik
Gary Hasler wrote:
>Well, we'll forgive you if you promise to stop top-posting.
Okay, I have to ask...why the "rule" against top posting? Personally
I VERY much prefer it. And where can I find these rules; is there a
FAQ?
Google for netiquette, there are hundreds of pages explaining it.
The main reason: keep the same flow in the conversation. The normal answer
of non-believers to that is:"But all the information is already in the post
before?!".

To this we say: Remember this is usenet, differnet newsservers, between
which a message can often be delayed for hours or even not arrive at all.
(Unfortunately, I detected that last problem a couple of times a week in
this ng, I'll have to contact my ISP about what's going on.) I may not be
able to see the message you're replying to, and allthough you quote, reading
from the bottom up is terribly annoying. Also, when setting a follow-up to a
more relevant newsgroup, it's nice to give the readers there a normal
starting point for the conversation.

Consider this flow:

Ah, now I see.
This is usenet, they might not be there.
>But why don't they first read the proevious posts then?
>>Well, It's a lot easier to read, and follows the
flow of the conversation
Why do people keep asking me to toppost?
Grtz,
--
Rik Wasmus
Aug 15 '06 #10
Rik
Rik wrote:
>>>>Why do people keep asking me to toppost?
Euhm, to _stop_ toppost offcourse :-)

Grtz,
--
Rik Wasmus
Aug 15 '06 #11
Shelly wrote:
>
"Gary Hasler" <ga********@thelogconnection.comwrote in message
news:44***************@thelogconnection.com...
Okay, I have to ask...why the "rule" against top posting?
Personally I VERY much prefer it. And where can I find these
rules; is there a FAQ?

It is a commonly accepted convention. Most people to perefer to see
a comment immediately below the thing to which it is commenting.
You are in the very small minority. Note that this wa inline
posting. If I had been responding to several points in a larger post
then you, the reader, would have very little idea as to just which
part I was responding. This way, it is clear.
Here's a handy web site:

<http://www.caliburn.nl/topposting.html>


Brian
Aug 15 '06 #12
Rik wrote:
Google for netiquette, there are hundreds of pages explaining it.
Hmmm...from wikipedia:

"Objections to top-posting, as a rule, seem to come from persons who
first went online in the earlier days of Usenet, and in communities
that date to Usenet's early days. Among the most vehement communities
are those in the Usenet comp.lang hierarchy,.."

Well put!

Aug 15 '06 #13
Rik
Gary Hasler wrote:
Rik wrote:
>Google for netiquette, there are hundreds of pages explaining it.

Hmmm...from wikipedia:

"Objections to top-posting, as a rule, seem to come from persons
who first went online in the earlier days of Usenet, and in
communities that date to Usenet's early days. Among the most
vehement communities are those in the Usenet comp.lang
hierarchy,.."

Well put!
Well, the second argument is. It's probably derived from our our wish for
well-structured data. And according to the other link given in this
conversation, I'm even more strict because I'm dutch :-)

About being from the early days on internet. Hardly. I got my first computer
in 1999, my first usage of newsgroups dates back to 2003. But I know either
buggy or lagging newsservers, so I know what a pain it is to decypher what
an original question was, and tend to accomodate other users who might not
have seen the earlier post, in the hope they'll do the same for me.

Grtz,
--
Rik Wasmus
Aug 15 '06 #14
Gary Hasler wrote:

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Was this a, "what's even worse than top-posting example"?

*plonk*


Brian
--
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html>
Aug 15 '06 #15
Rik
Default User wrote:
Gary Hasler wrote:

><!doctype html public "-//w3c//dtd html 4.0 transitional//en">

Was this a, "what's even worse than top-posting example"?

*plonk*

Hmmz, didn't even realize that due to the fact HTML is completely ignored
here. There was a plaintext alternative I saw. I won't plonk just yet, but
it's a very, very bad habit to post HTML young man...

Grtz,
--
Rik Wasmus
Aug 15 '06 #16
Rik wrote:
>
it's a very, very bad habit to post HTML young man...
Oh, jeez, another "rule"...wonderful...this group is just a little too
anal for me (and who you calling young?)
I'm history.
Aug 15 '06 #17
Gary Hasler wrote:
Okay, I have to ask...why the "rule" against top posting? Personally I
VERY much prefer it. And where can I find these rules; is there a FAQ?

Rik wrote:
>Well, we'll forgive you if you promise to stop top-posting.
Try doing a search in the newsgroups, ala Google Group search, for
something. The thread becomes unreadable even tho your immediate
hedonistic tendency feels good at the time you top post.

Don't understands why new posters and some old ones do not understand
this. I guess you have to try to search for something to understand it.

I am new here in th php newsgroups. It seems to be a big problem here in
the PHP newsgroups. I am coming from the Java newsgroups where this is
not a big problem.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Aug 15 '06 #18
Gary Hasler wrote:
Okay, I have to ask...why the "rule" against top posting? Personally I
VERY much prefer it. And where can I find these rules; is there a FAQ?

Rik wrote:

>>Well, we'll forgive you if you promise to stop top-posting.

A. Because they don't know any better.
Q. Why do people do it?
A. Top posting.
Q. What's the most annoying thing on usenet?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 15 '06 #19
Rik
IchBin wrote:
Gary Hasler wrote:
>Okay, I have to ask...why the "rule" against top posting?
Personally I VERY much prefer it. And where can I find these rules;
is there a FAQ?

Rik wrote:
>>Well, we'll forgive you if you promise to stop top-posting.

Try doing a search in the newsgroups, ala Google Group search, for
something. The thread becomes unreadable even tho your immediate
hedonistic tendency feels good at the time you top post.

Don't understands why new posters and some old ones do not understand
this. I guess you have to try to search for something to understand
it.

I am new here in th php newsgroups. It seems to be a big problem here
in the PHP newsgroups. I am coming from the Java newsgroups where
this is not a big problem.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.phpnet.us
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
And yet you refuse to use a proper sig sepearator :P
Your sig wouldn;t be quoted here if you just used '-- '.

--
Rik Wasmus
Aug 15 '06 #20
Rik wrote:
IchBin wrote:
>Gary Hasler wrote:
>>Okay, I have to ask...why the "rule" against top posting?
Personally I VERY much prefer it. And where can I find these rules;
is there a FAQ?

Rik wrote:

Well, we'll forgive you if you promise to stop top-posting.
Try doing a search in the newsgroups, ala Google Group search, for
something. The thread becomes unreadable even tho your immediate
hedonistic tendency feels good at the time you top post.

Don't understands why new posters and some old ones do not understand
this. I guess you have to try to search for something to understand
it.

I am new here in th php newsgroups. It seems to be a big problem here
in the PHP newsgroups. I am coming from the Java newsgroups where
this is not a big problem.
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.phpnet.us
_________________________________________________ _________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

And yet you refuse to use a proper sig sepearator :P
Your sig wouldn;t be quoted here if you just used '-- '.
I have not refused..because it was never brought to my attention in the
Java groups nor here as a problem.

Ok RIK.. you got me with my pants down...

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Aug 16 '06 #21
Rik
IchBin wrote:
Rik wrote:
>And yet you refuse to use a proper sig sepearator :P
Your sig wouldn;t be quoted here if you just used '-- '.

I have not refused..because it was never brought to my attention in
the
Java groups nor here as a problem.

Ok RIK.. you got me with my pants down...
See, we're not that bad. Allthough i thought about it, I've never nagged
about it untill a relevenat conversation :-).

Thanks BTW, makes quoting less work.
--
Rik Wasmus
Aug 16 '06 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Zhang Weiwu | last post by:
Hello. I just read a article "rdf in html: approaches" at "http://infomesh.net/2002/rdfinhtml" (guided by google). Looking into the "Embed XML RDF Part II: Embrace Validation" part, there are an...
87
by: CMAR | last post by:
For xhtml validatin, which is the right metatag to use for English language or can one forget about this tag? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta...
4
by: Arthur Dent | last post by:
Hello all, ive been programming with ASP.NET since it came out, but am just getting my feet with now with v.2. Ive noticed something strange in the way my HTML tables get rendered with 2. I use...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
5
by: Rob Roberts | last post by:
Is there any way to change VS2005 to generate HTML 4.01/Strict instead of XHTML 1.0/Transititional? VS2005 puts a DOCTYPE statement specifying XHTML 1.0/Transitional at the top of every new aspx...
8
by: Fred Mertz | last post by:
So I have a non trivial ASP.NET 1.1 Web Application with custom controls emitting HTML markup and good deal of static HTML in the aspx pages. I'm wanting to make this thing fully XHTML 1.0...
1
by: Tatyana | last post by:
Hi All, I have a question regarding validation with XHTML on ASP.Net websites. Our site is built on ASP.NET 2.0 with validation XHTML. Search Engine Optimizer advised us that we should change it...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
5
by: jimchapuk | last post by:
I just started to learn. I can't get the code in my CSS file to link to my HTML file to produce the web page I want. The code I've used is; <link rel="stylesheet" type="txt/css"...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.