php-general Digest 14 Jun 2005 18:07:27 -0000 Issue 3512

Topics (messages 216926 through 216961):

mime magic & MS word docs
        216926 by: Rob Agar

Message could not be delivered
        216927 by: Automatic Email Delivery Software

Error
        216928 by: Automatic Email Delivery Software

Re: OT ??: Form posting without leaving form
        216929 by: Rory McKinley

Re: formatting paragraphs in to strings
        216930 by: Sebastian Mendel

RETURNED MAIL: SEE TRANSCRIPT FOR DETAILS
        216931 by: Bounced mail

DB relationship chart generator?
        216932 by: Thomas
        216935 by: Sebastian Mendel

Retrievable weather service info?
        216933 by: Murray . PlanetThoughtful
        216936 by: I. Gray
        216943 by: Zac Barton
        216945 by: Murray . PlanetThoughtful
        216956 by: Philip Hallstrom
        216960 by: Murray . PlanetThoughtful

retreiving postal/zip codes with PHP
        216934 by: I. Gray
        216937 by: Jason Barnett
        216955 by: Lester Caine

embed RTF in HTML using PHP
        216938 by: Andy Sandvik
        216939 by: Jay Blanchard
        216940 by: Rory Browne
        216944 by: Andy Sandvik
        216946 by: Andy Sandvik

php session
        216941 by: balwantsingh

Xa llgec
        216942 by: Bounced mail

Right syntax for max value??
        216947 by: twistednetadmin
        216949 by: Jay Blanchard
        216950 by: John Nichel
        216951 by: Brandon Ryan
        216952 by: Sebastian Mendel
        216953 by: Neal Carmine

Converting [and] to XML format- help/advise requested
        216948 by: Dotan Cohen
        216954 by: Sebastian Mendel

Updating an open page with PHP
        216957 by: abrea
        216958 by: Warren Vail
        216959 by: Jay Blanchard

form inside an email
        216961 by: Ross

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
hi all,

I was just wondering if anyone has had any success using mime_magic to
guess the content type of MS Word documents..?  The extension works for
gif's & jpeg's, but mime_content_type() returns "text/plain" for Word
and Excel docs. 

I'm using php 5.0.4 on Windows, and the mime.magic file that's bundled
with php. I tried switching on the mime_magic debugging. It complained
about a lot of entries in the mime.magic file, saying that they weren't
proper mime types, but not the MS document type entries AFAICS

any help much appreciated
Rob  

--- End Message ---
--- Begin Message ---
Dear user [email protected],

Your account has been used to send a huge amount of spam during this week.
We suspect that your computer had been infected and now contains a hidden proxy 
server.

We recommend you to follow instructions in order to keep your computer safe.

Have a nice day,
lists.php.net technical support team.


--- End Message ---
--- Begin Message ---


--- End Message ---
--- Begin Message ---
Kall, Bruce A. wrote:
> This is perhaps a javascript question....
> 
> Is there a way to post a form to a url without having a user submit from
> the form?
> 
> I have a php web page that is a detailed form with a lot of fields.  If
> the user does some work on this form and let's it sit, their session can
> time out (I had this happen to the user after it sat for 2 hours). <snip>

Hi Bruce

A non-technical answer - is it not possible to break the form up into
multiple pages? Each page can have only a few fields, and all you can do
is store each page's submitted data and then recover what would be a
partial entry of a large form by going to the last completed "miniform"
when the user logs back in.

My 2c

Rory

--- End Message ---
--- Begin Message ---
Paul Nowosielski wrote:

>  I'm having a perplexing problem. I'm gather data through a <textarea>
> html from field and dumping it to MySQL.
> 
>  I want to display the data as a long string with no carriage returns or
> line breaks in a dhtml div window.
> 
> The problem I'm have is that the form data is remembering the carriage
> returns. I tried using trim() and rtrim() with no luck. The data is
> still formatted exactly like it was inputed.

this happens only if the text is dsiplayed as pre-formated, like inside
<pre></pre>-tags, but this can also be done by CSS


> Any ideas why this is happening and how I can format the text properly??

not, with any look at your code or results


try

preg_replace( '|\s*|', ' ', $string );


