hi everyone.i want to convert rtf file to html so that people can view file in an html format on the site can anyone give me the idea of how to do it.i want to use perl to execute unrtf software to do the job.
if someone have a code or something that can help me i will be glad.
5 3192 numberwhun 3,509
Recognized Expert Moderator Specialist
hi everyone.i want to convert rtf file to html so that people can view file in an html format on the site can anyone give me the idea of how to do it.i want to use perl to execute unrtf software to do the job.
if someone have a code or something that can help me i will be glad.
First, when asking how to do something, it is customary to post the code you have tried. That way, we can help you with what you have been working on.
Second, you will want to investigate the system() function.
Regards,
Jeff
what i want to know is do i need to create the code to execute unrtf or do i need call the system function to do so.because i did'nt use unrtf before so i want to try to use it to convert rtf to html.
numberwhun 3,509
Recognized Expert Moderator Specialist
what i want to know is do i need to create the code to execute unrtf or do i need call the system function to do so.because i did'nt use unrtf before so i want to try to use it to convert rtf to html.
Well, if you are wanting to create a script to run the system utility "unrtf" on a supplied file name, then yes, you would write code. If you are just trying to convert a file, run the command directly.
I would play with unrtf and get its syntax correct before putting it in a script. Also, please clarify exactly what it is you are wanting.
Regards,
Jeff
basically i want the user to upload an rtf file from the html form.
after that the file must be converted to html format.
since perl have power to use unrtf i want to call the perl function from php.
example
$filename = "file from html and php ";
$html = "file expected by php";
system("unrtf **html $FileName > $html_FileName" ) ;
KevinADC 4,059
Recognized Expert Specialist
PHP can run system applications too, there is no need to use perl. Ask on a php forum how to run system applications.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Dariusz |
last post by:
I currently have a layout that is part written in SHTML - in other words,
it gets processed by the web server to execute any calls for PHP or Perl
code as well as the html (and external imported HTML) in the page that is
in the SHTML page.
What I would like to do is convert this SHTML into PHP generated code so I
can drastically cut the amount of code duplication I currently have per
page, and make it easier to roll out changes - same...
|
by: speedster |
last post by:
Hi.
I need some help converting some php to perl.
$meminfo = shell_exec( "free -o" );
I need to execute "free-o" in shell and get the results.
It grabs memory information about a linux webserver.
If it is also possible to run a regular expression on this data that
would also be great.
It then outputs it in a nice format.
|
by: PzYon |
last post by:
Hey 2gether!
I'm trying to execute a PERL script on the web server when the user presses
a button in an ASP.NET Web Application using Visual Basic. The most obvious
solution for me seemed to be to use the 'Shell()'-command .
This didn't work: Either I get an "File not found" error, or I get no error
at all, but the PERL script isn't executed anyway. The strange thing is that
I managed to execute a .bat file for example. Why the hell...
|
by: Nathan Gilbert |
last post by:
I am wanting to use javascript to select between different *.css files
dependent on the user's browser. I am also wanting to generate the
html document containing this javascript dynamically using PERL.
So far, I have the javascript that does what I want to do, and it works
fine as long as the the page was not generated by PERL.
My problem is that when the javascript/html is generated by
my PERL scripts the javascript never gets...
|
by: ogo796 |
last post by:
hi there! can someone help me with the php scripts that can execute the unrtf conveter to export .rtf files to html files so that people can view files in an html format.
| |
by: ogo796 |
last post by:
hi everyone.i want to convert rtf file to html so that people can view file in an html format on the site can anyone give me the idea of how to do it.i want to use perl to execute unrtf software to do the job.
|
by: ogo796 |
last post by:
hi everyone, I want to run the system application using php,i want to confirm that it is posible to run unrtf application using php to convert rtf file to html file immediately when the user upload the file.can someone help me with that i have been looking to that but it seems like i dont get help.
example
$rtf_file = "user input from html form"
immediately after the user uploade the file it must be converted to html when it get...
|
by: happyse27 |
last post by:
Hi All,
I am creating the perl script using html form(with embedded javascript inside).
When using this html form with javascript alone, it works where the form validation will pop up javascript windows to say the field is not keyed into properly. However, when i convert this html(with javascript inside) into perl script, the perl script did not validate when i keyed incorrect data in the form and it straight away executed perl script...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |