Question on sending PhP variable results to an HTML page to be displayed.

From: Al Costanzo (al_at_akc.com)
Date: 11/28/03


To: <php-general@lists.php.net>
Date: Fri, 28 Nov 2003 09:20:47 -0500

Hello,

I know this may seem like the opposite approach but please let me explain
the important reason I am trying to discover how to do this.

Let us say you have a website www.example.com and you want to track and
display information when a search engine scanned and stored the result into
its database.

Now you cannot change the home page name to whatever.php because this will
alter the seach engines ranking of your site and you cannot display the date
using JavaScript because the date will change even in the cache because the
code is on the page.

If you use the date function in PhP you can get the date and it will not
change in the cache since the actual code is not on the page that generated
it.

My question is how do I get the answer that I have in a PHP variable back to
an HTML page and give it lets say to JavaScript to display.

Thanks for any help on this.

Al



Relevant Pages

  • Re: Turners Websites......
    ... there is very little javascript ... The main reason I was looking at using slideshow type picture ... You say that you're not an HTML guy, but you're jumping head first into ... slideshow to display various gallerys on different pages of my site. ...
    (rec.crafts.woodturning)
  • Re: Mobile IE changing display properties in CSS
    ... with - display:; - but I don't like your chances. ... I started javascript only to help small screen users and give them some additional accessibility features: larger fonts, avoid narrow native keypads by using spezialized character selections which are displayed by larger buttons/links, validation at input ... ... Using javascript for porting existing cross platform Web applications to Mobile Web applications seems to be my major design decision failure in the moment. ...
    (comp.lang.javascript)
  • Re: [PATCH] ftrace: Dont use tracing_record_cmdline() in workqueue tracer
    ... display wrong and strang thread name. ... they implement task->comm string cache. ... Subject: tracing: Don't use tracing_record_cmdlinein workqueue tracer fix ...
    (Linux-Kernel)
  • Re: send on behalf...
    ... when I hit CTRL+K the Display Name is populated. ... I check the SMTP ... It's only in the cache. ... I'm not really sure how to give you the headers since it doesn't arrive to ...
    (microsoft.public.exchange.admin)
  • Re: Bad advice from a spammer
    ... If this text is displayed, your email client cannot display ... no HTML and especially no Javascript - ... creamin yer panties before it's time to pop the champagne proper." ...
    (alt.2600)