Trending questions in Web Development

0 votes
1 answer

How to Automatically Start a Download in PHP?

Hello @kartik, Send the following headers before outputting ...READ MORE

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

How can I select an element with multiple classes in jQuery?

Hello @kartik, If you want to match only ...READ MORE

Sep 10, 2020 in JQuery by Niroj
• 82,840 points
3,445 views
0 votes
1 answer

How to stop event propagation with inline onclick attribute?

Hello @kartik, Use event.stopPropagation(). <span onclick="event.stopPropagation(); alert('you clicked inside the ...READ MORE

Sep 23, 2020 in Java-Script by Niroj
• 82,840 points
2,882 views
0 votes
1 answer

How to create a directory if it doesn't exist using Node.js?

Hello @kartik, Try: var fs = require('fs'); var dir = ...READ MORE

Jul 9, 2020 in Node-js by Niroj
• 82,840 points
6,166 views
0 votes
1 answer

How can we reload a page after requesting the same get parameter using AngularJS?

hey kartik, The reason for this is that ...READ MORE

Feb 10, 2020 in Angular by Niroj
• 82,840 points
12,638 views
0 votes
1 answer

How can I get PHP to produce a backtrace upon errors?

Hello @kartik, My script for installing an error ...READ MORE

Nov 5, 2020 in PHP by Niroj
• 82,840 points
1,000 views
0 votes
0 answers

How to call a node file from Angular function? [closed]

I have a button in my webpage ...READ MORE

Nov 9, 2020 in Angular by Viswa
• 140 points

closed Nov 9, 2020 by Gitika 858 views
0 votes
1 answer

How to prevent direct access to a php include file?

Hello @kartik, Add this to the page that ...READ MORE

Oct 19, 2020 in PHP by Niroj
• 82,840 points
1,756 views
0 votes
1 answer

How do I embed PHP code in JavaScript?

Hello @kartik, If your whole JavaScript code gets ...READ MORE

Nov 16, 2020 in PHP by Niroj
• 82,840 points
502 views
0 votes
1 answer

How do I check if the mouse is over an element in jQuery?

Hello @kartik, Use this code: $("someelement").mouseenter(function(){ ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,840 points
2,349 views
0 votes
1 answer

Error:React-router urls don't work when refreshing or writing manually

Hello @kartik, You can change your .htaccess file and insert ...READ MORE

Apr 27, 2020 in Java-Script by Niroj
• 82,840 points
9,263 views
0 votes
1 answer

Error:Missing argument 2 for App\Http\Controllers\EventsController::remindHelper()

Hello @kartik, When you define this route: Route::get('events/{id}/remind', [ 'as' ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,840 points
646 views
0 votes
1 answer

How can I get PHP to produce a backtrace upon errors?

Hello @kartik, This is how you do it: set_error_handler(function($errorType){ ...READ MORE

Nov 14, 2020 in PHP by Niroj
• 82,840 points
558 views
0 votes
1 answer

How to include route handlers in multiple files in Express?

Hello @kartik, If you want to put the routes ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,840 points
5,802 views
0 votes
1 answer

How to get a list of registered route paths in Laravel?

Hello, Route::getRoutes() returns a RouteCollection. On each element, you can ...READ MORE

Nov 11, 2020 in Laravel by Niroj
• 82,840 points
648 views
0 votes
1 answer

How to run some migrations on new user's database after its creation?

Hello, If you place database config on the database.php file, ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,840 points
601 views
0 votes
1 answer

How to include csrf_token() in an external js file in Laravel?

Hello @kartik, add <meta> tag with the token to the ...READ MORE

Oct 21, 2020 in Laravel by Niroj
• 82,840 points
1,576 views
0 votes
1 answer

Error: Unexpected token import in nodejs

Hello, Unfortunately, Node.js doesn't support ES6's import yet. To accomplish what ...READ MORE

Apr 24, 2020 in Java-Script by Niroj
• 82,840 points
9,311 views
0 votes
1 answer

How to get a variable name as a string in PHP?

Hello @kartik, You can use this: function varName( $v ...READ MORE

Sep 29, 2020 in Laravel by Niroj
• 82,840 points
2,478 views
0 votes
1 answer

Which is the best Airbnb clone built with React?

Hello @rentall , For you query you can refer ...READ MORE

Oct 20, 2020 in Java-Script by Niroj
• 82,840 points
1,570 views
0 votes
1 answer

How do I use format() on a moment.js duration?

Hello @kartik, Use this: // set up let start = ...READ MORE

Oct 7, 2020 in Java-Script by Niroj
• 82,840 points
2,133 views
0 votes
2 answers

Error:SMTP server response: 530 SMTP authentication is required.

Yes good i like it so nice ...READ MORE

Aug 25, 2020 in PHP by Mani Usman
3,989 views
0 votes
1 answer

How do I send a POST request with PHP?

Hello @kartik, CURL-less method with PHP5: $url = 'http://server.com/path'; $data ...READ MORE

Sep 16, 2020 in PHP by Niroj
• 82,840 points
2,992 views
0 votes
1 answer

What is the use of the Eloquent cursor() method in Laravel?

Hello, The cursor method allows us to iterate ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,840 points
10,769 views
0 votes
1 answer

How to enable PHP support in Netbeans?

Hello @kartik, Go to Tools->Plugins. In the Settings tab ensure that the ...READ MORE

Nov 13, 2020 in PHP by Niroj
• 82,840 points
476 views
0 votes
1 answer

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

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

Jun 16, 2020 in PHP by Niroj
• 82,840 points
6,968 views
0 votes
1 answer

In PHP, how to detect the execution is from CLI mode or through browser ?

Hello @kartik, Use the php_sapi_name() function. if (php_sapi_name() == "cli") { ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,840 points
1,419 views
0 votes
1 answer

How to change an element's ID with jQuery?

Hello @kartik, Your syntax is incorrect, you should ...READ MORE

Aug 25, 2020 in Java-Script by Niroj
• 82,840 points
3,935 views
0 votes
1 answer

How to trigger the window resize event in JavaScript?

Hello @kartik, Try this: window.dispatchEvent(new Event('resize') ...READ MORE

Aug 25, 2020 in Java-Script by Niroj
• 82,840 points
3,949 views
+1 vote
1 answer

How to make external HTTP requests with Node.js ?

Hello @kartik, Use this: var http = require('http'); var options ...READ MORE

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

How to create .pem files for https web server?

Hello @kartik, The two files you need are ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,840 points
3,354 views
0 votes
1 answer

Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Hello @kartik, set MAIL_ENCRYPTION= in .env file. and it worked fine ...READ MORE

Oct 23, 2020 in Laravel by Niroj
• 82,840 points
1,337 views
0 votes
1 answer

How to clear cache in Yarn?

Hello @kartik, Run: yarn cache clean. Hope it helps!! Thank you! ...READ MORE

Sep 4, 2020 in Java-Script by Niroj
• 82,840 points
3,459 views
0 votes
1 answer

TypeError: Cannot read property 'confvar' of undefined

Hello @kartik, You need module.exports: An object which is shared ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,840 points
1,772 views
0 votes
1 answer

How to delete from multiple tables in MySQL?

Hello @kartik, Use a JOIN in the DELETE statement. DELETE p, pa ...READ MORE

Aug 26, 2020 in PHP by Niroj
• 82,840 points
3,818 views
0 votes
1 answer

How do I dynamically invoke a class method in PHP?

Hello @kartik, It works both ways - you ...READ MORE

Nov 3, 2020 in PHP by Niroj
• 82,840 points
836 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,840 points
8,389 views
+1 vote
2 answers

How to make asynchronous HTTP requests in PHP?

Hello @kartik, Use this code: function post_without_wait($url, $params) { ...READ MORE

Sep 17, 2020 in PHP by Niroj
• 82,840 points
2,644 views
0 votes
1 answer

How to submit form without page reloading?

Hello @kartik, If you put an Iframe in ...READ MORE

Oct 6, 2020 in PHP by Niroj
• 82,840 points
2,013 views
0 votes
1 answer

How to just run post-install?

Hello @kartik, You can run individual script entries ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,840 points
1,705 views
0 votes
1 answer

How to set upload_max_filesize in .htaccess?

Hello @kartik, php_value upload_max_filesize 30M is correct. You will have ...READ MORE

Oct 22, 2020 in PHP by Niroj
• 82,840 points
1,285 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,840 points
8,938 views
0 votes
1 answer

How to Check for a Specific Type of Object in PHP?

Hello @kartik, Use: bool is_a ( object $object ...READ MORE

Oct 29, 2020 in Laravel by Niroj
• 82,840 points
994 views
0 votes
1 answer

How to set custom favicon in Express?

Hello @kartik,  Just use: app.use('/favicon.ico', express.static('images/favicon.ico')); OR In express: //you probably ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,840 points
5,482 views
0 votes
1 answer

How can I change the page URL without refreshing the page?

Hello @kartik, This is simple you just need change ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,840 points
6,704 views
0 votes
1 answer

How to get the files inside a directory?

Hello @kartik, There's a lot of ways. The ...READ MORE

Nov 9, 2020 in PHP by Niroj
• 82,840 points
470 views
0 votes
1 answer

How can I get the classname from a static call in an extended PHP class?

Hello @kartik, __CLASS__ always returns the name of the ...READ MORE

Oct 27, 2020 in PHP by Niroj
• 82,840 points
1,039 views
0 votes
1 answer

How to get function parameter names/values dynamically?

Hello @kartik, The following function will return an ...READ MORE

Sep 23, 2020 in Java-Script by Niroj
• 82,840 points
2,496 views
0 votes
1 answer

Error: allowDefinition='MachineToApplication' beyond application level

Hello @kartik, This error occurs when you attempt ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,840 points
5,184 views
0 votes
1 answer

Error:Add myBundle to the asseticBundle config symfony2 exception?

Hello @kartik, Try the below steps: edit app/config/config.yml then go to assetic: under ...READ MORE

Nov 10, 2020 in PHP by Niroj
• 82,840 points
415 views