473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

use php in python httpservers

Hi, that is my task:
I need to create python webserver-like extension(dll) which will run
php and python scripts as plugins.
I have no problems with dll creating and run python scripts, but I
cannot understand how to run php(CLI is not a solution).
Is there a way to solve this problem? I've thought to implement php to
HTTPServer-like python module, but as I see it's impossible. Solutions
with creating intermediate C-based module is allowed, but better
without them :).
AFAIK, php5ts.dll is that what I must use but how integrate it to
python webserver? that is a question
Jun 27 '08 #1
4 871
ctypes?
Jun 27 '08 #2
On May 5, 3:48 pm, Jeff <jeffo...@gmail.comwrote:
ctypes?
hm..may you explain it?
Jun 27 '08 #3
ar*****@gmail.com wrote:
Hi, that is my task:
I need to create python webserver-like extension(dll) which will run
php and python scripts as plugins.
I have no problems with dll creating and run python scripts, but I
cannot understand how to run php(CLI is not a solution).
Is there a way to solve this problem? I've thought to implement php to
HTTPServer-like python module, but as I see it's impossible. Solutions
with creating intermediate C-based module is allowed, but better
without them :).
AFAIK, php5ts.dll is that what I must use but how integrate it to
python webserver? that is a question
http://www.amazon.com/Extending-Embe.../dp/067232704X

Might be of help.

And maybe the roadsend PHP-compiler.

Diez
Jun 27 '08 #4
On May 6, 3:00 pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
arta...@gmail.com wrote:
Hi, that is my task:
I need to create python webserver-like extension(dll) which will run
php and python scripts as plugins.
I have no problems with dll creating and run python scripts, but I
cannot understand how to run php(CLI is not a solution).
Is there a way to solve this problem? I've thought to implement php to
HTTPServer-like python module, but as I see it's impossible. Solutions
with creating intermediate C-based module is allowed, but better
without them :).
AFAIK, php5ts.dll is that what I must use but how integrate it to
python webserver? that is a question

http://www.amazon.com/Extending-Embe...s-Library/dp/0...

Might be of help.

And maybe the roadsend PHP-compiler.

Diez
thanks! great book! this would help with Jeff recommendations to use
ctypes

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Emile van Sebille | last post by:
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final before the end of the year, and start 2004 with a 100% bug-free codebase <wink>." -- Tim Peters "cjOr proWe vbCould...
0
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice...
0
by: Emile van Sebille | last post by:
QOTW (in the OS agnostic category): "There is a (very popular) Python package out there which exposes the win32 api. I'm not sure what it's called. (win32api? pythonwin? win32all?)" -- Francis...
0
by: Emile van Sebille | last post by:
QOTW (advanced interfaces track): "I'm firmly in favour of any language that can DWIMNWIS." -- Tim Delaney QOTW (MS roadkill track): "Underestimate MS at your own risk. It is one thing to not...
3
by: artasis | last post by:
Hi, that is my task: I need to create python webserver-like extension(dll) which will run php and python scripts as plugins. I have no problems with dll creating and run python scripts, but I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.