Re: [PHP] refreshing pages in the cache

2011-04-28 Thread Jim Giner
Yes - that seems to be the trick!  Thank you very much for your tip AND 
your patience.  :)

You've made an old programmer's day! 



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



RE: [PHP] refreshing pages in the cache

2011-04-28 Thread Ross Hansen

Your welcome,
I am glad that it works and is doing what your after.


 To: php-general@lists.php.net
 From: jim.gi...@albanyhandball.com
 Date: Thu, 28 Apr 2011 09:19:58 -0400
 Subject: Re: [PHP] refreshing pages in the cache

 Yes - that seems to be the trick! Thank you very much for your tip AND
 your patience. :)

 You've made an old programmer's day!



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

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



Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 4:42 PM, Jim Giner jim.gi...@albanyhandball.comwrote:

 Im trying to make my webpages display random photos on a border.  Got it
 all working now but have a question about the IE cache.  Seems that once
 the
 page has been displayed, no amount of refresh will make the page
 rebuild
 and thus show 'different' pics the second time around.

 Can php do something about a page in the cache?  I know that the cache is
 there to speed up performance and all, but I thought this random image
 thing
 would work if they just hit F5 to see a new array of images.

 Can php detect a user-requested 'refresh'?



Though you can't control everything, headers can help.

https://secure.wikimedia.org/wikipedia/en/wiki/List_of_HTTP_header_fields%20https://secure.wikimedia.org/wikipedia/en/wiki/List_of_HTTP_header_fields

http://us3.php.net/manual/en/function.header.php

Cache-Control is a nice one. =)

-- 
--Zootboy

Sent from my PC.


Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
thanks for the input but your first link is invalid and the second I don't 
understand why you sent me.
Perhaps you could explain? 



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



Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 8:50 PM, Jim Giner jim.gi...@albanyhandball.comwrote:

 thanks for the input but your first link is invalid and the second I don't
 understand why you sent me.
 Perhaps you could explain?



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


Sure. In order to tell the browser to not cache a page, you need to set
the header Cache-Control: no-cache. This can be done by the PHP command

header(Cache-Control: no-cache);



-- 
--Zootboy

Sent from my PC.


Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
ok - I'm lost.  What do I do with this knowledge?

- Original Message - 
From: Sean Greenslade zootboys...@gmail.com


 Sure. In order to tell the browser to not cache a page, you need to set
 the header Cache-Control: no-cache. This can be done by the PHP command

 header(Cache-Control: no-cache);




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



RE: [PHP] refreshing pages in the cache

2011-04-27 Thread Ross Hansen

You need to still put in the standard PHP tags as you would normally and it is 
just another line of code.

e.g

?php
 header(Cache-Control: no-cache);
?

 To: php-general@lists.php.net
 From: jim.gi...@albanyhandball.com
 Date: Wed, 27 Apr 2011 21:33:16 -0400
 Subject: Re: [PHP] refreshing pages in the cache
 
 ok - I'm lost.  What do I do with this knowledge?
 
 - Original Message - 
 From: Sean Greenslade zootboys...@gmail.com
 
 
  Sure. In order to tell the browser to not cache a page, you need to set
  the header Cache-Control: no-cache. This can be done by the PHP command
 
  header(Cache-Control: no-cache);
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
  

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
So - it's not an html attribute - it's a PHP command that precedes ALL my 
html headers?

Ross Hansen hansen.r...@live.com.au wroteYou need to still put in the 
standard PHP tags as you would normally and it is just another line of code.

e.g

?php
 header(Cache-Control: no-cache);
?



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



RE: [PHP] refreshing pages in the cache

2011-04-27 Thread Ross Hansen

I am not 100% with this so i might not have the full picture however, it
 is just a command that would have the server tell the client not to 
cache the page. from something i just read you would want to execute 
this from the server, as by the time it gets to the client it would be 
too late as it would have already been cached.


Have a look at this page also


http://php.net/manual/en/function.header.php


There is a quick section on this, it doesn't explain much detail but it does 
give an idea.

 To: php-general@lists.php.net
 From: jim.gi...@albanyhandball.com
 Date: Wed, 27 Apr 2011 21:52:57 -0400
 Subject: Re: [PHP] refreshing pages in the cache
 
 So - it's not an html attribute - it's a PHP command that precedes ALL my 
 html headers?
 
 Ross Hansen hansen.r...@live.com.au wroteYou need to still put in the 
 standard PHP tags as you would normally and it is just another line of code.
 
 e.g
 
 ?php
  header(Cache-Control: no-cache);
 ?
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
  

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Jim Giner
Must be doing something wrong.  Besides not helping my pages to re-build, it 
actually ruins the presentation of a couple of my pages, even tho they are 
all using the exact same includes with only some dummy content in one div 
different than all the other pages.

I added this line to my existing starter page code:

? echo 'header(Cache-Control: no-cache)';?

the above lines were added just ahead of the following - which was the 
absolute first line of output generated by my built page - line 1 of my 
first included file:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN



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



RE: [PHP] refreshing pages in the cache

2011-04-27 Thread Ross Hansen

You don't want to echo it as it isn't something that is going to HTML. it is 
native PHP. the correct command should be

