I’m trying to set up a debian web server with apache, fastcgi and fpm, but I’m getting exasperate. As soon as i deactivate mod_php I get following error: [Thu May 22 12:16:10 2014] [error] [client …
Tag: php
Get User API key with PHP Pushover push notifications to iOS & Android
I want to use PHP Pushhover to push notification to specific devices / Android setToken(Your app API key) is a server API gets from Google Project Credentials, it’s fine, but where can I get the user API key for setUser(The user’s API key)? Note: I want to push notification to specific devices tha…
‘sorry some error occurred’ while integrating PayUMoney payment gateway in Test mode
I’m trying to integrate PayUMoney payment gateway in my client site. My client provided me the login details of PayUMoney. I was able to locate the Merchant Key but cannot find either of the two: Merchant Salt Developer site where I can create a test account and test on sandbox PayUMoney provided me a f…
curl: (26) couldn’t open file
I am getting this error, when I am trying to call a box api through curl. curl: (26) couldn’t open file Can’t find why! I am calling this api with a correct file name- curl https://upload.view-api….
Convert RBG to CMYK with use of ICC profile in PHP
I am currently building an online APP which allows users to pick a color for text from a usual javascript color picker. I want to convert the returned value to CMYK and I know there is not one simple run-of-the-mill method to achieve this, given there are ICC profiles and all that. I still want to achieve a r…
Using radio box selection to display multiple DIVs
I need to be able to use three radio buttons to determine which P’s display on a page. All items are queried from a database so there is no fixed number. I’d like to stick with javascript if possible. All is written inside PHP code Tried using the following: Then each P will have the option of 6 p…
How to use foreach to return true/false
How can I use foreach to return true or false. For example, this isn’t working. function checkArray($myArray) { foreach( $myArray as $key=>$value ) { if(!$value == $condition) { …
ZF2 Apigility Rest – unable to get multiple params
I’m using Apigility to build my Rest APIs. I want to build have the ability to take in multiple parameters. Such as http://mydomain.com/users/1/activities/4 I now this is possible from this page: https://github.com/zfcampus/zf-apigility/issues/10 I have edit my module route to: ‘route’ =>…
How to debug in PHPStorm with built in webserver using Symfony command line tool
I was able to set up a php web app debugger in PHPStorm by simply tying it to my localhost at a specific port and everything works fine. However for that to work I need to first run this command on the shell: This works just fine if I set up breakpoints for browsing the site itself or testing api
How to reload/refresh model from database in Laravel?
In some of my tests, I have a user model I have created and I run some methods that need to save certain attributes. In rails, I would typically call something like user.reload which would repopulate the attributes from the database. Is there a way in laravel to do that? I read through the api and couldn̵…