Most viewed questions in Web Development

0 votes
1 answer

How to host a Node.Js application in shared hosting?

Hello @kartik, You can run node.js server on a typical ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
6,765 views
0 votes
1 answer

How to copy static files to build directory with Webpack?

Hello @kartik, Requiring assets using the file-loader module ...READ MORE

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

How to save image from url with curl PHP?

Hello @kartik, try this: function grab_image($url,$saveto){ ...READ MORE

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

How to Get data from fs.readFile?

Hello @kartik, The function you have defined is ...READ MORE

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

Error:Laravel PHP Command Not Found

Hello @kartik, Try the follwing snippet: nano ~/.bash_profile And ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
6,708 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,700 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,673 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,662 views
0 votes
1 answer

How to delete object from array inside foreach loop?

Hello @kartik, Use this: foreach($array as $elementKey => $element) ...READ MORE

Sep 15, 2020 in PHP by Niroj
• 82,880 points
6,649 views
0 votes
1 answer

How to open a Bootstrap 4 modal dialog using jQuery

Use the modal('show') Method You can simply use ...READ MORE

Jun 28, 2022 in JQuery by rajatha
• 7,680 points
6,640 views
0 votes
1 answer

How to post data in PHP using file_get_contents?

Hello @kartik, Sending an HTTP POST request using file_get_contents is ...READ MORE

Aug 24, 2020 in PHP by Niroj
• 82,880 points
6,626 views
0 votes
1 answer

How to Get local IP address in node.js?

Hello @kartik, os.networkInterfaces(), — an object, that maps ...READ MORE

Sep 23, 2020 in Java-Script by Niroj
• 82,880 points
6,606 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,568 views
0 votes
1 answer

How to get the client IP address in PHP ?

Hello, Here is a code sample of a good ...READ MORE

Apr 8, 2020 in PHP by Niroj
• 82,880 points
6,562 views
0 votes
0 answers

How to download file from database/folder using php

I want to know how to create ...READ MORE

Jun 27, 2022 in PHP by narikkadan
• 63,700 points
6,561 views
0 votes
1 answer

Error:Cannot find module 'xmlhttprequest'

Hello @kartik, XMLHttpRequest is a built-in object in web ...READ MORE

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

Why does the PHP json_encode function convert UTF-8 strings to hexadecimal entities?

Hii @kartik, Working with different servers with various ...READ MORE

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

How to import a mysql dump to a laravel migration?

Hello @kartik You can import dumps in Laravel ...READ MORE

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

Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>)

I was trying to change a string ...READ MORE

May 9, 2022 in Java-Script by Kichu
• 19,050 points
6,521 views
0 votes
1 answer

How to pass parameters in GET requests with jQuery?

Hello @kartik, Use data option of ajax. You ...READ MORE

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

How to set selected value of jQuery Select2?

To set selected value of jQuery Select2 ...READ MORE

Aug 5, 2022 in Web Development by rajatha
• 7,680 points
6,504 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,880 points
6,492 views
0 votes
1 answer

How do I specify row heights in CSS Grid layout?

Apparently, the auto value on the grid-template-rows property does exactly what ...READ MORE

Aug 4, 2022 in CSS by Tanishqa
• 1,170 points
6,473 views
0 votes
1 answer

how to use json file in html code?

<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> </script> <script> ...READ MORE

Aug 8, 2022 in HTML by Vikas
6,466 views
0 votes
1 answer

How to truncate string in Laravel blade templates?

Hello @kartik, In Laravel 4 & 5 (up ...READ MORE

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

How to log in to phpMyAdmin with WAMP?

Hello @kartik,  Try-Username: root Password: (No password set). Sometimes it doesn't ...READ MORE

Apr 9, 2020 in PHP by Niroj
• 82,880 points
6,419 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,390 views
0 votes
1 answer

Error: Cannot resolve module 'style-loader'

Hello @kartik, Try  to run script below: npm install ...READ MORE

May 18, 2020 in Java-Script by Niroj
• 82,880 points
6,386 views
0 votes
1 answer

How to add border in my clip-path: polygon(); CSS style

Using an SVG Dilation Filter to Add ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,690 points
6,367 views
0 votes
1 answer

How to use React Router with Laravel?

Hii Kartik, Create a route that maps everything ...READ MORE

Apr 29, 2020 in Java-Script by Niroj
• 82,880 points
6,364 views
0 votes
1 answer

How can someone change the default database type in Laravel?

Laravel is configured to use MySQL by ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,880 points
6,361 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,355 views
0 votes
1 answer

How to get the id when you're validating in the model Validation unique on update using laravel?

Hello @kartik, in Laravel's inbuilt auth system, the ...READ MORE

Sep 11, 2020 in Laravel by Niroj
• 82,880 points
6,343 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,880 points
6,332 views
0 votes
0 answers

JS file gets a net::ERR_ABORTED 404 (Not Found)

I am trying to separate my <script> inside my HTML ...READ MORE

May 16, 2022 in Java-Script by Kichu
• 19,050 points
6,227 views
0 votes
1 answer

Error: unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING

Hello @kartik, Make sure they are running Latest ...READ MORE

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

How to set a new value for data-url attribute using jquery?

Hii, In your line: $(this).attr('data-url',value.url); are you sure this refers to the ...READ MORE

Apr 14, 2020 in Laravel by Niroj
• 82,880 points
6,223 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,213 views
0 votes
1 answer

How to find the version of an installed node.js/npm package?

Hello, npm view <package> version - returns the latest ...READ MORE

Nov 24, 2020 in Node-js by Niroj
• 82,880 points
6,210 views
0 votes
1 answer

How can I update npm on Windows?

Hello @kartik, To update NPM, this worked for ...READ MORE

Jul 13, 2020 in Node-js by Niroj
• 82,880 points
6,206 views
0 votes
1 answer

How to make Django serve that file for download as opposed to trying to find a URL and View to display it?

Hello @kartik, You can just use the built ...READ MORE

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

How to disable postback on an asp Button?

Hello @kartik, Use: YourButton.Attributes.Add("onclick", "return false"); or <asp:button runat="server" ... OnClientClick="return ...READ MORE

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

How to upload excel file to php server from <input type="file">

You first need to upload the file ...READ MORE

Jun 9, 2022 in JQuery by gaurav
• 23,260 points
6,179 views
0 votes
1 answer

How to add custom javascript to WordPress Admin?

Hello, Use the admin_enqueue_scripts action and the wp_enqueue_script method to add custom ...READ MORE

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

How to check if the URL contains a given string?

Hello @kartik, You would use indexOf like this: if(window.location.href.indexOf("franky") != -1){....} Also ...READ MORE

Jun 11, 2020 in Java-Script by Niroj
• 82,880 points
6,139 views
0 votes
2 answers

How to play video in react.js using html video tag?

This is a solution: import Video from "..Videos/video1.mp4" class ...READ MORE

May 21, 2023 in HTML by Renie
6,133 views
0 votes
1 answer

How to send JSON data from Javascript to PHP?

Hello @kartik, PHP has a built in function ...READ MORE

Jul 6, 2020 in Java-Script by Niroj
• 82,880 points
6,130 views
0 votes
1 answer

How to select and manipulate CSS pseudo-elements such as ::before and ::after using jQuery?

Hii @kartik, Here is the way to access ...READ MORE

May 18, 2020 in Java-Script by Niroj
• 82,880 points
6,130 views
0 votes
1 answer

How to remove all listeners in an element?

Hello @kartik, I think that the fastest way ...READ MORE

Oct 7, 2020 in Java-Script by Niroj
• 82,880 points
6,124 views
0 votes
1 answer

Error:Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory

Hello @kartik, The best way to solve this ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
6,120 views