Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-05-2003, 02:26 AM
vonbrocklin vonbrocklin is offline
Defensive Tackle
Vortech Inc. Customer
 
PHP Shell Access/Safe Mode?

According to my phpinfo() file, safe_mode is set to OFF on unix2. From what I have read, this means I should be able to use the PHP shell_exec command even if I do not have true shell access on the machine. (I don't have this set up.) I am trying to connect to HTML Tidy to parse form input to XHTML, but here is more simple example of what I mean:

Code:
<?php $shell = shell_exec("date"); echo $shell; ?>


Does anybody know why this does not work?
__________________
"If everything is under control, you're going too slow." -- Mario Andretti
Reply With Quote
  #2  
Old 05-05-2003, 02:32 AM
vonbrocklin vonbrocklin is offline
Defensive Tackle
Vortech Inc. Customer
 
Bah. Never mind. I had another small error that was messing things up. The code above works perfectly fine. Now I will have to see if I can tie into HTML Tidy.

p.s. And in case anybody tries the above code, it is BAD BAD way to get the date!!! I was just using for example, use the PHP date function instead.
__________________
"If everything is under control, you're going too slow." -- Mario Andretti

Last edited by vonbrocklin : 05-05-2003 at 02:43 AM.
Reply With Quote
Reply


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

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Access mattrix Chit Chat Public 10 08-11-2003 09:37 AM


All times are GMT -5. The time now is 09:57 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.24939 seconds with 14 queries
[Output: 37.44 Kb. compressed to 35.30 Kb. by saving 2.14 Kb. (5.70%)]