473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

executing unrtf to convert rtf to html using perl

44
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.
Jan 9 '08 #1
5 3171
numberwhun
3,509 Expert Mod 2GB
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
Jan 9 '08 #2
ogo796
44
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.
Jan 9 '08 #3
numberwhun
3,509 Expert Mod 2GB
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
Jan 9 '08 #4
ogo796
44
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") ;
Jan 9 '08 #5
KevinADC
4,059 Expert 2GB
PHP can run system applications too, there is no need to use perl. Ask on a php forum how to run system applications.
Jan 9 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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...
1
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...
3
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...
3
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...
0
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.
1
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...
0
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.