? header(Cache-Control: no-cache);?
See how this goes.



 To: php-general@lists.php.net
 From: jim.gi...@albanyhandball.com
 Date: Wed, 27 Apr 2011 22:12:23 -0400
 Subject: Re: [PHP] refreshing pages in the cache
 
 Must be doing something wrong.  Besides not helping my pages to re-build, it 
 actually ruins the presentation of a couple of my pages, even tho they are 
 all using the exact same includes with only some dummy content in one div 
 different than all the other pages.
 
 I added this line to my existing starter page code:
 
 ? echo 'header(Cache-Control: no-cache)';?
 
 the above lines were added just ahead of the following - which was the 
 absolute first line of output generated by my built page - line 1 of my 
 first included file:
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
  

RE: [PHP] refreshing an included php file

2005-03-21 Thread Chris W. Parker
AndreaD mailto:[EMAIL PROTECTED]
on Monday, March 21, 2005 2:27 PM said:

 I have a file, index.php and this has an included file, lets call it
 calculate.php. When I insert values in text boxes and hit submit the
 values are written as cookies. The question is how can I refresh
 calculate.php so it shows the new value.

By submitting the form probably...?

You haven't provided any code, or actual problems. If you wrote the code
correctly within calculate.php you wouldn't be asking this question.
Upon refresh/reload of index.php, calculate.php should be updating your
cookie.



Chris.

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



Re: [PHP] refreshing an included php file

2005-03-21 Thread Richard Lynch
On Mon, March 21, 2005 2:27 pm, AndreaD said:
 I have a file, index.php and this has an included file, lets call it
 calculate.php. When I insert values in text boxes and hit submit the
 values
 are written as cookies. The question is how can I refresh calculate.php so
 it shows the new value.

When you set a cookie, it is sent *TO* the browser, to be sent *back* in
the *NEXT* HTTP request.

The browser itself does not have access to the cookies, so you can't, say,
use javaScript to do calculations with them.

The Cookies you just *sent* at the top of your script have not been sent
*back* yet -- But since you have the values at the top of the script, you
can use those same values in some variables to provide whatever
calculations you want.

Hope that helps you sort things out...

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] Refreshing page after form submission

2004-12-17 Thread Mike Smith
Would something like this work

If($_POST['submit']){//add error checking for whatever critical fields

echo Thank you for filling out my form.\n;

} else {
//display form with a input type=submit name=submit value=Save

}

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



Re: [PHP] Refreshing page after form submission

2004-12-17 Thread Richard Lynch
S.D.Price wrote:
 Hi, I have a form which when submitted adds a record to a DB. However if
 the user clicks back it resubmits the same record.

When you send out the FORM the first time, create a random unique value:
$token = md5(uniqid());
Store that token in your database in a table.
Include that in an INPUT TYPE=HIDDEN with a random unique VALUE=?=$token?
When you process the form, mark that $token in the database as Submitted
If they attempt to re-process the same form (IE, the $token is already
Submitted) then you can do something, or nothing, or whatever you think
best.

 I have tried using cache control to no avail :

Browsers and cache control have a turbulent history, and while they are
really nifty for getting good browsers to refresh content, they are not
real reliable.

If you *need* more control over content caching, change your URLs, perhaps
randomly, when you want content to not be cached.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



RE: [PHP] Refreshing page after form submission

2004-12-17 Thread S.D.Price

Thanks this was the best solution I used this code as part of form
validation.

// query to check record has not already been added by comparing
submitted title with title of last record
$query_gnewsid_unique = SELECT MAX(newsid) AS newsid FROM
tblnews;

// execute query
$result_gnewsid_unique = mysql_query($query_gnewsid_unique);

$row_gnewsid_unique = mysql_fetch_array($result_gnewsid_unique);
$newsid_unique = $row_gnewsid_unique['newsid'];


// query to extract last title from tblnews 
$query_gtitle_unique = SELECT title
FROM tblnews
WHERE newsid = $newsid_unique; 
$result_gtitle_unique = mysql_query($query_gtitle_unique);

$row_gtitle_unique = mysql_fetch_array($result_gtitle_unique);
$title_unique = $row_gtitle_unique['title'];



if ($title == $title_unique) {  
$message_unique = You have already entered this record.;  
$unique = TRUE;
}


Steve

-Original Message-
From: Burhan Khalid [mailto:[EMAIL PROTECTED] 
Sent: 17 December 2004 13:07
To: S.D.Price
Subject: Re: [PHP] Refreshing page after form submission


S.D.Price wrote:
 Hi, I have a form which when submitted adds a record to a DB. However 
 if the user clicks back it resubmits the same record.
 
 I have tried using cache control to no avail :
 
 header (Expires: Mon, 26 Jul 1997 05:00:00 GMT);
 header (Last-Modified: . gmdate(D, d M Y H:i:s).  GMT); header 
 (Cache-control: no-store, no-cache, must revalidate);
 header(Cache-control: post-check=0, pre-check=0, false); header 
 (Pragma: no-cache); session_cache_limiter(nocache);
 
 I also tried testing for the presence of a submit button so if the 
 user enters data submits the form and clicks back the page will 
 refresh.
 
 ?php
 
 if ($_POST['submit']) {
 echo META HTTP-EQUIV='refresh' CONTENT='0; URL=$PHP_SELF';
 } else { 
 } 
 ?
 
You can try and check if the user's information already exists in the 
database, then display an appropriate message.

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



Re: [PHP] Refreshing in forms using post

2003-12-01 Thread Marek Kilimajer
What header are you using? If you use Location header, this should not 
happen.

Matt Grimm wrote:
Suppose I have a form.  Upon submission, the metadata is posted to a
processing script (a separate PHP file), which parses it and then sends the
user back to a particular page using the header function.  If said user
clicks their browser's back button, the aforementioned processing script
will re-parse that post data and create a duplicate record.  How can I
prevent this?  Cache control?
Thanks,
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Refreshing in forms using post

2003-12-01 Thread Richard Davey
Hello Matt,

Monday, December 1, 2003, 10:31:23 PM, you wrote:

MG Suppose I have a form.  Upon submission, the metadata is posted to a
MG processing script (a separate PHP file), which parses it and then sends the
MG user back to a particular page using the header function.  If said user
MG clicks their browser's back button, the aforementioned processing script
MG will re-parse that post data and create a duplicate record.  How can I
MG prevent this?  Cache control?

There is no 100% reliable method of controlling the cache of any
browser. Why not, in your processing script, set a flag or issue
something to the users session to the effect of already submitted
this form. Then if they do click back and submit it all again you can
check for the existence of this value and give them a nice friendly
error message (Thanks for your enthusiasm, but you've already done
this!) :)

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



