Entry
TSE: Language: Computer: Compile: PERL: How to run PERL from TSE v2.5?
Oct 4th, 2003 14:34
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 19 February 2002 - 09:16 pm -------------------
TSE: Language: Computer: Compile: PHP: How to run PHP from TSE v2.5?
---
Steps: Overview:
1. make sure you have PHP installed, so that e.g. php.exe can be found
on
your computer
e.g. goto URL:
http://www.activestate.com/ActivePerl
2. create a batchfile 'comphp.bat', containing this text
(adapt it to your system) and store this batchfile in your TSE
directory
(e.g. save to c:\mytsedirectory\comphp.bat)
@REM in general:
@REM
@REM @mydrive\mypath\myphpexecutable.exe <%1 %2
>myhtmloutputfilename.htm
@REM @start myhtmloutputfilename.htm
@REM @exit
@REM @c:\php\php.exe <%1.%2 >c:\bbc\taal\%1.htm
@c:\apache\php\php.exe <%1.%2 >c:\bbc\taal\%1.htm
@start c:\bbc\taal\%1.htm
@exit
3. Adapt the compiler information
(in TSE, after loading any file, press <SHIFT><F9>
then 'D' for debug compiler setup
then <ALT><C> to copy one of the compiler settings present
then change the fields:
'Extension' to: .php
'Description' to: PHP
'Command' to: c:\mytsedirectory\comphp.bat &name& &ext& &fn& >
&output&
make sure this information is permanently stored in the compiler
information (via <ENTER>, then <ESCAPE>)
4. If you now load a .php file, fill in some program code for php,
for example type or copy this text in a file 'mytest.php'
<HTML>
<BODY>
<?php echo( "Hello World" ); ?>
</BODY>
</HTML>
save that text in your TSE directory,
then press <CTRL><F9> or <ESCAPE><M><C> to compile, this will run
that
batch file, which redirects your file into php.exe, then redirects
the
created output to a .htm file, and start your browser, so you can
see that html file in your browser.
---
---
Internet: see also:
Computer: Wordprocessor: TSE: Language: Computer: Compile: Run:
Overview
http://www.faqts.com/knowledge_base/view.phtml/aid/24311/fid/895
----------------------------------------------------------------------