Ask a Question related to PHP Development, Design and Development.
-
Sven Dzepina #1
Number of pages
Hello,
I have a question:
How I can count the number of pages on my Site simply? The Script should
follow the links in the HTML context.
I have developed a pattern, with help, for this problem:
/([\w]+:\/\/[\w-?&;#~=\.\/\@]+[\w\/](\.(html|php|shtml|htm|xhtml|xml)))/i
Gretting.
Sven Dzepina Guest
-
How to number pages
Hi im a newbie in inDesign, i cant find how to number all pages of my document, i hope you can help me whith this simple questions. regards PS... -
File size triples for same number pages
We put our course descriptions online in a PDF file. It's all text, no special fonts, no pictures. This year the file size for 67 pages is 1896Kb... -
"Number of pages" field in MS Word
When creating a PDF from MS Word the "number of pages" field in the PDF document seems to be interpreted as "page number" for example in Word doc... -
pages number?
Hi, how to custom the grid so can put the pages number into a listbox, and when user select the page number, will jump right to the page records?... -
sort from the smallest number to the highest number
Hi Just say I want to sort the row by using the fifth column data as reference from the smallest the largest number, if using sort, It will give... -
Randell D. #2
Re: Number of pages
"Sven Dzepina" <mail@styleswitch.de> wrote in message
news:3f8bf8fb$0$20073$9b4e6d93@newsread2.arcor-online.net...Do you want it to be dynamically updated?> Hello,
>
> I have a question:
> How I can count the number of pages on my Site simply? The Script should
> follow the links in the HTML context.
> I have developed a pattern, with help, for this problem:
> /([\w]+:\/\/[\w-?&;#~=\.\/\@]+[\w\/](\.(html|php|shtml|htm|xhtml|xml)))/i
>
> Gretting.
>
>
>
Are you using Linux/Unix?
If you just want a quick count, on linux/unix, you could just do something
like
$ find . \( -name "*.htm?" -o "*.php" -o "*.shtml" -o "*.xhtm" -o "*.xml"
\) -print | wc -l
This will find the number of files then pipe the result thru to wc -l which
counts the number of lines (programs) returned...
Loose the "| wc -l" to see the files listed on their own.
Randell D. Guest



Reply With Quote