Re: [PHP] Refreshing After Submitting a From

2003-09-03 Thread Dan Anderson
 Does anyone have any ideas on how I could do this?

Is there any reason you can't throw a refresh command into a header
before any data is sent?

-Dan

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



RE: [PHP] Refreshing After Submitting a From

2003-09-03 Thread Jay Blanchard
[snip]
I have a form on a popup that gets submitted to the PARENTWINDOW.  If
there
was an error while processing the form, it will be displayed in the
parentwindow.  The popup never closes, but it needs to refresh, cuz it
needs
to get new data from MySQL.

Does anyone have any ideas on how I could do this?
[/snip]

JavaScript

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



RE: [PHP] Refreshing

2003-06-30 Thread Jay Blanchard
[snip]
I have a chat script. I want it to refresh the chat display area
whenever there is a new message posted, but not every 10 seconds or so.
How could I get the script to refresh only when there is a new entry
into the database table?

Also, this may not be PHP but...does anyone know how to stop the
annoying click on Internet Explorer when something refreshes?
[/snip]

1. Nope, not with PHP. Well, you could but it would require a script
running in a loop in the background, checking for new data, then calling
a header redirect of some sort. That is kludgy and would require the
looping doohickey for each conversation within the chat.

2. You can disable sounds in a themes thingie, depends on which windoze
version you own.

HTH!

Jay

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



Re: [PHP] Refreshing

2003-06-30 Thread Stephen
1. This way would probably end up sending out 500 little clicks every
minute...so... Could any client side script do this like JavaScript? I doubt
it could but just a question.

With bubblegum in my shoe,
Stephen Craton
Senior Executive Web Developer
Mophus.com, Inc.