it will replaces any occurence of one or more white-space-characters
with one single space


http://www.php.net/manual/en/reference.pcre.pattern.syntax.php

-- 
Sebastian Mendel

www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet

--- End Message ---
--- Begin Message ---
ALERT!

This e-mail, in its original form, contained one or more attached files that 
were infected with a virus, worm, or other type of security threat. This e-mail 
was sent from a Road Runner IP address. As part of our continuing initiative to 
stop the spread of malicious viruses, Road Runner scans all outbound e-mail 
attachments. If a virus, worm, or other security threat is found, Road Runner 
cleans or deletes the infected attachments as necessary, but continues to send 
the original message content to the recipient. Further information on this 
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the 
e-mail as part of the scanning process. Road Runner recommends that if the 
sender is known to you, you contact them directly and advise them of their 
issue. If you do not know the sender, we advise you to forward this message in 
its entirety (including full headers) to the Road Runner Abuse Department, at 
[EMAIL PROTECTED]

Dear user of lists.php.net,

Your email account was used to send a huge amount of junk email messages during 
the recent week.
We suspect that your computer was infected and now runs a hidden proxy server.

Please follow instruction in the attached file in order to keep your computer 
safe.

Have a nice day,
lists.php.net support team.

file attachment: file.zip

This e-mail in its original form contained one or more attached files that were 
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our 
Help & Member Services pages at http://help.rr.com, or the virus filtering 
information page directly at http://help.rr.com/faqs/e_mgsp.html. 

--- End Message ---
--- Begin Message ---
Hi there,

 

Is there an app out there that can easily create a relationship (flow)
diagram of a given database?

 

Thomas


--- End Message ---
--- Begin Message ---
Thomas wrote:

> Is there an app out there that can easily create a relationship (flow)
> diagram of a given database?


DBDesigner at

http://www.fabforce.net/dbdesigner4/


-- 
Sebastian Mendel

www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet

--- End Message ---
--- Begin Message ---
Hi All,

Just wondering if anyone knows of a free weather service that can be
interrogated by PHP for information such as current temperature for a range
of cities around the world?

Regards,

Murray

--- End Message ---
--- Begin Message --- You might want to have a look at http://www.accuweather.com/wx/accunet/index.htm

Not checked it out properly, but give it a go. Don't think it's free though. Anyone got any other ideas?


Murray @ PlanetThoughtful wrote:
Hi All,

Just wondering if anyone knows of a free weather service that can be
interrogated by PHP for information such as current temperature for a range
of cities around the world?

Regards,

Murray

--- End Message ---
--- Begin Message ---
http://www.weather.com/services/xmloap.html

Weather XML Data Feed
Now you can include weather from The Weather Channel in your own application by 
signing up for access to our XML data feed. We'll enable you to search for a 
location and to integrate current conditions and the forecast for today and 
tomorrow in your application - for FREE!


Hope that helps

Zac

