I am unable to view my endpoint in drupal using bluehost. I have used acquia local hosting and the data is viewable just fine via http request and through command line using curl. When I set up the site with drupal on Bluehost I receive a blank page.
with end point test:
http://parentstalkaddiction.com/test/node.json
gives me nothing
Can anyone please tell me what I might be doing wrong? Thanks in advance.
This is likely a PHP version issue. Bluehost seems to be on PHP 5.2.x and the services module uses functionality that requires PHP 5.3.x.
There is an issue open for this: https://drupal.org/node/2003396
If you don't mind applying a patch, you can do so to make it work with Bluehost's version of PHP:
https://drupal.org/files/ServicesRESTServerFactory.inc_.patch
Related
i want to connect my data base with html web side please tell me how can i connect the html website to MY SQL.
You need to use PHP and setup a Localhost webserver, something like Wamp or Xamp will do.
I personally use Wamp, you can make a Database in the PhpMyAdmin service provided with it.
To further setup and connect to your database, you can simply search on google for some more detailed steps regarding to database connections.
but using a local webserver and php should get you up and running.
You need to use backend script/service to achieve the goal. You cant make connection directly. In between database and frontend (your html pages) there is backend.
to achieve your goal you can use php, node js which has n number of tutorials available.
Your question is getting minus points because it is incomplete and very basic.
Thanks
I have deployed a PHP website do an OpenShift PHP 5.4 Cartridge. The application loads just fine, CSS, JS, etc. but images do not load correctly. The images exist in the git repo which is being pushed to OpenShift just fine but when I attempt to access an image, say from http://someopenshiftapp/images/logo.jpg it fails with a 500 error.
The server log gives me:
/app-root/runtime/repo/images/.htaccess: Invalid command 'IndexIgnore', perhaps misspelled or defined by a module not included in the server configuration
I am trying to resolve this issue but so far google has not been able to help me. I tried editing the httpd.conf to include the module but that is a read only file. I may have to create a new cartridge from scratch? How do I serve images with OpenShift?
I don't know the exact reasons why Apache was behaving like this but it was. There was a robots.txt file disallowing all user agents in the image directory that another developer had added. This was causing the Apache installation to give a 500 error when attempting to access resources within the images sub-directory. If anyone has any further explanation I am willing to listen but for now this mystery is solved.
I may test this exact case in a stand alone Apache environment unrelated to OpenShift and attempt to reproduce this error. :) Happy Coding.
I want to build a website using dreamweaver and mysql. I used mamp on mac to communicate with mysql.But when I try to build database connection with my sql, I got this error:
HTTP Error Code 404 File Not Found. Here are some possible reasons for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the "http://localhost/LabelSite/_mmServerScripts/MMHTTPDB.php URL."Verify that the URL Prefix maps to the root of the site.
I googled and try a bunch of ways but none of them work.Here is what I've already tried:
1)copying MMHTTPDB.php and mysql.php to /Applications/MAMP/htdocs/LabelSite/_mmServerScripts
2)changing the web url to "http://localhost/8888/LabelSite"
But none of them worked
Here is how I set my site by dreamweaver:
I did select server model to be "PHP MYSQL" on the advanced tag of Servers
Any advice would be appreciated, thanks!
I solved this by changing Web Url in the site's testing servers to
"http://localhost:8888/LabelSite/"
Now I get rid of the error!
I'm trying to write an iOS app using Xcode.
A simple login prompting username and password.
I have no idea how to open a database connection to validate the username and password.
The database I use is mysql.
I tried using this link http://macbug.org/macosxsample/mysql#.Ur8AYBbtGPF
but I get an error when I tried to add libmysqlclient.a to the frameworks and library.
If your database is on a server somewhere, then you would generally not have your iOS app interact directly with the database server, but rather you would write a web service that the app would interact with (via NSURLConnection, NSURLSession or something like AFNetworking), and the web service would interact with the MySQL database.
In terms of how to write a web service, often, when people are writing their first web service, they'll use some simple technology like PHP. Do you know what options you have on your server? If PHP is an option, then you can check out Ray Wenderlich's How to Write a Simple PHP/MySQL Web Service. Then check out How to Write an iOS App that Uses a Web Service.
You should use SQLite instead of MySQL for iOS application. You are referring MacOSX application tutorial. try this http://www.raywenderlich.com/913/sqlite-tutorial-for-ios-making-our-app
how to load the mysql server in android emulator
i.e
Class.forName("com.mysql.jdbc.Driver")
i got the exception java.land.ClassNotFoundException in com.mysql.jdbc.Drive
please reply me.
This assumes MySQL is publicly available from internet, but it is never good idea .
Setup public WebService and connect to it from mobile application.
You won't be able to run MySQL server on an Android device.
What you're doing, however, is trying to load the MySQL client library. That isn't included as part of Android so you cannot load it. You'd need to include the relevant JARs in your project, if you really do want to connect to a remote MySQL database from an Android app.
If you do want to store and access data on your Android device, the awesome SQLite database is included by default, including all the APIs you need to create, upgrade and otherwise interact with SQLite databases.
When I did this I created PHP files for the database operations. I sent data in XML and received data in XML all using PHP scripts. I found this to be the easiest way for me...but you need to know PHP of course.