Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Blog Posting With PHP


If anyone here can point me in the right direction regarding the following, that would be a huge help...

I'm looking to automate posting to a Blogspot blog via PHP.

I've taken a look at their documentation and they have the blogger.newPost command as part of their API. I believe that by using this I can submit posts using XML.

However, I'm confused about how to specifically use this - particularly how to automate this with PHP.

Basically, I'm looking to create my own script that posts my pre-written content to a Blogspot blog from time to time.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Blog Hosting And Blog Software Needed
I am looking for a host somewhere that will host blogging software.
I don't just want a blog for myself. I want to host a community so
others can have a blog. All the ads out there are for personal blogs.
I want to find a host to host my commnity of blogs. Hope that makes
sense. PHP seems to be a good langugage commnity to find this in.

Php Xml Blog
I want to write a simple blog using php and xml without database!
But I don't know how to subdivide entries...obviously not all news in a
single file!

For u how is better... :

-each news in a single file
-each month news on a single file
-...

PHP Blog?
If I were looking for a good blogging system that allowed one to insert content besides text into their posts easily what would you recommend? I've got a project coming up and I'm trying to decide the best route to take.

Using Blog APIs
Almost every standard compliant blogs support three blogging API which
are "Blogger API" , "MovableType API" and "MetaWeblog API". Among
these MW (or MetaWeblog) is used more than other two. Wordpress also
supporst these three sets of API. If you are interesetd how to
interact with these API's - then take a look at the following example.

First lets discover which XMLRPC methods are suported by wordpress
XMLRPC server. Just execute the following script

system.multicall
system.listMethods
system.getCapabilities
demo.addTwoNumbers
demo.sayHello
pingback.extensions.getPingbacks
pingback.ping
mt.publishPost
mt.getTrackbackPings
mt.supportedTextFilters
mt.supportedMethods
mt.setPostCategories
mt.getPostCategories
mt.getRecentPostTitles
mt.getCategoryList
metaWeblog.getUsersBlogs
metaWeblog.setTemplate
metaWeblog.getTemplate
metaWeblog.deletePost
metaWeblog.newMediaObject
metaWeblog.getCategories
metaWeblog.getRecentPosts
metaWeblog.getPost
metaWeblog.editPost
metaWeblog.newPost
blogger.deletePost
blogger.editPost
blogger.newPost
blogger.setTemplate
blogger.getTemplate
blogger.getRecentPosts
blogger.getPost
blogger.getUserInfo
blogger.getUsersBlogs

so to make a new post using metaWeblog.newPost method lets take a look
at the following example.

<?php
include("xmlrpc.inc.php");
$c = new xmlrpc_client("/wp/xmlrpc.php", "localhost", 80);

$content['title']="XMLRPC Post";
$content['description']="Some content posted using MetaWeblog API";
$content['categories'] = array("frontpage");
$x = new xmlrpcmsg("metaWeblog.newPost",
array(php_xmlrpc_encode("1"),
php_xmlrpc_encode("admin"),
php_xmlrpc_encode("root"),
php_xmlrpc_encode($content),
php_xmlrpc_encode("1")));

$c->return_type = 'phpvals'
$r =$c->send($x);
if ($r->errno=="0")
echo "Successfully Posted";
else {
echo "There are some error";
print_r($r);
}
?>

Thats it!!

Blog Hosting
I am looking into a PHP based solution to offer free blogs to my visitors,
I have searched around on the net for a free script that does this and have
only come up with one (SME).

Can anyone perhaps recommend a script?

(Having one option is always rather worrying, obviously not including having
a script created which at this stage is not a option).

Blog System
Can anyone suggest a Blog system which allows for multi users with each user basically having their own Blog?

Simple Blog
Do you know anyway I can make a very simple blog eg a script for writing to the mysql and a script for reading from it?

Video Blog
I'm trying to program a video blog and right now I'm building the upload script. But it has refused to work. I have tried all that I know to get it to work. I will use this thread until the blog is over. For any questions I might have. So here's the code. If you have a better way of doing this please be sure to share with me.