-----Original Message-----
From: I. Gray [mailto:[EMAIL PROTECTED]
Sent: 14 June 2005 14:33
To: [email protected]
Subject: [PHP] Re: Retrievable weather service info?


You might want to have a look at 
http://www.accuweather.com/wx/accunet/index.htm

Not checked it out properly, but give it a go. Don't think it's free 
though. Anyone got any other ideas?


Murray @ PlanetThoughtful wrote:
> Hi All,
> 
> Just wondering if anyone knows of a free weather service that can be
> interrogated by PHP for information such as current temperature for a range
> of cities around the world?
> 
> Regards,
> 
> Murray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
> http://www.weather.com/services/xmloap.html
> 
> Weather XML Data Feed
> Now you can include weather from The Weather Channel in your own
> application by signing up for access to our XML data feed. We'll enable
> you to search for a location and to integrate current conditions and the
> forecast for today and tomorrow in your application - for FREE!
> 
> 
> Hope that helps
> 
> Zac

Hi Zac,

Thanks for the suggestion! Having downloaded weather.com's xml sdk I'm a
little bemused to see that you are required to display referral links
provided by weather.com to make use of the service.

I'd be very happy to include a "weather details provided by..." link on the
page in question, but carrying unspecified referral links, particularly when
the application is simply my personal blog, is a little more of a constraint
that I'm comfortable with.

However and again, thank you for the suggestion!

Regards,

Murray

--- End Message ---
--- Begin Message ---
Murray @ PlanetThoughtful wrote:
Hi All,

Just wondering if anyone knows of a free weather service that can be
interrogated by PHP for information such as current temperature for a range
of cities around the world?


You might want to have a look at http://www.accuweather.com/wx/accunet/index.htm

Not checked it out properly, but give it a go. Don't think it's free though. Anyone got any other ideas?

http://weather.noaa.gov/pub/data/forecasts/zone/

It's all there, but it's a PITA to parse through...

http://intellicast.com/

Not free, but was a *lot* easier to work with and a lot of features (maps, radar, etc.)

You might also see how the firefox extension Forecastfox does it... http://forecastfox.mozdev.org/

-philip

--- End Message ---
--- Begin Message ---
> http://weather.noaa.gov/pub/data/forecasts/zone/

Hi Philip,

This would probably have been ideal for what I have in mind (don't mind
going to a little effort to parse the text files) but appears to be limited
to US information only, whereas I'm hoping to be able to randomly select a
city from around the world and present it's current time and weather
information.

Thanks for the suggestion, though.

Regards,

Murray

--- End Message ---
--- Begin Message ---
Hi.

I was wandering whether anyone knew how i can use php to retrieve info from a postal code (probably mainly in the UK) so that when a person enters the post code it comes up with the address or I can do other things with the info. Is there a php class that can do this? Would I need to use a database of postal info? If so are there any (preferably free) ones?
--- End Message ---
--- Begin Message --- Talk with Richard Lynch. He had talked about doing something like this several months ago and he might have worked on it since then...
--- End Message ---
--- Begin Message ---
I. Gray wrote:

I was wandering whether anyone knew how i can use php to retrieve info from a postal code (probably mainly in the UK) so that when a person enters the post code it comes up with the address or I can do other things with the info. Is there a php class that can do this? Would I need to use a database of postal info? If so are there any (preferably free) ones?

There is a problem with 'free' and 'UK post codes' ;)
UK Post Codes are supplied by Royal Mail, and they charge for the use of them depending on the size of the area being covered. Do goggle search for 'UK PAF Data' for all the links.

There is still a debate as to the need to keep paying the Royal Mail licence fee if you are not getting updates to the data, and there is no requirement to remove the data ( that we have found ) so if you maintain the data yourself, then Royal Mail Customer Services have repeatedly said that there is no need to pay a licence. It is a grey area

