Install and use the Script-PHP compiler

Home: https://www.iqlevsha.ru/

Install compiler on Windows

1) Extract the zip file to a directory, for example.

 c:\scriptol
This can be done using a free archiver such as 7-Zip or Advanced Explorer.

2) Make the compiler available by either placing it in the php directory or adding the Script directory to the path. To do this, add a line to autoexec.bat:

 path=%path%;c:\scriptol
On Linux, this can be a .bashrc file, see the documentation .

In Windows, the variable must be reached through the launch menu:

  1. Click the Start menu
  2. select control panel
  3. switch to classic display
  4. Click on the line "system"
  5. click "advanced"
  6. click the environment variable button
  7. select or create a path variable
  8. click edit
  9. add semicolon delimiter and path:; c :\script

Install PHP Interpreter

1) Download PHP interpreter to www.php.net.

2) Cancel archiving files to directory:

c:\php

3) Include this directory in the path, add the PHP path to the path variable: path =% path%; c :\php

4) Copy the php.ini-dist file to the Windows directory named php.ini.

5) Define the extension path, edit php.ini
Look for the extensions_dir channel in the Party and Directors section. Specify here the path of extensions provided in the PHP archive or coming from other sources:

 extensions_dir=c:\php\extensions
(Without quotes.)

6) Select the extensions you will be using:
Now find the extension under Dynamic Extensions. Each line is indicated by a semicolon. For each extension you want to use, remove the semicolon.
For example, if you want to process images, you should have the following line:

extension=php_gd.dll
Delete semicolon.

7) Change parameters:
When using the PHP interpreter for applications, the maximum execution time will be too short. Extend to e.g. 5 hours:

max_execution_time = 18000
memory_limit=128M

Now you are ready to work.

Use compiler

The sol.exe compiler runs on the command line in Windows with the source file name and parameters. For a list of parameters, enter:

solp

If you want to compile the script, enter:

solp nomsource
php -q nomsource.php

Compile without running source:

solp -c nomsource

If you want to compile an HTML page with embedded scriptol code inside, type:

solp -w fnomsource
php -q nomsource.php > test.html

In Windows, you can create a command file with these commands and% 1 for the file name node. Exempli gratia:

solp %1.sol
php -q %1.php

Install the compiler on Linux

Extract tar.gz archive 1) Open the superuser device. 2) Copy the archive to your personal directory. 3) Extract archive:

tar -zpxvf scriptol.tar.gz
A script directory will be created. 4) Copy the compiler inside the path: cp script/solphp/usr/local/bin/. 5) Close the super user terminal and open the normal terminal.

Use on Linux

To create a xxx.php file from the Script source xxx.sol.

solp xxxx

To start the program.

php -q xxxx.php