I'm pretty much a php newb, but I was wondering if there is any way to use php inside of asp, here's what i'm attempting:
I'm attempting to add some current time information to a site, the times will be the current local time in 4 different cities. I wrote and tested some php to go and get the users time as well as their offset from Greenwich mean time and whether they're on DST and all that good stuff and then I use that to churn out the info I need.
The problem is that the site I want to add this to is all in .asp. The only potential solution I could think of was to use an img src=”time.php” and then use time.php to create an image with the text of the time info. Things don’t seem happy when I put all my time conversion code in the php ‘image’ file, and all the examples I’ve seen of using php to create images it looks like the text used has to be passed to the image in the link to the image, like img src=”time.php?text=text+i+want Which I know I could pass the values for the current time variables to if I could run php, but the page is in asp.
So, is there some way to use php inside an asp page? I wouldn’t imagine so, but?
Or, is there a way to include the time conversion code inside the php image?
Any other way to go about this? Worst case I could iframe a chunk and use a php source page, but that would compromise my design a bit.
I hope this makes some sense and I apologize if it’s horribly simple, but I appreciate any help I can get.