Web Weather > Weather Web Site Help

Realtime php display

(1/1)

anchorageweather:
Hello all:

This might be slightly off topic - Mods, please let me know if it is, and I will delete it.

As I try to learn a little more about php for my weather site, I was wondering if anyone knew if there was such a thing as a webpage residing on a php enabled server that would display php code in real-time without uploading the file to the server.

I've pieced together something similar for html on my site at:

http://eetee.home.mindspring.com/HTMLpreviewing/HTML%20editor%20realtime%20previewing.htm

Feel free to take a look to see what I mean.  Is it possible to make a similar page for php?

If not, is there a good piece of php authoring software, that  I can use to learn with.  Thanks for any help.

Anole:
No way to do what you want with PHP alone that I'm aware of. PHP executes on the server side at page load. Your example is using javascript which executes on the client side.

You might want to look into AJAX to try and accomplish what you want.

As far as authoring software goes I can't help you there. I just use a text editor.

SLOweather:
There is a php tutorial at http://www.ibdhost.com/help/templates/ ,

Toward the top of the tutorial there are links to a couple of different php code generators.

grahamsbeachweather:
:wink:

carterlake:
Can't do PHP in real time... has to be AJAX with Javascript.

It's actually pretty easy to do.... surprisingly easy! Well... with Weather Display.

And see my main page: http://www.carterlake.org

Also try viewing it with Javascript disabled... very important to provide a graceful replacement for those very few people not using Javascript.

Oh, Ken's got page up on this now:

http://saratoga-weather.org/scripts-WD-AJAX.php

Navigation

[0] Message Index

Go to full version