This topic is locked

PHP source code tags

4/16/2008 3:25:01 AM
PHPRunner General questions
W
wex-alpha author

Hello,
I plan to disable right click on my portable browser by adding java code within <body> tags. Usually I do it after the php is closed, something like:
[codebox]<?php
//MY CODE
?>
AND AFTER THAT I DO
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;

<html xmlns="http://www.w3.org/1999/xhtml">;

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Untitled Document</title>

</head>
<body>

<script language="JavaScript">

<!--...

ETC...

</body>

</html>

[/codebox]
WHile trying to implement same functionality in php files generated by phprunner, I noticed something odd... none of the files is closed with ?>. So in order to insert my Javascript I need to close it. It works, thats all right... but I am wondering if I manually close all php files (over 1000), will that make some issues later on?

Alexey admin 4/17/2008

Hi,
the code you see on the Visual Editor tab in PHPRunner is a HTML template of the page. There are no PHP code there.

If you want to insert your PHP code there right-click on the page and choose Insert PHP code snippet item.

W
wex-alpha author 4/18/2008

Thank you for reply <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=28178&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
However, I am opening (hacking) .php that are already generated by Phprunner. I Use Dreamweaver to edit my PHP code.
As I already said, Every
.php file generated by Phprunner that I open, is not closed. In order to add my Javascript, I need to close it by adding php close tags
[codebox]<?php

?>[/codebox]
It works alright have no problems with it. I just being curious as to why is it that way?