Get a Jumpstart with our Sample Apps
Results 1 to 11 of 11

Thread: Accepted File Types

  1. #1
    Sarah Mengesha
    Guest

    Default Accepted File Types

    Hello,

    This is probably a question most have already figured out, but I guess there is no harm in asking.

    Are .a5w, .html, and .a5wcmp the only file types supporeted by Alpha WAS?

    I would like to try and include some .php pages in my project, is this possible?

    Thanks as always,

    Sarah Mengesha

  2. #2
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,608

    Default RE: Accepted File Types

    The Web Application Server can serve any file type. However it will only execute A5W pages. If you were to server PHP pages, the unevaluated source of your pages would be sent to the user's browser.

    -Lenny

  3. #3
    Sarah Mengesha
    Guest

    Default RE: Accepted File Types

    So are you saying there is no way to configure php pages to be executable on the Alpha WAS?

    Sarah

  4. #4
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,608

    Default RE: Accepted File Types

    Correct, that is what I am saying

  5. #5
    VAR
    Real Name
    Cheryl Lemire
    Join Date
    Jul 2003
    Location
    Pembroke Pines, FL
    Posts
    2,914

    Default RE: Accepted File Types

    Lenny,

    Is it possible to install the php module to the web server?

    Thanks
    Cheryl

  6. #6
    "Certified" Alphaholic
    Real Name
    Peter Wayne
    Join Date
    Apr 2000
    Posts
    1,728

    Default RE: Accepted File Types

    Lenny,
    At the risk of being presumptuous, I think you're wrong. With the Apache module, Apache can be configured to service php pages and to send .a5w pages to the WAS. As long as php code isn't mixed with a5w code in the same page, it should be possible to mix a5w pages with php pages on the same web site.
    - Peter

  7. #7
    Sarah Mengesha
    Guest

    Default RE: Accepted File Types

    Have you tried this Peter? Can you elaborate a little on how this would be done? I am not very familiar with Apache but which would be the primary server in this situation, Apache or Alpha? Would this be very complicated to set up?

    Thanks,

    Sarah

  8. #8
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,608

    Default RE: Accepted File Types

    While you are correct Peter, the Apache module is not generally available. In this configuration the Web Application Server is still not processing any PHP, those requests would be handled by Apache.

    If you'd like to mix Xbasic and PHP (or ASP, Coldfusion, Perl, etc), you really don't even need the Apache module. You can run The Web App Server and IIS or Apache and send the requests for the relevant server using port numbers on your hyperlinks.

    But the answer to "So are you saying there is no way to configure php pages to be executable on the Alpha WAS" is still correct - the Web App Server cannot execute the PHP

    -Lenny

  9. #9
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,608

    Default RE: Accepted File Types

    The server does not support external exucutables or CGI programs.

  10. #10
    "Certified" Alphaholic
    Real Name
    Peter Wayne
    Join Date
    Apr 2000
    Posts
    1,728

    Default RE: Accepted File Types

    Sarah,
    Lenny is certainly correct that the WAS cannot execute php pages. He is also correct in that you don't need the Apache module to include php pages in your project. What you can do, for example, is set up Apache to listen on port 80, and WAS to listen on port 81. Then if you have, say, a link to an .a5w page, you would set up the link as

    "a href="/MyA5wPage.a5w:81""Alpha Goodies"/a"

    and links to php pages would be set up as
    "a href="/MyPHPPage.php:80""php Goodies"/a"

    Whatever code you would use for response.redirect() in php pages and A5w pages would also have to know what server (Apache or WAS) to use. Either server could execute regular html pages; Apache will probably do them faster.

    - Peter

  11. #11
    Member
    Real Name
    Rob Polley
    Join Date
    Nov 2005
    Posts
    420

    Default Re: Accepted File Types

    Just wanted to be clear. If I have a website with mostly htm or html pages, along with a few a5w pages, of course, I can serve it with just WAS? I do not need Microsoft WebServer? This is great news! Can someone please verify this for me?

    Thank you.

    --Rob

Similar Threads

  1. Credit Card Sevice (payment accepted)
    By Barron Weant in forum Web Application Server v6
    Replies: 2
    Last Post: 03-23-2005, 03:08 PM
  2. Variable types
    By Al Lenkner in forum Alpha Five Version 6
    Replies: 6
    Last Post: 12-19-2004, 10:29 AM
  3. Alpha Five File Types
    By davej in forum Alpha Five Version 5
    Replies: 6
    Last Post: 02-05-2004, 06:01 AM
  4. New Data Not Accepted in V5
    By 1alpurdy in forum Alpha Five Version 5
    Replies: 6
    Last Post: 01-27-2004, 04:58 AM
  5. Mismatched Types
    By CapeMayAl in forum Alpha Five Version 4
    Replies: 2
    Last Post: 03-30-2002, 04:18 AM

Posting Permissions

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