Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 08-01-09   #1 (permalink)
Linux Lobbyist
 
intel nvidia

Join Date: Apr 2008
Posts: 900

Rep: 81 transhour is acknowledged by some
Unique Rep: 64
Trader Rating: 5
Default Need Help...php/scripting language

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

System: Xeon Glory
CPU
Xeon X3440 @ 3.8 ghz w/HT 1.32vcore
Motherboard
ASRock P55 Extreme
Memory
4x2gb RipJaw Gskills
Graphics Card
nvidia 8800 gt
Hard Drive
Main 250 wd, secondary, 500 Seagate
Sound Card
onboard
Power Supply
corsair 550 watt
Case
Cooler Master Centurion 590
CPU cooling
xigamatek s1283 Darknight
GPU cooling
duorb. thanks to blameless :)
OS
Win7 && Ubuntu 9.04
Monitor
20 inch acer ws
transhour is offline   Reply With Quote
Old 08-04-09   #2 (permalink)
Intel Overclocker
 
dham's Avatar
 
intel ati

Join Date: May 2009
Location: North Carolina
Posts: 664

Rep: 42 dham is acknowledged by some
Unique Rep: 30
Trader Rating: 0
Default

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
__________________
Quote:
Originally Posted by jshay View Post
How convenient, the warranty ends when the world ends.
Quote:
Originally Posted by slothfish View Post
So lifetime warranty then?

System: Main Digital Audio Workstation
CPU
Core i5 750 4.01ghz at 1.27v
Motherboard
MSI P55-GD80
Memory
G.SKILL 4GB DDR3 1600mhz
Graphics Card
Sapphire Radeon HD 5870 1GB
Hard Drive
Western Digital Caviar Black 500gb 32mb cache
Sound Card
Line 6 Guitar Port/Gear Box
Power Supply
Corsair HX750
Case
Antec Nine-hundred two
CPU cooling
Megahalem w/ Panaflo 114cfm
GPU cooling
Stock
OS
Windows 7 Ultimate 64
Monitor
22" Acer
dham is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 12:51 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.09695 seconds with 8 queries