Configuring 404 errors with FastCGI and php files

Hi,
whenever a user triggers a 404, he gets a "No input file specified." error instead of the 404 error we configured in SJSWS 6.1. It looks like anything ".php" is sent to the parser, and if the file doesn't exist, the parser doesn't warn the webserver, but it returns the error directly to the client.
Are there any ways to make it work as it used to be before FastCGI?

Thanks for the reply, but that doesn't work in 6.1 (adding an if statement in obj.conf):
<If -f $path>
Service type="magnus-internal/fastcgi" fn="responder-fastcgi" app-path="/usr/local/php-5.2.4/bin/php-cgi" min-procs="1" app-env="PHP_FCGI_CHILDREN=1" app-env="PHP_FCGI_MAX_REQUEST=200" app-env="LD_LIBRARY_PATH=/usr/local/php-5.2.4/lib" app-env="PHPRC=/export/home/sunone/https-servername/config" app-env="ORACLE_HOME=/usr/oracle" app-env="TZ=Canada/Eastern" app-env="NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1" app-env="MAIL=/var/mail/root" app-env="LC_CTYPE=iso_8859_1" app-env="JAVA_HOME=/export/home/sunone/bin/https/jdk" app-env="DOCUMENT_ROOT=$docroot" reuse-connection="no" req-retry="5"
</If>
nrn7# ./start
Sun ONE Web Server 6.1SP8 B06/13/2007 23:15
config: CORE3185: Invalid configuration: File /export/home/sunone/https-servername/config/server.xml, line 19, column 92: HTTP3258: Error processing obj.conf line 20: HTTP2211: unknown container directive
Back to square one.

