Blockchain and JavaScript

Hi everyone,
I’m trying to locate a transaction on the Algorand Blockchain with a script in JavaScript. When i run it from terminal i receive the transaction, but when i run it inside an .php file i have this error: require ReferenceError: require is not defined. The require is this: require(‘algosdk’);.

Thank you, :slight_smile:

Can you send us the command line you used to run the script and the script (write it inside triple backquotes ``` to allow good formatting)?