Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:

Password:

Remember me

Using Buffer in php
Welcome, Guest. Please login or register.
November 21, 2008, 04:45:38 PM
11306 Posts in 1249 Topics by 501 Members
Latest Member: rosaline
Experts Round Table Network  |  Serverside Technology  |  PHP  |  Using Buffer in php « previous next »
Pages: [1]
Author Topic: Using Buffer in php  (Read 601 times)
rahia307

Offline Offline

Posts: 4


« on: May 07, 2007, 10:28:06 PM »

how to store and relative value from buffer in php.
please help me about it and give me some example for it
Logged
CrYpTiC_MauleR
Site Builder

Offline Offline

Posts: 489



WWW
« Reply #1 on: May 07, 2007, 11:07:30 PM »

Is this what you are asking? http://www.php.net/manual/en/function.ob-get-contents.php
Logged

[x] Fight | www.crypticmauler.com
"You must be
rahia307

Offline Offline

Posts: 4


« Reply #2 on: May 08, 2007, 03:38:55 AM »

thanks
but how i can u clipboard in php if any one have any example then tell me
Logged
CrYpTiC_MauleR
Site Builder

Offline Offline

Posts: 489



WWW
« Reply #3 on: May 08, 2007, 09:20:03 AM »

What are you meaning by clipbaord?

If you are meaning having the input put into your clipboard so you can paste it somewhere that would require JavaScript and will not work for everyone then. Best you can do is make a TEXTAREA with the data and allow person to manually copy its contents.
Logged

[x] Fight | www.crypticmauler.com
"You must be
VGR
Mentor

Offline Offline

Posts: 682



WWW
« Reply #4 on: May 10, 2007, 09:52:34 AM »

yes.

Please define what you're trying to do.
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
rdivilbiss
Governing Council Member
*
Offline Offline

Posts: 414



WWW
« Reply #5 on: May 10, 2007, 06:17:00 PM »

As mentioned earlier, you use JavaScript to do this.

But the user of your site may get a warning message: 



This will copy the contents of the clipboard to the clipboard if you click in the textarea with the mouse.

Quote
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Copy To Clipbord</title>
<script type="text/javascript">
<!--
function copyFieldToClipboard(objEl) {
   objEl.select();
   window.clipboardData.setData("Text", objEl.value);
   alert('Copied data to clipboard');
}

//-->
</script>
</head>

<body>
<textarea name="click_to_copy" rows="10" cols="60" onclick="copyFieldToClipboard(this)">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras dolor. Sed sed neque. Duis eros justo, bibendum in, placerat eget, ullamcorper vel, nibh. Praesent urna arcu, sagittis eget, semper laoreet, tempus non, augue. In a pede. Vestibulum consequat eleifend sem. Duis tristique tortor ultricies massa. Duis sapien eros, posuere sit amet, rhoncus non, venenatis bibendum, tellus. Donec dui tortor, dignissim quis, eleifend eget, fermentum a, massa. Maecenas vel enim vitae sapien condimentum eleifend. Duis hendrerit luctus dui. Donec sem dui, posuere a, consectetuer eget, pretium aliquet, turpis. Vestibulum posuere porta lacus. Sed convallis molestie purus. In hac habitasse platea dictumst.</textarea>
</body>

</html>
Logged

Rod
Pages: [1]
« previous next »
    Jump to: