RE: [PHP] PHP Alternative to IFRAME?

2004-02-24 Thread Jason Merrique
You could do it this way:

Put the content of the file into a variable:

?php 

$fp = fopen($filename, r);
$content = !-- Insert Start --;
if($fp) {
  while(! feof($fp)) {
$content .= fread($fp, 1024);
  }
}
?

Insert the variable into a div tag:

div id=content

?php
echo $content;
?

/div

Then create a style sheet that defines the properties of the content
DIV:

style type=text/css
!--
#content {
height: 100px;
width: 100px;
float: left
}
--
/style

The above collection of code would include the contents of the specified
file/url into a box to the left of the screen, with any other text
wrapping around it. You could do pretty much what you want with the DIV
though, CSS Rocks :)

Does that answer the question?

Cheers,

Jason

 -Original Message-
 From: Nicole [mailto:[EMAIL PROTECTED] 
 Sent: 23 February 2004 18:26
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Alternative to IFRAME?
 
 Your right I was mixing up what I wanted.
 
 What I wanted to know I guess was if I use an include and 
 include a file can I format where that file will display.
 
 So what I have is a little box with some info in it.  I want 
 it to display to the right of the body text and have the body 
 text wrap around it.
 
 Nicole
 
 Richard Davey [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  Hello Nicole,
 
  Monday, February 23, 2004, 5:21:11 PM, you wrote:
 
  N Is there a PHP alternative to an IFRAME? Here's what I mean.
 
  No, of course not. PHP is a server-side language. IFRAME's (and 
  anything related to page construction/display) is client-side.
 
  N Is there a way to include a file in my php document that will be
 positioned
  N where I want it, like an IFRAME? I want to have it aligned right 
  N with
 text
  N wrapping around it and I know IFRAME is not compatible with 
  N Netscape browsers.
 
  You're mixing technologies. If Netscape won't display 
 something, there 
  is nothing PHP can do about it. You need to think of another layout 
  technique that it can display.
 
  --
  Best regards,
   Richard Davey
   http://www.phpcommunity.org/wiki/296.html
 
 --
 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] PHP Alternative to IFRAME?

2004-02-24 Thread Justin Patrin
Nicole wrote:

I'm not having much luck explaining what I want here ... a drawback of
emailing.  I know how to include files, I just wanted to include it in such
a way that my body text still wrapped around it.
I think I need to tackle this using HTML.

Robert Sossomon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Just place

?php
 include box_info.php;
?
In your web page in the location where the little box is.  Word wrap
typically only happens with images though, so you may have to turn your
text into an image, in which case you could just use a javascript
commands to change the image as needed.  If you are including the text
into a table it would be something like:
table border=0
trtdsome text that keeps running and running/td/tr
trtd?php
 include box_info.php;
?
/td/tr
HTH,
Robert
I think this is what you're looking for:

echo 'div style=float: right;';
include('someFile.php');
echo '/div
div';
//more content here that goes ot the left and bottom of the above div
echo '/div';
--
--
paperCrane Justin Patrin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Alternative to IFRAME?

2004-02-24 Thread Nicole
That is almost exactly what I ended up doing.  Thanks a bunch!

Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Nicole wrote:

  I'm not having much luck explaining what I want here ... a drawback of
  emailing.  I know how to include files, I just wanted to include it in
such
  a way that my body text still wrapped around it.
 
  I think I need to tackle this using HTML.
 
  Robert Sossomon [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
 
 Just place
 
 ?php
   include box_info.php;
 ?
 
 In your web page in the location where the little box is.  Word wrap
 typically only happens with images though, so you may have to turn your
 text into an image, in which case you could just use a javascript
 commands to change the image as needed.  If you are including the text
 into a table it would be something like:
 
 table border=0
 trtdsome text that keeps running and running/td/tr
 trtd?php
   include box_info.php;
 ?
 /td/tr
 
 HTH,
 Robert

 I think this is what you're looking for:

 echo 'div style=float: right;';
 include('someFile.php');
 echo '/div
 div';
 //more content here that goes ot the left and bottom of the above div
 echo '/div';

 --
 --
 paperCrane Justin Patrin

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



[PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Nicole
Is there a PHP alternative to an IFRAME? Here's what I mean.

Is there a way to include a file in my php document that will be positioned
where I want it, like an IFRAME? I want to have it aligned right with text
wrapping around it and I know IFRAME is not compatible with Netscape
browsers.

Thanks

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



Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Richard Davey
Hello Nicole,

Monday, February 23, 2004, 5:21:11 PM, you wrote:

N Is there a PHP alternative to an IFRAME? Here's what I mean.

No, of course not. PHP is a server-side language. IFRAME's (and
anything related to page construction/display) is client-side.

N Is there a way to include a file in my php document that will be positioned
N where I want it, like an IFRAME? I want to have it aligned right with text
N wrapping around it and I know IFRAME is not compatible with Netscape
N browsers.

You're mixing technologies. If Netscape won't display something, there
is nothing PHP can do about it. You need to think of another layout
technique that it can display.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Nicole
Your right I was mixing up what I wanted.

What I wanted to know I guess was if I use an include and include a file can
I format where that file will display.

So what I have is a little box with some info in it.  I want it to display
to the right of the body text and have the body text wrap around it.

Nicole

Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello Nicole,

 Monday, February 23, 2004, 5:21:11 PM, you wrote:

 N Is there a PHP alternative to an IFRAME? Here's what I mean.

 No, of course not. PHP is a server-side language. IFRAME's (and
 anything related to page construction/display) is client-side.

 N Is there a way to include a file in my php document that will be
