Skip to content

Instantly share code, notes, and snippets.

@manuel-rubio
Last active November 2, 2017 13:43
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save manuel-rubio/7949523 to your computer and use it in GitHub Desktop.

Testing ephp

To test how can works ephp I do a escriptize and you can use it to execute simple php code:

git clone https://github.com/bragful/ephp
cd ephp
make

This generates an ephp command you can use it as follow:

./ephp test.php

I attach in this git the test.php code and the testing.html result.

Check more here: https://bragful.org/

<html>
<head>
<title>Mi Web Example</title>
</head>
<body>
<table>
<? for ($i=0; $i<10; $i++) { ?>
<tr>
<td><?=$i?></td>
</tr>
<? } ?>
</body>
</html>
<html>
<head>
<title>Mi Web Example</title>
</head>
<body>
<table>
<tr>
<td>0</td>
</tr>
<tr>
<td>1</td>
</tr>
<tr>
<td>2</td>
</tr>
<tr>
<td>3</td>
</tr>
<tr>
<td>4</td>
</tr>
<tr>
<td>5</td>
</tr>
<tr>
<td>6</td>
</tr>
<tr>
<td>7</td>
</tr>
<tr>
<td>8</td>
</tr>
<tr>
<td>9</td>
</tr>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment