RE: [PHP] refresh (part of) a page?

2002-05-20 Thread savaidis

I look and I search everything, it looks I'm reaching to a wall :)
I used Netscape, I uploaded to my internet server, still the same.
Plus, I cannot find header already send at manual.

The error message is :
Warning: Cannot add header information - headers already sent by (output
started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83

Note that I use header() without problem on another php script on the same
server.(to redirect from a parcked domain)

Someone could help?

Thanks

Makis

 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 19, 2002 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] refresh (part of) a page?


 On Sunday 19 May 2002 18:03, savaidis wrote:
  I want to refrech a part of my page (or the whole page) using PHP.
  Periodically, using a time delay.
  Should I use frames?

 You cannot refresh part of a page without resending the whole
 page. You can
 use frames.

  Also I tried to use header (...) calling the same page with different
  name (and then back to the same page) but I got the warning:
  header already send.

 *Read* the manual and see what it says about header() and header already
 send.

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 A great many people think they are thinking when they are merely
 rearranging their prejudices.
   -- William 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] refresh (part of) a page?

2002-05-20 Thread Jason Wong

On Monday 20 May 2002 16:39, savaidis wrote:
 I look and I search everything, it looks I'm reaching to a wall :)
 I used Netscape, I uploaded to my internet server, still the same.
 Plus, I cannot find header already send at manual.

 The error message is :
 Warning: Cannot add header information - headers already sent by (output
 started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83

 Note that I use header() without problem on another php script on the
 same server.(to redirect from a parcked domain)

 Someone could help?

As I've said, look up the header() function in the manual. It has all you need 
to know.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Always think of something new; this helps you forget your last rotten idea.
-- Seth Frankel
*/


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




Re: [PHP] refresh (part of) a page?

2002-05-20 Thread 1LT John W. Holmes

You can't have any output before you call header. Something in main.php on
line 41 is causing some output that breaks the header() call. Be sure you
don't have any whitespace at the end of included files.

---John Holmes...

- Original Message -
From: savaidis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 20, 2002 4:39 AM
Subject: RE: [PHP] refresh (part of) a page?


 I look and I search everything, it looks I'm reaching to a wall :)
 I used Netscape, I uploaded to my internet server, still the same.
 Plus, I cannot find header already send at manual.

 The error message is :
 Warning: Cannot add header information - headers already sent by (output
 started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83

 Note that I use header() without problem on another php script on the
same
 server.(to redirect from a parcked domain)

 Someone could help?

 Thanks

 Makis

  -Original Message-
  From: Jason Wong [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, May 19, 2002 3:35 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] refresh (part of) a page?
 
 
  On Sunday 19 May 2002 18:03, savaidis wrote:
   I want to refrech a part of my page (or the whole page) using PHP.
   Periodically, using a time delay.
   Should I use frames?
 
  You cannot refresh part of a page without resending the whole
  page. You can
  use frames.
 
   Also I tried to use header (...) calling the same page with
different
   name (and then back to the same page) but I got the warning:
   header already send.
 
  *Read* the manual and see what it says about header() and header
already
  send.
 
  --
  Jason Wong - Gremlins Associates - www.gremlins.com.hk
  Open Source Software Systems Integrators
  * Web Design  Hosting * Internet  Intranet Applications Development *
 
  /*
  A great many people think they are thinking when they are merely
  rearranging their prejudices.
  -- William 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



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




Re: [PHP] refresh (part of) a page?

2002-05-20 Thread Sqlcoders.com Programming Dept

Hi there!,
To keep both iframes on the same line, you need to put them inside a table
(like this:
table
border=0trtdiframe/iframe/tdtdiframe/iframe/td/tr/tabl
e)

You can switch off any borders with the following:
in the iframe code use an iframe tag like this:
iframe border=0 height=200 width=400 FRAMEBORDER=0 MARGINHEIGHT=0
MARGINWIDTH=0
SCROLLING=NO NORESIZE scrolling=no src=pageToLoad.php/iframe

So to combine the two (both on the same line with no borders), something
like this...
table border=0
  tr
td
  iframe border=0 height=200 width=400 FRAMEBORDER=0 MARGINHEIGHT=0
MARGINWIDTH=0
SCROLLING=NO NORESIZE scrolling=no src=pageToLoad.php/iframe
/td
td
iframe border=0 height=200 width=400 FRAMEBORDER=0 MARGINHEIGHT=0
MARGINWIDTH=0
SCROLLING=NO NORESIZE scrolling=no src=pageToLoad.php/iframe
 /td
   /tr
 /table

HTH,
Dw


- Original Message -
From: savaidis [EMAIL PROTECTED]
To: Sqlcoders.com Programming Dept [EMAIL PROTECTED]
Sent: May 20 2002 08:42 AM
Subject: RE: [PHP] refresh (part of) a page?


 Thanks a lot!

 Is possible to make invisible the borders? I tried border=0 and
noborder
 but didn't work.

 Also to keep the 2 frames (I did put and another iframe to the right) in
 the same line and not to break the other at the bottom of the first?

 You will  see it from tomorow at http://www.macedonia-hotels.gr


 Thanks again!





 Makis


  -Original Message-
  From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 21, 2002 4:57 AM
  To: savaidis
  Subject: Re: [PHP] refresh (part of) a page?
 
 
  Hi there!,
  You cannot refresh part of a single page,
  you would have to resend the entire page.
 
  There is another option which you could use, this will work on IE5+ and
  NS6+:
  An inline frame would allow you to update the page within it's
  boundary, so
  in other words you could have a page which has an iframe
  src=partWhichWillRefresh.php width=400 height=200/iframe
  tag, then you
  would need a page called partWhichWillRefresh.php which contains
  the content
  you want to refresh,
  inside partWhichWillRefresh.php, add whatever content you want to
refresh,
  and the following JavaScript to accomplish the refresh:
 
  script language=JavaScript
  x = setTimeout(reloadme,5000); //the 5000 means 5 seconds, 60
  seconds would
  be 6, etc.
 
  function reloadme(){
  document.location.href = 'partWhichWillRefresh.php?rnd=0393'; //the
  rnd=0394 is simply to stop most caching.
  }
  /script
 
  HTH,
  Dw
 
  - Original Message -
  From: savaidis [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: May 20 2002 01:39 AM
  Subject: RE: [PHP] refresh (part of) a page?
 
 
   I look and I search everything, it looks I'm reaching to a wall :)
   I used Netscape, I uploaded to my internet server, still the same.
   Plus, I cannot find header already send at manual.
  
   The error message is :
   Warning: Cannot add header information - headers already sent by
(output
   started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83
  
   Note that I use header() without problem on another php script on
the
  same
   server.(to redirect from a parcked domain)
  
   Someone could help?
  
   Thanks
  
   Makis
  
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 19, 2002 3:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] refresh (part of) a page?
   
   
On Sunday 19 May 2002 18:03, savaidis wrote:
 I want to refrech a part of my page (or the whole page) using PHP.
 Periodically, using a time delay.
 Should I use frames?
   
You cannot refresh part of a page without resending the whole
page. You can
use frames.
   
 Also I tried to use header (...) calling the same page with
  different
 name (and then back to the same page) but I got the warning:
 header already send.
   
*Read* the manual and see what it says about header() and header
  already
send.
   
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications
  Development *
   
/*
A great many people think they are thinking when they are merely
rearranging their prejudices.
-- William 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
  
  
 




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




Re: [PHP] refresh (part of) a page?

2002-05-19 Thread Jason Wong

On Sunday 19 May 2002 18:03, savaidis wrote:
 I want to refrech a part of my page (or the whole page) using PHP.
 Periodically, using a time delay.
 Should I use frames?

You cannot refresh part of a page without resending the whole page. You can 
use frames.

 Also I tried to use header (...) calling the same page with different
 name (and then back to the same page) but I got the warning:
 header already send.

*Read* the manual and see what it says about header() and header already 
send.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
A great many people think they are thinking when they are merely
rearranging their prejudices.
-- William James
*/


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