Hi I’m fairly new to php/html and Im having trouble with hiding the inputs based on my radio input selection. I want to be able to hide the rest of the inputs if “yes” is selected but nothing happens. Any help would be greatly appreciated. Thanks. Answer Make sure your function block is clos…
Tag: php
RSA Encryption in Java / Decryption in PHP Fails
I have a PHP script that I have been using do decrypt a session key that I encrypted from iOS. The encryption is done on the client using a 1024-bit public key. Decryption on the server side is done with the corresponding private key. Now I’m trying to write an encryption method for Android. Unfortunate…
PHP Memcached stores array, retrieves object. A bug?
Using MemcacheD v1.4.22 PECL MemcacheD library v2.2.0 PHP v5.3.19 (cli) I am trying to store an array into cache I am storing an array with mixed integer/string keys which should not be a problem for php but apparently it is for memcached? Is it documented anywhere? Any workaround or hint? If I look at termin…
Yii 2 Menu Display List Depending on User
How do I configure or customize my Menu where in, for example, if I am an admin user, I can see everything on my navigation bar, like, in my case, the Users (list of Users where I can create, update, …
Get stdClass Object value
I’m trying to get a value from stdClass Object array with no success. Here is the code I’m running: $myjson = ‘{“2”:{“label”:””,”value”:””,”type”:null,”validation”:null,”required”:null}, “6&…
How to properly configure alias directive in nginx?
I have been trying to configure multiple webapp on my nginx webserver but I can’t get working one Laravel app that requires $document_root set to laravel public folder. I am currently trying to configure it using alias directive but for an obscure reason this doesn’t work. Here is what I am trying…
Twig get url parameter with []
I have an url like : MYURL?filter[_per_page]=25&filter[name][value]=hello How can i get these parameters with twig ? I’m trying {{ app.request.get(‘filter[_per_page]’) }} but it’s always empty… Thanks ! Edit : I’m in javascript an i want to assign this result to a javas…
In Laravel, what validation rules do I need to check the number of characters in a number?
I’m using rules in validation in Laravel, and am trying to check the number of characters in a number. This is my attempt: Unfortunately that checks that the zip code is the number 5 and not that the zip code is 5 characters. Which rules do I need to set to check that the zip code is exactly 5 character…
Set session variable in laravel
I would like to set a variable in the session using laravel this way but the problem is that I don’t know where to put this code, ’cause I would like to set it for one time (when the guest visite the home page or any other page)? The main idea is to use a global variable to use it
Can composer.phar be deployed with the code?
I’m using Composer for a small project. I’ve pushed composer.json and composer.lock to Git, and put the vendor/ folder into .gitignore, so I can install the dependencies at the server on deploy time. Can I push composer.phar to the Git repo or should I install a new copy for the server? Not sure i…