Apache: showing images in ascending order by name

hi:
i have several detail pages where i show images contained in
a folder:
$folder = dir($path);
while ($folderEntry = $folder->read()){
if ($folderEntry <> "." && $folderEntry
<> ".." &&
substr($folderEntry, -6, 2) <> "00") {
echo '<li><img src="'.$path.$folderEntry.'"
/></li>';
$folder->close();
in the local server they appear in the way i want, in
ascending order by
name (img_01.jpg, img_02.jpg, img_03.jpg, ...) but in the
remote server
they appear in, apparently, random order
i activated FancyIndexing in the httpd.conf file but it
doesn't solved
the problem:
# Directives controlling the display of server-generated
directory
listings.
# FancyIndexing is whether you want fancy directory indexing
or
standard
IndexOptions FancyIndexing
# End of indexing directives.
i know i can store the filenames names in an array an sort it
but i
prefer to control it in the server
local (OS X 10.4.10)
Apache/1.3.33 (Darwin) PHP/5.1.6
remote (Red Hat Linux 2.6.9-34.ELsmp)
Apache/2.0.52
tia,
jdoe

Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
Hope this helps! bill
1 GHz Powerbook G4   Mac OS X (10.4.9)  

Similar Messages

  • Mail AND entourage showing contacts in the order last name, first name?

    hi, I want to use mail and entourage parallel. mail can display the name in the "correct" order last name, first name. using entourage I cannot find this option. it´s always a mess, sorted by last name, but in the order: first name last name.
    Does somebody know the solution how to tell entourage to behave like mail in this matter ?

    Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
    Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Bridge not showing images in numerical order

    I'm in Bridge CS3 .  Out of a folder full of 108 images all are in numerical order except for 6 that are out of sequence.  I double and triple checked that my filenames were all uniform except for the numbers.  What's going on here, can someone shed some light?  I'm attaching a screen capture showing items 002 - 007 out of sequence.

    According to your screenshot the filter panel shows sort by Date created. If
    you change this (click on the name or the little triangles to show the
    submenu with this option) to sort by filename (you can choose between
    ascending and descending with the other arrow) it will show the correct
    order. There are also more sort orders to choose from
    What's going on here, can someone shed some light? 

  • Lightroom 5 will not sort images properly, either by file name or capture time.  How can I fix this issue?

    I am using Lightroom 5 with OSX 10.9.2 and the sorting feature is not working properly.  When I try to sort my library by file name or capture time, it does not sort properly.  The order of images is mixed and stays that way, even after reboot.  The file information is correct, the sorting is the only issue.  The library is approximately 6,000 images and I am also using a plug in with the Publishing Service feature.  Any help on how to fix this issue without losing my editing work done on the library would be appreciated.  Thanks! Dan

    Thanks! I'm trying to sort by capture time or file name, and neither sorts correctly.  file names 3450, 3451, etc. before files 0234, 0235, etc.  It makes no sense.  Same with capture time.  Times are accurate in meta data, but sorting is just wrong.  I'm using a ShootProof plug in that is only used for uploading files to the web. The issue is in the main library folder, so I'm not sure the plugin has anything to do with it.  Any sort I seem to choose: capture time ascending order, file name descending order, whatever, yields a different yet inaccurate sort.  The below sort is flagged, by file name ascending order.  This is the bottom of the list where it goes from file brigitte_terry_w6408... to brigitte_terry_film_0039... to brigitte_terry_w2825...  Regardless of the 'film' file, the w2825... files should be displayed above w6408.  Thanks for any help!

  • Show lov records in ascending order

    we want lov to display the records in ascending order in forms. How can i do this ?
    please help!

    Hi,
    you can visit the following links. It will helps you to create a LOV using Form Personalization.
    http://apps2fusion.com/apps-training/147-forms-personalizations
    http://blog.optiosys.com/?p=202
    http://erpschools.com/articles/change-displayed-data-in-lov-using-forms-personalization#13486622087461&59812::resize_frame
    HTH
    Sanjay
    Edited by: Sanjay Desai on Sep 26, 2012 5:58 PM

  • Image with foreign characters in name won't display

    I have an image on my drive whose name has foreign characters ("c�pia de frente.jpg"). To display the image my JSP reads the image name from the database and generates the following html:
    <img src="../pictures/c�pia de frente.jpg">The page then displays a broken image icon for this image. Images in the same list which do not have foreign chars get displayed accurately. When I choose "show image.." in my browser I see that the image name has been rewritten into the following: c%C3%B3pia%20de%20frente.jpg. The rewriting that will display the image is instead c%F3pia%20de%20frente.jpg. I found the correct rewriting on another of my JSP where the image with the foreign chars actually gets displayed correctly although the code to generate the html is the same on both pages and looks something like this (simplified):
    <logic:iterate id="listelement" name="list" property="rows" scope="request" type="org.apache.commons.beanutils.DynaBean">
    <%         
    out.write("<img src=\"../pictures/"+listelement.get("name").toString()+"\">");
                             %>  <br>                     
                            </logic:iterate> Every image that doesn't have foreign chars in its name gets displayed accurately but images with foreign chars in their names won't display. What am I doing wrong?
    Thanks
    Niklas

    Thanks, but it doesn't seem necessary to replace foreign characters. It works without replacing in one place but not in another which is confusing. I think it is something with the enconding but can't see what the difference is between the working and non-working code. In both pages I have put <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">I'd greatly appreciate any more suggestions to solve this problem.

  • Doesn't Sort data in Ascending order in Hash Table?

    Hello
    I am using JSP, Servlets. After quering in servlets, putting data in HashTable then set attribute in servlets, get attribute in JSP & retrieving data from HashTable in JSP & putting in select html element, data is not coming in ascending order in select drop down box. I need A,B,C,D but it is coming b,d,c,a. When I run query in DB, it shows in sequence but after putting in HashTable, it is not coming in sequence.
    How to make it ascending?
    Looking forward for an early reply.
    Thanks.

    Hi
    Something to do with TreeMap(TreeSet). I tried with TreeSet but it didn't work. Here is the code :
    In servlet :
    Connection lConnection = getConnection(pRequest);
    String lSQL = "";
    Statement lStatement;
    ResultSet lResultSet;
    Hashtable lLtypeHashtable = new Hashtable();
    lStatement = lConnection.createStatement();
    lSQL = "SELECT RCID,RCMEANING FROM REFERENCECODES WHERE RCDOMAIN = 'LOCATIONTYPE' AND RCROWSTATE > 0 order by RCMEANING";
    lResultSet = lStatement.executeQuery(lSQL);
    while(lResultSet.next())
    String lRcid = lResultSet.getString(1);
    String lRcmeaning = lResultSet.getString(2);
    lLtypeHashtable.put(lRcid.trim(),lRcmeaning.trim());
    if(lResultSet != null) lResultSet.close();
    if(lStatement != null) lStatement.close();
    pRequest.setAttribute("LtypeHashtable",lLtypeHashtable);
    //Below Query is executed when one data from select element is selected
    String lLType = DisplayUtilities.getString(pRequest.getParameter("LType"),true);
    //LType is name of select element in JSP.
    if (lLType != null)
    lSQL = lSQL + " AND " + lUpperCaseFunction + "(LOCATIONTYPE)" +
    " = " + DBUtilities.formatString(lLType.toUpperCase());
    pRequest.setAttribute("rLType",lLType+"");
    In JSp :
    <%
    Hashtable lLtypeHashtable = (Hashtable)request.getAttribute("LtypeHashtable");
    %>
    <TR>
    <TD width="15%"> <div align="left">
    <select name="LType" size="1" >
    <option Value="">< Select ></option>
    <%
    if(lLtypeHashtable != null)
    Enumeration enum = lLtypeHashtable.keys();
    while(enum.hasMoreElements())
    String key = (String)enum.nextElement();
    String value = (String)lLtypeHashtable.get(key);
    String flagBack = "";
    if(key.equals((String)request.getAttribute("rLType")))
    flagBack = "selected";
    %>
    <option Value="<%=key%>" <%=flagBack%>><%=value%></option>
    <%
    %>
    </select></div>
    </TD>
    </TR>
    How should I implement TreeSet?
    Looking forward for an early reply.
    Thanks.

  • Show image in crystal report 2008

    Hi All,
    I have a UDF - image type in Sales order Line item which stores image.
    Currently I want to display sales order line item data in CR2008 using a query.
    All data is coming but image field is showing image name in place of showing image.
    How can I show image.
    Kindly suggest.
    Deep Kulshrestha

    Hi Deep,
    An image type UDF only stores the image name in the database. When you add an image, the SBO client takes a copy of the image file and puts it in the Pictures folder (as defined in General Settings). Therefore, to use dynamic images in Crystal you will need to do the following:
    1) Create a formula in Crystal that combines the image name from the UDF field and the path to the Pictures folder to create the full path to the image (note: your Pictures folder must use a UNC or mapped drive path rather than a local path). It's easiest just to hardcode the path to the Pictures folder in the report but you'll have to bear in mind that this setting is company database specific. If you want to be able to run the report for multiple SBO databases then you may need to use a formula to change the path (you could add the OADM table to the report but there is no suitable join between this table and other tables in the database. The report would work because there is only ever 1 record in OADM but it's not good report design).
    2) Once you have your formula you can add a add a picture to the body of the report (at this point you should select a default image)
    3) Right-click the picture on the layout and choose Format Graphic.
    4) Select the Picture tab and click on the formula button to the right of the Graphic Location property
    5) In the formula window set the return value to the formula you created in step 1.
    6) At this point your image will dynamically change based on the UDF value. You may want to set a formula in the Suppress property of the image so that the default image is hidden if the UDF field is blank for a particular record.
    Kind Regards,
    Owen

  • Organize pictures in album ascending order

    How can we put the pictures to the most recent first in the album?
    Some of my albums are ok but some the old pictures are first , I tried to go highlight all pictures in album go to view/sort all projects view
    but the option by ascending order is not available .what should I do?
    Thanks

    Hi
    In browser mode (view-browser or hit the V key until it shows) there is a drop down menu at the top left of the browser pane. Hit image date then use the arrow to the right of the drop down to choose your preference
    Gary

  • Show image with advanced action

    I want to show an image using using an advanced action from a question slide
    I have inserted the image on the master slide because its a tick. And the question slides are in a pool.
    Is there anyway to show this image? When I click show in advanced actions I get a list of images but none have the names assigned.  They show img1, img2, img3 etc
    thanks for looking and help
    EDIT- I think my main problem is that none of the images have the names that they were assigned. Why?

    In order to use Advanced Actions to show or hide objects such as images you need to be able to reference the Item Name of the object.  Objects on Master Slides do not have Item Names, so you cannot show or hide them that way.  You need to place the objects on the slides themselves, give them a unique Item Name that helps you to find them in lists (e.g. change from img2 to img_Fred), set their Visible in Output to OFF, and then you can potentially use Advanced Actions to SHOW the images. 
    However, your next issue will be that on Question Slides you only have a few events you can use to trigger Advanced Actions.  You can trigger an action via the On Slide Enter event of the slide, but that only applies BEFORE the user has answered the question correctly or incorrectly.  The On Success and On Last Attempt events are the other events you can use and these fire AFTER the user has answered the question, but only AFTER the learner has clicked for the second time to quit the Feedback Captions on that slide.

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

  • Accessing the records in ascending order using index hint

    I am getting a problem in selecting the rows using the index hint which in i want to query in the ascending order.
    for eg.
    select /*+ index(temp_itr_header,tmp_itrhdr_1#IDX2) */ person_id
    from temp_itr_header

    Oracle knows that it doesn't have to resort data if it accessed individual rows from an index with the same sort order. In other words, adding the ORDER BY clause need not cause Oracle to do any extra work. Adding the ORDER BY does guarantee that the results will be sorted and will tend to cause Oracle to use the index, assuming it can avoid the sort that way. If you don't have an ORDER BY, Oracle is free to return rows in whatever order it would like regardless of your hint.
    If you want to use the index hint, the syntax is
    SELECT /*+ INDEX(temp_itr_header <<index name>>) */Note that you do not want to have a comma in your hint. Of course, if your statistics are accurate, you shouldn't need to resort to a hint here-- the CBO should pick the most efficient path.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Output to appear in ascending order

    Could someone please help me to get the contents of my output file in ascending order.
    I am reading a file mnf.xml kept inside my jar, the contents of it are
    <assets>
    </assets>I am writing the contents of the file mnf.xml to an output file, and am also adding the pdf filenames found in the directory.
    The contents of the output file after running the program are
    <assets>
    <pdf_files name="assets/123_001_ch_03.pdf"/>
    <pdf_files name="assets/123_001_ch_02.pdf"/>
    <pdf_files name="assets/123_001_ch_01.pdf"/>
    </assets>
    But I need my output to be in the following order
    <assets>
    <pdf_files name="assets/123_001_ch_01.pdf"/>
    <pdf_files name="assets/123_001_ch_02.pdf"/>
    <pdf_files name="assets/123_001_ch_03.pdf"/>
    </assets>
    My code is
    void fileMNF(File RootDir, String jTextField1Text)
         String filename=jTextField1Text.substring(0,jTextField1Text.lastIndexOf("."))+"_mnf.xml";
         String Assetsdir=RootDir+"\\"+"assets";
         File files=new File(Assetsdir);     
         String[] lists=files.list();
         try
              int val;
              char ch;
              InputStream is=getClass().getResourceAsStream("/Inputs/mnf.xml");
              File dstfile=File.createTempFile("mnf", ".xml");
              dstfile.deleteOnExit();
              FileOutputStream fos = new FileOutputStream(dstfile);
              int b;
              while((b = is.read()) != -1)
                   fos.write(b);
              fos.close();
              File inputfile=new File(dstfile.getAbsolutePath());
              File outputfile=new File(filename);
              BufferedReader in = new BufferedReader(new FileReader(inputfile));
              BufferedWriter out = new BufferedWriter(new FileWriter(outputfile));
              String line;
              while ((line=in.readLine()) != null)
                   if(line.startsWith("<assets>"))
                        for(int i=0;i<lists.length;i++)
                             if(lists.endsWith(".pdf"))
                                  line = PDFLineInsert(line,lists[i]);
                   out.write(line);
                   out.newLine();
                   out.flush();
              in.close();
              out.close();
         catch(Exception e)
              System.out.println(e.getMessage());
    private String PDFLineInsert(String line, String PDF)
         String res = "";
         res = line.replace("<assets>", "<assets>\n\r<pdf_files name=\"assets/"+PDF+"\"/>");
         return res;

    Your PDFLineInsert method is inserting your lines at the beginning of the file.
    You should change your logic to write the new lines as you get them. something like this:
              while ((line=in.readLine()) != null)
                   if(line.startsWith("<assets>"))
                       out.write(line);
                       out.newLine();
                        for(int i=0;i<lists.length;i++)
                             if(lists.endsWith(".pdf"))
                                  out.write("<pdf_files name=\"assets/"+lists[i]+"\"/>");
                                  out.newLine();
                   out.write(line);
                   out.newLine();
                   out.flush();
              in.close();
              out.close();
    ~Tim
    EDIT: remove the extra '>' in the write statement inside the for loop. it is caused by a bug in the forum software
    Message was edited by:
    SomeoneElse

  • Apple TV sorts my photos only in ascending order, how can I change so the most recent EVENTS appear first?

    Apple TV sorts my photos only in ascending order, how can I change so the most recent EVENTS appear first?

    I'm looking for an answer to this, too, since I have thousands of Events, and so scrolling down to the bottom every time I want to show my newest photos makes it almost unusable.

  • Showing Image in table

    Hi
         I want to show image in table based on the result i have a field status which contains the 01 / 02 / 03 values and now i want to show 3 images insted of value I have created one value attribute of string type and assigned the path of the image to it but its taking the image of last record only so can any one tell me what i have to do for this bellow is the code i am using
    wdContext.currentContextElement().setImgXiStatus("");
    if(xistatus.equals("01"))
        wdContext.currentContextElement().setImgXiStatus("green.bmp");
    else if(xistatus.equals("02"))
        wdContext.currentContextElement().setImgXiStatus("yellow.bmp");
    else if(xistatus.equals("03"))
        wdContext.currentContextElement().setImgXiStatus("red.bmp");
    else
        wdContext.currentContextElement().setImgXiStatus("");
    Thanks
    Ninad

    1 - NODE_MY_TRNAS
    1.1---NODEoutput
    1.1.1---NODEetData
    1.1.1.1---NODEimageNodeHelper
    1.1.1.1.1---icon
    Set singleton = false for node "NODEimageNodeHelper" and selection(NODEimageNodeHelper) = 1:1.
    Assuming card(NODEetData) =0:N, you can set the icon for row number i as follows:
    INODEetDataElement e = wdContext.nodeNODEetData().getNODEetDataElementAt(i);
    e.nodeNODEimageNodeHelper().currentNODEimageNodeHelperElement().setIcon("icon.gif");
    For naming nodes, the following rule is useful: Name in camel-case, first letter uppercase, for cardinality =0:N, use plural name.
    Example:
    Node "Books" (node, card=0:N) leads to IBooksNode, IBooksElement interfaces.
    Armin

