Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello!

Me, some family and friends have started an investment portfolio together. Now I'm making a website to display the value of the portfolio in real-time. I managed to create a script which gathers the value of all the stocks independently with PHP. Now, I would like to run this script inside the HTML. What I mean is that for example I set $url = ASpecificStock'sURL and then run the script with the PHP code and set the values inside my HTML script, then set $url = AnotherSpecificStock'sURL and run the script again. Is this possible?

To clarify: I'm looking for some kind of command that runs an external PHP script, if such exists?

Thank you in advance
Posted

1 solution

Not sure if I get your question but if you want to call PHP script from HTML it is possible using javascript which I don't think would be secure. Other work around would be AJAX. Looking at the problem IMO AJAX would be the one to the rescue. Hope it might help!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900