Thursday, November 18, 2010

opensource and linux commands

1.

1.start http service=/etc/init.d/httpd start
2.php version =php -version
3.chmod 755 /var/www/html/open
4.chmod 777 /var/www/html/open
5.command to inclue file in php
localhost=require_once(dirname(__FILE__)."/path.php");
?>
or
$path = '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>

2.
urlencoding:
This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.

php function:
string urlencode ( string $str )


example:
$text=urlencode("we can do and i am selva kumar");
?>

reference:
http://php.net/manual/en/function.urlencode.php

3 comments:

  1. nice blog regards http://www.kidsfront.com/

    ReplyDelete
  2. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
    Flipkart SBI Offer
    Flipkart Axis Bank offer

    ReplyDelete