Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5090 > unrolled thread
| Started by | richard <member@newsguy.com> |
|---|---|
| First post | 2012-03-03 08:26 -0500 |
| Last post | 2012-03-05 10:02 +0100 |
| Articles | 13 — 8 participants |
Back to article view | Back to comp.lang.php
which command to use richard <member@newsguy.com> - 2012-03-03 08:26 -0500
Re: which command to use Luuk <luuk@invalid.lan> - 2012-03-03 14:59 +0100
Re: which command to use Luuk <luuk@invalid.lan> - 2012-03-03 15:10 +0100
Re: which command to use Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-03 09:08 -0500
Re: which command to use "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-03-03 14:56 +0000
Re: which command to use richard <member@newsguy.com> - 2012-03-03 11:39 -0500
Re: which command to use "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-03-03 17:25 +0000
Re: which command to use Evan Platt <evan@theobvious.espphotography.com.invalid> - 2012-03-03 16:47 -0800
Re: which command to use Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-03-05 10:24 +0100
Re: which command to use Gregor Kofler <usenet@gregorkofler.com> - 2012-03-05 10:43 +0100
Re: which command to use Evan Platt <evan@theobvious.espphotography.com.invalid> - 2012-03-05 06:41 -0800
Re: which command to use Evan Platt <evan@theobvious.espphotography.com.invalid> - 2012-03-08 22:18 -0800
Re: which command to use "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-03-05 10:02 +0100
| From | richard <member@newsguy.com> |
|---|---|
| Date | 2012-03-03 08:26 -0500 |
| Subject | which command to use |
| Message-ID | <bptmgwk9u3pe$.1ttilre2f60au$.dlg@40tude.net> |
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?
[toc] | [next] | [standalone]
| From | Luuk <luuk@invalid.lan> |
|---|---|
| Date | 2012-03-03 14:59 +0100 |
| Message-ID | <4F5223CE.7080408@invalid.lan> |
| In reply to | #5090 |
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? +
[toc] | [prev] | [next] | [standalone]
| From | Luuk <luuk@invalid.lan> |
|---|---|
| Date | 2012-03-03 15:10 +0100 |
| Message-ID | <4bl929-563.ln1@luuk.invalid.lan> |
| In reply to | #5092 |
On 03-03-2012 14:59, Luuk wrote:
> 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:
$file = file_get_contents('test.php');
echo substr_count($file, '<ul>');
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.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2012-03-03 09:08 -0500 |
| Message-ID | <jit8ks$833$2@dont-email.me> |
| In reply to | #5090 |
On 3/3/2012 8:26 AM, 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? Fido, count! -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2012-03-03 14:56 +0000 |
| Message-ID | <jitbfm$du4$1@dont-email.me> |
| In reply to | #5090 |
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!! -- -bts -This space for rent, but the price is high
[toc] | [prev] | [next] | [standalone]
| From | richard <member@newsguy.com> |
|---|---|
| Date | 2012-03-03 11:39 -0500 |
| Message-ID | <tx6ehf0ix4qg$.oooi3n0b22k2.dlg@40tude.net> |
| In reply to | #5096 |
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. 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.
[toc] | [prev] | [next] | [standalone]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2012-03-03 17:25 +0000 |
| Message-ID | <jitk72$5ih$1@dont-email.me> |
| In reply to | #5099 |
richard the sto0pid wrote: > 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
[toc] | [prev] | [next] | [standalone]
| From | Evan Platt <evan@theobvious.espphotography.com.invalid> |
|---|---|
| Date | 2012-03-03 16:47 -0800 |
| Message-ID | <mse5l71bdu1geu8qt3gbotuuduaqnb69qq@4ax.com> |
| In reply to | #5100 |
On Sat, 3 Mar 2012 17:25:55 +0000 (UTC), "Beauregard T. Shagnasty" <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.
[toc] | [prev] | [next] | [standalone]
| From | Erwin Moller <erwinmollerusenet@xs4all.nl> |
|---|---|
| Date | 2012-03-05 10:24 +0100 |
| Message-ID | <4f548630$0$6959$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #5099 |
On 3/3/2012 5:39 PM, richard wrote:
> 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
[toc] | [prev] | [next] | [standalone]
| From | Gregor Kofler <usenet@gregorkofler.com> |
|---|---|
| Date | 2012-03-05 10:43 +0100 |
| Message-ID | <jj21sm$h15$1@dont-email.me> |
| In reply to | #5110 |
Am 2012-03-05 10:24, Erwin Moller meinte:
> 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
[toc] | [prev] | [next] | [standalone]
| From | Evan Platt <evan@theobvious.espphotography.com.invalid> |
|---|---|
| Date | 2012-03-05 06:41 -0800 |
| Message-ID | <p3k9l7ho61jp02s5mm7b8u1a7op9r34d17@4ax.com> |
| In reply to | #5110 |
On Mon, 05 Mar 2012 10:24:05 +0100, Erwin Moller
<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.
[toc] | [prev] | [next] | [standalone]
| From | Evan Platt <evan@theobvious.espphotography.com.invalid> |
|---|---|
| Date | 2012-03-08 22:18 -0800 |
| Message-ID | <358jl79ucesf0jano3noe04hihccgj2l94@4ax.com> |
| In reply to | #5110 |
On Mon, 05 Mar 2012 10:24:05 +0100, Erwin Moller
<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.
[toc] | [prev] | [next] | [standalone]
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Date | 2012-03-05 10:02 +0100 |
| Message-ID | <jj1vf2$3eb$1@dont-email.me> |
| In reply to | #5090 |
El 03/03/2012 14:26, richard escribió/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? The specs are too vague to provide a precise answer but the starting point is the DOMDocument class: http://es2.php.net/DOMDocument -- -- 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 --
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web