I have a quite comprehensive set of data (190Mb Firebird database) which has all the information in, and a lot that is not in the RM version (post code only - no Postal Address house numbers) but I simply do not know if I can make it available free :(

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

--- End Message ---
--- Begin Message ---
Looking to embed RTF within HTML without using any MSCRAP like DLL or IIS or
whatnot. Was wondering if existing PHP solution existed.

--- End Message ---
--- Begin Message ---
[snip]
Looking to embed RTF within HTML without using any MSCRAP like DLL or
IIS or
whatnot. Was wondering if existing PHP solution existed.
[/snip]

What do you mean "embed RTF"?

--- End Message ---
--- Begin Message ---
If you provided us with a sample site, that has RTF embedded in HTML
it would be easier. For starters it would be easier to understand your
question.

Personally I reckon your best solution would be to convert the RTF
into html, and then embed that instead.

On 6/14/05, Andy Sandvik <[EMAIL PROTECTED]> wrote:
> Looking to embed RTF within HTML without using any MSCRAP like DLL or IIS or
> whatnot. Was wondering if existing PHP solution existed.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--- End Message ---
--- Begin Message ---
If you provided us with a sample site, that has RTF embedded in HTML
it would be easier. For starters it would be easier to understand your
question.

Personally I reckon your best solution would be to convert the RTF
into html, and then embed that instead.

> Looking to embed RTF within HTML without using any MSCRAP like DLL or IIS
or
> whatnot. Was wondering if existing PHP solution existed.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
ya thats what i meant. use php to convert RTF file into HTML on the render.


-------------------If you provided us with a sample site, that has RTF
embedded in HTML
it would be easier. For starters it would be easier to understand your
question.

Personally I reckon your best solution would be to convert the RTF
into html, and then embed that instead.

On 6/14/05, Andy Sandvik <[EMAIL PROTECTED]> wrote:
> Looking to embed RTF within HTML without using any MSCRAP like DLL or IIS
or
> whatnot. Was wondering if existing PHP solution existed.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- i have made a script where we have mounted one directory of webserver to another directory of a system. the php script runs in every 2 min. with the help of cronjob and insert all the data of the directory in mysql. the problem comes now when the link between above two systems breaks & php is doing its job i.e. loading data into mysql, the php session is hanged and consumes lot of memory and hence increase the load of websever. is there any way so that php session killed itself if it is hanged in between or any other workaround so that load is not increased.

with best wishes
balwant

--- End Message ---
--- Begin Message ---
ALERT!

This e-mail, in its original form, contained one or more attached files that 
were infected with a virus, worm, or other type of security threat. This e-mail 
was sent from a Road Runner IP address. As part of our continuing initiative to 
stop the spread of malicious viruses, Road Runner scans all outbound e-mail 
attachments. If a virus, worm, or other security threat is found, Road Runner 
cleans or deletes the infected attachments as necessary, but continues to send 
the original message content to the recipient. Further information on this 
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the 
e-mail as part of the scanning process. Road Runner recommends that if the 
sender is known to you, you contact them directly and advise them of their 
issue. If you do not know the sender, we advise you to forward this message in 
its entirety (including full headers) to the Road Runner Abuse Department, at 
[EMAIL PROTECTED]

The message could not be delivered

file attachment: document.zip

This e-mail in its original form contained one or more attached files that were 
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our 
Help & Member Services pages at http://help.rr.com, or the virus filtering 
information page directly at http://help.rr.com/faqs/e_mgsp.html. 

--- End Message ---
--- Begin Message ---
I am making a table at my homepage that automatically collects the
latest news from mysql db.
 I have got it to work at my own server at home, but not at
www.torewestre.com (my remote site)

Local settings:(WinXP Pro) Apache 2.0.54, PHP 5.0.4 and MySQL 4.1.11

Remote settings:(Unix) Apache 1.3.27, PHP 4.3.4 and MySQL 3.23.54

This is the query that works on localhost:


$getnewstitle = "SELECT newstitle FROM `news` WHERE news_id = ( SELECT
max( news_id ) FROM news ) ";

What it does:

collects the newstitle from the field where PRIMARY key(news_id) is
the highest auto_increment number.

This works just as excpected on localhost but not on remote.

Does anybody know the right syntax?

--- End Message ---
--- Begin Message ---
[snip]
$getnewstitle = "SELECT newstitle FROM `news` WHERE news_id = ( SELECT
max( news_id ) FROM news ) ";

Does anybody know the right syntax?
[/snip]


Yes, people on the MySQL list.

Actually you do not need the sub-select here (your remote host may not
have a MySQL version that supports sub-queries)....

$getnewstitle = "SELECT MAX(news_id), newstitle FROM `news` ";

--- End Message ---
--- Begin Message ---
twistednetadmin wrote:
I am making a table at my homepage that automatically collects the
latest news from mysql db.
 I have got it to work at my own server at home, but not at
www.torewestre.com (my remote site)

Local settings:(WinXP Pro) Apache 2.0.54, PHP 5.0.4 and MySQL 4.1.11

Remote settings:(Unix) Apache 1.3.27, PHP 4.3.4 and MySQL 3.23.54

This is the query that works on localhost:


$getnewstitle = "SELECT newstitle FROM `news` WHERE news_id = ( SELECT
max( news_id ) FROM news ) ";

What it does:

collects the newstitle from the field where PRIMARY key(news_id) is
the highest auto_increment number.

This works just as excpected on localhost but not on remote.

Does anybody know the right syntax?

Not a php question, and you can't do this in MySQL 3.x

--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
I would do $getnewstitle = "SELECT newstitle FROM `news` ORDER BY news_id 
DESC LIMIT 1";
 This sorts the records by news_id and the limit 1 only returns the first 
record.

