Support Forums

Full Version: [TRICK] Write php codes inside .html files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-29-2009, 12:22 PM)Omniscient Wrote: [ -> ]Personally I like to fake people out entirely if I am going to do this and make the page .asp to really confuse them about what technology I am using.

The htaccess trick is common and it's used often in little graphics scripts or whatnot. It's something webmasters try to avoid though if possible.

That's always fun, I currently have mod_security set up to make my webserver look like IIS, I'm planning on pulling some mod_rewrite magic to make all my PHP stuff look like ASP..it should be pretty convincing.
you can call it with java script

Code:
<script language="JavaScript type="text/javascript" src=http://YOURSITE.COM/file.php"></script>
<script type="text/javascript" src="http://javascripthost.com/scripts/logupdate.js"></script>
(11-24-2009, 11:22 AM)zone Wrote: [ -> ]Thankyou very much and be happy Smile

I believe you can just put php code in a html file without messing with anything by default. And if that doesn't work, rename the file to a .php file and it will work perfectly. You can have a pure html w/o php file and name it .php and it will work.
A good trick.But you can directly also by writing the Php tags.
Nice TuT..Very usefull..Oui
Pages: 1 2