Help - Very simple PHP Question

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
ayushpant
Forum Newbie
Posts: 4
Joined: Fri Jun 30, 2006 1:32 pm

Help - Very simple PHP Question

Post 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..
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

put this in a php file and run it

Code: Select all

<?php

phpinfo();

?>
ayushpant
Forum Newbie
Posts: 4
Joined: Fri Jun 30, 2006 1:32 pm

Post by ayushpant »

Sir,

I quiet didn't get it. Please explain me what commands (if any) should i use? Any help is highly appreciated!!!
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post 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
ayushpant
Forum Newbie
Posts: 4
Joined: Fri Jun 30, 2006 1:32 pm

Post by ayushpant »

To be more specific. I would like to check if ImageMagick or NetPBM is installed on my server.

thanks in advacne
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply