questions/web-development/php
Hi, @Dann, If you are using some variable ...READ MORE
You can try this one: error_reporting(E_ALL); ini_set('display_err ...READ MORE
Hello @kartik, you need to set the blending ...READ MORE
Hello @kartik, You just have to include the safestring.class.php before ...READ MORE
Hello @kartik, PHPMailer has the ability to automatically ...READ MORE
Hello @kartik, You upgraded to PHP 7, and ...READ MORE
Hello @kartik, Use the ampersand & to glue variables together: $url ...READ MORE
Hello, Try this code: if (!function_exists('getallheaders')) { ...READ MORE
Hello, Try this: if ($thing->trashed()) { ... } READ MORE
Hello, On your migration class: public function down() { ...READ MORE
Hello, Try this code: preg_match('/[a-zA-Z]+<\/a>.$/', $lastgame, $match); print_r($match); Using / as a delimiter ...READ MORE
Hello @kartik, Use the reference operator to get ...READ MORE
Hello, Use $_SESSION directly to set variables. Like this: $_SESSION['name'] = 'stack'; Instead ...READ MORE
Hii, You can pass an associative array to http_build_query() and ...READ MORE
Hello, Try this : echo exec('ping -n 1 -w ...READ MORE
Hello @kartik, Create a new file in your ...READ MORE
Hello @kartik, You could try the following: Route::controller('login','AuthController'); Then in ...READ MORE
Hello @kartik, You can do it with {{ form_widget(formView._token) ...READ MORE
Hello @kartik, Include has the scope of the ...READ MORE
Hello, Use PHP's $_POST or $_GET superglobals to retrieve the value of ...READ MORE
Hello, A simple example capturing anything starting with http:// and https:// could ...READ MORE
Hello, If A is a class, you can access it ...READ MORE
Hello, This error is often seen when the default_socket_timeout value ...READ MORE
Hello @kartik, You need to place the \n in double ...READ MORE
Hello, Try mysql_fetch_object(). It returns an object, not an ...READ MORE
Hello @kartik, Test different ports: $wait = 1; // ...READ MORE
Hello @kartik, You could have a single key ...READ MORE
Hello @kartik, Use: $url = preg_replace("(^https?://)", "", $url ); This ...READ MORE
Hello @kartik, Your server most like does not ...READ MORE
Try this: $files = array_values(array_filter(scandir($path), function($file) use ($path) ...READ MORE
Hello @kartik, You need to capture the stderr too. Redirecting stderr to stdout should do ...READ MORE
Hii, Use: $session_id = Session::getId(); or $session_id = ses ...READ MORE
Hello @kartik, It's trying to run it as ...READ MORE
Hello @kartik, You don't appear to have write ...READ MORE
Hello @kartik, Here's how you properly fetch the ...READ MORE
Hello @kartik, Try this: class MySimpleXMLElement extends SimpleXMLElement{ ...READ MORE
Hello @kartik, Try this: $session = Mage::getSingleton("core/session", array("name"=>"frontend")); // ...READ MORE
Hello @kartik, Replace TYPE=MyISAM with ENGINE=MyISAM The problem was "TYPE=MyISAM" which should ...READ MORE
I need to connect to some PostgreSQL ...READ MORE
Hello @kartik, Try this: str_replace('"', "", $string); str_replace("'", "", $string); Otherwise, ...READ MORE
Hello @kartik, You just need to enable this ...READ MORE
Hello @kartik, If your whole JavaScript code gets ...READ MORE
Hello @kartik, Try this: div.image { width:100px; ...READ MORE
Hello @kartik, Use spl_object_hash() for that. It returns an unique identifier ...READ MORE
Hello @kartik, If you are using windows based ...READ MORE
Hello @kartik, mime_content_type() is deprecated, so you won't ...READ MORE
Hello @kartik, Let's say you want to save ...READ MORE
Hello @kartik, This is how you do it: set_error_handler(function($errorType){ ...READ MORE
Hello @kartik, Use JSON to transfer data types (arrays and ...READ MORE
OR
Already have an account? Sign in.