This is a discussion on "PHP help required :(" within the PHP Forum section. This forum, and the thread "PHP help required :( are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP help required :(
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
PHP help required :(
I am looking for some help on msn or a link to a tutorial or pre built script which i could implement. What I am aiming to do is this. On my website
www.webmaster-files.com/index.php I am looking to have a php script so at the bottom right area where the site stats are shown php automatically detects how many of each type of file are shown on the site and displays that number in the table cell. Any help is much appreciated. Michael Clarke mikkaclarke@hotmail.com |
|
|
|
|||
|
Re: PHP help required :(
Some more information will help to find a solution. Where are the actual pages / files stored that you want to count? Are they in individual directories for categories (photoshop tuts) or subcategories (photoshop custom shapes) or do they have a naming convention that distinguishes between categories with all the pages in one directory, or are they all kept in a database etc.
|
|
|||
|
Re: PHP help required :(
automatically detecting is hard to do with files, If each file includes a database entry or a form that uploads the file then its easy to do. I added you on msn, and ill be glad to help you.
__________________
www.MonsterCoding.com - Website Programming and Development Services |
|
|||
|
Re: PHP help required :(
At the moment they are all in thumbnails directory. I am going to use the images rather than actual download file. They are named according to their type eg template1.bmp. patterns1.bmp etc
|
|
||||
|
Re: PHP help required :(
This should be easy possible by looping through a directory object to retrieve the file properties of each file.
Not knowing an awful lot of PHP I'll ask that someone else continue with this.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: PHP help required :(
I managed to get this following script to work. The only problem is when it is on my index.php it adds on the previous php scripts number. You can see the example on www.webmaster-files.com at the bottom right it is cumulative and adds the previous ones result to its. I am using the script
|
|
|||
|
Re: PHP help required :(
if you add
unset($files); before the final ?> that should do it. |
![]() |
| Tags |
| php, help, required |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checkbox Required | WebNinja | Starting Out | 1 | Jan 6th, 2008 00:36 |
| JSP help required | ScorpionKing | Other Programming Languages | 2 | Aug 27th, 2007 18:29 |
| Help Required | Bradz | Web Page Design | 11 | Nov 24th, 2006 20:10 |
| Script Required | asa_carter | JavaScript Forum | 0 | Jan 23rd, 2006 14:23 |
| Help required | H_Therapist | Web Page Design | 3 | Nov 9th, 2005 00:09 |