Jump to content

0p3n_p0rT

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

0p3n_p0rT's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I recently made a chatroom in php. All messages are written to a chat log, and that chat log is what is read in the conversation screen, which is an iframe. However, I need the frame to refresh every 2 seconds or so, so that it is constantly updated. At the moment, I am using: [code]<META HTTP-EQUIV="Refresh" CONTENT="2"; URL="chatlog.htm">[/code] However, whenever it refreshes and the length of the chat goes beyond the iframes capacity, a scroll bar appears. I want it to automatically keep to the bottom, as whenever it refreshes, it takes the browser to viewing the top part of the iframe. Also, whenever there is a new message, I want it to automatically scroll down to it so it is in view. How could I do this? Also, with the PHP: I have a "connected" list. Whenever someone joins the page, the username from their session is logged to "connected.php". However, I want it to be removed when they exit the chat. Not all people would use a "logout" button so I would need it to somehow remove their name from the connected log file when their session is killed. How could I do that?
  2. Hey, I have something along the lines of this: <? $string = " <html> <title>sitename</title> <FRAMESET ROWS="*,0" COLS="100%" border="0"> <FRAME SRC="do.php?d=XQE2VILT&l=en" noresize> <FRAME SRC="s.php" noresize scrolling="no"> </FRAMESET> </html>"; ?> And I want to extract just the "do.php?d=XQE2VILT&l=en" part. However, the querystring is random, and the length of this this may differ. I have tried various substr, strchr, etc. etc. and cannot extract that certain bit. Can anybody help? Thanks, 0p3n_p0rt.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.