Perl, PHP and mySQL

remove all lines from the file d.dat:

perl -p -i.bak -e ’s#^\*X-something.*\n$##g’ d.dat
perl -p -n -i.bak -e ’s/^\*X-pol.*\n$//g’ file.in
perl -p -n -i.bak -e ’s/\r\n/\n/’ file.in
awk ‘{print $3}’ $filename


installing a new module:

– perl Makefile.PL or perl Makefile.PL PREFIX=/my/perl_directory
make
make test
make install

– perl -MCPAN -eshell
> install XML::LibXML

– perl -e ‘use XML::LibXML; print $XML::LibXML::VERSION, “\n”;’




list of common TCP/IP ports:

HTTP: 80
HTTPS: 443
FTP: 20 and 21
Telnet: 23
PING: 7
DNS: 53
SSH: 22 Transfer (Secure Shell)

Email Protocols
SMTP: 25
POP3: 110
IMAP: 220
IDENT: 113

66/tcp Oracle SQL*NET


Crontab Commands

export EDITOR=vi ;to specify a editor to open crontab file.
crontab -e Edit your crontab file, or create one if it doesn’t already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.)
Crontab syntax :

A crontab file has five fields for specifying day , date and time followed by the command to be run at that interval.

| | | | | command to be executed
| | | | +—– day of week (0 – 6) (Sunday=0)
| | | +——- month (1 – 12)
| | +——— day of month (1 – 31)
| +———– hour (0 – 23)
+————- min (0 – 59)

Auswertung von Logdateien eins HTTP Servers: Webalizer analysis .

Microsoft FrontPage
Open Directory FrontPage Category
Microsoft FrontPage

PHP
HotScripts.com
Open Directory PHP Section

PHP.net

Perl for Unix / Linux
HotScripts.com
Open Directory Perl Section
Perl.com

Perl for Windows
Active State Perl
Web Developers Virtual Library
Open Directory Perl for Windows Section




Active Server Pages
HotScripts.com
Open Directory ASP Category
ASP Free
4 Guys from Rolla
Microsoft ASP Tutorial
Microsoft ASP FAQs

Free Scripts
This section is for sites which contain free script downloads. Please note that many of the sites ilisted above also provide free scripts for downloading and the Open Directory sections also have links to sites with free scripts.
HotScripts.com

ResourceIndex CGI (Perl) Scripts
ResourceIndex PHP Scripts

Split an array

@array = ( ‘a’, ‘b’, ‘c’, ‘d’, ‘e’ );
@s = splice @array, 1, 2;
@s will contain ( ‘b’, ‘c’ ) and @array will contain ( ‘a’, ‘d’, ‘e’ ).

Post your comment

*

code

 

 

See more website here...

  • Odlinks
  • Farsi-News
  • Advertise Here