Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. "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...
    4. 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?...
    5. 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...
  3. #2

    Default Re: Number of pages


    "Sven Dzepina" <mail@styleswitch.de> wrote in message
    news:3f8bf8fb$0$20073$9b4e6d93@newsread2.arcor-online.net...
    > 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.
    >
    >
    >
    Do you want it to be dynamically updated?

    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139