+ Reply to Thread
Results 1 to 6 of 6

Thread: php in shtml page

  1. #1
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    php in shtml page

    Before you say rename it to a php file hear me out. With the payed services I can make my own error pages such as 404.shtml however I wish to use a script i made to email me the errors with current url and referring url

    Is there a way that I can insert php scripting into my shtml files.

  2. #2
    mephis's Avatar
    mephis is offline x10Hosting Member mephis is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    39

    Re: php in shtml page

    Someone correct me if I'm wrong, but you can make any file type PHP parseable using Add Type.
    In your case it would be:
    Code:
    AddType application/x-httpd-phpv2 .shtml
    (just replace v2 for the x10hosting PHP version you have:
    v1=basic, v2=intermediate,...)

  3. #3
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: php in shtml page

    that is correct.

    =}

    I'm not correcting you because you are right (does that make sense?)
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  4. #4
    compwhizii is offline Banned compwhizii is an unknown quantity at this point
    Join Date
    May 2008
    Location
    The Moon
    Posts
    779

    Re: php in shtml page

    Quote Originally Posted by driveflexfuel View Post
    I wish to use a script i made to email me the errors with current url and referring url
    Unless you're not counting 404 errors that's a VERY bad idea. If someone where to find that out you would get flooded with emails and you could be suspended for spamming.

  5. #5
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: php in shtml page

    Quote Originally Posted by compwhizii View Post
    Unless you're not counting 404 errors that's a VERY bad idea. If someone where to find that out you would get flooded with emails and you could be suspended for spamming.
    :/
    I doubt anyone would send a single email out for each and every error. More likely that an email would be sent out once a day containing a list of all the errors...
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

  6. #6
    compwhizii is offline Banned compwhizii is an unknown quantity at this point
    Join Date
    May 2008
    Location
    The Moon
    Posts
    779

    Re: php in shtml page

    Quote Originally Posted by Scoochi2 View Post
    :/
    I doubt anyone would send a single email out for each and every error. More likely that an email would be sent out once a day containing a list of all the errors...
    Now that would be a much better idea.

+ Reply to Thread

Similar Threads

  1. Unique PHP page need lots of help
    By igames in forum Programming Help
    Replies: 6
    Last Post: 10-26-2008, 09:23 PM
  2. Noticia De upgrade PHP espaņol
    By figu120 in forum General
    Replies: 2
    Last Post: 11-22-2007, 04:42 PM
  3. Rewritten PHP Includes tutorial
    By [XiRE] in forum Tutorials
    Replies: 2
    Last Post: 07-28-2006, 10:19 AM
  4. PHP: Includes Tutorial
    By pulse__xx in forum Tutorials
    Replies: 14
    Last Post: 07-27-2006, 11:15 AM
  5. Ads in a php page
    By Chris in forum Free Hosting
    Replies: 10
    Last Post: 02-13-2005, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers