schedule future blog posts

schedule future blog posts

am 21.12.2007 23:12:27 von Bucky

I want to make something where I can schedule future blog posts, and
it will automatically publish them to Xanga. I have a web host with
Linux, MySQL, PHP, cron, etc.

Type up blog post and future date into MySQL.
Cron job scheduled every day, check if blog post needs to be published
today.
If so, somehow log into Xanga and fill out the forms and submit.

The piece I'm missing is how to log into Xanga and fill out the forms.
Can this be done with PHP from the server? What are the "technologies"
that I need to use? Thanks!

Re: schedule future blog posts

am 22.12.2007 10:28:29 von Adam

On Dec 21, 2:12 pm, Bucky wrote:
> I want to make something where I can schedule future blog posts, and
> it will automatically publish them to Xanga. I have a web host with
> Linux, MySQL, PHP, cron, etc.
>
> Type up blog post and future date into MySQL.
> Cron job scheduled every day, check if blog post needs to be published
> today.
> If so, somehow log into Xanga and fill out the forms and submit.
>
> The piece I'm missing is how to log into Xanga and fill out the forms.
> Can this be done with PHP from the server? What are the "technologies"
> that I need to use? Thanks!

I haven't done this before but my guess is you would have to manual
create and send the POST message to the xanga site to login.
http://us3.php.net/manual/en/function.fsockopen.php

Re: schedule future blog posts

am 28.12.2007 03:27:33 von Jerry Stuckle

Bucky wrote:
> I want to make something where I can schedule future blog posts, and
> it will automatically publish them to Xanga. I have a web host with
> Linux, MySQL, PHP, cron, etc.
>
> Type up blog post and future date into MySQL.
> Cron job scheduled every day, check if blog post needs to be published
> today.
> If so, somehow log into Xanga and fill out the forms and submit.
>
> The piece I'm missing is how to log into Xanga and fill out the forms.
> Can this be done with PHP from the server? What are the "technologies"
> that I need to use? Thanks!
>

Check out the cURL extensions. You should be able to do exactly what
you want.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: schedule future blog posts

am 28.12.2007 03:30:53 von My Pet Programmer

Jerry Stuckle said:
> Bucky wrote:

>> The piece I'm missing is how to log into Xanga and fill out the forms.
>> Can this be done with PHP from the server? What are the "technologies"
>> that I need to use? Thanks!
>>
>
> Check out the cURL extensions. You should be able to do exactly what
> you want.
>

In the PHP Manual: http://www.php.net/curl

It may be a bit confusing to you at first, but if you understand http,
you'll get cURL no problem.

~A!

--
Anthony Levensalor
anthony@mypetprogrammer.com

Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. - Albert Einstein