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


Groups > comp.lang.python > #2298

Re: call php function from python

From John Bokma <john@castleamber.com>
Newsgroups comp.lang.python
Subject Re: call php function from python
Date 2011-03-31 13:24 -0600
Organization Castle Amber
Message-ID <87sju32iw5.fsf@castleamber.com> (permalink)
References <0d2bf776-899c-4257-a78c-c24ac90f5747@s33g2000vbb.googlegroups.com>

Show all headers | View raw


CrabbyPete <pete.douma@gmail.com> writes:

> 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?

What do you mean with "loads" wordpress? I think the easiest thing to
do, and what I've done in the past, is to call Wordpress via its web
interface. I.e. instead of trying to find out how to call wp_install,
use the post method with the right data and the right URL.

-- 
John Bokma                                                               j3b

Blog: http://johnbokma.com/    Facebook: http://www.facebook.com/j.j.j.bokma
    Freelance Perl & Python Development: http://castleamber.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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