Hi,
I have some PHP scripts I'm moving from my web server to the local PC.
They just do file manipulation.
Anybody know of a tool for translating PHP to Python? A partial
translation would be hwlpful.
Also, any tips or pritfalls to look out for?
I'm mostly a Python / C / C++ programmer and do not have much experience
with PHP.
Thanks,
Bruce 7 17609
Bruce Dickey wrote: Hi,
I have some PHP scripts I'm moving from my web server to the local PC. They just do file manipulation.
Anybody know of a tool for translating PHP to Python?
Er... What about a programmer ?-)
(sorry, could not resist)
Bruno
Bruno Desthuilliers wrote: Bruce Dickey wrote:
Hi,
I have some PHP scripts I'm moving from my web server to the local PC. They just do file manipulation.
Anybody know of a tool for translating PHP to Python?
Er... What about a programmer ?-)
(sorry, could not resist) Bruno
Heh heh. Point taken. I actually *was* assuming I would be the tool --
I've been around Python long enough to have seen most of the resources
for desktop apps.
But Python web scripting I have not gotten into or read much about. It
appears to me that Python is increasing in popularity, not only on the
desktop, but also on the web server.
It seems to me that for folks migrating from PHP to Python, a translator
would be a handy tool. Especially if they have a large site to convert.
It would be a tool useful to a large number of people.
Bruce
Bruce Dickey <ce****@excite.com> writes:
[...] It seems to me that for folks migrating from PHP to Python, a translator would be a handy tool. Especially if they have a large site to convert. It would be a tool useful to a large number of people.
We look forward to the first release, Bruce. <0.5 wink>
John
> [Bruce Dickey] [Bruno Desthuilliers] Bruce Dickey wrote:
Hi,
I have some PHP scripts I'm moving from my web server to the local PC. They just do file manipulation.
Anybody know of a tool for translating PHP to Python?
Er... What about a programmer ?-)
(sorry, could not resist) Bruno
Heh heh. Point taken. I actually *was* assuming I would be the tool -- ... It seems to me that for folks migrating from PHP to Python, a translator would be a handy tool.
Um, was the point was really taken? Translating programming languages
is *very* hard. Otherwise, it would be possible to just translate
Python to C, with all the obvious benefits.
Perhaps automatic translation of some standard PHP patterns is
possible? No, still too hard. Think about it.
--
The subspace _W inherits the other 8 properties of _V. And there
aren't even any property taxes.
-- J. MacKay, Mathematics 134b
Bruce Dickey wrote: Bruno Desthuilliers wrote:
Bruce Dickey wrote:
Hi,
I have some PHP scripts I'm moving from my web server to the local PC. They just do file manipulation.
Anybody know of a tool for translating PHP to Python? Er... What about a programmer ?-)
(sorry, could not resist) Bruno
Heh heh. Point taken. I actually *was* assuming I would be the tool -- I've been around Python long enough to have seen most of the resources for desktop apps.
But Python web scripting I have not gotten into or read much about. It appears to me that Python is increasing in popularity, not only on the desktop, but also on the web server.
It seems to me that for folks migrating from PHP to Python, a translator would be a handy tool. Especially if they have a large site to convert.
May be, but to which of the numerous Python-based dynamic web page
generation / web framework / web application server would you convert
your php source ?
Bruno
"Bruno Desthuilliers" <bd***********@removeme.free.fr> wrote in message
news:3f***********************@news.free.fr... Bruce Dickey wrote: Bruno Desthuilliers wrote:
Bruce Dickey wrote:
Hi,
I have some PHP scripts I'm moving from my web server to the local PC. They just do file manipulation.
Anybody know of a tool for translating PHP to Python? Er... What about a programmer ?-)
(sorry, could not resist) Bruno
Heh heh. Point taken. I actually *was* assuming I would be the tool -- I've been around Python long enough to have seen most of the resources for desktop apps.
But Python web scripting I have not gotten into or read much about. It appears to me that Python is increasing in popularity, not only on the desktop, but also on the web server.
It seems to me that for folks migrating from PHP to Python, a translator would be a handy tool. Especially if they have a large site to convert.
May be, but to which of the numerous Python-based dynamic web page generation / web framework / web application server would you convert your php source ?
Bruno
I don't know... maybe never will. In my case, I only have a few small
scripts and will translate by hand.
Bruce
"Will Stuyvesant" <hw***@hotmail.com> wrote in message
news:cb**************************@posting.google.c om... [Bruce Dickey] [Bruno Desthuilliers] Bruce Dickey wrote:
> Hi, > > I have some PHP scripts I'm moving from my web server to the local
PC.> They just do file manipulation. > > Anybody know of a tool for translating PHP to Python?
Er... What about a programmer ?-)
(sorry, could not resist) Bruno
Heh heh. Point taken. I actually *was* assuming I would be the tool -- ... It seems to me that for folks migrating from PHP to Python, a translator would be a handy tool.
Um, was the point was really taken? Translating programming languages is *very* hard. Otherwise, it would be possible to just translate Python to C, with all the obvious benefits.
Perhaps automatic translation of some standard PHP patterns is possible? No, still too hard. Think about it.
-- The subspace _W inherits the other 8 properties of _V. And there aren't even any property taxes. -- J. MacKay, Mathematics 134b
Yes, it was really taken. I know its hard, but not impossible. Source
translators exist for a number of languages, such as Basic to Pascal, Pascal
to C, C to Pascal, VB to Python, Java to C++....
Some are only partial, but that provides a good start.
That people have created compilers for that pathological language C++ shows
what can be done with determination. PHP is a (much) simpler language.
I have no plans to write a PHP to Python translator, however. I have only a
few small scripts to convert.
Bruce This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mike |
last post by:
hi all -
i'm fairly new to python, coming from a java servlet / velocity template
background. i'm looking for a good python web development tool, and
hope to find some suggestions here.
...
|
by: Paul Kooistra |
last post by:
I need a tool to browse text files with a size of 10-20 Mb. These
files have a fixed record length of 800 bytes (CR/LF), and containt
records used to create printed pages by an external company.
...
|
by: Chad Smith |
last post by:
Hello,
I'm relatively new to the database world so please forgive me in
advance for my ignorance. I have recently been tasked at my job with
finding a tool that will perform the following tasks:...
|
by: Sebastian Kerekes |
last post by:
Greetings,
I'm developing an application that supports multiple languages. In my
XSL I use variables to place the text where it belongs to. At the top of
the document I include those variables -...
|
by: Alex |
last post by:
Subject: Looking for an XML (database-based) Query Reporting
Tool/advice
First off, let me apologize if this thread is somewhat off topic...
PLEASE REPLY TO: xml@solex-bi.com
I am looking...
|
by: Johnny Lee |
last post by:
Hi,
First, I want to know whether the python interpreter translate the
code directly into machine code, or translate it into C then into
machine code?
Second, if the codes are translated directly...
|
by: Anastasios Hatzis |
last post by:
I'm looking for a pattern where different client implementations can use the
same commands of some fictive tool ("foo") by accessing some kind of API.
Actually I have the need for such pattern for...
|
by: Rolf Wester |
last post by:
Hi,
is there a tool to automatically translate Matlab source to Python/numpy
code?
Regards
Rolf
|
by: Kenneth McDonald |
last post by:
I have the need to occasionally translate a single word
programatically. Would anyone have a Python script that would let me
do this using Google (or another) translation service?
Thanks,
Ken
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |