on 11-21-2011 6:23 AM
Hi to All,
We wre try integrate wordpress with netweaver for this we followed first this link
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6983 but we are succed upto open PHP files with static data after this we are try to get data from mysql server like
<?php
# Define MySQL Settings
define("MYSQL_HOST", "10.X.X.X");
define("MYSQL_USER", "****");
define("MYSQL_PASS", "******");
define("MYSQL_DB", "wordpress");
$conn = mysql_connect("".MYSQL_HOST."", "".MYSQL_USER."", "".MYSQL_PASS."") or die(mysql_error());
mysql_select_db("".MYSQL_DB."",$conn) or die(mysql_error());
$sql = "SELECT * FROM name";
$res = mysql_query($sql);
while ($field = mysql_fetch_array($res))
{
$id = $field['id'];
$name = $field['name'];
echo 'ID: ' . $field['id'] . '<br />';
echo 'Name: ' . $field['name'] . '<br /><br />';
}
?>
But we are unable to connect mysql server.
Can i know any solution for this.
Error Message:
500 Internal Server Error
SAP J2EE Engine/7.00
Application error occurred during request processing.
Details: Error [javax.servlet.ServletException: PHP FastCGI instance failed.], with root cause [php.java.bridge.http.FCGIConnectionException: null].
Exception id: [*************]
Regards,
Nari.
Hi Nari,
Most likely that port 3306 is blocked or the datbase name is incorrect.
MySQL is case-sensitive as well.
Cheers,
Mike Peace
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.