Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2339

Re: call php function from python

From Tim Roberts <timr@probo.com>
Newsgroups comp.lang.python
Subject Re: call php function from python
Date 2011-04-01 00:19 -0700
Organization Providenza & Boekelheide, Inc.
Message-ID <ssuap6tpo26mdcpnfcfbhsd1siemfd96aq@4ax.com> (permalink)
References <0d2bf776-899c-4257-a78c-c24ac90f5747@s33g2000vbb.googlegroups.com>

Show all headers | View raw


CrabbyPete <pete.douma@gmail.com> wrote:
>
>I have a python script that automatically loads wordpress, up to the
>point that it asks for the admin password.
>that is a php function call
>
>function wp_install( $blog_title, $user_name, $user_email, $public,
>$deprecated = '', $user_password = '' )
>
>Is there a way to call this function from python?

Are you running this script on the web server, or are you invoking this
over a socket using something like urllib?

If you are running remotely, then PHP does not exist.  All you have are
HTTP requests.  You need to make yourself look exactly like a human being
at a browser.  Fortunately, that's not too hard.
-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

call php function from python CrabbyPete <pete.douma@gmail.com> - 2011-03-31 11:46 -0700
  Re: call php function from python John Bokma <john@castleamber.com> - 2011-03-31 13:24 -0600
  Re: call php function from python Tim Roberts <timr@probo.com> - 2011-04-01 00:19 -0700

csiph-web