questions/web-development/php/page/14
Hello @kartik, Add this to the page that ...READ MORE
I need to connect to some PostgreSQL ...READ MORE
Hello @kartik, MySQL is most likely in STRICT ...READ MORE
You can try this one: error_reporting(E_ALL); ini_set('display_err ...READ MORE
Hello @kartik, You can do it with {{ form_widget(formView._token) ...READ MORE
Hello @kartik, Error occurred here was due to ...READ MORE
Hello @kartik, Try this: preg_replace('/\\?.*/', '', $str) Hope ...READ MORE
Hello @kartik, Try the following script to see ...READ MORE
Hii @kartik, Try out this code $ens = $em->getRepository('AcmeBinBundle:Marks') ...READ MORE
Hello @kartik, $_GET is not a function or language ...READ MORE
Hello @kartik, Replace TYPE=MyISAM with ENGINE=MyISAM The problem was "TYPE=MyISAM" which should ...READ MORE
Hello @kartik, Here is a sample: <?php // Snippet from ...READ MORE
Hello @kartik, If you're using PDO, use PDO::lastInsertId. If you're ...READ MORE
Hello @kartik, To get only the name of ...READ MORE
Hello @kartik, The PHP and the HTML should ...READ MORE
Hello @kartik, Single quotes are escaped by doubling ...READ MORE
Hello @kartik, Try this: $session = Mage::getSingleton("core/session", array("name"=>"frontend")); // ...READ MORE
Hello, Use $_SESSION directly to set variables. Like this: $_SESSION['name'] = 'stack'; Instead ...READ MORE
Hello @kartik, You can use instanceof: if ($pdo instanceof PDO) ...READ MORE
Hello @kartik, Find your php.ini and look for XDebug. Set xdebug ...READ MORE
Hello @kartik, Use this: ALTER TABLE `votes` ADD UNIQUE ...READ MORE
Hello, set_time_limit() works in CLI scripts. <?php set_time_limit(1); //in ...READ MORE
Hello @kartik, You can instruct curl to use ...READ MORE
Hello @kartik, using hidden array in model is good, but ...READ MORE
Hello @kartik, Here's how you properly fetch the ...READ MORE
Hello @kartik, Use this: $sth = mysqli_query($conn, "SELECT ..."); $rows ...READ MORE
Hello @kartik, Set the name in the form ...READ MORE
Hello @kartik, Works with both POST and GET ...READ MORE
Hello @kartik< Try this settings on my apache.conf: <VirtualHost ...READ MORE
Hello @kartik, You need ImageMagick and GhostScript <?php $im = new imagick('file.pdf[0]'); $im->setImageFormat('jpg'); header('Content-Type: image/jpeg'); echo ...READ MORE
Hello, If your whole JavaScript code gets processed ...READ MORE
Hello @kartik, Use $_SERVER['REQUEST_URI']. The URI which was given in ...READ MORE
Hello @kartik, Have a look at $_SERVER['REQUEST_URI'], i.e. $actual_link = ...READ MORE
Hello @kartik, You access the property in the ...READ MORE
Try this: $files = array_values(array_filter(scandir($path), function($file) use ($path) ...READ MORE
Hello @kartik, ou can use php_ini_loaded_file() Taken from php.net: $inipath = ...READ MORE
Hello, Try this: if (isset($_POST['remove'])) { ...READ MORE
Hello, If A is a class, you can access it ...READ MORE
Hello @kartik, Try this query: mysql_query(" SELECT * FROM `table` WHERE `column` ...READ MORE
Hello, Try this: <?php ob_start(); ?> <xml/> <?php $xml = ob_get_clean(); ...READ MORE
Hello @kartik, Let's say you want to save ...READ MORE
Hello @kartik, Since PHP 5.4 it's possible to ...READ MORE
Hello @kartik, Send the following headers before outputting ...READ MORE
Hello @kartik, My script for installing an error ...READ MORE
Hello @kartik, If your whole JavaScript code gets ...READ MORE
Hello @kartik, This is how you do it: set_error_handler(function($errorType){ ...READ MORE
Yes good i like it so nice ...READ MORE
Hello @kartik, CURL-less method with PHP5: $url = 'http://server.com/path'; $data ...READ MORE
Hello @kartik, You have a JSON string, not ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.