Most viewed questions in Web Development

0 votes
1 answer

How can I remove an attribute with jQuery?

The removeAttr() method is an inbuilt method in jQuery ...READ MORE

Jun 2, 2022 in JQuery by Edureka
• 13,670 points
8,759 views
0 votes
1 answer

How can I get the error message for the mail() function?

Hello @kartik, You can use error_get_last() when mai l()returns false. $success = mail('example@example.com', ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
8,745 views
0 votes
1 answer

npm dotenv environment variables not recognized in nodejs module

process.env object that are defined in the ...READ MORE

Jun 10, 2022 in Node-js by Neha
• 9,060 points
8,740 views
0 votes
1 answer

How to store input value into array then localstorage?

Hello @ abhittac, You have create the array everytime the ...READ MORE

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

jQuery text() and newlines

text('this\n has\n newlines); The newline character is \n ...READ MORE

Jun 15, 2022 in JQuery by rajatha
• 7,680 points
8,623 views
0 votes
1 answer

Error:getting “ENOTEMPTY: directory not empty, rmdir …” error on installing express in angular CLI app.

Hello Kartik, Use this command : npm install ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
8,559 views
0 votes
1 answer

How to include scripts located inside the node_modules folder?

Hello @kartik, I would use the path npm ...READ MORE

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

How to run shell script file using nodejs?

Hello @kartik, You could use "child process" module ...READ MORE

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

How to provide a mysql database connection in single file in nodejs?

Hello @kartik, You could create a db wrapper ...READ MORE

Oct 15, 2020 in Node-js by Niroj
• 82,880 points
8,499 views
0 votes
1 answer

How to access a RowDataPacket object?

Hello @kartik, Turns out they are normal objects ...READ MORE

Oct 14, 2020 in Java-Script by Niroj
• 82,880 points
8,455 views
0 votes
1 answer

How to get image from resources in Laravel?

Hello @kartik, You can make a route specifically ...READ MORE

Oct 28, 2020 in Laravel by Niroj
• 82,880 points
8,439 views
0 votes
1 answer

How to use Redirect in the new react-router-dom of Reactjs?

Hello, To navigate to another component you can ...READ MORE

May 18, 2020 in Java-Script by Niroj
• 82,880 points
8,438 views
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,394 views
0 votes
0 answers

phpMyAdmin access denied for user 'root'@'localhost' (using password: NO)

I am having this error when I ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,050 points
8,390 views
0 votes
1 answer

How to increase request timeout in IIS?

Hello @kartik, To Increase request time out add ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
8,389 views
0 votes
1 answer

How to check if a string is JSON or not?

Hello @kartik, Use JSON.parse function isJson(str) { ...READ MORE

Aug 19, 2020 in PHP by Niroj
• 82,880 points
8,383 views
0 votes
1 answer

How do I conditionally add attributes to React components?

Hello @kartik, For certain attributes, React is intelligent ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
8,346 views
+1 vote
1 answer

Error:file_put_contents(meta/services.json): failed to open stream: Permission denied?

Hello @kartik, Below steps helped me fix the ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
8,343 views
0 votes
0 answers

nodemon app crashed - waiting for file changes before starting

The node is crashing when I access ...READ MORE

May 13, 2022 in Angular by Kichu
• 19,050 points
8,327 views
0 votes
1 answer

jQuery's .click - pass parameters to user function

Hello @kartik, You need to use an anonymous ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,880 points
8,325 views
0 votes
1 answer

Error:Origin is not allowed by Access-Control-Allow-Origin

Hello @kartik, The easiest way to handle this ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,880 points
8,324 views
0 votes
1 answer

How can we access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?>

Hello @kartik, You can also use json_encode for ...READ MORE

Apr 29, 2020 in Java-Script by Niroj
• 82,880 points

edited Oct 7, 2021 by Sarfaraz 8,311 views
0 votes
1 answer

Error: The mbstring extension is missing. Please check your PHP configuration

Hii, Edit the php.ini file: change extension_dir = "ext" into extension_dir = "D:\php\ext" (please write ...READ MORE

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

Uncaught TypeError: Cannot use 'in' operator to search for '324'

Hello @kartik, You have a JSON string, not ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,880 points
8,259 views
0 votes
1 answer

How foreach change original array values in php?

Hello @kartik, Do the following: foreach ($fields as $key ...READ MORE

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

How to redirect to login if user is not authenticated in laravel?

Hello @kartik, Use middleware for this purpose and ...READ MORE

Oct 28, 2020 in Laravel by Niroj
• 82,880 points
8,202 views
0 votes
1 answer

Which is best window.location (JS) vs header() (PHP) for redirection?

Hello @kartik, It depends on how and when ...READ MORE

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

How to allow access outside localhost?

Hello kartik, You can use the following command ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
8,140 views
0 votes
1 answer

How to convert multidimensional array into single array?

Hello, This single line would do that: $array = ...READ MORE

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

Error: jQuery requires a window with a document

Hello @kartik, Try this: // definition var $ = require('jquery')(require("jsdom").jsdom().parentWindow); // ...READ MORE

Oct 16, 2020 in Node-js by Niroj
• 82,880 points
8,105 views
0 votes
0 answers

error: This is probably not a problem with npm. There is likely additional logging output above

I am trying to deploy my project ...READ MORE

May 10, 2022 in Node-js by Kichu
• 19,050 points
8,069 views
0 votes
1 answer

How to call a controller function inside a view in laravel 5

Hello @kartik, Just try this in your view ...READ MORE

Sep 25, 2020 in Laravel by Niroj
• 82,880 points
8,031 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,010 views
0 votes
1 answer

How to catch net::ERR_CONNECTION_REFUSED?

Hello @kartik, You have access to online/offline in ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,880 points
8,008 views
0 votes
1 answer

How to check if connected to database in Laravel?

Hello @kartik, You can use if(DB::connection()->getDatabaseName()) { echo ...READ MORE

Sep 28, 2020 in Laravel by Niroj
• 82,880 points
8,007 views
0 votes
1 answer

Error: cannot call methods on dialog prior to initialization; attempted to call method 'close'

Hello @kartik, Looks like your buttons are not ...READ MORE

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

How to get the base domain/url in php?

Hello @kartik, Use SERVER_NAME. echo $_SERVER['SERVER_NAME'] ...READ MORE

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

How to find out the MySQL root password

Hello @kartik, Follow these steps to reset password ...READ MORE

Aug 26, 2020 in PHP by Niroj
• 82,880 points
7,923 views
0 votes
1 answer

Result always undefined when return the result Nodejs

One easy way to do it would ...READ MORE

Jun 7, 2022 in Node-js by Neha
• 9,060 points
7,921 views
0 votes
1 answer

How to pass arguments to addEventListener listener function?

Hello @kartik, There is absolutely nothing wrong with ...READ MORE

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

How do I get the HTML code of a web page in PHP?

Hello @kartik, If your PHP server allows url ...READ MORE

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

How to delete all cookies of my website in php?

Hello @kartik, This will unset all of the ...READ MORE

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

How do I embed PHP code in JavaScript?

Hello @kartik, If you have individual .js files, and you ...READ MORE

Jul 7, 2020 in Java-Script by Niroj
• 82,880 points
7,894 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,886 views
0 votes
1 answer

How to do a Jquery Callback after form submit?

Hello @kartik, Just do like this - $("#myform").bind('ajax:complete', function() ...READ MORE

Jul 24, 2020 in Angular by Niroj
• 82,880 points
7,792 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,762 views
0 votes
1 answer

How to close all active bootstrap modals on session timeout?

Hello @kartik, Use the following code: $('.modal').modal('hide'); Also if you ...READ MORE

May 12, 2020 in JQuery by Niroj
• 82,880 points
7,683 views
0 votes
1 answer
0 votes
1 answer

TypeError: $(...).autocomplete is not a function

You would definitely have missed the Jquery ...READ MORE

Feb 23, 2022 in JQuery by Aditya
• 7,680 points
7,666 views
0 votes
1 answer

How to zip a whole folder using PHP?

Hello @kartik, You can Zip a whole folder using ...READ MORE

Aug 24, 2020 in PHP by Niroj
• 82,880 points
7,632 views