How to call external javascript file in php
Asked 8 years, 4 months ago. Active 7 years ago. Viewed 7k times. Improve this question. JS is generally client side. It's a bit hard to tell what you're trying to do.
Add a comment. Active Oldest Votes. Improve this answer. Class Class 3, 3 3 gold badges 22 22 silver badges 31 31 bronze badges. Joum Joum 3, 3 3 gold badges 34 34 silver badges 63 63 bronze badges. The error is probably becuase the functions are case sensitive and you have capitalized "H". Jump to Post. Answered by almostbob in a post from 11 Years Ago. Answered by vaultdweller 32 in a post from 11 Years Ago.
Your help is highly appreciated. I think the display should have been Hello World I am php code called from HTML file I will be obliged if you can tell me how to return back to the html file after php code execution is completed. An example will be of great help" Pankaj. Have a link there to return back. Thank You guys for all the help.
I resolved this problem using asp. Facebook Like. Twitter Tweet. Be a part of the DaniWeb community. Improve this question. Roberto Alfieri Roberto Alfieri 41 2 2 silver badges 8 8 bronze badges. Add a comment. Active Oldest Votes.
You can use AJAX for this purpose. Improve this answer. Vishnu R Vishnu R 1, 3 3 gold badges 25 25 silver badges 45 45 bronze badges. Svetoslav Svetoslav 4, 2 2 gold badges 26 26 silver badges 43 43 bronze badges. Just for testing pourpose i've implemented following lines: — Roberto Alfieri. Community Bot 1 1 1 silver badge. Walialu Walialu 3, 2 2 gold badges 25 25 silver badges 29 29 bronze badges. RobertoAlfieri That is why I suggested this answer.
TY very much! Here's a basic example of a PHP script- ip. In the above, we have a normal PHP script that writes out the IP address of the visitor when referenced using external JavaScript, with two important details:. It means your JavaScript now has access to once exclusive information on the server side, whether it's the server time, the visitor's IP address, a list of all the files within a certain directory, or mySQL database information.
0コメント