get

Zend url : get parameter always stay in the url

十年热恋 提交于 2019-12-02 22:09:38
问题 I have some trouble using the Zend url helper with get parameter. In a view, I have pagination which send extra parameters in get (so in the url), so that's ok. But that is not ok is that the parameters always stay in the url even if I change page. In fact, the zend url helper - I use to generate the url of link or form's action - add automaticaly the parameter at the end of the url so whatever the link I click, I have this parameters... //In my controller $this->_view->url(array("action"=>

How to get posts that user's friend posted on the wall of user on his birthday through Facebook Graph Api?

戏子无情 提交于 2019-12-02 21:33:29
问题 I am trying to build a Chrome extension and I want to get all the posts that people posted on the user's wall specifically on his birthday. I tried to call through Facebook Javascript SDK, but it is not returning the posts that are posted by my friends on the birthday. FB.api( '/me/feed', 'GET', {}, function(response) { // Insert your code here } ); Rather, it is returning all the birthday posts in one post like this: { "message": "Belated happy birthday bhaiii.....", "created_time": "2015-10

Android - HTTP Get - Explicit Termination not called error. What am I missing?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 21:29:18
问题 I am working on a fairly simple android app that should get the last modified/updated date for a webpage but it seems to crash with the following message 05-27 10:50:15.581 2638-2652/android.process.acore E/DictionaryBackupAgent﹕ Couldn't read from the cursor 05-27 10:50:20.658 2638-2647/android.process.acore E/StrictMode﹕ A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. java.lang.Throwable: Explicit

PHP switch with GET request

喜欢而已 提交于 2019-12-02 21:28:53
I am building a simple admin area for my site and I want the URLs to look somewhat like this: http://mysite.com/admin/?home http://mysite.com/admin/?settings http://mysite.com/admin/?users But I am not sure how I would retrieve what page is being requested and then show the required page. I tried this in my switch: switch($_GET[]) { case 'home': echo 'admin home'; break; } But I get this error: Fatal error: Cannot use [] for reading in C:\path\to\web\directory\admin\index.php on line 40 Is there any way around this? I want to avoid setting a value to the GET request, like: http://mysite.com

How do I send an HTTP GET request in chrome extension?

两盒软妹~` 提交于 2019-12-02 21:07:09
I'm working on a chrome extension that sends an HTTP request using the method GET. How do I send at www.example.com the parameter par with value 0 ? www.example.com?par=0 (the server reads the parameter par and does some stuff) I found this article, talking about Cross-Origin XMLHttpRequest . But I don't know how their example could help me. You have to go to your manifest.json and add the permission for www.example.com : { "name": "My extension", ... "permissions": [ "http://www.example.com/*" ], ... } Then in your background page (or somewhere else) you can do: fetch('http://www.example.com

Yii search method get don't work and don't compare with data in database

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 19:51:24
问题 Hi yesterday i tried one way to create search by datetime, and you can see link: Search task on the next post. Today I try one another way: When I succed i will put sollution back thank you. This is my search file: <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?> <?php /* @var $this ApplicationController */ /* @var $model Application */ /* @var $form CActiveForm */ ?> <div class="wide form"> <?php $form=$this->beginWidget('CActiveForm', array( 'action'=>Yii::app()->createUrl(

Codeigniter - Hook to log GET / POST REQUESTS

 ̄綄美尐妖づ 提交于 2019-12-02 19:45:43
A client requires that all GET/POST requests are logged and stored for 90 days for their applicaiton. I have written a HOOK which seems to record some of the GETS / POSTS but there is less data than I would expect. For example, when submitting form data, the entries don't seem to be put in the log. Has anyone written something similar which works? Here is my version thus far: class Logging { function __construct() { $this->CI =& get_instance(); } function index() { $this->CI->load->model('Logging_m'); $this->CI->load->model('Portal_m'); //get POST and GET values for LOGGING $post = trim(print

Convert and save string to binary file in Python

心已入冬 提交于 2019-12-02 19:34:39
问题 I'm using PyOBEX to exchange binary files (e.g. images etc.) between my computer (Windows 7) and my phone (Android). However, when I use get() to get a file from my phone, it arrives on my computer as a str . I tried using the chardet module to find out what encoding to use to decode it and eventually turn it into a binary file, but it returned None . type() says that it's a str . The code is the following: import bluetooth import BTDeviceFinder import PyOBEX.client name = "myDevice" address

How to create a get Method with nodes off a generic type in java

孤者浪人 提交于 2019-12-02 19:27:35
问题 I am implementing a cyclic DoublyLinkedList data structure. Like a singly linked list, nodes in a doubly linked list have a reference to the next node, but unlike a singly linked list, nodes in a doubly linked list also have a reference to the previous node. Additionally, because the list is "cyclic", the "next" reference in the last node in the list points to the first node in the list, and the "prev" reference in the first node in the list points to the last node in the list. I need help

how correctly get country and other info from sql for specific id

不羁的心 提交于 2019-12-02 18:48:17
问题 I am trying to get country and other info from sql for specific id, only " id " displays correctly in both cases. <?php $sql = "SELECT * FROM `list` ORDER BY category ASC"; $result = mysql_query($sql); $rows = mysql_fetch_assoc($result); $id = $_GET['id']; $country = $_GET['country']; echo $id; echo $country; ?> and <?php $sql = "SELECT * FROM `list` ORDER BY category ASC"; $result = mysql_query($sql); $id = $_GET['id']; $country = $_GET['country']; if (mysql_num_rows($result) > 0) { while(