FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177274&th=122563#msg_177274
I want the script to tell me how many there are.
so what command or function would I use?]]>richard2012-03-03T13:26:48-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177276&th=122563#msg_177276
> I have a page with nested <ul>'s.
> I want the script to tell me how many there are.
> so what command or function would I use?
+]]>Luuk2012-03-03T13:59:42-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177278&th=122563#msg_177278
> I have a page with nested<ul>'s.
> I want the script to tell me how many there are.
> so what command or function would I use?
Fido, count!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2012-03-03T14:08:27-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177279&th=122563#msg_177279
> On 03-03-2012 14:26, richard wrote:
>> I have a page with nested <ul>'s.
>> I want the script to tell me how many there are.
>> so what command or function would I use?
>
> +
or, start Googling for:
"I want a php script to tell me how many occurences of a string there
are in a file"
but leave out the unimportant parts of the question like:
" I want" and "to tell me"
so, Google for:
"php script how many occurences of a string there are in a file"
the first occurance is the RTFM of the *substr_count* function.]]>Luuk2012-03-03T14:10:24-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177280&th=122563#msg_177280
> I have a page with nested <ul>'s.
> I want the script to tell me how many there are. so what command or
> function would I use?
Naturally, you want to know how many <ul> there are in the generated
HTML, of course. That would be the "page." <ul> in a script can/could be
generated within a loop, with just one <ul> actually existing in the
script. (something else from dynamicdrive, I'll wager)
Drop your HTML output into any competent text editor and use the Find
function, usually Control-F. Sometimes, even the browser can tell you!!
--
-bts
-This space for rent, but the price is high]]>Beauregard T. Shagnas2012-03-03T14:56:54-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177283&th=122563#msg_177283
> richard the sto0pid wrote:
>
>> I have a page with nested <ul>'s.
>> I want the script to tell me how many there are. so what command or
>> function would I use?
>
> Naturally, you want to know how many <ul> there are in the generated
> HTML, of course. That would be the "page." <ul> in a script can/could be
> generated within a loop, with just one <ul> actually existing in the
> script. (something else from dynamicdrive, I'll wager)
>
> Drop your HTML output into any competent text editor and use the Find
> function, usually Control-F. Sometimes, even the browser can tell you!!
I'm not looking to see how many ul's are on a page for a personal
referencce. But rather, as a need for the rest of the script to know how
many items must be in an array.
As the basis for building a tree style menu.
While you may consider dynamicdrive a joke, at least they help.
I had a question about a script and they answered with the proper answer
without any bullshit like you give.
www.1littleworld.net/sample
All done with script provided by dynamicdrive and the lightbox script was
from elsewhere. With a modification made by a guy so that the script would
work as I wanted.
Before you go mouthing off about the errors, those are in the javascript,
not the html.]]>richard2012-03-03T16:39:00-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177284&th=122563#msg_177284
> Beauregard T. Shagnasty wrote:
>> richard the sto0pid wrote:
>>> I have a page with nested <ul>'s.
>>> I want the script to tell me how many there are. so what command or
>>> function would I use?
>>
>> Naturally, you want to know how many <ul> there are in the generated
>> HTML, of course. That would be the "page." <ul> in a script can/could
>> be generated within a loop, with just one <ul> actually existing in the
>> script. (something else from dynamicdrive, I'll wager)
>>
>> Drop your HTML output into any competent text editor and use the Find
>> function, usually Control-F. Sometimes, even the browser can tell you!!
>
> I'm not looking to see how many ul's are on a page for a personal
> referencce. But rather, as a need for the rest of the script to know how
> many items must be in an array.
> As the basis for building a tree style menu.
There are two <ul> on your /sample page.
> While you may consider dynamicdrive a joke, at least they help. I had a
> question about a script and they answered with the proper answer without
> any bullshit like you give.
>
> www.1littleworld.net/sample
Yup. two of 'em.
> All done with script provided by dynamicdrive and the lightbox script
> was from elsewhere. With a modification made by a guy so that the script
> would work as I wanted.
Have you ever tried to write a script on your own?
> Before you go mouthing off about the errors, those are in the
> javascript, not the html.
Are you inviting an error report? Some of them would go away if you
would use HTML 4.01 instead of XHTML (which is a dead no-future doctype).
There are also several errors in your CSS.
Why are you asking about JavaScripts in a PHP group?
--
-bts
-This space for rent, but the price is high]]>Beauregard T. Shagnas2012-03-03T17:25:55-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177286&th=122563#msg_177286
<a.nony.mous@example.invalid> wrote:
> Why are you asking about JavaScripts in a PHP group?
Because, they don't call him... oh you know where this is going.
--
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.]]>Evan Platt2012-03-04T00:47:32-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177291&th=122563#msg_177291
> I have a page with nested<ul>'s.
> I want the script to tell me how many there are.
> so what command or function would I use?
The specs are too vague to provide a precise answer but the starting
point is the DOMDocument class:
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--]]>alvaro.NOSPAMTHANX2012-03-05T09:02:27-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177293&th=122563#msg_177293
> On Sat, 3 Mar 2012 14:56:54 +0000 (UTC), Beauregard T. Shagnasty wrote:
>
>> richard the sto0pid wrote:
>>
>>> I have a page with nested<ul>'s.
>>> I want the script to tell me how many there are. so what command or
>>> function would I use?
>>
>> Naturally, you want to know how many<ul> there are in the generated
>> HTML, of course. That would be the "page."<ul> in a script can/could be
>> generated within a loop, with just one<ul> actually existing in the
>> script. (something else from dynamicdrive, I'll wager)
>>
>> Drop your HTML output into any competent text editor and use the Find
>> function, usually Control-F. Sometimes, even the browser can tell you!!
>
> I'm not looking to see how many ul's are on a page for a personal
> referencce. But rather, as a need for the rest of the script to know how
> many items must be in an array.
> As the basis for building a tree style menu.
>
> While you may consider dynamicdrive a joke, at least they help.
> I had a question about a script and they answered with the proper answer
> without any bullshit like you give.
>
Richard,
I fail to see why you respond so unfriendly ("bullshit like you give")
to Beauregard T. Shagnasty.
Maybe you had some problems with him before, but the answer he gave gave
you in this thread is correct and helpful.
I don't imagine I am the police in here, but I just want to warn you
that behaving aggressive will only result in your disadvantage: people
won't be inclined to help.
Just saying...
Regards,
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens]]>Erwin Moller2012-03-05T09:24:05-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177294&th=122563#msg_177294
> Richard,
>
> I fail to see why you respond so unfriendly ("bullshit like you give")
> to Beauregard T. Shagnasty.
> Maybe you had some problems with him before, but the answer he gave gave
> you in this thread is correct and helpful.
>
> I don't imagine I am the police in here, but I just want to warn you
> that behaving aggressive will only result in your disadvantage: people
> won't be inclined to help.
> Just saying...
richard is a moron. Search this group. He frequently pops up with some
inane question and gets personal both when people try to help or tell
him (politely) to do his homework (and/or bugger off).
Gregor]]>Gregor Kofler2012-03-05T09:43:50-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177296&th=122563#msg_177296
<erwinmollerusenet@xs4all.nl> wrote:
> Richard,
>
> I fail to see why you respond so unfriendly ("bullshit like you give")
> to Beauregard T. Shagnasty.
> Maybe you had some problems with him before, but the answer he gave gave
> you in this thread is correct and helpful.
That's typical of a response from richard. Expect nothing less.
--
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.]]>Evan Platt2012-03-05T14:41:16-00:00Re: which command to use
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=177319&th=122563#msg_177319
<erwinmollerusenet@xs4all.nl> wrote:
> Richard,
>
> I fail to see why you respond so unfriendly ("bullshit like you give")
> to Beauregard T. Shagnasty.
> Maybe you had some problems with him before, but the answer he gave gave
> you in this thread is correct and helpful.
That's typical of a response from richard. Expect nothing less.
--
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.]]>Evan Platt2012-03-09T06:18:13-00:00