Trending questions in Web Development

0 votes
1 answer

How to gett selected values from a multiple select form in Laravel?

Hello @kartik, First, if you want to have ...READ MORE

Oct 21, 2020 in Laravel by Niroj
• 82,880 points
6,955 views
0 votes
1 answer

How to set radio option checked onload with jQuery?

Hii, Say you had radio buttons like these, ...READ MORE

Nov 24, 2020 in JQuery by Niroj
• 82,880 points
5,452 views
0 votes
1 answer

How to create and download a csv file from php script?

Hello @kartik, You can use the built in fputcsv() for ...READ MORE

Oct 27, 2020 in PHP by Niroj
• 82,880 points
6,658 views
0 votes
1 answer

How to access client ip address in Laravel 5?

Hello @kartik, You can use this type of ...READ MORE

Nov 11, 2020 in Laravel by Niroj
• 82,880 points
5,960 views
0 votes
1 answer

How to call a php function from ajax?

Hello @kartik, You can't call a PHP function ...READ MORE

Jun 16, 2020 in PHP by Niroj
• 82,880 points
12,344 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'msie' of undefined - jQuery tools

Hello, Use the following script tag in your ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
14,423 views
0 votes
1 answer

How to “pretty” format JSON output in Ruby on Rails?

Hello @kartik, Use the pretty_generate() function, built into later versions ...READ MORE

Jul 24, 2020 in Java-Script by Niroj
• 82,880 points
10,582 views
0 votes
1 answer

How can I get the session ID in Laravel?

Hii, Use: $session_id = Session::getId(); or $session_id = ses ...READ MORE

Nov 18, 2020 in PHP by Niroj
• 82,880 points
5,524 views
0 votes
1 answer

How do I reload a relation collection in laravel?

You can easily tell laravel to load ...READ MORE

Nov 4, 2020 in PHP by anonymous
• 82,880 points
6,101 views
0 votes
1 answer

How to create a database using PDO in PHP?

Hello @Hitesh, Yes, you can create a database using ...READ MORE

Nov 9, 2020 in PHP by Niroj
• 82,880 points
5,854 views
0 votes
1 answer

What is with() in Laravel?

Hello, with() function is used to eager load in ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,880 points
15,772 views
0 votes
1 answer

Error:“Connection for controluser as defined in your configuration failed” with phpMyAdmin in XAMPP

Hii, I edited /etc/phpmyadmin/config.inc.php and changed the following ...READ MORE

Apr 20, 2020 in PHP by Niroj
• 82,880 points
14,580 views
0 votes
1 answer

Error:Non-static method Illuminate\Http\Request::all() should not be called statically, assuming $this from incompatible context

Hello @kartik, The error message is due to ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
9,992 views
0 votes
1 answer

Fatal error: Call to undefined function socket_create()

Hello @kartik, For a typical XAMPP install on ...READ MORE

Nov 3, 2020 in PHP by Niroj
• 82,880 points
6,050 views
0 votes
1 answer

Error: “Input is not proper UTF-8, indicate encoding !” using PHP's simplexml_load_string

Hello, Try this: $content = utf8_encode(file_get_contents('http://example.com/rss.xml')); $xml = simplexml_load_string($content); Hope it ...READ MORE

Oct 30, 2020 in PHP by Niroj
• 82,880 points
6,197 views
0 votes
1 answer

How can I include a php file and also send query parameters in php?

Hello, You could do something like this to ...READ MORE

Nov 10, 2020 in PHP by Niroj
• 82,880 points
5,723 views
0 votes
1 answer
0 votes
1 answer

How to synchronise Angular http get?

Hello @kartik,  the only way around this: wrap ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
8,422 views
0 votes
1 answer

How to get Node.JS Express to listen only on localhost?

Hello @kartik, This is a bug in hive-go that only ...READ MORE

Oct 16, 2020 in Node-js by Niroj
• 82,880 points
6,762 views
0 votes
1 answer

Node js nodemiler Status 250 ok but mail is not received

Hi, @Sagar, I think you might simply be queuing the ...READ MORE

Dec 24, 2020 in Web Development by Gitika
• 65,910 points
3,775 views
0 votes
1 answer

How to deny direct access to a folder and file by htaccess?

Hello @kartik, Just move the includes folder out of the ...READ MORE

Aug 24, 2020 in Web Development by Niroj
• 82,880 points
9,029 views
0 votes
1 answer

How to trigger an ajax request when the user has finished typing in a text box?

Hello @kartik, Use the code below: //setup before functions var ...READ MORE

Sep 18, 2020 in Java-Script by Niroj
• 82,880 points
7,907 views
0 votes
1 answer

How to get Alternative to file_get_contents?

Hii, Use cURL. This function is an alternative to file_get_contents. function ...READ MORE

Nov 9, 2020 in PHP by Niroj
• 82,880 points
5,661 views
0 votes
1 answer

How to get value of HTML Checkbox from onclick/onchange events?

Hello @kartik, Use the click event, which won't fire until ...READ MORE

Oct 7, 2020 in Web Development by Niroj
• 82,880 points
7,027 views
0 votes
1 answer

How do you Encrypt and Decrypt a PHP String?

Hello @kartik, Use openssl_encrypt and openssl_decrypt You can do something like: $string_to_encrypt="Test"; $password="password"; $encrypted_string=openssl_encrypt($string_to_encrypt,"AES-128-ECB",$password); $decrypted_string=openssl_decrypt($encrypted_string,"AES-128-ECB",$password); Hope it ...READ MORE