- Original Message - 
From: Jay Blanchard [EMAIL PROTECTED]
To: Stephen [EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 12:41 PM
Subject: RE: [PHP] Refreshing


[snip]
I have a chat script. I want it to refresh the chat display area
whenever there is a new message posted, but not every 10 seconds or so.
How could I get the script to refresh only when there is a new entry
into the database table?

Also, this may not be PHP but...does anyone know how to stop the
annoying click on Internet Explorer when something refreshes?
[/snip]

1. Nope, not with PHP. Well, you could but it would require a script
running in a loop in the background, checking for new data, then calling
a header redirect of some sort. That is kludgy and would require the
looping doohickey for each conversation within the chat.

2. You can disable sounds in a themes thingie, depends on which windoze
version you own.

HTH!

Jay




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



Re: [PHP] Refreshing

2003-06-30 Thread Marco Tabini
Try using Javascript to reload an image instead of an HTML file. Images
don't click, and you can check whether new data is available by the size
of the returned image (e.g.: 1 pixel, no new data, 2pixels, new data).
You will need a small PHP script on the backend that generates the image
based on whether the data is available or not.

Cheers,


Marco

--
php|architect -- The Magazine for PHP Professionals
Get your free copy today at http://www.phparch.com!

On Mon, 2003-06-30 at 13:50, Stephen wrote:
 1. This way would probably end up sending out 500 little clicks every
 minute...so... Could any client side script do this like JavaScript? I doubt
 it could but just a question.
 
 With bubblegum in my shoe,
 Stephen Craton
 Senior Executive Web Developer
 Mophus.com, Inc.
 
 
 - Original Message - 
 From: Jay Blanchard [EMAIL PROTECTED]
 To: Stephen [EMAIL PROTECTED]; PHP List
 [EMAIL PROTECTED]
 Sent: Monday, June 30, 2003 12:41 PM
 Subject: RE: [PHP] Refreshing
 
 
 [snip]
 I have a chat script. I want it to refresh the chat display area
 whenever there is a new message posted, but not every 10 seconds or so.
 How could I get the script to refresh only when there is a new entry
 into the database table?
 
 Also, this may not be PHP but...does anyone know how to stop the
 annoying click on Internet Explorer when something refreshes?
 [/snip]
 
 1. Nope, not with PHP. Well, you could but it would require a script
 running in a loop in the background, checking for new data, then calling
 a header redirect of some sort. That is kludgy and would require the
 looping doohickey for each conversation within the chat.
 
 2. You can disable sounds in a themes thingie, depends on which windoze
 version you own.
 
 HTH!
 
 Jay
 
-- 

Marco Tabini
President

Marco Tabini  Associates, Inc.
28 Bombay Avenue
Toronto, ON M3H 1B7
Canada

Phone: (416) 630-6202
Fax: (416) 630-5057
Web: http://www.tabini.ca


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



Re: [PHP] Refreshing

2003-06-30 Thread Stephen
Thank you for this method. I just have a few questions.

1. How could javascript reload the image? I'm not 100% familiar with
JavaScript really...
2. How could I use PHP to find the width of the image? I was reading up on
image manipulation last night but only got as far as creating an image.

With bubblegum in my shoe,
Stephen Craton
Senior Executive Web Developer
Mophus.com, Inc.


- Original Message - 
From: Marco Tabini [EMAIL PROTECTED]
To: Stephen [EMAIL PROTECTED]
Cc: Jay Blanchard [EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 12:52 PM
Subject: Re: [PHP] Refreshing


Try using Javascript to reload an image instead of an HTML file. Images
don't click, and you can check whether new data is available by the size
of the returned image (e.g.: 1 pixel, no new data, 2pixels, new data).
You will need a small PHP script on the backend that generates the image
based on whether the data is available or not.

Cheers,


Marco

--
php|architect -- The Magazine for PHP Professionals
Get your free copy today at http://www.phparch.com!

On Mon, 2003-06-30 at 13:50, Stephen wrote:
 1. This way would probably end up sending out 500 little clicks every
 minute...so... Could any client side script do this like JavaScript? I
doubt
 it could but just a question.

 With bubblegum in my shoe,
 Stephen Craton
 Senior Executive Web Developer
 Mophus.com, Inc.


 - Original Message - 
 From: Jay Blanchard [EMAIL PROTECTED]
 To: Stephen [EMAIL PROTECTED]; PHP List
 [EMAIL PROTECTED]
 Sent: Monday, June 30, 2003 12:41 PM
 Subject: RE: [PHP] Refreshing


 [snip]
 I have a chat script. I want it to refresh the chat display area
 whenever there is a new message posted, but not every 10 seconds or so.
 How could I get the script to refresh only when there is a new entry
 into the database table?

 Also, this may not be PHP but...does anyone know how to stop the
 annoying click on Internet Explorer when something refreshes?
 [/snip]

 1. Nope, not with PHP. Well, you could but it would require a script
 running in a loop in the background, checking for new data, then calling
 a header redirect of some sort. That is kludgy and would require the
 looping doohickey for each conversation within the chat.

 2. You can disable sounds in a themes thingie, depends on which windoze
 version you own.

 HTH!

 Jay

-- 

Marco Tabini
President

Marco Tabini  Associates, Inc.
28 Bombay Avenue
Toronto, ON M3H 1B7
Canada

Phone: (416) 630-6202
Fax: (416) 630-5057
Web: http://www.tabini.ca


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





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



Re: [PHP] Refreshing

2003-06-30 Thread Marco Tabini
On Mon, 2003-06-30 at 13:57, Stephen wrote:
 Thank you for this method. I just have a few questions.
 
 1. How could javascript reload the image? I'm not 100% familiar with
 JavaScript really...

Set a timeout to x seconds (where x is the time you want to wait between
checks--say one or two seconds). When the timeout occurs cause the image
to reload by changing its src attribute (even to the same URL, of
course).

 2. How could I use PHP to find the width of the image? I was reading up on
 image manipulation last night but only got as far as creating an image.

You don't need PHP to check the width of the image. PHP *generates* the
image of a given width based on whether new data is available or not. On
the frontend, you can set the onload event of the image to fire a
function of your choosing when the image is reloaded, where you check
its dimensions and act accordingly. Once you've done that, you reset
your timer, and the cycle starts over.

Cheers,


Marco

--
php|architect -- The Magazine for PHP Professionals
Get your free copy today at http://www.phparch.com!


 
 With bubblegum in my shoe,
 Stephen Craton
 Senior Executive Web Developer
 Mophus.com, Inc.
 
 
 - Original Message - 
 From: Marco Tabini [EMAIL PROTECTED]
 To: Stephen [EMAIL PROTECTED]
 Cc: Jay Blanchard [EMAIL PROTECTED]; PHP List
 [EMAIL PROTECTED]
 Sent: Monday, June 30, 2003 12:52 PM
 Subject: Re: [PHP] Refreshing
 
 
 Try using Javascript to reload an image instead of an HTML file. Images
 don't click, and you can check whether new data is available by the size
 of the returned image (e.g.: 1 pixel, no new data, 2pixels, new data).
 You will need a small PHP script on the backend that generates the image
 based on whether the data is available or not.
 
 Cheers,
 
 
 Marco
 
 --
 php|architect -- The Magazine for PHP Professionals
 Get your free copy today at http://www.phparch.com!
 
 On Mon, 2003-06-30 at 13:50, Stephen wrote:
  1. This way would probably end up sending out 500 little clicks every
  minute...so... Could any client side script do this like JavaScript? I
 doubt
  it could but just a question.
 
  With bubblegum in my shoe,
  Stephen Craton
  Senior Executive Web Developer
  Mophus.com, Inc.
 
 
  - Original Message - 
  From: Jay Blanchard [EMAIL PROTECTED]
  To: Stephen [EMAIL PROTECTED]; PHP List
  [EMAIL PROTECTED]
  Sent: Monday, June 30, 2003 12:41 PM
  Subject: RE: [PHP] Refreshing
 
 
  [snip]
  I have a chat script. I want it to refresh the chat display area
  whenever there is a new message posted, but not every 10 seconds or so.
  How could I get the script to refresh only when there is a new entry
  into the database table?
 
  Also, this may not be PHP but...does anyone know how to stop the
  annoying click on Internet Explorer when something refreshes?
  [/snip]
 
  1. Nope, not with PHP. Well, you could but it would require a script
  running in a loop in the background, checking for new data, then calling
  a header redirect of some sort. That is kludgy and would require the
  looping doohickey for each conversation within the chat.
 
  2. You can disable sounds in a themes thingie, depends on which windoze
  version you own.
 
  HTH!
 
  Jay
 
 -- 
 
 Marco Tabini
 President
 
 Marco Tabini  Associates, Inc.
 28 Bombay Avenue
 Toronto, ON M3H 1B7
 Canada
 
 Phone: (416) 630-6202
 Fax: (416) 630-5057
 Web: http://www.tabini.ca
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



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



Re: [PHP] Refreshing

2003-06-30 Thread Jeremy Thibeaux
 [snip]
 I have a chat script. I want it to refresh the chat
 display area
 whenever there is a new message posted, but not
 every 10 seconds or so.
 How could I get the script to refresh only when
 there is a new entry
 into the database table?
 [/snip]
 
I have implemented something along these lines for an
online chess game (so the board would only refresh
when the other player moves).  It did require a loop,
as suggested.  I used a hidden IFRAME to check the
data.  Basically, I would refresh the page referred to
by the IFRAME every 10 seconds or so, and this page
contained JavaScript that invoked a function on the
containing page.  The JavaScript function on the
containing page would then refresh the page when the
parameter passed to it indicated that the other player
had moved.  I did implement the site using PHP, but
this really isn't a PHP specific approach.  

I imagine you would do something very similar for chat
(in fact, I had been considering implementing it for
the online chess site so that the users could send
messages to each other during the course of the game).

And there is a performance issue if you are going to
support a lot of users at one time; however, at least
it is not as bad as refreshing the entire page every
10 seconds (this would be particularly disastrous for
my chess board, which contained many images).

There are a number of references that talk about this
trick if you search on iframe rpc javascript in
google:

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=iframe+rpc+javascript

You will still get the clicking, tho.  But users' can
disable it if it annoys them -- sometimes it is nice
to know that something is going on.

Hope this helps.

Jeremy


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



Re: [PHP] Refreshing

2003-06-30 Thread Marco Tabini
The image should take care of the click, and also reduce the amount of
information transmitted somewhat (although not necessarily, depending on
what you send to your iframe).

Cheers,


Marco

On Mon, 2003-06-30 at 14:09, Jeremy Thibeaux wrote:
  [snip]
  I have a chat script. I want it to refresh the chat
  display area
  whenever there is a new message posted, but not
  every 10 seconds or so.
  How could I get the script to refresh only when
  there is a new entry
  into the database table?
  [/snip]
  
 I have implemented something along these lines for an
 online chess game (so the board would only refresh
 when the other player moves).  It did require a loop,
 as suggested.  I used a hidden IFRAME to check the
 data.  Basically, I would refresh the page referred to
 by the IFRAME every 10 seconds or so, and this page
 contained JavaScript that invoked a function on the
 containing page.  The JavaScript function on the
 containing page would then refresh the page when the
 parameter passed to it indicated that the other player
 had moved.  I did implement the site using PHP, but
 this really isn't a PHP specific approach.  
 
 I imagine you would do something very similar for chat
 (in fact, I had been considering implementing it for
 the online chess site so that the users could send
 messages to each other during the course of the game).
 
 And there is a performance issue if you are going to
 support a lot of users at one time; however, at least
 it is not as bad as refreshing the entire page every
 10 seconds (this would be particularly disastrous for
 my chess board, which contained many images).
 
 There are a number of references that talk about this
 trick if you search on iframe rpc javascript in
 google:
 
 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=iframe+rpc+javascript
 
 You will still get the clicking, tho.  But users' can
 disable it if it annoys them -- sometimes it is nice
 to know that something is going on.
 
 Hope this helps.
 
 Jeremy
-- 

Marco Tabini
President

Marco Tabini  Associates, Inc.
28 Bombay Avenue
Toronto, ON M3H 1B7
Canada

Phone: (416) 630-6202
Fax: (416) 630-5057
Web: http://www.tabini.ca


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



Re: [PHP] Refreshing

2003-06-30 Thread Jeremy Thibeaux
The only problem I have with the image idea is that it
is not particularly generic and a bit unusual (i.e.
kindof a hack).  

The IFRAME would need only contain a simple JavaScript
function call, so it would be pretty small (the data
would probably be less than the HTTP header
information), and this would basically represent the
framework for implementing RPCs via JavaScript.  Once
you go down this path, you don't have to worry about
figuring out what image size means what or how to
generate these images, you just pass a meaningful
parameter to your RPC response handler.

But, I admit, I can get religious about these kind of
things.  In the end, sometimes practical realities
justify hacks.  And, really, it is all a matter of
degrees (I am not sure IFRAMES were designed for what
I am proposing you use them for either).

Jeremy

--- Marco Tabini [EMAIL PROTECTED] wrote:
 The image should take care of the click, and also
 reduce the amount of
 information transmitted somewhat (although not
 necessarily, depending on
 what you send to your iframe).
 
 Cheers,
 
 
 Marco
 

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



Re: [PHP] Refreshing

2003-06-30 Thread James Hicks
On Tuesday 01 July 2003 12:30 am, Tom Rogers wrote:
 Hi,

 Tuesday, July 1, 2003, 3:41:56 AM, you wrote:

 JB Also, this may not be PHP but...does anyone know how to stop the
 JB annoying click on Internet Explorer when something refreshes?
 JB [/snip]


  control panel - sounds - set select to 'none'


I found the answer to this by doing a google search with annoying clicking 
sound in Internet Explorer. I laughed when I actually found the answer on a 
page that described the sound as annoying.

In an effort to keep this list on topic, I'd like to point out that you were 
correct when you said that this may not be PHP. :)

James


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



Re: [PHP] Refreshing

2003-06-30 Thread Stephen
When I was asking this question, I wanted to do it on the server so the user
didn't have to do anything. :-P

With bubblegum in my shoe,
Stephen Craton
Senior Executive Web Developer
Mophus.com, Inc.


- Original Message - 
From: James Hicks [EMAIL PROTECTED]
To: Tom Rogers [EMAIL PROTECTED]; Jay Blanchard
[EMAIL PROTECTED]
Cc: Stephen [EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 11:39 PM
Subject: Re: [PHP] Refreshing


On Tuesday 01 July 2003 12:30 am, Tom Rogers wrote:
 Hi,

 Tuesday, July 1, 2003, 3:41:56 AM, you wrote:

 JB Also, this may not be PHP but...does anyone know how to stop the
 JB annoying click on Internet Explorer when something refreshes?
 JB [/snip]


  control panel - sounds - set select to 'none'


I found the answer to this by doing a google search with annoying clicking
sound in Internet Explorer. I laughed when I actually found the answer on a
page that described the sound as annoying.

In an effort to keep this list on topic, I'd like to point out that you were
correct when you said that this may not be PHP. :)

James


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






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



Re: [PHP] Refreshing session variables

2002-07-18 Thread Kevin Stone

I think you're missing some fundamental concepts of sessions here.  You must
think of the session as a file that you're going to include into the script
(becuase.. that's litteraly what it is).  But instead of using include()
you're going to use session_start();

?
session_start();
if (!session_is_registered(myvar))
{
$myvar = 'peek a boo';
session_register(myvar);
}
else
{
echo $myvar;
session_unregister(myvar);
}

echo pa href=\$PHP_SELF\(refresh)/a;
?

When you activate this script for the first time three things happen..
1) the session file is created on the server
2) a cookie with the Session ID is stored on your computer
3) $myvar = 'peek a boo';  is added to the session file

