How to run Jargon PHP schema query from command line (.bat file)
If it is desired to test PHP code functionality without using a browser and web server, a .bat file works nicely.
Example: Run capability in schema.html via command line.
Use:
php .\select.php ROWSPERPAGE=200 Format=VA ShowRowNum=no SELECT="SELECT * from Customer WHERE Name > 'A' AND Name < 'B'"
---------------------
In this example, the query:
SELECT="SELECT * from Customer WHERE Name > 'A' AND Name < 'B'
will be run via PHP script in batch environment.
Example: Run capability in schema.html via command line.
Use:
php .\select.php ROWSPERPAGE=200 Format=VA ShowRowNum=no SELECT="SELECT * from Customer WHERE Name > 'A' AND Name < 'B'"
---------------------
In this example, the query:
SELECT="SELECT * from Customer WHERE Name > 'A' AND Name < 'B'
will be run via PHP script in batch environment.