Page 1 of 1

Help - Very simple PHP Question

Posted: Fri Jun 30, 2006 1:34 pm
by ayushpant
Hello Friends,

I am extremely new to PHP..know nothing actually..but have a job that requires a bit of PHP knowledge..

Here's my simple problem
We have an application installed on the server. How do i check using PHP that the application exists on the server..i mean..i know that i have to make a php file and execute it to check..but i know nothing besides this!!!

Any help would be extremely helpful.also i'd like to learn PHP..please do post intereesting links that have useful resources for PHP..

Posted: Fri Jun 30, 2006 1:36 pm
by JayBird
put this in a php file and run it

Code: Select all

<?php

phpinfo();

?>

Posted: Fri Jun 30, 2006 1:38 pm
by ayushpant
Sir,

I quiet didn't get it. Please explain me what commands (if any) should i use? Any help is highly appreciated!!!

Posted: Fri Jun 30, 2006 1:40 pm
by MrPotatoes
please don't tell me you lied to get into this job. that's crap. if not nd they expect you to learn then you'll have a blast

what you need to do is find your htdocs within your sever on it's hard drive.

take what pimptastic and put it into notepad

save it as phpinfo.php WITH that extension

go into your browser and type http://localhost/phpinfo.php

if something shows up you have php. if nothing shows up then you do not have php running or on the server and ask your IT guy about it

Posted: Fri Jun 30, 2006 1:41 pm
by ayushpant
To be more specific. I would like to check if ImageMagick or NetPBM is installed on my server.

thanks in advacne

Posted: Fri Jun 30, 2006 2:21 pm
by RobertGonzalez
Can you do this at the OS level. For windows, just look at the programs on the computer. For Linux, I think you can do a which, or a find to see if you have something on the machine.