When you click refresh to reactivate the script, PHP will match the session
id stored in the cookie to the file stored on the server, and include the
variables into the actively running script.  $myvar is now available and the
contents are printed to the screen then unregistered (removed) from the
session file.  The third time around it's going to stop in the if() portion
and reregister the variable.  Adding and removing lines from a file and
including them into your script..  it's no more complicated than that.

Hopefully now you'll be able to fix your problem and learn to use sessions
reliably and effectively.   :)

-Kevin

- Original Message -
From: N. Pari Purna Chand [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 18, 2002 3:36 PM
Subject: [PHP] Refreshing session variables


 Hi guys,

 I got a problem with refreshing session variables.
 When the following code is run , for the first time
 both $z and $secretstring are showing same values.

 But when page is refreshed, the $secretstring variable
 is still having the old value no matter how many times
 I click refresh.

 Am I missing some thing  ?

 ?
 $x = mt_rand (1000,1);
 $y = mt_rand (1000,1);

 $text = $x.$y;
 $secretstring =$x.$y;

 session_start();
 if(session_is_registered(secretstring)){
 session_unregister(secretstring);
 }
 session_register(secretstring);

 echo BR.$text;
 echo BR.$secretstring;

 ?


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



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




Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings

Leotta, Natalie (NCI/IMS) wrote:
 
 This might be a little bit JS and a little bit PHP.  I'm wondering if
 there's an easy way to refresh a PHP page on an onClick and change one
 parameter (say someone wants to redraw the graph, but with the points).  I
 don't want to pay attention to any of the other parameters that could have
 changed on the screen (we've got a bunch of selects).  We had come up with a
 really complicated way which involved changing the parameters to the most
 recent line drawn, deleting the most recent line, and then submitting with
 those parameters and the showPoints value changed, but that sounds pretty
 complicated.
 
 If anyone could come up with a quicker way that didn't involve the whole
 submitting thing, that would be easier.  My page has all of the vars that
 are necessary in hidden vars, and has HTML, PHP, and a handful of JS.

You wouldn't happen to have a demo would you? A visualization
would help me a lot.

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Kevin Stone

I'm not certain I understand your situation.  If you're trying to keep state
between each new input then I would recommend PHP sessions to store your
variables. Could you elaborate more what you're trying to do?
-Kevin

- Original Message -
From: Leotta, Natalie (NCI/IMS) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 16, 2002 1:48 PM
Subject: [PHP] refreshing PHP on onClick


 This might be a little bit JS and a little bit PHP.  I'm wondering if
 there's an easy way to refresh a PHP page on an onClick and change one
 parameter (say someone wants to redraw the graph, but with the points).  I
 don't want to pay attention to any of the other parameters that could have
 changed on the screen (we've got a bunch of selects).  We had come up with
a
 really complicated way which involved changing the parameters to the most
 recent line drawn, deleting the most recent line, and then submitting with
 those parameters and the showPoints value changed, but that sounds pretty
 complicated.

 If anyone could come up with a quicker way that didn't involve the whole
 submitting thing, that would be easier.  My page has all of the vars that
 are necessary in hidden vars, and has HTML, PHP, and a handful of JS.

 Thanks!

 -Natalie


 Natalie S. Leotta
 Information Management Services, Inc.
 (301) 680-9770
 [EMAIL PROTECTED]






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




RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)

It's all in a password protected site because the data's all confidential at
this point in time, but I can give you a mental picture.  

There are a bunch of dropdowns - State, Cancer, Sex, Race, Age.  We're
drawing a graph of best fit lines - up to 5 allowed on the graph, then we
start over replacing them.  We don't draw the actual data points unless the
user clicks on a checkbox.  They want that checkbox to be instant
gratification, without making the user refresh.  I just want a way to make
it do the refresh (and let me change that one variable, so it draws the
points or doesn't draw the points), but not a full submit because that would
add another line to the graph.

I'm sorry I can't send you the URL at this stage of the game.  it should be
up and running this summer though :-)

Thanks for any help you can give me!!

-Natalie

-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 3:56 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] refreshing PHP on onClick


Leotta, Natalie (NCI/IMS) wrote:
 
 This might be a little bit JS and a little bit PHP.  I'm wondering if 
 there's an easy way to refresh a PHP page on an onClick and change 
 one parameter (say someone wants to redraw the graph, but with the 
 points).  I don't want to pay attention to any of the other parameters 
 that could have changed on the screen (we've got a bunch of selects).  
 We had come up with a really complicated way which involved changing 
 the parameters to the most recent line drawn, deleting the most recent 
 line, and then submitting with those parameters and the showPoints 
 value changed, but that sounds pretty complicated.
 
 If anyone could come up with a quicker way that didn't involve the 
 whole submitting thing, that would be easier.  My page has all of the 
 vars that are necessary in hidden vars, and has HTML, PHP, and a 
 handful of JS.

You wouldn't happen to have a demo would you? A visualization would help me
a lot.

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




Re: [PHP] refreshing PHP on onClick

2002-05-16 Thread Robert Cummings

Leotta, Natalie (NCI/IMS) wrote:
 
 It's all in a password protected site because the data's all confidential at
 this point in time, but I can give you a mental picture.
 
 There are a bunch of dropdowns - State, Cancer, Sex, Race, Age.  We're
 drawing a graph of best fit lines - up to 5 allowed on the graph, then we
 start over replacing them.  We don't draw the actual data points unless the
 user clicks on a checkbox.  They want that checkbox to be instant
 gratification, without making the user refresh.  I just want a way to make
 it do the refresh (and let me change that one variable, so it draws the
 points or doesn't draw the points), but not a full submit because that would
 add another line to the graph.

Since you're already using javascript... you could try generating 2 images
at the same time, one with the data points drawn, the other without, then using
the same technology as for javascript rollovers, you could replace the image
when the onClick event is caught. Instant gratification, and no messy varable
replacements.

 I'm sorry I can't send you the URL at this stage of the game.  it should be
 up and running this summer though :-)

No problem, completely understandable :)

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)

