1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I have a strange problem, my php3 scripts are not working id saved under HTMLs.

    Detail: If I save the PHP3 scripts as HTML it does not work. If I save PHP3 then only it works.

    I think I am missing some configuration setup. Can some one help. I am nebie to PHP3.
    I have RedHat Linux 5.2 (2.0.32), with PHP3.0.9

    Please help...

    Suresh Kumar

  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    You're going to have to tell Apache to send .html files through the PHP parser (it doesn't by default).

    If you have a high traffic website, I'd recommend against doing that. You don't want every page running thru the PHP parser even if it contains no PHP.

    But if you want to, you just need to add a line to Apache's httpd.conf like:

    AddType application/x-httpd-php3 .html

    You'll probably find a line just like the one above that already has '.php3' at the end.
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I would think incorporating the HTML and the php scripts in the same file would work just fine using,

    AddType application/x-httpd-php3 .phtml

    as a line in httpd.conf and making sure that the <? //phpcode ?> are in their respective places, singeling out php and html.

    Maby I missunderstood the question but I use this method with great success on multiple sites on our webservers.
  6. #4
  7. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Thank you jpenix and gash,

    It fixed my problem, now Iam a happy PHPLIB er.

    Suresh Kumar

Similar Threads

  1. Replies: 10
    Last Post: May 13th, 2004, 06:38 PM
  2. working with ODBC
    By jp1234 in forum Oracle Development
    Replies: 0
    Last Post: February 1st, 2004, 02:26 PM
  3. Pl scripts are not getting executed.
    By bala_sd in forum Perl Programming
    Replies: 3
    Last Post: January 15th, 2004, 04:59 PM
  4. LAN not working
    By dave2k in forum Computer Hardware
    Replies: 1
    Last Post: January 11th, 2004, 04:18 AM
  5. Cook scripts conflict
    By soon in forum HTML Programming
    Replies: 0
    Last Post: December 22nd, 2003, 01:42 PM

IMN logo majestic logo threadwatch logo seochat tools logo