After submitting I want the redirect the users to a different page with the value of the input in the url. Now, when there is no value I want that it does nothing (return false). How can I do this? …
empty elements in symfony form collection
I have a simple form with collection of items in it. Just like described here: http://symfony.com/doc/current/cookbook/form/form_collections.html. The problem is when I add new element (or multiple …
How to decrypt sha1 in php?
Below i had encrypted a string varible using sha1. And now i would wish to decrypt data using sha1 function, but am going some where. Would some one come forward and guide me in proper way please. …
How to change public folder to public_html in laravel 5
I’m using a shared hosting which uses cPanel as its control panel and within the cPanel public_html is the default root directory, because of this I can’t get my Laravel application work properly. Is …
Doctrine migrations table collation
Trying to find a way to programatically create tables with certain collation, but can’t seem to find a way how to do it properly. I am using the “doctrine/doctrine-migrations-bundle”: “2.1.*@dev” and Symfony 2.3, I set up in my config.yml: It creates the database with LATIN1 char…
PHP – Echo
I want my page to display <br>Hello!. But if I use Then the <br> string is not displayed, but a newline is displayed instead. How can I fix this? Thanks Answer Use entities” OR <xmp> tag in HTML:
codeigniter captcha helper is not increasing text font size
This seems a duplace question some how, but its not. Am asking the following : Does the codeingiter helper does have a font size increasing feature ? even if i passed the following array setting …
How can I check in PHP if 2 IPv6-Adresses are equal?
I want to check if an IP is whitelisted, but IPv6-Adresses can have different representations: For example 2001:0DB8:0:0:1::1 is the short form of 2001:0db8:0000:0000:0001:0000:0000:0001. Thus, string comparison doesn’t work. How can I know two adresses are equal? Answer Use inet_pton. (However, this wi…
Use of undefined constant MCRYPT_RIJNDAEL_128 – assumed ‘MCRYPT_RIJNDAEL_128’
I have successfully installed Laravel, but after running php artisan serve and going to localhost:8000 I get this error: Use of undefined constant MCRYPT_RIJNDAEL_128 – assumed ‘MCRYPT_RIJNDAEL_128’…
Laravel where on relationship object
I’m developing a web API with Laravel 5.0 but I’m not sure about a specific query I’m trying to build. My classes are as follows: and Now, I want to get all the events with a specific participant. I tried with: but the where condition is applied on the Event and not on its Participants. The …