English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi frnds..

i have ftp user name n password for 1site, want to now whether that server is windows or linux..

if i connect that site i finding any "wwwroot" or " htdocs" folder
have ip too is there any way to find out .......?

bcoz i want put php codes in that server but it is not working only html... working


pls
help me come put

2006-10-09 18:35:16 · 3 answers · asked by sumant h 1 in Computers & Internet Software

3 answers

php should work on both if installed.
make a file called info.htm
with these lines
phpinfo();
?>

upload to your server it and call it in your browser (e.g. www.mysite.com/info.htm)

if php is present you will have a list of all its settings.

2006-10-09 18:46:38 · answer #1 · answered by guido_961 4 · 0 0

Ask your service provider!
Try a very simple PHP page. If it doesn't work, you're SOL.
Try a valid ASP page. If it works, maybe it's Windows.
Bottom line... you can always ask your service provider for help.

2006-10-10 01:38:45 · answer #2 · answered by PJ 3 · 0 0

this might help --- works on the client only, but u might get ideas from it ---- javascript code to find the OS

// This script sets OSName variable as follows:
// "Windows" for all versions of Windows
// "MacOS" for all versions of Macintosh OS
// "Linux" for all versions of Linux
// "UNIX" for all other UNIX flavors
// "Unknown OS" indicates failure to detect the OS

var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

document.write('Your OS: '+OSName);

2006-10-10 01:52:04 · answer #3 · answered by S K 2 · 0 0

fedest.com, questions and answers