php,peclRelated issues-Collection of common programming errors


  • ThihaKyaw
    php android mysql
    What is this error, and why does it happen? Please explain and solve. This is sample from “androidhive”. I need help for my thesis because of my thesis android app is to store data at web server.12-10 10:08:09.556: W/System.err(401): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused 12-10 10:08:09.556: W/System.err(401): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused 12-10 10:08:09.686: W/System.err(401): at org.apache.h

  • Darius
    php xml
    I call commission junction API and receive this as a response.$xml_response = simplexml_load_file($xml_response); exit($xml_response);If I do $xml = new SimpleXMLElement($xml_response);I get an application error. (Not sure how to find what error this is, where could I set error codes to show for this part?)Warning: simplexml_load_file(): I/O warning : failed to load external entity ” 106032782478435B & H Photo VideoComputers & Solutions > Laptops > MacBookshttp://www.jdoqocy.com/cl

  • Xalu
    java php android mysql json
    I am currently working on an app and I am trying to implement a user system with login/registatration. I’ve been going over several tutorials to get an idea what to do. Now I am beginng to wonder if something is wrong with my eclipse enviroment because after trying 2 or 3 tutorials (and downloading the source code to test), I keep getting the same errors.Rather than posting all the code (there is a lot)…Here is a link to the projects tutorial http://www.learn2crack.com/2013/08/develop-android-

  • jbihan
    java php android mysql json
    Immersed in the development of my program, I encounter an error that seems to me not really speaking.So here’s my logcat in the order and the java code:When I click on the item in my listview it should return me the contact information for the update.public class MajContactActivity extends Activity {EditText txtNom; EditText txtPrenom; EditText txtNummobile; EditText txtNumfixe; EditText txtEmail; EditText txtAdresse; EditText txtProfession;Button btnSav; Button btnSup;String idCONTACT;// Progr

  • SPeed_FANat1c
    php random poker
    I have made a research on poker equities. What I did is use pokerstove program with some selected. And with that program calculated the equities using enumerate all method. So pokerstove results:I also made a table where I store the random results:CREATE TABLE poker_results ( id int NOT NULL AUTO_INCREMENT, matches_id int NOT NULL, — just for filtering in case I will want another starting hands. result varchar(255) NOT NULL, winner_hands varchar(255) NOT NULL, PRIMARY KEY (id) ) The result col

  • Martijn Riemers
    php git maven vert.x
    I’m trying to install the PHP language in my vert.x mods directory. I have tried both branches and both process a different answer.All these results and errors were either produced when trying to build from the git repo or using running vertx run app.php in the command line using this simple PHP script:<?phpuse Vertx\Pump;$server = Vertx::createNetServer();$server->connectHandler(function($socket) {$pump = new Pump($socket, $socket);$pump->start(); })->listen(1234, ‘localhost’);When

  • Jogn Smit
    php mysql facebook
    This will be very hard to explain, but i will do my best. I have a facebook application (it’s a quiz – trivia), where users has to “sign in” with their details, i’m picking up their emails, but also requiring them to input the email, cellphone and address, also i require them to like the page before they can proceed, otherwise they are redirected back to the same page. Now, the tricky part is. I have went through the settings of both accounts, when i say both accounts, i have accounts with 15 d

  • Inator
    php javascript apache nosql couchdb
    I’ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb/(.*)$ http://127.0.0.1:5984/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https://api.domain.com/endpoint/?timestamp=[timestamp]&signature=[signature]&id=[id]…etcEach

  • Dr.Kameleon
    php regex wiki
    Well, this is an example infobox content :|conventional_long_name = Italian Republic |native_name = {{lang|it|”Repubblica italiana<!–italiana is without uppercase; see Italian wiki–>”}} |common_name = Italy |nickname(s) = Il Belpaese |image_flag = Flag of Italy.svg |image_coat = Italy-Emblem.svg |symbol_type = Emblem |image_map = EU-Italy.svg |map_caption = {{map caption |location_color=dark green |region=Europe |region_color=dark grey |subregion=the [[European Union]] |subregion_color

  • SoLoGHoST
    php internationalization gettext
    I am trying to set up a way to allow members to translate strings into other languages. You can see an example here: TRANSLATIONS TESTSomeone recommended that I use php’s native gettext() function for this, instead of what I am already using to load the language files, which is this:function loadLanguageFile($language, $file) {$temp = array();$data = file_get_contents(‘./’.$language.’/’.$file.’.’.$language.’.php’);$codes = array (‘/(\’\s*\.\s*\$)(.+?)(\s*\.\s*\’)/’,’/(=\s*\$)(.+?)(\s*\.\s*\’)/

  • Clive
    mac php pecl
    I’ve just upgraded my OS to Mountain Lion and PECL is no longer working (it’s on a test drive so no drama, but I’d like to get it working so I can upgrade the OS on my shiny new SSD as well).I’m using the native PHP installation, no macports/homebrew or anything like that.Running sudo pecl install uploadprogress (for example) produces the following terminal output:downloading uploadprogress-1.0.3.1.tgz … Starting to download uploadprogress-1.0.3.1.tgz (9,040 bytes) …..done: 9,040 bytes 4 sou

  • anonymous-one
    php memcached pecl tcpdump netstat
    We use pecl’s memcached (note the D, there are 2, memcache AND memcached) extension to connect to a cluster of memcached 1.4.13 boxes.We have noticed a LARGE number of tcpip resets occuring:[root@box ~]# netstat -s | grep unexpected 2078913548 connections reset due to unexpected data[root@box ~]# tcpdump -n -v ‘tcp[tcpflags] & (tcp-rst) != 0’ -nn 13:30:45.786577 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 40) LANSUBNET.1.19093 > LANSUBNET.4.999: Flags [R], cksum

  • ak.
    php pecl
    I am trying to install apc with commandyum install apcit’s giving me following errorParse error: syntax error, unexpected T_RETURN, expecting T_FUNCTION in /usr/local/lib/php/Archive/Tar.php on line 251what could be the reason ?

  • Prof. Falken
    php pecl
    How do I from PHP code if a PECL extension is installed or not?I want gracefully handle the case when an extension is not installed.

  • Camil Staps
    ubuntu-12.04 package-management pecl oauth
    I’m trying to install the pecl oauth package, but get an error:root@ubuntu:/# pecl install oauth downloading oauth-1.2.3.tgz … Starting to download oauth-1.2.3.tgz (45,531 bytes) ………….done: 45,531 bytes 6 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 building in /tmp/pear/temp/pear-build-rootu9SvUc/oauth-1.2.3 running: /tmp/pear/temp/oauth/configure checking for grep that ha

  • Artefacto
    php debugging pecl php-extension
    In PHP 5.3 is there a way to rename a function or “hook” a function.There is the rename_function() within “APD” which has been broken since ~2004. If you try and build it on PHP 5.3 you’ll get this error:’struct _zend_compiler_globals’ has no member named ‘extended_info’This is a really easy error to fix, just change this line:GC(extended_info) = 1;toCG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;I modified my php.ini and the APD shows up in my phpinfo() as it should. However when i call

  • Mez
    php pear pecl
    When building some of my PHP apps, a lot of the functionality could be coded using PEAR/PECL modules, however, the fact that some people using it may not have the access to install things, It poses a puzzler for me.Should I forsake some users to use PEAR/PECL for functionality, where these will allow me to have a system coded up quicker than if I wrote my own functionality, but eans that it will exclude certain people from using it.

  • Charles
    php oracle pecl oci8
    UPDATE (5/21/2010) SUCCESS!So after MUCH $head->desk()’ing, I’ve solved it.Remember kids, be wary of the instant client version you use, dependent on the virtualization settings!I had been installing the generic Instant Client (not aware our ESX servers sit on AMD processors, not Intel) and that worked fine internally (the CentOS install was 32-bit since our internal ESXi servers aren’t 64-bit). Well lo-and-behold, even if you have a 32-bit install running on a virtualized server which is sittin

  • Logan Bailey
    php pecl
    I tried to get memcached pecl extension to work, but when I call getVersion php crashes. I’ve tried to include any information that I think is relevant. Example codelogan-bailey$ php -a Interactive shellphp > $m = new Memcached(); php > $m->addServer(‘127.0.0.1’, 11212); php > $m->getVersion(); dyld: lazy symbol binding failed: Symbol not found: _memcached_server_major_versionReferenced from: /usr/lib/php/extensions/no-debug-non-zts-20100525/memcached.soExpected in: flat namespace

  • Marijn Huizendveld
    php centos installation pecl intl
    Original question:I’m having trouble installing the PHP Pecl Intl extension on my CentOs 5 machine.After installing both icu and libicu with the following commands:$ yum install icu $ yum install libicuI tried to install the Intl extension like so:$ /usr/bin/pecl install intlI selected to search for the default location for the ICU libraries and header files. It ends up crashing like this:checking whether to enable internationalization support… yes, shared checking for icu-config… no checkin

Web site is in building