This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCPnet php-script

The updated RL-ARM 4.10 memtioned about enhancement supported of php-script as follow

[TCPnet - Enhancements]
Added: a new file type php-script, file extension php [text/html] to the Web server.

As far as i know normally php-script is a server side script which needed a parser code to run on server MCU like cgi-script (HTTP_CGI.c). But i've read through the user guide on keil website, nothing mention to the php-script on web server anymore.

Please anyone make me clear to this new feature and
how to use it.

Thank so much.
kom

  • Maybe an accident.

    Maybe they intended to write ppp or pap, to let you control how to log into networks using GPRS or similar?

    php is a large language, so platforms running php would more probably be running Linux and a real web server instead of the lite, lite, lite implementation available in RL-ARM.

  • Whatever this means, I think it's safe to assume that a PHP interpreter has not been added. TCPnet is targeted at microcontrollers with far too little memory to run PHP code.
    After all, if you had that much memory, you'd probably be running something more capable, like an embedded Linux system.

  • Hi

    We were looking for a way to develop websites for the ARM which could be easily tested on a server. Therefore we have made a simple php parser for the RL-ARM TCP-server. When building it we found out that the web server send switched to an octet stream when handling a php file. This gives problems with Firefox and should be a text stream. I have ticked this problem and they have fixed this.

    So the update is:

    When having files with an extension .php on you web server, it will be send to the client as a text stream instead of the octed stream (older RL-ARM).

    There is no parser, that part you should write yourself..