questions/web-development/php
Hi, @Dann, If you are using some variable ...READ MORE
Hello @kartik, The best way for getting input string is: $value ...READ MORE
If you are saying Basic authentication, then ...READ MORE
Hello @kartik, The right way is this one: <script ...READ MORE
You can try this one: error_reporting(E_ALL); ini_set('display_err ...READ MORE
Hello @kartik, PHP mail function can send email ...READ MORE
Hello @kartik, Replace TYPE=MyISAM with ENGINE=MyISAM The problem was "TYPE=MyISAM" which should ...READ MORE
Hello @kartik, Use the ampersand & to glue variables together: $url ...READ MORE
Hello, Try this : echo exec('ping -n 1 -w ...READ MORE
Hello @kartik, You just have to include the safestring.class.php before ...READ MORE
Hello @kartik, You upgraded to PHP 7, and ...READ MORE
Hello @kartik, PHPMailer has the ability to automatically ...READ MORE
Hello @kartik, you need to set the blending ...READ MORE
Hello, This error is often seen when the default_socket_timeout value ...READ MORE
Hello, On your migration class: public function down() { ...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
Hello, Try this code: if (!function_exists('getallheaders')) { ...READ MORE
Hello, Try this: if ($thing->trashed()) { ... } READ MORE
Hello, Try this code: preg_match('/[a-zA-Z]+<\/a>.$/', $lastgame, $match); print_r($match); Using / as a delimiter ...READ MORE
Hii, You can pass an associative array to http_build_query() and ...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, Test different ports: $wait = 1; // ...READ MORE
Hii, Try this: require_once("./pdf/dompdf_config.inc.php"); $files = glob("./pdf/include/*.php"); foreach($files as $file) include_once($file); $html ...READ MORE
Hello @kartik, You can do it with {{ form_widget(formView._token) ...READ MORE
Hello @kartik, You just need to enable this ...READ MORE
Hello, A simple example capturing anything starting with http:// and https:// could ...READ MORE
Hello @kartik, Your server most like does not ...READ MORE
Hii, Use: $session_id = Session::getId(); or $session_id = ses ...READ MORE
Hello @kartik, Use JSON to transfer data types (arrays and ...READ MORE
Hello @kartik, You could have a single key ...READ MORE
Hello, Use PHP's $_POST or $_GET superglobals to retrieve the value of ...READ MORE
Hello @kartik, Include has the scope of the ...READ MORE
Hello @kartik, It's trying to run it as ...READ MORE
Hello, If A is a class, you can access it ...READ MORE
Hello, Try mysql_fetch_object(). It returns an object, not an ...READ MORE
Hello @kartik, You are getting this constraint check ...READ MORE
Hello @kartik, Try this: str_replace('"', "", $string); str_replace("'", "", $string); Otherwise, ...READ MORE
Hello @kartik, This is because a static variable ...READ MORE
Hello @kartik, Use this SQL command: ALTER USER 'mysqlUsername'@'localhost' ...READ MORE
Hello, If your whole JavaScript code gets processed ...READ MORE
Hello @kartik, You need to place the \n in double ...READ MORE
Hello @kartik, Use the strpos function: $haystack = "foo bar baz"; $needle ...READ MORE
Hello @kartik, Use: $url = preg_replace("(^https?://)", "", $url ); This ...READ MORE
Hello @kartik, If you are using windows based ...READ MORE
Hello @kartik, You need to capture the stderr too. Redirecting stderr to stdout should do ...READ MORE
Try this: $files = array_values(array_filter(scandir($path), function($file) use ($path) ...READ MORE
Hello @kartik, Try this: $session = Mage::getSingleton("core/session", array("name"=>"frontend")); // ...READ MORE
Hello @kartik, mime_content_type() is deprecated, so you won't ...READ MORE
OR
Already have an account? Sign in.