This sounds like it might work.  Thanks for your help!!  I knew there had to
be a better way than what my coworkers came up with :-)

-Natalie

-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 4:09 PM
To: Leotta, Natalie (NCI/IMS)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] refreshing PHP on onClick


Leotta, Natalie (NCI/IMS) wrote:
 
 It's all in a password protected site because the data's all 
 confidential at this point in time, but I can give you a mental 
 picture.
 
 There are a bunch of dropdowns - State, Cancer, Sex, Race, Age.  We're 
 drawing a graph of best fit lines - up to 5 allowed on the graph, then 
 we start over replacing them.  We don't draw the actual data points 
 unless the user clicks on a checkbox.  They want that checkbox to be 
 instant gratification, without making the user refresh.  I just want a 
 way to make it do the refresh (and let me change that one variable, so 
 it draws the points or doesn't draw the points), but not a full submit 
 because that would add another line to the graph.

Since you're already using javascript... you could try generating 2 images
at the same time, one with the data points drawn, the other without, then
using the same technology as for javascript rollovers, you could replace the
image when the onClick event is caught. Instant gratification, and no messy
varable replacements.

 I'm sorry I can't send you the URL at this stage of the game.  it 
 should be up and running this summer though :-)

No problem, completely understandable :)

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




RE: [PHP] Refreshing a page.

2002-02-12 Thread Rick Emery

did you try:  meta http-equiv=refresh content=0;
URL=http://my.site.com//thispage.html;


-Original Message-
From: Morten Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Refreshing a page.


Hi,

I got a page, which uses frames. When a user logges in I would like to
refresh a frame, but I don't know how to do that.
Can anybody help me?

Thanks,
Morten



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

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




Re: [PHP] Refreshing form with submittd data

2001-09-06 Thread David Otton

On Thu, 6 Sep 2001 13:46:59 +0100, you wrote:

I have 3 radio buttons, and I want the one selected by the user to show as
selected when the page reloads.  The form uses POST and points to itself.

How can I make this better?  With a text field I can just do input
type=\text\ name=\foo\ value=\$bar\ but I can't figure out how to do
that sort of thing with radio buttons..

?
function sel($what) {
global $thumbs;
return($thumbs==$what?'checked':'');
}
?

form method=post action=?=$PHP_SELF?
pinput type=radio value=fas name=thumbs ?=sel('fas')?
Faster/p
pinput type=radio value=nor name=thumbs ?=sel('nor')?
Normal/p
pinput type=radio value=lar name=thumbs ?=sel('lar')?
Larger/p
pinput type=submit name=go value=Change/p
/form

djo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Refreshing form with submittd data

2001-09-06 Thread Seb Frost

Thank you thank you thank you.  Sheer genius :-)

