ANNOUNCE: PyPHP, Python programming using the PHP web framework

A

Antony Lesuisse

PyPHP the python php bridge
===========================

Download it at http://lesuisse.net/pyphp-0.1.tgz

WARNING this is experimental !

Summary:
--------

PyPHP enables Python programming in the PHP web framework.
PyPHP is not yet another Python Web framework, it is the PHP web framework made
available to Python programmers.

With PyPHP you get the best of both Python and PHP world:
- The power, cleanness and robustness of the Python language
- The much used, developped and maintained PHP framework

The most useful PHP framework features you get access to are:
- Session management (using pickle you are be able to store your python objects
in the PHP sessions)
- Persistent database connections
- HTTP authentification
- Ouput buffering and header/cookie management

While most python programmers would favor the Python Standard Library to the
PHP functions library, PyPHP allows PHP programmers to use the PHP functions
from their Python code and brings new features to the Python programmers.


Quickstart:
-----------

Hello world in pyphp, hello.php:

-------------------------------------------------------
<?include("pyphp.php");?>
from pyphp import php

print "Hello World"
-------------------------------------------------------

Accessing php functions, test.php:

-------------------------------------------------------
<?include("pyphp.php");?>
# vim:syntax=python:
from pyphp import php

php.header("Content-Type: text/plain")
print "Hello from python<br>\n"
print php.explode("/","/etc/passwd")
php.eval("print_r($_SERVER);")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top