Home >


  • Symfony How to create empty SELECT (ChoiceType)?June 7

    I'm on Symfony 2.8. I've got Movie entity, which has Actor entities (ManyToMany). Lately I realized I will have a problem with creating entity, when there's a lot of actors in the DB, so I want to do have ajax-autocompleter on Actor field. On admin s

  • PHP Merge two Arrays on same keyJune 3

    I need to merge two array using a key. I found this function online but does not work exactly as I want. This works fine if we have same number of key in each array. $array1 = array( array("Camera1" => ""), array("

  • Modern recommendations for password recoveryMay 20

    I'm going to implements password recovery in my authentication. I haven't put this together in a while and wondering if there is anything I ought to be aware of. My idea at the moment is: User clicks "Forgot my password" to go the password recov

  • Create a store locator without pluginsMay 18

    I want to crate a store locator where the users type an address and the result show all results ordered by distance. I research a lot but I can't find any tutorial of doing this with google map api v3, applied to wordpress. Can anyone give me a guide

  • I found unknown PHP code on my server. How do I de-obfuscate the code?

    I found unknown PHP code on my server. How do I de-obfuscate the code?May 14

    We've been getting a lot of noise regarding hacked PHP files here, and it's taking a lot of time to answer these questions. In many cases, they are off-topic. We've had a discussion about this on Information Security Meta, and many people want these

  • i want to display only those images according to the category_id selectedMay 5

    i want to display only those images according to the category_id selected but iam not getting images here and and for all category_id the value showing is category_id=9 here is my controller public function men_clothing($p_id=null) { $data['active_mn

  • Symfony run command from controller on the serverMay 4

    I want to clear the cache from the controller. I have defined the command as a service and call it. clear_cache_command_service: class: Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand calls: - [setContainer, ["@service_container"] ] In

  • Select multiple rows into array and send them via AJAXMay 3

    I am trying to run a SELECT query in PHP and then multiple rows are selected, but I need to fetch them into an array and then use: echo json_encode($array). After That I need to get this array into AJAX. Here is the PHP code: $val = $_POST['data1'];

  • Send a Complete web page via email [on hold]April 13

    I need to develop an application to send a COMPLETE web page via email, please help me, am using cURL and preg_match_all but it does'nt work at 100%

  • Why is 'admin' missing from my admin links?April 9

    I cloned a wordpress site to my local machine. Then I ran PHP's built in web server in the root of the WordPress site, via 'php -S localhost:3000'. I added my db credentials in wp-config.php. Then I added the following to the top of my wp-config.php

  • Unusable menus and "Illegal widget setting ID: nav_menu_item[]" errorApril 9

    This is a bug in my WP install that has crept up unknowingly; I can't say for sure when it began. To describe it: there were menus created in the Appearance -> Menus page early in the site's history, and they work perfectly, as in: They have menu ite

  • Randomly Assign an Image's Alt Text Based on Data From PostApril 8

    I would like randomly assign an image an alt text based on taxonomy entered by the user on a post that the image is attached if there is no alt text entered. For example, on a post that has an image, I would like to randomly assign something like: "U

  • Why can't I add picture from tweet via twitter api?March 16

    I've hooked up the twitter API via PHP and I can get the objects without issue. However when I grab the media URL and try to stick it in an image tag it comes up as a 1px by 1px image. I tried directly sticking in a twitter picture and it does the sa

  • gcm invalid registration errorMarch 16

    i pass to the server a nickname and then i get registration id by nickname from my database. GOOGLE_API_KEY is a server key generated by google gcm api. this is the php code of the server: <?php require_once("db_config.php"); $con = mysqli_co

  • How to include MySQLi connection and use within PHP ClassMarch 15

    Let me be clear: this is the first time that I'm trying to learn OOP in PHP. Currently, the MySQLi connection is setup in my config.php file through $mysqli. However, I'm running into difficulty when it comes to implementing it into a class - which i

  • how to optimize mysql fulltext searchMarch 13

    When searching nice language there shows flowing result and if i want to give 1 score for one word repeated (like a nice nice) results what should i do. For example in the result PHP is a PHP is a nice nice gets 2 score +-----------------------------

  • Ajax gets the content but href links not workingMarch 11

    Can anybody tell me why a tag href not working when the ajax request content is loaded to the page. Eg. <a href="#"> class="script" like </a> I am running a script on click of this href but it not running when i load this h

  • PHP array to JS array to use in google mapFebruary 10

    Hi I want to use some data stored in a php array to use it in google map api, to populate multiple locations in a the map. I use the loop to create my php array. <?php while ( $the_query->have_posts() ) : $the_query->the_post();?> $locations_d

  • media_handle_sideload is resizing my image?February 10

    I'm uploading a list of images via my wp plugin using the media_handle_sideload function. The problem is it's resizing and croping my images. Is there any way to upload the image without changing the dimensions ?

  • Create a a form for custom taxonomy termsFebruary 9

    Currently i am displaying a list of my custom taxonomy (contenttags). These are displayed in a list using the code below, which then displays the posts under that taxonomy. <?php $taxonomy = 'contenttags'; $terms = get_terms($taxonomy); // Get all te

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.478 s.