Hello,
can we run php in mikrotik. I have Mikrotik 3.30. Please tell if we can then how.
urgently waiting for answer.
Hello,
can we run php in mikrotik. I have Mikrotik 3.30. Please tell if we can then how.
urgently waiting for answer.
What do you mean? MPLS penultimate hop popping? As I remember the answer is yes =)
my mean was i want to run php with html files in MIKROTIK Router OS 3.30. Can we run php with php commands in RouterOS.
if yes then how. please explain about it
No, you cannot.
Hello Fewi,
i want to start prepaid card system with Authorize.net checkout. Can you please tell us how can i do this..
Run a webserver that runs your PHP code. Use an external login page server combined with a Hotspot as outlined in these examples: http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot#Examples
Ensure you add the external server to the walled garden so it’s reachable for unauthenticated users.
It’s fairly simple to do, really.
Please clear me one more thing. How can i connect my mikrotik server with my external page.
I don’t understand the question. Can you give an example?
I think he wants Hotspot interface integrate in external web page.
Try to include html block in php this may work ![]()
first of thanks to fewi and qdza for answering.
sorry qdza you wrong.
what i want.
i want to design a system in php with mysql for controlling our user in mikrotik. i want to execute commands in mikrotik with api.
so for this i want to paste php files in our routeros files instead of hotspot html files.
i think this time i clear my problem to both of you and others.
now suggest me what can i do.
Like I said before, you cannot run PHP on RouterOS. You need to use an external web server and redirect to it in the HTML login pages. The link I posted shows how.
The hotspot miniserv does not support PHP. It isn’t even a complete web server, as it only responds to a few predefined requests (e.g., login, status, logout). The closest thing I can think of would be to implement your GUI on an external web server, and use a redirect page on the RB to pass to the the web server whatever arguments it will need.
Where is mikrotik PHP class now