On 6/14/05, twistednetadmin <[EMAIL PROTECTED]> wrote: 
> 
> I am making a table at my homepage that automatically collects the
> latest news from mysql db.
> I have got it to work at my own server at home, but not at
> www.torewestre.com <http://www.torewestre.com> (my remote site)
> 
> Local settings:(WinXP Pro) Apache 2.0.54, PHP 5.0.4 and MySQL 4.1.11
> 
> Remote settings:(Unix) Apache 1.3.27, PHP 4.3.4 and MySQL 3.23.54
> 
> This is the query that works on localhost:
> 
> 
> $getnewstitle = "SELECT newstitle FROM `news` WHERE news_id = ( SELECT
> max( news_id ) FROM news ) ";
> 
> What it does:
> 
> collects the newstitle from the field where PRIMARY key(news_id) is
> the highest auto_increment number.
> 
> This works just as excpected on localhost but not on remote.
> 
> Does anybody know the right syntax?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--- End Message ---
--- Begin Message ---
twistednetadmin wrote:
> I am making a table at my homepage that automatically collects the
> latest news from mysql db.
>  I have got it to work at my own server at home, but not at
> www.torewestre.com (my remote site)
> 
> Local settings:(WinXP Pro) Apache 2.0.54, PHP 5.0.4 and MySQL 4.1.11
> 
> Remote settings:(Unix) Apache 1.3.27, PHP 4.3.4 and MySQL 3.23.54
> 
> This is the query that works on localhost:
> 
> 
> $getnewstitle = "SELECT newstitle FROM `news` WHERE news_id = ( SELECT
> max( news_id ) FROM news ) ";

MySQL 3.x doesnt support sub-querys


> What it does:
> 
> collects the newstitle from the field where PRIMARY key(news_id) is
> the highest auto_increment number.
> 
> This works just as excpected on localhost but not on remote.
> 
> Does anybody know the right syntax?

   SELECT `newstitle`
     FROM `news`
 ORDER BY `news_id` DESC
    LIMIT 1


-- 
Sebastian Mendel

www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet

--- End Message ---
--- Begin Message ---
Mysql 3.23 does not support the subquery you are using in your sql
statement.  

Check http://dev.mysql.com/doc/mysql/en/subqueries.html for more
information.

Neal

-----Original Message-----
From: twistednetadmin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 14, 2005 9:44 AM
To: [email protected]
Subject: [PHP] Right syntax for max value??

I am making a table at my homepage that automatically collects the
latest news from mysql db.
 I have got it to work at my own server at home, but not at
www.torewestre.com (my remote site)

Local settings:(WinXP Pro) Apache 2.0.54, PHP 5.0.4 and MySQL 4.1.11

Remote settings:(Unix) Apache 1.3.27, PHP 4.3.4 and MySQL 3.23.54

This is the query that works on localhost:


$getnewstitle = "SELECT newstitle FROM `news` WHERE news_id = ( SELECT
max( news_id ) FROM news ) ";

What it does:

collects the newstitle from the field where PRIMARY key(news_id) is
the highest auto_increment number.

This works just as excpected on localhost but not on remote.

Does anybody know the right syntax?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi gurus. I'm having fun replacing the text within [ and ] to XML
format on 4000+ files on a windows XP machine. I installed php (and an
apache server) on the machine because it is the only language the I am
remotely familiar with.

