Welcome Guest, Not a member yet? Register   Sign In
How to integrate Python with PHP?
#9

(This post was last modified: 01-19-2020, 01:14 PM by eggbert.)

(01-19-2020, 10:03 AM)christaliise Wrote:
(01-19-2020, 08:31 AM)eggbert Wrote: What a horrible and crazy idea, mixing php and python.  Why would you want to create a mess like that?  Choose one or the other.  Sometimes languages don't do things other languages do, but there are always ways around these sorts of limitations.  Think out side the box, use substr(), trim(), etc for "backspace",  write your own prepend function.  Heck, just Google "prepend file" in php and you will find plenty of solutions.

@eggbert I like constructive criticism but comments like "horrible and crazy idea" - "create a mess like that" - "think out side the box" are not constructive. You could have been more elaborate in your comments which would be constructive.

Before I post these questions I spend sometimes several days Googling to find an answer as I have already Googled "prepend file" in php, with little results however I haven't finished investigating those results.

Did you know Facebook uses PHP as a base and many other languages including Python? If PHP was adequate for Facebook there would be no need for that corporate to use other languages.

If I get too involved with Python I may end up ditching PHP, but I've spent several years already with PHP and finding it in places inadequate.


Oh, get over yourself.  Yes, I would assume facebook probably uses many different technologies for many different things, though I highly doubt they mix and match them based on which is easier to do mundane thing such as prepending files.  What are you going to do, use python to prepend files, and PHP for everything else? Sorry, but that's a mess (not to mention a horrible idea),  and makes me wonder if you're posting here to amuse yourself by pointing out PHP's (supposed) limitations, or something silly like that.
Reply


Messages In This Thread
RE: How to integrate Python with PHP? - by eggbert - 01-19-2020, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB