note 71028 added to ref.dir
| From: | php-general at lists dot php dot net | Date: | Thu, 09 Nov 2006 03:47:54 +0000 |
| Subject: | note 71028 added to ref.dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119534@lists.php.net to get a copy of this message | ||
I need help......
What I need is a script to pull a list of images...(JPG)...from the current directory or a directory
of my choosing and then sort the list and then out put a TEXT file such as this:
//This is the variable and then defines the Current Directory
&GalleryName=1_kyablonsky&
//This defines the variable and the count of the images being processed
&imagecount=3&
//This is a variable that defines the current directory with "/tn" added
&thumbsfolder=1_kyablonsky/tn/&
//This is a variable that defines the current directory with "/" added
&imagefolder=1_kyablonsky/&
//This defines the first image being processed
&image1=pic1.jpg&
//This is Static....will Always say Yes
&imagednload1=YES&
//This will be the image description, but is defined as "picture-#" as the current picture
that is being processed
&imagetitle1=Picture-1&
//This will be the date from the image
&imagedate1=10/19/2006&
//This will be static as well...defining "picture-#" where # is the current picture being
processed
&imagetext1=This is Picture-1&
...
//This will be a Static variable...defining the end of the folder being processed
&done=1&
The second one I need will pull a list of Directories from the current directory or a directory of
my choosing and then sort the list and then out put a TEXT file such as this:
//This defines the total number of folders being processed
&catcount=3&
//This is a static comment
//X=NO Default Gallery....R=Random Default Gallery....#(Any number to select which gallery as
Default
//This will be set as a static variable as well
&autoload=R&
//This defines that it is the first item being processed
&cat1Id=1&
//This will define the name of the catalog, but could start as the folder name
&cat1Name=Paris 06-Paris City&
//This will be defined as the folder name with "/images.txt" appended
&cat1file=7_paris06_paris/images.txt&
//This will be the folder with "/tn/pic0.jpg" appended
&cat1image=7_paris06_paris/tn/pic0.jpg&
...
//This will be static text
&horzthumbs=4&
//This will be static text
&vertthumbs=3&
//This will be static text
&hthumbsspacer=68&
//This will be static text
&vthumbsspacer=70&
//This will be static text
&slidesseconds=5&
//This will be static text
&done=1&
I hope this is clear.
I've been having a very hard time trying to find examples....
Any help will be very appreciated.
If anyone could email me at yablonsky@yahoo.com for further discussion on this.
If anyone wants to see the Flash Gallery page that this will be used for...you can visit here:
http://www.yablonsky.com/familyphotos/index.html
Thanks
Ken
----
Server IP: 216.194.113.175
Probable Submitter: 68.4.201.174
----
Manual Page -- http://www.php.net/manual/en/ref.dir.php
Edit -- https://master.php.net/note/edit/71028
Del: integrated -- https://master.php.net/note/delete/71028/integrated
Del: useless -- https://master.php.net/note/delete/71028/useless
Del: bad code -- https://master.php.net/note/delete/71028/bad+code
Del: spam -- https://master.php.net/note/delete/71028/spam
Del: non-english -- https://master.php.net/note/delete/71028/non-english
Del: in docs -- https://master.php.net/note/delete/71028/in+docs
Del: other reasons-- https://master.php.net/note/delete/71028
Reject -- https://master.php.net/note/reject/71028
Search -- https://master.php.net/manage/user-notes.php