positioned
 N where I want it, like an IFRAME? I want to have it aligned right with
text
 N wrapping around it and I know IFRAME is not compatible with Netscape
 N browsers.

 You're mixing technologies. If Netscape won't display something, there
 is nothing PHP can do about it. You need to think of another layout
 technique that it can display.

 --
 Best regards,
  Richard Davey
  http://www.phpcommunity.org/wiki/296.html

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



RE: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Chris W. Parker
Nicole mailto:[EMAIL PROTECTED]
on Monday, February 23, 2004 10:26 AM said:

 What I wanted to know I guess was if I use an include and include a
 file can I format where that file will display.
 
 So what I have is a little box with some info in it.  I want it to
 display to the right of the body text and have the body text wrap
 around it. 

again, you're mixing things up. php doesn't have anything to do with
this EXCEPT that it sends html to the client. you have to decide what
html should be sent to the client.

you should join a list such as webdesign-l or thelist to ask this kind
of question.


chris.

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



Re[2]: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Richard Davey
Hello Nicole,

Monday, February 23, 2004, 6:26:24 PM, you wrote:

N What I wanted to know I guess was if I use an include and include a file can
N I format where that file will display.

Yes absolutely, but again this is still an HTML issue.

N So what I have is a little box with some info in it.  I want it to display
N to the right of the body text and have the body text wrap around it.

Say you've got a PHP file that has all of the HTML in it that you
want, other than this little box. At the place where you want the
content of that box to appear you need to use something like this:

?php
  include litle_box.php;
?

Whatever is contained in the little_box.php script will then appear
in exactly that place in the final page.

Of course you're going to need to arrange the HTML in both files to
make this work, but I think it's what you are after.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



RE: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Robert Sossomon
Just place

?php
  include box_info.php;
?

In your web page in the location where the little box is.  Word wrap
typically only happens with images though, so you may have to turn your
text into an image, in which case you could just use a javascript
commands to change the image as needed.  If you are including the text
into a table it would be something like:

table border=0
trtdsome text that keeps running and running/td/tr
trtd?php
  include box_info.php;
?
/td/tr

HTH,
Robert

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



Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Nicole
I'm not having much luck explaining what I want here ... a drawback of
emailing.  I know how to include files, I just wanted to include it in such
a way that my body text still wrapped around it.

I think I need to tackle this using HTML.

Robert Sossomon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Just place

 ?php
   include box_info.php;
 ?

 In your web page in the location where the little box is.  Word wrap
 typically only happens with images though, so you may have to turn your
 text into an image, in which case you could just use a javascript
 commands to change the image as needed.  If you are including the text
 into a table it would be something like:

 table border=0
 trtdsome text that keeps running and running/td/tr
 trtd?php
   include box_info.php;
 ?
 /td/tr

 HTH,
 Robert

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



RE: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Chris W. Parker
Nicole mailto:[EMAIL PROTECTED]
on Monday, February 23, 2004 12:06 PM said:

 I'm not having much luck explaining what I want here ... a drawback of
 emailing.  I know how to include files, I just wanted to include it
 in such a way that my body text still wrapped around it.

myfile.php:
?php

echo phere is some more body text./p\n;

?

main.php:
?php

echo here is some body text. here is some body text. here is some body
text.\n;
echo here is some body text. here is some body text. here is some body
text.\n;

include myfile.php;

echo here is some body text. here is some body text. here is some body
text.\n;
echo here is some body text. here is some body text. here is some body
text.\n;

?


that will output:

here is some body text. here is some body text. here is some body text.
here is some body text. here is some body text. here is some body text.
phere is some more body text./p
here is some body text. here is some body text. here is some body text.
here is some body text. here is some body text. here is some body text.


hth,
chris.

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



Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Tom Rogers
Hi,

Tuesday, February 24, 2004, 3:21:11 AM, you wrote:
N Is there a PHP alternative to an IFRAME? Here's what I mean.

N Is there a way to include a file in my php document that will be positioned
N where I want it, like an IFRAME? I want to have it aligned right with text
N wrapping around it and I know IFRAME is not compatible with Netscape
N browsers.

N Thanks


here is a bit of code I use to do a progress bar that works in ie and
ns4.7 though php has little to do with it :)


table border=0 height=100 width=370
  tr
td
  iframe id=obj1 name=obj1 src=progress.php?UPLOAD_WAIT=wait 
type=text/html frameborder=0 height=100 width=370
  ilayer id=ilayer1 left=1 height=100 width=370layer left=1 
id=layer1 name=layer1 src=progress.php?UPLOAD_WAIT=wait/layer
  /ilayer/iframe
/td
  /tr
/table

-- 
regards,
Tom

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