Close   

Admin and announcement forums

    30 Mar 2008
PHP Snippets  
kumar rakesh
create and manage free online surveys with unlimited responses
Online surveys are now basic requirement of everyone who want to review there products or to make studies about anything. But finding a solution who can provide esurveys efficiently is really a big pain. creating an online survey with inefficient tool as irritating and getting survey conducted with limitations on responses is even worse.
cont..
    30 Mar 2008
PHP Snippets  
kumar rakesh
practice interviews and prepare for interviews
in todays changing world every one want to increase there salaries very quickly.
Changes your employer is an very efficient solution for this. But changing employer and company is not so easy.

cont..

Viewed 237 times
Total posts : 1

    20 Oct 2007
PHP Snippets  
Riya Ila
His other forums
PHP Snippets

Some useful php tips


1. /* Extract all the values of an associative array in variables */
  extract($array);

//You can use this for extracting $_GET and $_POST arrays

2. /* Ternary operator if() ... else .... */
   
 echo ($x == 0)? "not zero " : " Zero";


3. /*  Long String */

 $str = <<<STR
    Write anyting here
it will be treated as string
YOu can write here variables $var ( it will be converted in vars vaue)
STR;


4. /* View page source  Make link for this like
    <a href="="<?=$PHP_SELF?>?src=1">View Source</a> */


if($src){
    highlight_file(basename($_SERVER['PHP_SELF']));
    exit;
}


5. /* Specify any function to run after current script finishes execution  */

register_shutdown_function( some-function );

6. /* get last element of any arrray */


end($array);


7. /* Display any array in formatted style */

echo "<pre>";
print_r($array);
echo "</pre>";


8. /* Set error display off or on */

   // to set errors on except notices
    ini_set('display_errors','on');
    ini_set('error_reporting',E_ALL ^ E_NOTICE);

   // Put all the error off
    ini_set('display_errors','off');
    ini_set('error_reporting','off');
11 Jan 2008
 
kumar rakesh
His other forums
List all the included files in php



get_included_files();

get_required_files();



These both functions will return array.
Login to participate in forums

Login to participate in forums
jump to :
Post reply on this forum

1

Comment on this forum
Name :
Email :
Comments :
Legends
PHP Snippets Forums tagged PHP Snippets Forums tagged. But locked for further reply
="PHP Forums locked. can not accept further replies PHP Snippets General forum