|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
Need Help...php/scripting language
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Linux Lobbyist
![]() |
A friend and i have come up with a crazy idea, jump on the cloud computing bandwagon while its still fairly new.
nah, not really. we like the idea of google apps, but we want something that is more under our control right now, we are working on a php file browser and php word processor. we are open to different scripting languaes, but we have hit a wall. nothing we have tried, will open .doc files in our word processor. we will have full control over the server, so any software we need to install, we can. it is actually our home pc running ubuntu 9.04 desktop, with lamp installed. $file = location of file; $content = shell_exec('/usr/share/antiword'.$file); this seems to be something that will do what we want, but i am unable to get it display any text, i am not sure if i have the syntax right, it doesn't throw any errors, but i've noticed with the exec() and passthru() functions, they don't throw errors even if they are nowhere nearing being correct. i think part of the problem, has to do with me installing xampp, versus installing from the repos, i just thru it up on my computer to test out a site i was working on, had no intentions on keeping it, till he brought up the idea of doing this. so any help will be appreciated, and i will be installing apache/php/mysql from the repos tomorrow. later, Transhour
__________________
There are three kinds of lies: Lies, damned lies, and benchmarks. never go as5 to mouth ASrock[/COLOR] Pro/Extreme/Deluxe/SuperComputer club, P55 and X58 welcome[/B]"]http://www.overclock.net/intel-motherboards/588268-asrock-pro-extreme-deluxe-supercomputer-club.html Xeon Glory
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
Hey. What are you putting for location of file? There is nothing wrong with your syntax as far as the shell_exec goes. Is antiword installed to that directory? If not install it. We need to see more code to help you out also. Post your entire script. Also there's nothing wrong with xampp. I use it at work and it's fine for testing and developing. I would not use it for production obviously. What else is part of your setup.
Also in your php.ini file change your error reporting to this. php.ini should be in C:\xampp\php error_reporting = E_ALL & ~E_NOTICE
__________________
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|