Sep 14, 2020 in PHP by Niroj
• 82,880 points
8,045 views
0 votes
1 answer

How to auto call function in php for every other function call?

Hii, Your best bet is the magic method __call, ...READ MORE

Oct 30, 2020 in PHP by Niroj
• 82,880 points
6,023 views
0 votes
1 answer

What is callback function in JavaScript?

callback is not a keyword, its just ...READ MORE

Jan 30, 2020 in Java-Script by Niroj
• 82,880 points
17,827 views
0 votes
1 answer

How to catch exception in node during JSON.parse?

Hello, JSON.parse runs synchronous and does not know anything ...READ MORE

Nov 27, 2020 in Node-js by Niroj
• 82,880 points
4,784 views
0 votes
1 answer

How do I see the actual XML generated by PHP SOAP Client Class?

Hello, Use getLastRequest. It returns the XML sent in ...READ MORE

Nov 4, 2020 in PHP by Niroj
• 82,880 points
5,778 views
0 votes
1 answer

Error: Class 'NumberFormatter' not found

Hello @kartik, You just need to enable this ...READ MORE

Nov 16, 2020 in PHP by Niroj
• 82,880 points
5,246 views
0 votes
1 answer

How to hide password in the nodejs console?

Hello @kartik, To hide your password input, you ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,880 points
4,599 views
0 votes
1 answer

Error:/usr/bin/env: node: No such file or directory

Hello @kartik, You have to manually link to ...READ MORE

Oct 12, 2020 in Node-js by Niroj
• 82,880 points
6,690 views
0 votes
1 answer

How to get the subdomain in a subdomain-route in laravel?

Hello, $subdomain is injected in the actual Route callback, it is ...READ MORE

Nov 2, 2020 in Laravel by Niroj
• 82,880 points
5,767 views
0 votes
1 answer

How to get response using cURL in PHP?

Hello @kartik, Use the below piece of code ...READ MORE

Oct 19, 2020 in PHP by Niroj
• 82,880 points
6,374 views
0 votes
1 answer

How to generate file for download then redirect using php?

Hii, I don't think this can be done ...READ MORE

Oct 30, 2020 in PHP by Niroj
• 82,880 points
5,852 views
0 votes
1 answer

How can I get npm start at a different directory?

Hello @kartik, Try using: npm start --prefix path/to/your/app & inside ...READ MORE

Jul 14, 2020 in Node-js by Niroj
• 82,880 points
10,484 views
0 votes
1 answer

How do I send command line arguments to npm script?

Hello @kartik, The syntax is as follows: npm run ...READ MORE

Jul 8, 2020 in Node-js by Niroj
• 82,880 points
10,716 views
0 votes
1 answer

How to solve JSON_ERROR_UTF8 error in php json_decode?

Hello @kartik, You need simple line of code: $input ...READ MORE

Nov 8, 2020 in PHP by Niroj
• 82,880 points
5,398 views
0 votes
1 answer

How to write file in UTF-8 format?

Hello @kartik, file_get_contents / file_put_contents will not magically ...READ MORE

Nov 5, 2020 in PHP by Niroj
• 82,880 points
5,526 views
0 votes
1 answer

How to get data out of a Node.js http get request?

Hello @kartik, Your logs return undefined : you log before ...READ MORE

Oct 12, 2020 in Node-js by Niroj
• 82,880 points
6,560 views
0 votes
1 answer

How do I create a HTTP Client Request with a cookie?

Hello @kartik, The use of http.createClient is now deprecated. You ...READ MORE

Oct 16, 2020 in Node-js by Niroj
• 82,880 points
6,346 views
0 votes
1 answer

How can I serve a single HTML page from the Laravel public folder without having to use the .html extension?

Hello @kartik, You may rename the test folder ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,880 points
5,171 views
0 votes
1 answer

How do I add a delay in a JavaScript loop?

Hello @kartik, The setTimeout() function is non-blocking and will return ...READ MORE

Sep 21, 2020 in Java-Script by Niroj
• 82,880 points
7,416 views
0 votes
1 answer

How to disable asp.net button after click to prevent double clicking?

Hello @kartik, On the front end, add these ...READ MORE

Sep 9, 2020 in Java-Script by Niroj
• 82,880 points
7,796 views
0 votes
1 answer

How to find a parent with a known class in jQuery?

Hello @kartik, Assuming that this is .d, you can write $(this).closest('.a'); The closest method returns the ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
6,655 views
0 votes
1 answer

Php exec() not returning error message in output

Hello @kartik, You need to capture the stderr too. Redirecting stderr to stdout should do ...READ MORE

Nov 18, 2020 in PHP by Niroj
• 82,880 points
4,717 views
+1 vote
1 answer

How to assign Php variable value to Javascript variable?

Hello @kartik, Try: Essentially: <?php //somewhere set a value $var = "a ...READ MORE

Jul 7, 2020 in Java-Script by Niroj
• 82,880 points
10,438 views
0 votes
1 answer

How to list all tables in PhpMyAdmin's left menu?

Hello @kartik, Go to the phpMyAdmin Home page ...READ MORE

Oct 20, 2020 in PHP by Niroj
• 82,880 points
5,935 views
0 votes
1 answer

How to make Laravel (Blade) text field read only?

Just add it as the 3rd argument: {{ ...READ MORE

Dec 3, 2020 in Laravel by Niroj
• 82,880 points
4,023 views
0 votes
1 answer

How can I use an http proxy with node.js http.Client?

Hello @kartik, You can use request, I just found ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
10,030 views