Similar Messages

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • Flex and php file uploader cross browser problems

    Hi, I have a problem in flex and php file uploader. It was
    working fine in Internet Explorer, but nothing would work in
    Firefox and in other browsers. Firefox and other browsers was not
    sending the session with the file upload and was producing a login
    error. On IE the session cookie is picked up and the upload request
    uses the authenticated session, no login error. I'm newbie in flex.
    Please help me. Thanks in advance!
    Here's my code:
    bgupload.mxml

    Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
    The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you.

  • Problem with Preview and PSD files - random gray square

    Hi guys, hope you can help...
    I've got a problem with Preview and PSD files.
    If I open in Preview both an original jpg straight from my reflex and the photoshop version of the same picture, the psd file presents a gray square (of what it seems unrendered image) in a random area of the photo (sometimes in the center.). The square is quite big...
    If I zoom in or zoom out it disappears...if I scroll to another photo and then back to the psd, the square it's there again...sometimes in a different position.
    I've tried the same psd on my older iMac with leopard...and got no problem at all.
    I suspect it got something to do with my Ati...
    (this is the second iMac 27...the first went back for gray banding on the lcd screen and flickering and yellow tinge........)
    Thanks for your help.
    DAve.

    maybe I'm onto something...
    I've just found out that opening Preview in 32bit mode (instead of default 64bit) works flawlessly with any psd files. If I switch back to 64bit mode, Preview is much faster but the gray square comes back...
    It seems like the i7 is much faster than the Ati....
    Any more realistic ideas?

  • Is there a way of running cd's"windows" formatted with inf and swf files?

    Is there a way of opening and running CD's 'window' formatted with .inf and .swf files on a mac??

    In your operating system, move the photos to wherever you want them to be (keeping the folder tree structure the same), and then in Lightroom re-link via http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm

  • Popup with open and save file option

    Hi,
    I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
    My page process code is
    begin
    pro_create_ical(:P6_START_DATE,:P6_END_DATE);
    end;when i click on export file button it should raise a popup with open and save file option.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 25, 2013 1:59 AM
    Edited by: Vedant on Jan 25, 2013 2:00 AM
    Edited by: Vedant on Jan 25, 2013 3:49 AM

    Shiv,
    Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
    This issue is fixed in Latest Support Package Versions.
    Which Version of Support Package you are using?
    If EP6 <SP19 you will face this issue.
    Just upgrade it to EP6, Support Pack-19,this will be resolved.
    Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
    Hope it helps
    Regards,
    Karthick Eswaran
    *Reward Points for helpful answers.

  • Populating a Combobox using Remoting with AMF and PHP

    Hello all
    I am using Zend framework and Flex 3.4 to create a webapp. I am stuck at how to populate a combobox dynamically using the service I created in PHP.
    In some of examples I saw that result of database query was being converted into XML and then sent to Flex. This seems a little too time-consuming if I have to do it every time. I saw some examples in Adobe Docs about Remoting with AMF and PHP. That seems like a better approach although how it would be applicable here is beyond me right now.
    Can somebody guide me in correct direction?
    Thanks and Regards
    Shivik

    Try this: http://code.google.com/p/as3flexdb/ is very easy to use and it
    will help.
    All you need to populate a combo is:
    <mx:ComboBox dataProvider="{query.Records} /

  • I'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    i'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    Thanks for your suggestions. I checked to see if the options you suggested were set incorrectly but they were set to sync all. This led me to think the problem was actually in the iphone. I re-initialized the iphone and did not allow the system to restore any of the previous settings. In essence, I forced the phone to reset to factory settings. Then my video podcasts started syncing. All is well now. I did notice that I had seven podcasts selected that were "HD" presentations, and as such, are not compatible with the iphone. I don't know if this had anything to do with my earlier situation, but now I'm getting the video podcasts automatically. I'm happy. It wasn't much fun forcing the iphone to forget all of my preferences and I'm still customizing the phone now several days later. I think I have everything working and back to normal except I haven't identified any of my email accounts as of yet. Thanks for your help.

  • Does Creative Cloud work with InDesign and linked files?

    Does Creative Cloud work with InDesign and linked files?

    This will work for online storage.
    The preview you will see on the website but will be what you see on your desktop if the the folder was missing. If you want someone else to be able to see a preview online to give comment feedback you could export out a PDF file of the work-in-progress and upload it.
    If you just want to work on the project at different locations it might be easier to zip up everything into a single file and upload it. Then download it onto the computer where you want to work and unzip it.

  • 404 errors with welcome file

    Here's a strange one.
    I've successfully deployed a test application
    with welcome-file-list directive as the only
    entry (besides required ?xml and DOCTYPE headers).
    When I attempt to access my page e.g., http://myMachine:port/testApp, the URL
    changes to read http://myMachine:port/testApp/welcome.htm as expected
    but I get 404 errors saying the page cannot be found.
    Web.xml successfully passes my XML parser so I don't think
    that is the problem.
    Any ideas?
    Thanks,
    TC Young

    Hi.
    What's the layout of your webapp directory structure? More to the point,
    your welcome.htm file should be in the root directory of your webapp. Can
    you confirm this is where you have it?
    Also, please post the relevant bits of your web.xml file here.
    Thanks,
    Michael
    TC Young wrote:
    My apologies.
    I'm running WL 6.1 on Solaris 2.6.
    The weblogic logs do not mention any 'Resource not found'
    exceptions.
    Thanks.
    "TC Young" <[email protected]> wrote:
    Here's a strange one.
    I've successfully deployed a test application
    with welcome-file-list directive as the only
    entry (besides required ?xml and DOCTYPE headers).
    When I attempt to access my page e.g., http://myMachine:port/testApp,
    the URL
    changes to read http://myMachine:port/testApp/welcome.htm as expected
    but I get 404 errors saying the page cannot be found.
    Web.xml successfully passes my XML parser so I don't think
    that is the problem.
    Any ideas?
    Thanks,
    TC Young
    Michael Young
    Developer Relations Engineer
    BEA Support

  • High Score Table: Writing a Simple Text File with Flash and PHP

    I am having a problem getting Flash to work with PHP as I need Flash to read and write to a text file on a server to store simple name/score data for a games hi score table. I can read from the text file into Flash easily enough but also need to write to the file when a new high score is reached, so I need to use PHP to do that. I can send the data from flash to the php file via POST but so far it is not working. The PHP file is confirmed as working as I added an echo to the file which displayed a message so I  could check that the server was running PHP - the files were also uploaded to a remote server so I  could test them properly. Flash code is as follows:
    //php filewriter
    var myLV = new LoadVars();
    function sendData() {
    //sets up variable 'hsdata' to send to php
    myLV.hsdata = myText;
    myLV.send("hiscores.php");
    I believe this sends the variable 'myText' to the php file as a variable called 'hsdata' which I want the php file to write into a text file. The mytext variable is just a long string that has all the scores and names in the hiscore. OK, XML would be better way of doing this but for speed I just want to get basic functionality working, so storing a simple text sting is adequate for now. The PHP code that reads the Flash 'hsdata' variable and writes it to the text file 'scores.txt' follows:
    <?php
    //assigns to variable the data POSTed from flash
    $flashdata = $_POST["hsdata"];
    //file handler opens file and erases all contents with w arg
    $fh = fopen("scores.txt","w");
    //adds data to file
    fwrite ($fh,$flashdata);
    //closes file
    fclose ($fh);
    echo 'php file is working';
    ?>
    Any help with this would be greatly appreciated - once I can get php to write simple text files I should be ok. Thanks.

    Thanks for your help.
    I have got Flash working to a certain extent with PHP using loadVars but have been unable to get flash to receive a variable declared in PHP. Here's my Flash code:
    var outLV = new LoadVars();
    var inLV = new LoadVars();
    function sendData() {
    outLV.hsdata = "Hello from Flash";
    outLV.sendAndLoad("http://www.mysite.com/hiscores/test23.php",inLV,"post");
    inLV.onLoad = function(success) {
    if (success) {
      //sets dynamic text box to show variable sent from php
      statusTxt.text = phpmess;
    } else {
      statusTxt.text = "No Data Received";
    This works ok and the inLV.onLoad function reports that it is receiving data but does not display the variable received from PHP. The PHP file is like this:
    <?php
    $mytxt =$_POST['hsdata'];
    $myfile = "test23.txt";
    $fh = fopen($myfile,'w');
    //adds data to file
    fwrite($fh, $mytxt);
    //closes file
    fclose ($fh);
    $mess = "hello there from php";
    echo ("&phpmess=$mess&");
    ?>
    The PHP file is correctly receiving the hsdata from flash and writing it to a text file, but there seems to be a problem with the final part of the code which is intended to send a variable called 'phpmess' back to Flash, this is the string "hello there from php". How do I set up Flash and PHP so that PHP can send a variable back to Flash using echo? Really have tried everything but am totally baffled. Online tutorials have given numerous different syntax configurations for how the PHP file should be written which has really confused me - any help would be greatly appreciated.

  • Online pdf and php files with google chromebook?

    chromebook keeps try to open Adobe php file and instead of opening them it saves them
    I have Abobe Flash Player Verision 11.6.602.180
    I need the Adobe reader to open php file

    Adobe Reader can't open php files.

  • 404 error with wwv_flow.accept on basic Oracle XE form

    Hi all,
    after some extensive research and head-scratching, I'm stumped with the following situation, and wondered if anyone here had any insights...
    I have a colleague who is expermimenting with Apex using Oracle XE 10G (For various tedious reasons, we will not be able to use 11G if this gets beyond an experimental stage, so please don't suggest upgrading - I'd love to if I could, but thats how it is...)
    He has constructed a very basic little database of a couple of tables, then created some simple forms to play with the data. On one form (a multiple field, multiple row screen used to update and review data in a single table), he gets intermittent 404 errors referring to wwv_flow.accept
    I configured the epg to display debug info, and got a consistent stream of ORA-06550 / PLS-00103 errors all referring to finding FLOWS_020100 where it was expecting an operator, etc. (I've pasted the full debug output below minus the field data)
    Installing 10G XE onto another colleague's PC did not reproduce the problem.
    Removing and re-installing 10G XE onto the original PC still produced the same errors.
    (And fwiw, I installed 11G XE on my PC, and that works just fine)
    Does anyone have any ideas please?
    many thanks,
    Simon
    Thu, 29 Mar 2012 15:51:21 GMT
    ORA-06550: line 5, column 262:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 390:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 518:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 646:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 774:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 902:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 1030:
    PLS-00103: Encountered the symbol "FLOWS_020100" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between
    ORA-06550: line 5, column 1158:
    PLS-00103: Encoun
    DAD name: apex
    PROCEDURE : wwv_flow.accept
    URL : http://XDB HTTP Server:8080/apex/wwv_flow.accept
    PARAMETERS :
    ===========
    P_FLOW_ID:
    100
    P_FLOW_STEP_ID:
    6
    P_INSTANCE:
    3408023606199096
    P_PAGE_SUBMISSION_ID:
    8087
    P_REQUEST:
    SUBMIT
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle Embedded PL/SQL Gateway/10.2.0.1.0
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=8080
    SERVER_NAME=XDB HTTP Server
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/wwv_flow.accept
    SCRIPT_NAME=/apex
    REMOTE_HOST=
    REMOTE_ADDR=127.0.0.1
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=tcp
    REMOTE_USER=ANONYMOUS
    ORACLE_SSO_USER=
    OSSO_IDLE_TIMEOUT_EXCEEDED=
    OSSO_USER_GUID=
    HTTP_CONTENT_LENGTH=32393
    HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    HTTP_HOST=127.0.0.1:8080
    HTTP_ACCEPT=image/gif
    HTTP_ACCEPT_ENCODING=gzip
    HTTP_ACCEPT_LANGUAGE=en-ie
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=WWV_CUSTOM-F_715517672407298_100=B599E605240FC50A968356801BEB7337; WWV_FLOW_USER2=B599E605240FC50A968356801BEB7337; ORA_WWV_REMEMBER_UN=POWER_R:POWER_R; LOGIN_USERNAME_COOKIE=power_r; ISCOOKIE=true
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://127.0.0.1:8080/apex/f?p=100:6:3408023606199096:::::&success_msg=1 row(s) updated, 0 row(s) inserted./3F535DE29AC2AD2F95C620169B16EB79/
    HTTP_SOAPACTION=
    HTTP_ORACLE_ECID=
    HTTP_ORACLE_CACHE_VERSION=
    HTTP_AUTHORIZATION=
    WEB_AUTHENT_PREFIX=
    DAD_NAME=apex
    DOC_ACCESS_PATH=docs
    DOCUMENT_TABLE=wwv_flow_file_objects$
    PATH_ALIAS=
    REQUEST_CHARSET=AL32UTF8
    REQUEST_IANA_CHARSET=UTF-8
    SCRIPT_PREFIX=
    HTTP_IF_MATCH=
    HTTP_CACHE_CONTROL=
    SOAP_BODY=
    HTTP_X_ORACLE_DEVICE_CLASS=
    HTTP_X_ORACLE_DEVICE_ORIENTATION=
    HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
    HTTP_X_ORACLE_DEVICE=
    HTTP_X_ORACLE_ORIG_ACCEPT=
    HTTP_X_ORACLE_ORIG_USER_AGENT=
    HTTP_X_ORACLE_USER_LOCALE=
    HTTP_X_ORACLE_USER_NAME=
    HTTP_X_ORACLE_USER_DISPLAYNAME=
    HTTP_X_ORACLE_USER_USERKIND=
    HTTP_X_ORACLE_USER_AUTHKIND=
    HTTP_X_ORACLE_USER_DEVICEID=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
    HTTP_X_ORACLE_USER_LOCATION_BLOCK=
    HTTP_X_ORACLE_USER_LOCATION_CITY=
    HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
    HTTP_X_ORACLE_USER_LOCATION_COUNTY=
    HTTP_X_ORACLE_USER_LOCATION_STATE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
    HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
    HTTP_X_ORACLE_USER_LOCATION_TYPE=
    HTTP_X_ORACLE_USER_LOCATION_X=
    HTTP_X_ORACLE_USER_LOCATION_Y=
    HTTP_X_ORACLE_SERVICE_HOME_URL=
    HTTP_X_ORACLE_SERVICE_PARENT_URL=
    HTTP_X_ORACLE_HOME_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
    HTTP_X_ORACLE_CACHE_USER=
    HTTP_X_ORACLE_CACHE_SUBID=
    HTTP_X_ORACLE_CACHE_AUTH=
    HTTP_X_ORACLE_CACHE_DEVICE=
    HTTP_X_ORACLE_CACHE_LANG=
    HTTP_X_ORACLE_CACHE_ENCRYPT=
    HTTP_X_ORACLE_ASSERT_USER=

    No, its a very sensible question... :)
    The difficulty I face is that it is required to test this on Oracle 10G XE, so upgrading Apex is out due to it being bundled in.
    Any actual deployment would be into an Oracle 10 environment initially, which is why it was desired to use 10G XE as the test before going about configuring anything "for real". I guess I might have to look at actually deploying it into a full test environment - especially as the error only happens on one PC.
    It would be nice to know why it does it though, just to generate a bit more confidence in the user base!

  • Photo gallery with buttons and php.

    I am relatively new to actions script, very new to as3, and brand new to php. I have tried very hard to figure all of this out via tutorials, studying the code, etc but now I'm running out of time to get this done so I need some help.
    I am trying to make a photo gallery that functions as follows:
    -the php gathers all of the filenames from a folder and returns it to flash
    -an array of buttons is loaded onto the stage (one for each photo)
    -flash then loads the first image into a movie clip.
    -when the user clicks on button[i], image[i] loads in the movie clip.
    -i also plan to incorporate what might happen if the number of photos exceeds the number of buttons that can fit nicely on the stage, like an arrow to go to another set of buttons. I haven't tried coding this yet since I was just trying to get the thing to work in general first. If anyone has ideas about this, let me know.
    Please don't make fun of me too much. I know it's probably a mess.
    Thank you so much in advance for your help.
    Here's the php:
    <!--
    Author:      Adam Ehrheart
    Site:      http://adamehrheart.com
    Blog:      http://flashcamp.net
    Date:      4.21.08
    -->
    <?php
    #   Use "." if the get_files.php file resides in the same directory as files being read
    #   Otherwise you can change the path to whatever you like
    #   eg:
    #   Same Directory:
    #   $path = ".";
    #   Other Directory
    #   $path = "products/images/"
    $path = "Photography/";
    #   Choosing what directory to read
    if ($handle = opendir($path)) {
       #   Temporary array to hold image files
       $imageFiles = array();
       #   Creating loop and assigning current file to $file temp variable
       while (false !== ($file = readdir($handle)))
          #   Checking wheter or not the file is invisible and starts with a "."
          $fileCheck = substr($file, 0, 1);
          #   Checking to make sure the files is either a (jpg, JPG, png, PNG)
          $fileType = substr($file, -3);
          #   Making sure file is not invisible
          if($fileCheck != ".")
             #   Making sure file is readable and dynamically loadable by Flash
             if($fileType == "jpg" || $fileType == "JPG" || $fileType == "png" || $fileType == "PNG")
                #   Adding File to the image array
                if($path != "."){
                array_push($imageFiles, $path . $file);
                }else{
                   array_push($imageFiles, $file);
          #   Sorting the files alphabetically
          sort($imageFiles);
       #    Creating XML File output to be read by Flash
       echo "<?xml version=\"1.0\"?>\n";
       #   Root Node
       echo "<image_list>";
       #   Creating child nodes for each image
       foreach($imageFiles as $value)
          #   Pulling the Width and Height values for each file and adding them as attributes for the image node
          list($width, $height) = getimagesize($value);
          #   Creating the image node
          echo "<image width=\"$width\"" . " height=\"$height\">" . $value . "</image>";  
       echo "</image_list>";
       #   Closing the readdir function
       closedir($handle);
    And here's the as3:
    //php photo section
    import flash.events.Event;
    import flash.net.*;
    //load the php file
    var myRequest:URLRequest = new URLRequest("Photography.php");
    var myLoader:URLLoader = new URLLoader();
    //define images variable as an xml file
    var images:XML = new XML();
    images.ignoreWhite = true;
    images.addEventListener ('load', myLoader);
    //define the images variable as an xml as the php file result
    myRequest.data = images;
    //outputting the filenames
    function onLoaded(evt:Event):void {
      trace("here we get the data back: "+myLoader.data);
    //when the data is loaded, begin myRequest
    myLoader.addEventListener(Event.COMPLETE, onLoaded);
    myLoader.load(myRequest);
    //array to call the images
    var imageArray:Array //= NewArray();
    var listLength:Number;
    var il:XMLList = images.data  //xml.images;
    listLength=il.length();
    var i:Number
    var photo_btn:Array = new Array();
    for (i = 0; i < listLength; i++); {
    imageArray[i] = il[i].pic //xml.images[i].pic;
    if (photo_btn[i].mouseDown == true) {
    img_loader.load(imageArray[i])
    if (i == 0)  {
    photo_btn[i].y = 422.7;
    photo_btn[i].x = 411.5
    else if (i > 0 && i < 24); {
    photo_btn[i].y = 422.7;
    photo_btn[i].x = (photo_btn[i-1].x + 18.6);
    if (i > 24 && i < listLength); {
    photo_btn[i].y = 442.7;
    photo_btn[i].x = (photo_btn[i-1].x + 18.6);
    img_loader.load(imageArray[0]);

    As for AS3 part of it, I am not sure your code really works. There are syntax and logical errors there.
    I think you need to take it step by step and accomplish several task in the following sequences:
    1. Write code that loads XML correctly;
    2. Write code that enables buttons;
    3. Write code that will load images on button clicks.
    The code below shows in principal what needs to be done in order to load XML and make the data in this XML available for further consumption. Also, by accomplishing this step you will iron out all the PHP vs Flash wrinkles including your XML.
    Please note, I don't know your XML structure so all the parsing issues you need to resolve yourself.
    Once you get handle on it - we, hopefully, will talk about steps 2 and 3.
    import flash.display.Loader;
    import flash.events.*;
    import flash.net.*;
    var images:XML;
    var myRequest:URLRequest;
    var myLoader:URLLoader;
    // list of image urls that will come from loaded XML
    var imageList:XMLList;
    myRequest = new URLRequest("Photography.php");
    myLoader = new URLLoader();
    myLoader.addEventListener(Event.COMPLETE, onFileLoaded);
    // suggested handler for unexpected errors - avoids some headaches
    myLoader.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
    myLoader.load(myRequest);
    // Note: all the listeners are removed
    // it is always wise to remove listeners that are needed any longer
    // to make objects eligible for arbage collection
    function onLoadError(e:IOErrorEvent):void
         trace(e.toString());
         myLoader.removeEventListener(Event.COMPLETE, onFileLoaded);
         myLoader.removeEventListener(IOErrorEvent.IO_ERROR, onLoadError);
    function onFileLoaded(e:Event):void
         myLoader.removeEventListener(Event.COMPLETE, onFileLoaded);
         myLoader.removeEventListener(IOErrorEvent.IO_ERROR, onLoadError);
         images = new XML(myLoader.data);
         // only now xml is ready and you can start loading images
         imageList= images.pic;

Maybe you are looking for

  • How to Read excel or .csv files in java

    I am writing a program which takes input as excel or .csv file. How to read these files. Any API's are existed or need to use the third party jar. Please suggest me. Thanks & Regards

  • Not updating GUID in DPR_Project table.

    Hi Experts, We are using external number while creating the project in cProject. In DPR_PROJECT Table it updating the same number in both fields (GUID & PROJECT_ID). Example: If I put the "2000" as project number. If I go and check in table GUID & PR

  • Bad export file

    Hello, I have a problem exporting my applicaton. After exporting (file format:DOS, build status: run & bild, debugging:yes, export object definition:yes, export comments:yes, file character set: Unicode UTF-8) I get file wich is not complete. It's si

  • 2 new drives - still no recognition

    Ok, this is getting beyond silly / frustrating to a whole new level. I installed a new hard drive, worked only briefly, locked up, hard shutdown, restricted/folder comes up. I put in the old drive, every things fun. I do some suggested diagnostics on

  • I cannot figure out how to download itunes to my microsoft surface, HELP!

    Need help to download iTunes to my microsoft surface that has Windows RT on it. Does anyone know how to do this?