Skip to content
Advertisement

Tag: php

Executing nodejs script file in PHP using exec()

In my Application, I want to execute a Node.JS file from PHP which in turn makes an HTTP request to another PHP file. In short this is the Process that I am doing. PHP file—>calls–> Nodejs file—>processes data –>and makes http request to–>PHP File When I run the nodejs file via terminal, it successfully makes the http request to another

Keep input value after refresh page

I have a form with input field and this input contain a drop down menu read information from database. If the user enters value and when he arrives to the drop menu he doesn’t find what he wants he go to another page to add this info to the drop down menu and then go to the first page to

Loading GIF on normal form submit

I don’t know if this is possible because according to my concept it is not.Say I have a form: Now this form takes at least 10-15 seconds to load because of obviously there are lots of record. I know using AJAX i can make a loading GIF and load the records. But is there a way in which without using

DOMDocument – get script text from within body

What I am trying to do is get scripts from body tag but only scripts that have text not script links eg. <script type=”text/javascript”>console.log(“for a test run”);</script> not the scripts that have file src. And I want to place those scripts to end of page before </body>. So far I have Update 1 The problem is <script type=”text/javascript”> can also

Inserting value in a JavaScript variable from php code

I am trying to test the following code for inserting the value from PHP code to my javascript variable x tested the PHP code, and it’s giving the correct output but the alert box in the javascript shows this – date_sub(curdate(),interval 1 day) and activity=1 group by code having b > 1000″; $query = mysql_query($myquery); if ( ! $myquery )

How do I tell if a user is using Brave as their browser?

I have been messing around with the Brave browser (https://www.brave.com/), an I cannot figure out how to determine how if a user is using Brave. I used a simple document to output the user agent: and I get: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36 which doesn’t really help me in my situation. Does anyone

Advertisement