Background. I’m tasked with debugging some PHP and JavaScript code designed to pull static, gzip’ed JSON files from the host server, and manipulate the resulting JSON object’s parameters. Apologies in advance for my misuse of terminology. I have some experience with software development, but very little with web/server development (and almost none with PHP/JavaScript). Code. To “pull” the .json.gz file
Tag: php
How to connect internal Bootsrap 5.2 with laravel 7
Hey i still learning laravel framework and i try to connect my bootstrap v.5.2 with my laravel v.7 project but it cant connect, i store css and js folder on bootsrap folder in the same level as app, config, database public, etc. and i already tried to connect it with the code: but it still cant connect? Answer Put Your
Sweet Alert 2 Yes/No – How to integrate a function for PHP?
I use Sweet Alert 2 for nice dialogs. Now I want to use it for a security question if an database entry should be delete or not. It’s no problem to show the dialog, but I can’t find a way to integrate a function if the delete is confimred. Could anyone please help me? Thats the code for now: Answer
How to convert PHP MD5 in NodeJS
I couldn’t find a concrete example for my problem I need to convert this line PHP in NodeJS : I have used several things without success, like CryptoJS.HmacMD5, CryptoJS.MD5 or md5 I feel it’s a bit more complex with NodeJS, the values ​​correspond to queries in the url that I retrieve with express, req.query.value_1 … Answer This should work PS:
How to show day from input date in CodeIgniter
I want to show day into textbox based on my input date here is my ajax to change the textbox : this is my controller : this is my model : is there anything wrong with my code which not showing the day Answer Not sure if this is the part of your problem, but looks like you may be
sweetalert not working in php after form submission
i have a simple php form, on form submit i want to display sweet alert, i did the following code: howerver sweetalert doesnt show up after formsubmit, can anyone please tell me what is wrong in here, thanks in advance Answer Because your body is empty and sweetalert append your code to empty body & you got error in your
Access json data with Laravel and Inertia
I have a simple form with 1 input field and a submit button. All that does is get the user input, match it with an external API, and submit both records to the database. The response from the external API is JSON format, like this but I only want to retrieve the text field under choices This is stored in
How to use same php function for different button clicks
Here is a simple PHP form with a button.. Here is the Jquery functions which executes a PHP file. And the test.php is as follows, My question is how to modify my test.php if I have multiple buttons. As an example, Result should be, Update: What If I need to run three different php functions(no any pattern)? Answer In here
How to execute different functions in same script by clicking different buttons
I have a button inside my form as below, So my script as below, from that I will run me testme.php. My testme.php as follows, This works fine..Now I need to do this same approach to many buttons..only different is the button id and the runnning script only… As an example, But I need to change the function from my
Stop requesting a script from loading in HTML-file
I am trying to stop a script from loading in HTML on my Wordpress website. In my HTML file I can see these two scripts: <script type=”0f1a6d7ca503db410c0d10c4-text/javascript” src=’https://www.[———–].se/wp-content/plugins/theme-my-login/assets/scripts/theme-my-login.min.js?ver=7.1.2′ id=’theme-my-login-js’></script> <script type=”0f1a6d7ca503db410c0d10c4-text/javascript” src=’https://www. [———–].se/wp-content/themes/guru/framework/js/public/jquery.smartresize.js?ver=5.5.2′ id=’jquery-smartresize-js’></script> In public_html/wp-content/themes/guru/framework/register_public.php I can comment out the second script and prevent it from loading to HTML by setting /* */ in the above php file: The