php,fqlRelated issues-Collection of common programming errors
user1928775
php android mysql json json-encode
I’m using JSON to do two things at the same time First I want to send (Username & Password) to PHP File that Reads the toggle buttons status from database for Username and Password and PHP File also sends the toggle status using JSON List to Application I Combined both Reading and Also Sending the Username and Password but it always states in the Logcat an errorJSON Code i’m using Combined Sending User and Password and Receiving JSON List According to that username and Passwordprivate class
user1928775
php android database json android-asynctask
My App sends username and password to PHP file using JSON then PHP File Reads the user Columns and status from Database MY Problem is that i added everything that reads JSON from Android App in the PHP File but No data returned to that user please tell me what’s wrong with my codeApplication JSON Activity Codeprivate class JSONParse extends AsyncTask<String, String, JSONObject> {private ProgressDialog pDialog;@Overrideprotected void onPreExecute() {super.onPreExecute();pDialog = new Progre
somedev
php curl proxy http-headers twilio
Our environment requires the use of an outbound proxy for offsite services. Normally this isn’t a problem. In this case with Twilio, the extra header returned breaks the client.Outgoing headers:POST /2010-04-01/Accounts/FOO/SMS/Messages.json HTTP/1.1 Authorization: Basic FOO== User-Agent: twilio-php/3.10.0 Host: api.twilio.com Accept: */* Accept-Charset: utf-8 Content-Type: application/x-www-form-urlencoded Content-Length: 108Response Headers:HTTP/1.0 200 Connection establishedHTTP/1.1 201 Creat
Alex Goncalves
java php mysql json
.HttpClient sending commands by specifying the path of my PHP file to query this on seems to work .Converting the received stream into string work too But the end does not work … I don’t get what’s wrongI try the same thing in a pure Java projet importing all packages needed json-lib etc.. it does the conversion of the data but on the last step it fail ?!Server side:<?php$Conn = mysql_connect(“127.0.0.1″,”root”,”socrates”);if (!$Conn)echo “not connected”;$DbSelect = mysql_select_db(“impetod
Community
java php unit-testing tdd integration-testing
I would like to ask about using Unit Testing in Web Development. The idea of Unit Testing is great but does it really bring value in the context of web application? Second part of my question is about TDD. If one creates an integration test before the actual code can this approach be called “Test Driven Development”? 1. AssumptionsBy the definition Unit Test should test code on only one service layer. If a test tests code across multiple layers we have an integration test. 2. Argument2.1 No Algo
Kendall Hopkins
php events asynchronous daemon
I’m working on an online PHP application that has a need for delayed PHP event. Basically I need to be able to execute arbitrary PHP code x many seconds (but it could be days) after the initial hit to a URL. I need fairly precise execution of these PHP event, also I want it to be fairly scalable. I’m trying to avoid the need to schedule a cron job to run every second. I was looking into Gearman, but it doesn’t seem to provide any ability to schedule events and as I understand, PHP isn’t really m
InnocentKiller
java php android audio file-upload
I am trying to upload audio file to server when recording of audio get finished. I am setting audio.mp3 as default file name of audio while starting recording and storing inside SD-card. After recording get finished on button click event i am renaming audio name and trying to upload it to my server.But unfortunately i am getting error. My app is stopping unfortunately, in logcat i got below error. 01-30 15:08:58.452: E/Debug(1686): error: /storage/sdcard/filetoupload/1391074738276.mp3: open fail
koneko
java php android
I’m fetching records from mysql database and putting it into a ListView but I’m getting the said error stated in the title, “Error of input at character 1 of”. I already tried checking the php file associated with it but it’s working well and able to fetch data from the db. Below is the code where the error is being caught.public void ListDrawer() {List<Map<String, String>> announcementList = new ArrayList<Map<String, String>>();HashMap<String, String> listA;try {JS
jh314
php web-services soap
I am going crazy starting off with Web Services. I am trying to call the following WSDL using PHP and keep getting nowhere:http://webservices.sabre.com/wsdl/sabreXML1.0.00/usg/SessionCreateRQ.wsdlI found the following piece of code on the net, from someone with similar problems, but I could not get it to work either:$soap = new SoapClient(‘http://webservices.sabre.com/wsdl/sabreXML1.0.00/usg/SessionCreateRQ.wsdl’, array( ‘trace’ => true, ‘soap_version’ => SOAP_1_2, “exceptions” => 0)); $eb = new
user1400538
java php mysql linux fedora
While accessing MySql directly through php, I am able to connect to the database without issues. Whereas, while I try to access MySql indirectly – with the help of a jar file which connects to MySql db, I am not able to connect from php.I have tested this jar file from terminal and it works perfect and connects to the db.In a nutshell, for connecting to the same db:(1) php-mysql connection works perfect (2) jar – mysql connection works perfect (3) php – jar – mysql connection failsCaling shell_e
maskedbacon
php facebook api fql
I’m trying to connect to the PHP SDK and retrieve a comment count from an fb:comments plugin I’m using on a project. However, when I try to make a $facebook->api() FQL call it always breaks my page. No error, just no more page processing past the API call.require_once ‘scripts/fb-api/facebook.php’;$facebook = new Facebook(array(‘appId’ => ‘222725974406020’,’secret’ => ‘—‘ ));$result = $facebook->api(array(‘query’ => ‘SELECT post_id FROM comment WHERE xid = 0’, ‘method’ => ‘fql.
PinkFloydRocks
php facebook fql
I’m kinda stuck on this FQL query.I can get places nearby my location but sometimes the GPS is off, and I want to submit a text search for the place I’m at, but this query is not returning any result at all and it even seems that it crashes the rest of my PHP script:SELECT name,description,geometry,latitude,longitude,checkin_count,display_subtext FROM place WHERE name = ‘Oslo’Any help’s greatly appreciated!
???
php fql
I’m a FQL new user!I have a fans page, and I’m a admin. Now,I want to use the FQL to list my fan’s name and fan’s id? Please help me!And thanks!This is what I’ve tried so far – <?php require_once(‘src/facebook.php’); $facebook = new Facebook(array( ‘appId’ => ‘id’, ‘secret’ => ‘secret’, ‘cookie’ => true, )); $result = $facebook->api(array( ‘method’ => ‘fql.query’, ‘query’ => ‘select uid from page_fan where page_id = xxxxxx’ )); $fb_fans = $result[0][‘uid’]; ?> <?php
John McGrath
javascript facebook facebook-javascript-sdk facebook-fql fql
I’m trying to update an app to work with ‘January 2013 Breaking Changes’ enabled, and it looks likes part of the update is breaking my app. The update says “When getting stats about a URL from the link_stat FQL table… we will now use the canonicalized URL to fetch those stats.”I have this in the head tags, which is what I thought determined the canonical URL:<meta content=’http://local.fnnny.com/items/1/html-test’ property=’og:url’>When I comment on one of my pages with the comments plug
user2154767
facebook-fql fql messages
i am currently using an fql query to retreive the body of a message and i’m doing it knowing only the thread id and the message count, for each message:SELECT body FROM message WHERE message_id = ‘”.$thread[‘thread_id’].”_”.$cnt.”‘but i get this error:Uncaught Exception: 9: You are calling methods too frequentlyand it takes minutes to execute. There is another way to retreive all the messages knowing only the thread_id?
esegev
javascript facebook facebook-graph-api fql facebook-comments
I run a very basic FQL query with JavaScript, and keep getting back an error Object {error_code: “2”, error_msg: “Service temporarily unavailable”, request_args: Array[8]}My aim is to read the comment_info.XID of the recent comments posted via Facebook to my website (all the website, not limited to a specific post). This is my code, based on some samples posted on StackOverflow mostly:<div id=”fb-root”></div> <div id=”fbcomments”></div> <script type=”text/javascript”&g
cpilko
javascript facebook fql
I cannot seem to figure this thing out i got everything i wanted working but i cannot get this to work: I want to see if the active loged in user is friends with a specific account and if they are not the user is promt with a add friend window. this is what is got:FB.api({method: ‘fql.query’,query: ‘SELECT uid1, uid2 FROM friend WHERE uid1 = me() AND uid2 = 100001314420757’},function(response) {document.getElementById(“msg2”).innerHTML=’Users are: ‘ + response[0].[something here];} );i think i g
thats_how_i_feel
javascript xml facebook fql
I am not skilled at programming. What I am trying to do is for personal use only and will just make my life easier. I am trying to make a script for Google Sheets that will fetch Facebook insights and display them in the Google doc. I have made this work for simpler values like integers and strings, but in this case, I want to return a list and am not sure how to fetch it or return it.Here is the open source script that I have modified: //// // Facebook Fans Counter // Made by Martin Hassman, ht
Enigma
facebook fql
I wrote an FQL query to get names of friends who tagged me – This is the FQL query which gives me the list of the friends ID’s(It’s Works):SELECT owner FROM photo WHERE object_id IN (SELECT object_id FROM photo_tag WHERE subject=me())Now i want to get their names by querying with this :SELECT name FROM user WHERE uid IN (SELECT owner FROM photo WHERE object_id IN (SELECT object_id FROM photo_tag WHERE subject=me())) But i don’t get the full list of the names, and it’s stops and gives this error
scham
javascript facebook facebook-graph-api facebook-fql fql
I’m attempting to do a Facebook FQL Multiquery (via JS SDK FB.api call) to load a single photo for each of 10 random Facebook friends where they have been tagged (aka “Show 10 random friends and a photo of theirs”). Here is my Javascript array of queries:var queries = {q1:”SELECT uid, name FROM user WHERE uid IN (Select uid2 from friend where uid1 = ” + user_id + ” order by rand() limit 10) “,q2: “SELECT pid, subject from photo_tag where subject in (SELECT uid from #q1) limit 10”,q3:”SELECT src
Web site is in building