Priti's Technical Corner

January 30, 2009

PHP Interview Questions

Filed under: PHP — Tags: , , , , , — pritisolanki @ 2:47 pm

Question 1: CLI command to find the version of php.
Answer 1: php -v

Question 2: CLI command to show the configuration information for the given extension
Answer 2: php -ri date //date is the extension

Question 3:what is argv,argc  variable?
Answer 3: argv and argc are command line variable. argv is array of command line parameter where as argc is the total count of variable.

Question 4:  Can we run exec() function when PHP run in safe mode?
Answer 4: No

Question 5: what is safe_mode in php?
Answer 5:  safe_mode in PHP is used to solve problem related to shared server security issues.

Question 6: If PHP is running as cgi module can you use HTTP Authentication?
Answer  6: No, The HTTP Authentication hooks in PHP are only available when it is running as an Apache module.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: