|
My Public Key (GPG)
|
My Sign|
Travel Snaps|
Blog
|
Fork my (GitHub) projects!
|
Kundavai Kesavan
Sample qns for: I'm just fresher | oops | yahoo! | cognizant | consim | advanced? | generic | Zend Frame Works
Linux commands & operations:
----------------------------
at schedule a job
pwd print working dir
ldd dynamically linked system library[.dll in MS]. list shared libraries
find search for a file
grep find info on a file
mount mount external disk to file system
cpio copy files to & from archives
Major Distro's
SHELL Programming:
$0 -> program $# -> No. of args , $n -> nth arg.
$@ -> all args $* -> all args as single
$$ -> PID of current process
$! -> PID of last b/g running process
$? -> exit status of last process
Linux ? Advantages? Security?
/etc/crontab
min hr daym mnth dayw COMMAND # SYNTAX
15 8 * * 2 amt.sh # 08:15 on each Tuesday
0 4 * * 1,2.3 wget mail.php # mail @ 04:00 on Mon,Tues & Wed
Apache [httpd.conf]:
--------------------
RewriteRule ^/RegExp_pattern/$ ActualURI.php?var1=$0 #mod_rewrite
Redirect site.com/beta beta.site.com
Allow from All
Deny from 175.146.035.4
ErrorDocument 404/idiot.html #404 Management
apache.log
AuthName
AuthType Basic
AuthUsrFile /etc/apacheusr
AuthRequires
MySQL 3306
----------
SET SQL_AUTO_ID_NULL =1 ?
Find the last inserted row for a table that contains an AUTO_INCREMENT column by issuing where auto_increment_column IS NULL
GRANT
REVOKE
SELF JOIN
PROCESS LIST & KILL
HASHING
BACKUP,mysqldump,SELECT *., INTO OUTFILE '/usr/sql'
myisamchk
mysqladmin
/etc/initd/mysql start/restart/stop
PHP.INI:
-------
register_globals Off
magic_quotes_gpc Off
display_errors Off
display_startup_errors Off
log_errors On
error_log /etc/apache-php.log
error_reporting On
upload_tmp_dir /tmp
max_upload_size
session_dc_maxlifetime = 600
--------------------------
PHP Lib Functions & Logic:
--------------------------
set_time_limit(0)
Notice & Warning & Fatal Errs
asort() & arsort()
md5(),md5_file(), sha1(),sha1_file,crc32(),base64_encode(),base64_decode(),
Predefined Class [stdClass{}]
reverse a string w/o using lib fns.,
headers();
header('WWW-Authenticate:áNegotiate');
header('WWW-Authenticate:áNTLM',áfalse);
header('WWW-Authenticate:áBasicárealm="MyáRealm"');
header('HTTP/1.0á401áUnauthorized');
header("Location:áhttp://www.example.com/");
header("Cache-Control:áno-cache,ámust-revalidate");á//áHTTP/1.1
header("Expires:áMon,á26áJulá1997á05:00:00áGMT");á//áDateáinátheápast
header('Content-type:áapplication/pdf');
header('Content-Disposition:áattachment;áfilename="downloaded.pdf"');
curl():
$ch = curl_init("http://www.example.com/");
$fp = fopen("example_homepage.txt", "w");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
fclose($fp);
$ch = curl_init("http://www.example.com/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$page = curl_exec($ch);
curl_close($ch);
----
HTML
----
cellpadding & cellspacing
|
Return to Kesavan Muthuvel's home page. Please send comments on these web pages to hi@kesavan.info (or) Feedback here
CopyLeft |
|