Exec()


#1

Hello
Because I can’t whois from my computer (winxp) easily, and my dreamhost account runs on linux, i set up a small sript to use ping, via exec(). Now its stopped working … isit just my account exec() has been disabled on :frowning: :frowning: :(??

Any alternitive ways to easily whois sites?


#2

If your script is a) written in PHP, and b) not being run as CGI, then yes, exec() is disabled. The fix is to enable PHP-CGI for your domain, via the panel, or per-directory by adding the following line to .htaccess in the directory in question:

AddType php-cgi .php

If you want useful replies, ask smart questions.


#3

ah yes i remember now i turned it off
thank you


#4

how do u add that line?? or can u give me a instructions?