Inserting PHP code - Post ID 93440

User 457958 Photo


Registered User
1 post

Hello,

Is it possible to insert php code to the very top of a php page? And can a web page have a php extension in VSD?


<?php include_once "/home/tumbasf/public_html/spambot-email-protector.php" ?>

Cheers - Rod
User 355448 Photo


Ambassador
3,144 posts

Rod,

Since VSD creates HTML pages, I doubt PHP files would work. If they do work, you would use the HTML tool to add the line/lines of php code.
User 486472 Photo


Registered User
24 posts

modify the server to parse .html as php using the .htaccess file or by adding a handler to apache.
User 364143 Photo


Guest
5,410 posts

Last post was was 20 months ago. Nice. :)
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.