php

  • Convert date from dutch to english 2018-06-23

    I thought this going to be quite easy but it is not! I have date: mei 28, 2015 (dutch) and I would like to convert it to english Y-m-d Problem is site is multilang so I would like it to stay dynamic (replace mai to may) is not solution, I've already

    Tags: php, date, magento
  • input field: store decimal values with comma instead of a point in mysql database 2018-06-23

    I have an input field for a price. The entered value will be stored into a database, for example 13,99. In the MySQL database this field has the type decimal(10,2). What happens is that the price will only be stored correctly into the database if the

    Tags: php, mysql, localization
  • add image at header & footer on every page of pdf using dompdf 2018-06-22

    I am trying to create pdf file using dompdf. I want to show header and footer images on every page of pdf, but my problem is in html I know that, but it's too large html code so I am googled some other solution like used here https://github.com/dompd

    Tags: php, html, css, pdf
  • How to access json_decode parameters in PHP 2018-06-22

    So, i'm trying to access some input fields in a form which I get with $data = json_encode($app->request->getBody()); It returns something like this after an echo $data: "groupname=group13&description=description" But I just can't figur

    Tags: php, arrays, json, post
  • Addition of two matrix using loop 2018-06-20

    These are my two matrices in four arrays: Array ( [0] => Array ( [0] => 1 [1] => 2 ) [1] => Array ( [0] => 4 [1] => 5 ) ) Array ( [0] => Array ( [0] => 1 [1] => 2 ) [1] => Array ( [0] => 4 [1] => 5 ) ) How can I add up

    Tags: php, matrix
  • How to get image file format if it doesn't have an extension? 2018-06-17

    I have a folder of image files. Some of them don't have any extension. I need to find their format and attach proper extension to them through PHP or shell programming in Linux/Ubuntu. Can anyone please help me how to do it? --------------Solutions--

    Tags: php
  • Could I use Capybara on frameworks outside Rails (PHP)? 2018-06-13

    I would like to test my php web app (specifically Magento) with Capybara. I've used Capybara with success when I used rails before so I want to replicate the success. Does anyone know if this is possible or maybe there is a Capybara for php? --------

    Tags: php, ruby on rails, magento, capybara
  • Convert PHP MySQL Code to MySQLi 2018-06-12

    I use the code below for a login system on my site. A lot of programmers on other sites said this code is not safe in any way, but the login system I created is huge. I can't rebuild it all, that takes ages for a beginner programmer in PHP. <?php $de

    Tags: php, mysql, mysqli
  • Android/PHP: how to POST/GET JSON data from Android to php 2018-06-11

    Android/PHP: how to POST/GET JSON data from Android to php? Currently I am stuck at a point where I am sending JSONObject data to php but getting NULL values always in response. What I want: I am sending 'username' and 'password' from Android in the

    Tags: php, json, android
  • php code to display 1 or 0 based on two dates 2018-06-11

    table name holidaymaster id Date 1 12-04-2015 My form has two filters. fromdate todate If user select FromDate = 01-05-2015 AND Todate = 31-05-2015 then it display all days between fromdate and todate in header. If Days between fromdate and todate is

    Tags: php, mysql
  • how to convert in url " _" to "-" useing htaccess 2018-06-07

    This question already has an answer here: In htaccess, I'd like to replace underscores with hyphens and then redirect the user the new url 2 answers I have a URL that looks like: url.com/rom_date/ct_8/first_0 How would I go about converting that URL

    Tags: php, .htaccess
  • How to decode SCC file? 2018-06-04

    After severals researches on Google and Github, I'm coming here to ask for help. I'm creating a SCC file parser in order to convert it to a DFXP file. Nevertheless, I can't find any information to obtain plain text from SCC file. SCC file example : S

    Tags: php, file, parsing, decode
  • Send mailer Symfony2 2018-06-04

    I use Symfony2. My Action send a message and then redirect to a page. Like this public function myAction() { ... some code ... sendMessageWithSwiftMailer() .... return $this->redirect(Url); } This code work. But Url takes so much time to be opened. H

    Tags: php, sendmail, symfony2
  • Restore magento quote after payment was refused 2018-06-04

    I'm creating a magento payment extension which does the following: When the user clicks on checkout in the merchant site, he gets redirected to a web site (like paypal) where he inputs his payment data. If the payment method fails, the user gets redi

    Tags: php, magento
  • How to multiply session values 2018-06-02

    I am trying to create a menu booking. if i select meal set 1 , the price is $100, meal set 2, the price is $200 and this selected value will multiple the amount of tables request below is my code but the price is showing $0 in total. if($_POST['Radio

    Tags: php
  • update my JOIN table 2018-05-31

    I have built a system where I can create a category and a document. the categories live in the cat_list table and the documents live in the doc_list table. there is a column in the doc_list table called cat_no which takes an array or the categories t

    Tags: php, mysql, pdo
  • Send Notification when new post is published in wordpress 2018-05-31

    Right now, I am sending notification to android application users when new post is created in WordPress. But issue is that, It sends notification also when draft is created and post is updated. Which condition should I put to send notification only w

    Tags: php, wordpress
  • Validation for Add screen not working but it working in edit screen with same code 2018-05-29

    I am learning Zend framework and currently I have created add, update , delete functionality for country name and continent name and it is working perfectly. I have set validation by $name->setRequired('true'); and $continent->setRequired('true'); i

    Tags: php, validation, zend framework, zend form
  • How to update the data according to the user selection in PHP 2018-05-29

    I'm trying to change the data according to the user selection in a list in real time. How would i suppose to achieve this task? For example: if the user selects the below information. How would you like to give us a feedback? <select> <option>

    Tags: php, html
  • Composer commands generate error on Windows 8 and Laravel 4 2018-05-27

    I am trying to run the command composer install from the command line and every time I do so I generate the following error: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing

    Tags: php, xampp, laravel, composer php

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.165 (s). 7 q(s)