I am a newbie in zendframework 2.3. In my app i need to call web services. and i used class ZendHttpClient() … everything is fine… but reponse is empty.. It works in curl call via core php Answer You could use directly the Http Client by setting the CURLOPT_POST and CURLOP_POSTFIELDS options in th…
Shortcut key in PhpStorm to move to HTML end tag
Having a section of HTML tag: Suppose the caret is at the begin of the tag <div>, is there any key to move the caret to the closing </div>? There is a similar concept on CSS (doesn’t work on HTML) that works fine: in this case, Ctrl + ]/[ moves to the code block end/start. Here is the PhpSto…
Codeigniter send email with attach file
I am trying to send email on codeigniter with attach file. I always receive email successfully. However , I never receive with attach file. Below is code and highly appreciate for all comments. Answer $this->email->attach() Enables you to send an attachment. Put the file path/name in the first parameter…
Running PHP in Windows: how to fix “PHP Startup: Unable to load dynamic library” issues?
I have determined path to php folder and trying to run some php file and getting this message from command line. Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights …
Regex for youtube channel URL
how can I validate youtube channel URL using REGEX ? I found this pattern but it doesn’t work properly Can anyone help me ? Answer Your problem is the extra pipe after user/ Here is the corrected regex: The reason this is a problem is because it make (channel|user) optional. A better way to write this r…
Facebook Open Graph, required property ‘og:title’ of type ‘string’ was not provided
I have a Joomla-page (v3.2.4) where I put in some dynamic Open Graph tags with PHP, like this: The PHP, before the tag: And in my tag I have this: When I run the page through the Facebook Object Debugger, I get the following two errors: Object at URL ‘http://www.livakursertestsite.dk/kurser/babytegn-2&#…
user verification using SMS (php)
I am stuck in a situation in which when a user registers, he/she get a confirmation SMS on his/her mobile number, and he/she able to confirm their application by replying to the confirmation SMS, be …
Yii radioButtonList: always takes the default value as the selected value
I have Yii radio button list as follows. forgotpassword1.php This is the action for forgotpassword1. Here I call a function named “ChangePassword()” from my backend application. One of the parameters passed to the backend is send_type: mobile or email. The problem is it will always takes mobile as…
php session issues the same session_id for different users on different computers
I have a web app, which I’m testing now. And for some reason I can’t get the sessions work properly. They work good on my local site though. Here’s the problem. For some reason PHP issues the same …
Is there a reason that a browser would change its User Agent?
I’m currently working on a new website for a client that stores personal information and credit card info on the site. As such, security is a big concern for me. This is the first site I’ve built that has sensitive information on it, and so I’m not very familiar with the whole subject. The s…