-Original Message-
From: David Otton [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2001 22:18
To: Seb Frost
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Refreshing form with submittd data


On Thu, 6 Sep 2001 13:46:59 +0100, you wrote:

I have 3 radio buttons, and I want the one selected by the user to show as
selected when the page reloads.  The form uses POST and points to itself.

How can I make this better?  With a text field I can just do input
type=\text\ name=\foo\ value=\$bar\ but I can't figure out how to do
that sort of thing with radio buttons..

?
function sel($what) {
global $thumbs;
return($thumbs==$what?'checked':'');
}
?

form method=post action=?=$PHP_SELF?
pinput type=radio value=fas name=thumbs ?=sel('fas')?
Faster/p
pinput type=radio value=nor name=thumbs ?=sel('nor')?
Normal/p
pinput type=radio value=lar name=thumbs ?=sel('lar')?
Larger/p
pinput type=submit name=go value=Change/p
/form

djo


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Refreshing php.ini without restart...

2001-09-02 Thread Valter Santos



apache graceful command will restart the server altought it will
wait until all web server sessions are finished to restart


Valter Santos
WEB/WAP Consultant


 -Original Message-
 From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 31, 2001 8:48 AM
 To: Raphael Pirker
 Cc: PHP
 Subject: Re: [PHP] Refreshing php.ini without restart...
 
 
 I can only speak for apache...
 
 ==  apachectl graceful
 
 
 
 Raphael Pirker wrote:
  Hi,
  
  i just moved my PHP project from my local PC to the online 
 webserver and I
  will need to do a few adjustments to the server. since the 
 server is used by
  all the employees in the company, there is no chance I can 
 reboot it without
  prior notice... my question: is there any way I can refresh the 
 changes I
  make in php.ini without doing a reboot?
  
  TIA,
  
  Raphael
  
  
  
  
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Refreshing php.ini without restart...

2001-09-02 Thread Valter Santos


you really do not to have to rebbot your server...
Just restart apache with the graceful action...

apache graceful


Valter Santos
WEB/WAP Consultant


 -Original Message-
 From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 31, 2001 7:08 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Refreshing php.ini without restart...



 i just moved my PHP project from my local PC to the online
 webserver and I
 will need to do a few adjustments to the server. since the
 server is used by
 all the employees in the company, there is no chance I can
 reboot it without
 prior notice... my question: is there any way I can refresh the changes I
 make in php.ini without doing a reboot?

 I assume you're running PHP on a Linux box.. You should be able
 to restart
 apache.. even on NT you could stop and restart the service.

 Bye,


 B.


  /\
  \ /
 ASCII Ribbon CampaignX Against HTML Mail and News
  / \


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Refreshing php.ini without restart...

2001-08-31 Thread Gerard Samuel

I can only speak for apache...

==  apachectl graceful



Raphael Pirker wrote:
 Hi,
 
 i just moved my PHP project from my local PC to the online webserver and I
 will need to do a few adjustments to the server. since the server is used by
 all the employees in the company, there is no chance I can reboot it without
 prior notice... my question: is there any way I can refresh the changes I
 make in php.ini without doing a reboot?
 
 TIA,
 
 Raphael
 
 
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Refreshing php.ini without restart...

2001-08-31 Thread Miles Thompson

Just restart the web server -- IIS or Apache

Miles


At 02:06 PM 8/31/01 +0800, Raphael Pirker wrote:
Hi,

i just moved my PHP project from my local PC to the online webserver and I
will need to do a few adjustments to the server. since the server is used by
all the employees in the company, there is no chance I can reboot it without
prior notice... my question: is there any way I can refresh the changes I
make in php.ini without doing a reboot?

TIA,

Raphael



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Refreshing php.ini without restart...

2001-08-30 Thread B. van Ouwerkerk


i just moved my PHP project from my local PC to the online webserver and I
will need to do a few adjustments to the server. since the server is used by
all the employees in the company, there is no chance I can reboot it without
prior notice... my question: is there any way I can refresh the changes I
make in php.ini without doing a reboot?

I assume you're running PHP on a Linux box.. You should be able to restart 
apache.. even on NT you could stop and restart the service.

Bye,


B.


 /\
 \ /
ASCII Ribbon CampaignX Against HTML Mail and News
 / \ 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Zak Greant

You are going to need Javascript to do this.

--zak


- Original Message -
From: Brandon Orther [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Monday, May 07, 2001 5:19 PM
Subject: [PHP] Refreshing multiple frames?


 Hello,

 I am using php with frames for a menu bar.  In one frame I have a menu.
 When the link is clicked on the menu I would like two frames to be
updated.
 Is there a way to do this?

 Brandon


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Data Driven Design

Link to another frameset page if you choose not to use javascript. But IMO
there's no such thing as a proper use of frames. Frames should never be used
for anything.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Brandon Orther [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Monday, May 07, 2001 7:19 PM
Subject: [PHP] Refreshing multiple frames?


 Hello,

 I am using php with frames for a menu bar.  In one frame I have a menu.
 When the link is clicked on the menu I would like two frames to be
updated.
 Is there a way to do this?

 Brandon


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Luke Welling


Brandon Orther wrote:
 I am using php with frames for a menu bar.  In one frame I have a menu.
 When the link is clicked on the menu I would like two frames to be
updated.
 Is there a way to do this?

As others have said, this is a JavaScript task not a PHP task.

I am pretty sure there is an example at www.htmlgoodies.com.

Cheers,

Luke Welling
--
PHP and MySQL Web Development
by Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842/tangledwebdesign




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]