The blog will have different categories of videos, and each video will have a title and notes that go with it to help the end user better understand what is covered in the video. I'm using PHP Version 4.3.11 and MySQL 4.1.14. Code:

Implementing A Blog!
I have never written a script for a blog. I was wondering could someone
help me get started. What I mean is, could someone please explain to me
what is needed in order to implement a blog? How many database tables,
columns,and what type of database fields etc?

Adding A Blog
alright i have made my home page and would like to add a Blog to it and i dont know any php i was wondering if some one could do this for me please or if I could get a lot of help!

PHP Video Blog (Vlog)
I'm looking for options for a large scale project Video Blog (Vlog)
site. At this point I haven't the time to create it from scratch, so
I'm looking to some preexisting ones. I do a lot of Mambo stuff so if
there's some Mod out there. I'm also open to a Wordpress type Vlog.

In all, I'm open to any type of PHP coded Vlog be it open source or
pay software.

Myspace Like Blog Site
myspace has been the fastest growing website online the past few
months (for anyone who's been sitting in the dark lately). I've been
trying to come up with an idea for a website that would be very
successful. I've managed schematicsforfree.com for the past few years
and that has become very successful from the start, and could afford
to hire help if needed. my idea is to create yet another blog
community website like myspace, but of course it would be much bigger
and better and more fun for guests. I'd like to use my ProSiteManager
cms as a base and write modules for it to run the free community site.
if anyone is interested, please shoot me an email or contact me on msn
messenger. there's plenty of work to be done and plenty of money on
the internet to be made....

Blog Software With Login
I need to find a blog software that requires users to login before they
view the blog. It would be real handy if this feature was rolled into
the program so it could be turned on or off -

Apache/php/mysgl/linux based a real plus!

Choosing Blog Software
I'm in a dilly of a pickle, and am hoping someone can give me some
advice.

I've never done any blogging before, and now my boss wants me to
create a web site where users can come and create a blog. So our
site
will have links to all the blogs that our users have created. We'll
host the images and store content in our database.

I need a fast and simple way to allow users to create new blogs on our
website.

What's a good solution to use? If I can't find a 3rd party solution
I'll have to create my own from scratch using PHP and MySQL.

Blog software like Joomla and Serendipity seem to be designed for one
blog at a time, rather than a blog server.

I've been looking and there seems to be only 2 choices: MoveableType
and Webpress.

Any PHP Blog Tool Without MySQL?
I am just wondering whether there are any good php blog software that
do not need any database as background.

I want to setup a blog for myself. I know usually, tools such as
need MySQL as background to save the
necessary information.

However, I want to build a one user blog without any background
database support. The reason is: I am using some cheap web host, they
support PHP. Although they have MySQL, but I have no access to export /
import data from/to it (or I do not know how, since they do not provide
telnet shell access, nor remote access to the MySQL database). So I am
thinking, it would make me impossible to change my web host provider
later if I save the blog entries (including photos) in the MySQL
database.

The only one I know is http://sourceforge.net/projects/sphpblog/
However, it still misses a number of convenient functions, especially
about upload and manage the photos. (I know little about PHP, and I
couldn't do anything on it myself).

Free Script For Blog?
I want to install a blog in my site.. Could any one please suggest me a good blog script (open source).

Simple Blog Software To Modify
I am looking for a simple php blog to modify. I been have looking
around at different open source blogs like Wordpress but that are too
complicated for my needs.
Basically I just want posts,comments,users and tags. If supported
multiple blogs that would great but I can add that.
Really the simplier the better.

Teaching A Crawler To Identify A Blog
I am currently trying to teach a web crawler how to identify blogs,
that is I am trying to determine a fairly inclusive set of criteria
that will help my crawler to identify them.

I have noticed that many Blogs include

div class=blogsomething (A format class conveniantly named blog)

xml tags

and/or php code.

I do know that cms(content management system) is used for several
blogs, does anyone else have any suggestions to help me determine
criteria.

I am aware that any criteria is subjective, especially when
considering sites such as slashdot which has been around longer than
Blogs...

Stop Blog Comment Spam
I am now experiencing a menace that is adding comments to my blog entries for no reason. I have searched this forum for answers and I have also read this page: http://www.sitepoint.com/article/stop-comment-spam

I would like to try and install captcha into my comment form and if possible I would like to get the IP of this pesky user and BAN them from using my comments form forever!

I am not sure how to install captcha or how to get the users IP and then to ban the IP. Code:

How Do I Create Categories For A Blog Post?
I created a very simple shoutbox. User posts their name and a message and clicks post. It posts to the database and when the page reloads, the "shout" is displayed.

I would like to add categories to this little shoutbox application I created.  The user should be able to check off boxes to apply different categories to a post. For example a shout could be in the categories, php,mysql,html and css.

Logistically how do I do this using MySQL and PHP? ... Obviously this is just a project for learning and has no real application.

Need To Aggregate Blog RSS Feeds Into A Single Site
I'm hoping to aggregate the RSS feeds of a number of blogs on a specific topic (with their permission, BTW!) so that they are collected on a single site.

I could use FeedDigest, which is great, but I'm looking for a more sophisticated solution, something that is searchable or at the very least stores older posts.

I could use Drupal I suppose, but wondered if anyone had any other suggetions?

I'm posting here as I would have thought PHP/MySql would probably offer the best solution. If I'm wrong, please let me know!

Trackback Spam With Word Press Blog
I am still working with Word Press 1.2.2 .The popularity of the blog has risen, which I like, the drawback has been that trackback spam has increased to like 1000 a day. If you are familiar with Word Press that means clicking a delete button 1000 x's a day too.

Does anyone know of any plug in for my version of Word Press to combat
trackback spam?

Blog Is The Amazing New Internet Marketing Tool
Blogging started at the late 90s with a revolution in internet.
It is a way to comment an existing webpage, a great opportunity for
visitors and readers to voice out their opinion about the said
page. What started as a single-sentence commentary has
evolved into pages of personal take on just about anything under...

Running Forum In Word Press Blog
I am looking for Forum scripts which I intend to run together with my WP Blog.

I am not sure whether any php script can do the job well, and cheaply?

Want To Display Number Of Views Of Blog Posts
I've seen a Drupal blog which lists the number of times a post has been viewed. I discovered that WordPress (my platform) has 2 such plugins, but they only feature the top 5 or top 10 posts. What I'd like is a list of the top 25, 50 or 100 posts. I don't care whether the data displays within the blog or whether only I can view it.

One of the moderators at the WP forum posted this obscure reply which only contains this code:

$results = $wpdb->get_results("select postnumber, cntaccess from mostAccessed ORDER BY cntaccess DESC LIMIT 1000");

Since he's not replying to any questions of mine, can anyone help me figure out what this code does, where it should be installed & how it would display the data within the blog interface? I also assume the "LIMIT 1000" should read "LIMIT 100?"

Blog Software With Many Registered Users Categories
I have a blog made with b2evo, but I'd want to migrate to another
software. I need this feature: different user levels, and each level
see only the posts intended for them. I'd want to be able to do posts
for everyone, posts for customers, posts for friends and posts for
close friends.

The user levels deployed in b2evo and Wordpress seem only to limit
editing and blogging, but not readability of the posts (actually, in
b2evo you may limit the visibility of a post to the registered users,
but all of them, not a category). The only tool I know who could enable
me to do that is typo3, but frankly, installing typo3 for a blog seem a
bit of a overkill to me...

Do you know any blog software who enable the owner to have different
levels of visibility for each post?

New Version Of Open Source Blog / Diary / Journal Script Available
Version 1.9.9f of the PluggedOut Blog script is now available for
download.

PluggeOut Blog is a free, open source blog/diary/journal script,
written by a professional software developer to give something back to
the internet that we take so much from. The script is used by many
people all over the world to provide a fast, light, flexible and
powerful blogging solution. It's also a good example of how to design
and build a database driven web application for those just starting
out.

PluggedOut Blog Project Homepage
- http://www.pluggedout.com/index.php?pk=dev_blog

Demonstration Installation
- http://www.pluggedout.com/blog

Feature Overview
- Multi-User with Roles
- Themes & Templates
- Monthly calendar with hilighted days and navigation controls
- List of recent entries
- Visitor comments against entries
- Verification codes on comments (anti-spam)
- Supports RSS 2
- TimeZone control
- BBCodes
- Plugins/Includes supported
- Full administration interface
- Multi-Lingual Interfaces supported
- Add, edit, remove and publish/unpublish blog entries
- Change themes
- Edit Template files directly from admin interface
- Upload files for use in entries
- Change settings from the admin interface
- Superb, friendly support through the PluggedOut forums
- A well written script by a professional software developer
- Based on rock-solid technologies - MySQL and PHP.

URL Posting
I just need some direction as to a function that can help with this particular situation:
I would like to create a script that acts like a browser and simply goes to a specific web (ie: http://www.whatever.com) address on a regular schedule (ie: 100 times a day).
Any functions that emulate a web browser?

Posting With &amp;
Our database stores the & symbol as &amp; I have a select menu that
queries the database based on the selection. A sample selection:

<option value="Cats &amp; Dogs">Cats & Dogs</option>

After I click on Submit, the value gets posted as "Cats & Dogs." How
can I keep it just "Cats &amp; Dogs"

IP Posting
Is there a convenient variable for the server's IP? I was thinking of trying to have my wget crontab also post up a page that displays the server's (dynamic) IP, so I could access the box from school.

Posting Raw XML To PHP?
I want to post a XML file to a PHP program. I have seen programs using
the following curl format to send the XML:

curl =H"POST / HTTP/1.0 Content-Type:
application/x-www-form-urlencoded Content-Length: 12 " -d"<top></top>"

However, I am not sure what to code on the PHP end to accept the XML.
I checked $_POST and it is empty. I know you can send the data by
posting to a var, like ( -d"xml="<top></top>"").

Posting To Another URL
I can cut and paste the following into my browser URL address and have
the script execute no problem:

http://subdomain.domain.com/log?amo...;orderid=123456

the domain is another site. How can I run a php script on my server
that will essentially post the above, but within my php script?

VB Posting?
I am trying to make something to post a response to the user's new thread automatically. Code:

Posting
I am trying to have a form submit to another source depending on a certain variable. Only problem is that the variable is not defined untill after you submit the form. Basically if a certain text field in the form is left blank i want it to be posting to a different place.

Posting To DB
When I post comments in a text area, an entry of "<img src="abc.jpg">" appears in the DB as "&lt;img src=""&gt;" and when the DB results are displayed, it shows this "<img src="abc.jpg">" instead of the image. I'd like to display the image, what do I need to do?

Posting XML Using HTTPS
I need to post an xml string to another server using HTTPS (secure Socket Layer) protocol. On another server i need to get this data and extract it from binary to a string again. does anybody knows where i can find some information (articles) on this topic?

Posting With Fsockopen ?
I am trying post article using fsockopen. Even though i can connect to the server, i am keep getting this error message when ever i try to post something.

Warning: Supplied argument is not a valid File-Handle resource in
/user/php/send.php on line 19

Posting Data
I've got form with few submit buttons and one select field.
I need to post data to another file or to the same document.
Is it possible?

Posting Variables
I have created a MySQL database for storing info on a line of products. In this database is a number of fields that store text about the product's features - like bullet points, etc.

I would like to display a logo (image) in line with the text string.Currently I defined a variable: $logo = "<img src=thelogo.gif>" Then I go to my form that writes to the database and enter text into a field: this is some really interesting text about this product called <?=$logo?>

The database reads the php part of the string as a text string and ignores the php code. But, when the program retrieves this info from the database it is displayed in the browser as hidden. Meaning you can't see it unless you view source code. Can any of you gurus tell me how I can easily have the PHP code extract a variable ($logo) from a text string in a database?

Form Posting
1. How can I now the url that posting the form? ex: I make a php page name poster.php. There is a form that has action to recipient.php. Then I need check that the form is surely posted from poster.php.

2. Can I post a form from to the other site that has different host? How it could be?

Form Posting
i have a form that points to a document on my local site, like:

<form action="test.php" method="post">
<input type=hidden name=value1 value="something">
<input type=submit value=submit>
</form>

now, i would like to post the form data to the test.php file, from
another php file (let's say test2.php)! how to do that?

i cannot call http://localhost/test.php?value1=value1 because the method
is POST (it doesn't work)?

POSTing To My Own Scripts
I've got some scripts that back-end multiple HTML forms, accepting data via
POST. What I'd like to do is have some automated processing take place via
cron, using those same scripts to do the back-end processing. I'm looking for
a way to invoke those scripts from a script *not* executed via a browser
session.

I've found one way via streams (http://www.php.net/stream), by creating a
pretend browser session.

1. Is there an easy-to-use class that encapsulates this? That is, something
that I pass an array of field names and values along with the target URL?

2. Is there a better way?

Modifying And Posting Uri
How can I take a uri passed to a interface script(a script that is called
for every page request) modify it, do whatever, and then change the uri that
the user see's to be whatever?

Essentially I have a rewrite rule

RewriteRule ^(.*)[/]?$ /Index.php

That calls index.php

I can do $_Server['REQUEST_URI'] to get the uri but how can I modify the
browser's uri that the user see's but also redirect the uri to something
different.

Basically I sorta want to write a rewrite handler of my own because I'm
having a few issues with it. I'd rather use php to deal with it if possible.

POSTing Through Frames
I have what is perhaps a stupid problem. I have a form where users enter
values (call this page1.php), and these then need to be POSTed to a page
(page2.php) (code at bottom of this posting), that calls up a page with two
frames (page3a.php and page3b.php) BUT, I need the values that the user
entered in page1.php to be visible to page3a.php and page3b.php.

When I submit from page1.php (running apache btw) I get "Method Not
Allowed -- The requested method POST is not allowed for the URL /page2.php."

Can anyone please tell me how to get this values posted from page1.php. to
the targets where I need those values in page3a.php and page3b.php? Thanks,
Ike

This is page2.php:
<HTML>
<HEAD>
<TITLE>VIOS Demonstration</TITLE>

</HEAD>
<frameset rows="360,*">
<frame src="page3a.php" name="top" scrolling="no"
noresize FRAMEBORDER="0" BORDER="0" FRAMESPACING="0" marginwidth="1"
marginheight="1">
<frame src="page3b.php" name="bottom" marginwidth="1"
scrolling="no" noresize FRAMEBORDER="0" BORDER="0" FRAMESPACING="0"
marginheight="1">

<noframes>
<body>
<p>
<p>This web page uses frames, but your
browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</HTML>

Posting Forms
I am kind of new to PHP so this might be a stupid question, but here it
is anyway. If there is a form, let's say somewhere on the web with a
couple of input fields and a submit button. Can I pull that .html (or
whatever extension it is) in a PHP object and then post it with the
input fields filled with what I want? And then show the result to the
user? How would that be done?

Posting Message
im making a forum system and i was wondering if i could have a post delay (flood control). e.g. say if user1 posted a message and then wanted to post again straight after, and then got a custom flood control message.

can i ask how would i make it so i could select how long you had to wait before posting another message and  how would i make it so i can select a custom flood control message. i would like the flood control custom message and time limit (in seconds) to be stored in a mysql table.

Posting To A Database.
I'm currently developing a website that includes an online registration form using PHP.  I'm having trouble getting the script to post the value of a check box to the database.  I have succesfully managed to post the values of the text boxes to the database but can't figure out how to post the value of the check boxes.

Posting Data
Having some problems with a form that inserts data into a database. It works great.. on all but one machine i've tried it on. Usually, until now, if it has worked on one machine it will work on them all. Anyone know what the cause of this could be?  The form is just inserting text into a database, why would this work on some pcs and not another??

Posting Within A Script
Within my script I have:

$whatever = $_POST['whatever'];
$whatever2 = $_POST['whatever2'];

These were from a form that the user filled out.

Alot of stuff happens to $whatever and $whatever2 within my script, but at the end of the script I need $whatever and $whatever2 to get passed as $_POST data to http://www.someotherscript.com/script.php. This data can not be $_GET data in the URL. It must be passed as $_POST data.

I know how to use standard HTML forms, but I don't know how to do this.


Copyright © 2005-08 www.BigResource.com, All rights reserved