Maybe you are looking for

  • How to fix acrobat 9.4.1 NOT to change position of objects after editing in Illustrator?

    Everyday I use the editing capabilities of Acrobat, with the ''Touchup Object Tool''. With objects, it opens in Illustrator, it's fantastic what you can do. A few days ago, I let Apple upgrade my OS from 10.6.4 to 10.6.5 (in fact, it is the second wo

  • Download size required to run Skype

    How much download size is required to run Skype for conference call in video-audio or just audio.  Is the size a function of how many are participating.   I normally run Skype from my dsl at home or ethernet at library.  However, I will be in a locat

  • Fixing selfreg.cmd on NT (user self registration)

    Ok, still trying to get the fully authorised method of getting self registration to work on Win NT/2000. I've got my portal30_sso_ua schema set up. I've run in ssoumgt.pks/pkb and therefore I can also see wwsso_ls_private and granted everything as ap

  • Satellite L450 - Webcam picture is grainy and dark

    I dont know if its the web cam on this model is not very good but the web cam is extremely grainy and dark. I have tried all usual playing about with settings but nothing improves the image i.e.,grainy lack of any colour and just generally really poo

  • Photoshop cs3 crashed while i was working on a file...

    photoshop cs3 crashed while i was working on a file. i checked the temp folder and found a file that was modified the day it crashed. there is no extension and when i tried to open it in photoshop it said that it "could not complete my request becaus