note 2025 deleted from Basic syntax by jmoore
| From: | jmoore@php.net | Date: | Sun, 01 Oct 2000 03:41:47 +0000 |
| Subject: | note 2025 deleted from Basic syntax by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5719@lists.php.net to get a copy of this message | ||
I like to use Frontpage Express for editing my web pages. It has a facility for embedding scripts
that works with php using <script> tags. I also like to open a web page in a browser and then
click on the edit button to edit it. But the snag is you actually end up editing the processed
page, not the one with the raw scripts. If your wife happens to edit the page and save it out -
bang - all your script code goes bye-bye. Here is an asnwer to this problem. Make sure you have ASP
style tags turned on and add this line as the first line in your php page ------------->
<% if(strstr($HTTP_USER_AGENT,"Frontpage")) { readfile($SCRIPT_FILENAME); exit(); }
%>
<--------------.
This basically dumps the file raw if the page is being read by Frontpage. Cool eh?
-Dino