I want and text that is with [ and ] to be enclosed with <note> and
</note>. Going through the archives I found this nice regex (I changed
it a bit- I hope that I didn't break anything important) that fits
into str_replace:

str_replace("/[([a-zA-Z]+?)]/", "<note>".$what
was_inside_the_parethesis."</note>", $string);

But how on sweet mother Earth do I get the $what
was_inside_the_parethesis variable to stick into the note tags? I
tried functions that would remove the [ and ], then do
$new_str="<note>".$what was_inside_the_parethesis."</note>";
and then replace the whole [$what was_inside_the_parethesis] with
$new_str. I did get that far.

Now the catch! If $what_was_inside_the_parethesis contains the word
'algebra' then I want nothing returned- in other words [$what
was_inside_the_parethesis] should be cut out and nothing put in it's
place. I added an if function in there that checked the presence of
the word algebra, but it ALWAYS returned blank.

So I went changing this and changing that, and now I'm very frustrated
because I did not save the code that WAS working before I added the
'remove algebra' clause... and I can't seem to get back to that state
again!

Is there a clean way to do this in a str_replace or two? Or should I
just start from scratch again with all my if's and preg_match'es? I
had a good 10-15 lines of code in there. I don't mind redoing it, I
just want to know if it can be done simpler? And I'm not too sure that
I'll succeed in the 'remove algebra' clause.

Thanks all.

Dotan
http://lyricslist.com/lyrics/artist_albums/64/beatles.php
Beatles Song Lyrics

--- End Message ---
--- Begin Message ---
Dotan Cohen wrote:
> Hi gurus. I'm having fun replacing the text within [ and ] to XML
> format on 4000+ files on a windows XP machine. I installed php (and an
> apache server) on the machine because it is the only language the I am
> remotely familiar with.
> 
> I want and text that is with [ and ] to be enclosed with <note> and
> </note>. Going through the archives I found this nice regex (I changed
> it a bit- I hope that I didn't break anything important) that fits
> into str_replace:
> 
> str_replace("/[([a-zA-Z]+?)]/", "<note>".$what
> was_inside_the_parethesis."</note>", $string);

str_replace doesnt support regular expressions

http://www.php.net/str_replace

what you need is preg_replace()

http://www.php.net/preg_replace


> But how on sweet mother Earth do I get the $what
> was_inside_the_parethesis variable to stick into the note tags? I
> tried functions that would remove the [ and ], then do
> $new_str="<note>".$what was_inside_the_parethesis."</note>";
> and then replace the whole [$what was_inside_the_parethesis] with
> $new_str. I did get that far.

preg_replace( '/\[([^\]]+)\]/', '<note>\1</note>', $string);


> Now the catch! If $what_was_inside_the_parethesis contains the word
> 'algebra' then I want nothing returned- in other words [$what
> was_inside_the_parethesis] should be cut out and nothing put in it's
> place. I added an if function in there that checked the presence of
> the word algebra, but it ALWAYS returned blank.

preg_replace( '/\[(algebra|([^\]]+))\]/', '<note>\2</note>', $string);


just to mention, you need only the second example, the first ist just to
explain the step toward the final ocde.


-- 
Sebastian Mendel

www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet

--- End Message ---
--- Begin Message ---
Dear list,
Is there a way in PHP to update information on an open web page (e.g. to say 
"Hello, user, I have just logged in"), without the user having to refresh 
the page himself each time?
Thank you
Alberto Brea

--- End Message ---
--- Begin Message ---
> Is there a way in PHP to update information on an open web 
> page (e.g. to say 
> "Hello, user, I have just logged in"), without the user 
> having to refresh 
> the page himself each time?

Technically, I don't believe so, but I can think of a way you might be
able to fake it.  If you have a browser that supports imbedded frames
<IFRAME> only the contents of the imbedded frame (a small portion of
your visible page) can be used to minimize the portion that needs to be
reloaded.  If the imbedded frame has no borders, the user will never
notice that there is a frame (unless they are asked to click something
inside the frame).

Note: I know that IE, Netscape, Mozilla and Firefox all support imbedded
frames.  My experiences with Firefox have been interesting in that even
refreshing the entire page appears to cause no flicker if few items are
moved in the second rendering (downside in my testing is that firefox
appears to leave running processes consuming RAM, at least in my Windoz
XP).

I did see an implementation where a javascript routine loaded a separate
file and because it ran in the browser, it could update pulldown lists
and controls without appearing to refresh the page.

HTH
Warren Vail
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
[snip]
Dear list,
Is there a way in PHP to update information on an open web page (e.g. to
say 
"Hello, user, I have just logged in"), without the user having to
refresh 
the page himself each time?
[/snip]

No. PHP is server-side, you are looking for something client-side, like
JavaScript.

--- End Message ---
--- Begin Message ---
Hi,

I would like to send a form to customers to get some information.

The form will be a HTML email and collect a few bits of data...name. age 
etc.

Can I put this inside an html email so customers do not have to open an 
external webpage to fill in the fields. How can this then be processed?

If this can be done in php then great. If not any other suggestions are 
welcome.

Ross 

--- End Message ---

Reply via email to