Answers | Websites for Sale | Domain Names for sale

Your Question:

xmlrpc php

Programming & Design :: How do I pass variables from mysql_fetch_array to another PHP program?

I'm not a programmer, but I do understand a little bit of PHP. My problem is that I'm taking two program snippets that work well, but when I try to pass variables from the first one to the second, something breaks and nothing comes out. The first part of the program selects a random record from a MYSQL database. // Create the connection and select the DB $link = mysql_connect("localhost","root",""); if ($link) { mysql_selectdb("test",$link); // Select records from the DB $query = "SELECT * FROM names ORDER BY Rand() LIMIT 1"; $result = mysql_query($query); // Display records from the table echo "<table border='1'>"; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { The second part of the program uses XML RPC to post remotely to a WordPress blog. $wp = new eWordpressApi("http://www.mysite.com/xmlrpc.php","myname","mypass"); $title = "Testing"; $text = "Lorem Ipsum"; $category = array(Pants,Stuff); // Assuming you have categories with IDs: 1,2 $postID = $wp->newPost($title,$text,$category); if(is_array($postID)) echo "Die, damn bug!"; I've been trying to pass the results from mysql_fetch_array to the second program so that $title = row[0] and $text = row[1], row[2], but when I execute the script all it does it print the second program as text instead of passing the variable and executing the program. I've been beating my head against the wall for a week on this problem. What am I doing wrong. The complete program: <?php // Create the connection and select the DB $link = mysql_connect("localhost","root",""); if ($link) { mysql_selectdb("test",$link); // Select records from the DB $query = "SELECT * FROM names ORDER BY Rand() LIMIT 1"; $result = mysql_query($query); // Display records from the table echo "<table border='1'>"; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $wp = new eWordpressApi("http://www.mysite.com/xmlrpc.php","myname","mypass"); $title = "Testing"; $text = "Lorem Ipsum"; $category = array(Pants,Stuff); // Assuming you have categories with IDs: 1,2 $postID = $wp->newPost($title,$text,$category); if(is_array($postID)) echo "Die, damn bug!"; } ?>

Programming & Design :: PHP webservices pass through?

I dont use php very often , I have a webservice that will be called from a new gui, I need to have a passthrough php application that will just take xml recieved and send it to the webservice and just take whatever response it gets and pass it along. How can I do this without using php_xmlrpc

Programming & Design :: What is wrong with PHP and XAMPP?

Okay, so I downloaded XAMPP and PHP 5.3.2, I got a book about Apache, PHP, and MySQL but it turned out to be too old to use (from 2005). It referenced several files I could not find including php.ini-dist and told me to add code to the Apache httd.conf file where it says "DirectoryIndex" and add index.html and index.php after. The problem, this line doesn't appear in my httpd.conf file. So I thought it was too old and I went to the bookstore and bought a brand new PHP, MySQL, XAMPP book and thought I was golden. Well it tells em to find files that aren't in the folders either, like: ;extension=php_xmlrpc.dll extension_dir ect. Where are these files? I added the code form the old book to my httpd.conf file and now XAMPP isn't even working. I looked for the manual on XAMPP, but they say they only have it in German. Is there somewhere you can download XAMPP that already has these changes made with all the right files? Even downloading from the actual website doesn't give you a complete file. They know what you want it for, why not just program it that way from the beginning instead of wasting our time making us do all the changes that don't work in the first place? Yeah, I found that out now. All the resources I've seen are for the older versions that you have to configure. The 1.7.3 version you don't have to do anything. It's working now.

Programming & Design :: in php: "undefined function: openssl_x509_read" while opensll is installed.?

In php i have a call to the function openssl_x509_read(). It is part of opensll. I have in phpinfo(): mod_ssl/2.8.25 OpenSSL/0.9.7a But no mention in: --enable-gd-native-ttf' '--enable-wddx' '--with-xmlrpc' '--with-mime-magic' Should there be a --with-openssl? How do i fix this.

Flickr :: how can i see pictures on my wordpress blogger from flicker?

I need help on my homework assignment. I need to have my flicker connected with my wordpress blogger and i do know what an API Endpoint is... It says Note: Wordpress users, your API Endpoint is http://your.blog.address/xmlrpc.php... and i don't get it... can anyone help? Please I've tried to doing-- http://icsap.com-eliseg/xmlrpc.php --but i doesn't work...am i doing it right?

Computers :: Windows live writer is not connecting to my blogs url?

I was previously using windows live writer to post my blog in wordpress.com. It was good But now i got my own host and installed wp and tried live writer with my user name and password it searches and gives me to select the blog type and url path. Even if i enter the right url it gives this error.The server has reported that the following URL could not be found. But if i type the same url in my browser to check my path/xmlrpc.php it gives me "XML-RPC server accepts POST requests only." Please help me wat to do.