Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-18-2009, 02:15 AM Site Setup
Novice Talker

Posts: 7
Name: Kevin
Trades: 0
Hey Guys,

I am pretty new to the PHP world and am looking for some guidance in building a certain type of site.

I wish to create a site for my work colleagues where they can simply slick on a button which then copies proformas, text etc from a data base or word document.

Of course their would be a different button for each proforma etc.

Does anyone have tips or ideas on scripts that would allow such functionality.

Thanks In Advance
RiverAce is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-18-2009, 03:53 AM Re: Site Setup
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And do what with the documents?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-19-2009, 02:50 AM Re: Site Setup
Novice Talker

Posts: 7
Name: Kevin
Trades: 0
I have a bunch of Proformas (pre written text that is needed frequently).

I wish to add a list of buttons on a site which when clicked automatically copies a proforma to the clipboard.

Doesn't really matter if the proformas are in a Database or a word document located on the server.

All I wish to know is can it be done using PHP and some tips on how to do it.

Last edited by RiverAce; 11-19-2009 at 02:51 AM..
RiverAce is offline
Reply With Quote
View Public Profile
 
Old 11-19-2009, 04:34 AM Re: Site Setup
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope PHP cannot do that, it could retrieve the text from a database or a plain text file and stream it to a browser or it could send a download link to the user agent.

But it cannot copy anything to the clients clipboard.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-24-2009, 10:12 PM Re: Site Setup
Novice Talker

Posts: 7
Name: Kevin
Trades: 0
To anyone who reads this I worked out using PHP how to reference docucments using PHP in a textarea.

<textarea id="hostheaders" name="hostheaders" cols="100" rows="100" style="display:none">

<?php readfile("Docs/hostheaders.txt") ?>

</TEXTAREA>
<input onclick="doact(document.getElementById('hostheader s'))" type="button" value="Host Headers">
</form>


When clicking the button to copy the text are it locates the file in the php String and places it in you clipboard.

It can be done.
RiverAce is offline
Reply With Quote
View Public Profile
 
Old 11-25-2009, 02:54 AM Re: Site Setup
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
But the actual copying to the clipboard is done by javascript, not php. php just reads the file content and, in this case, places it in a textarea.
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Site Setup
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29440 seconds with 12 queries