Wednesday, November 26, 2014

dir php func

This document lists every PHP file function a Web developer will ever need. 
As a Web developer, it's common to have to interact with files on disk: check disk usage, read file permissions, find file modification times, and read file contents. Fortunately PHP comes with a full-fledged set of file functions for just this purpose and this document lists them all, together with usage examples (See Table A). Keep reading, you might discover something new!

Table A


Function
Explanation
Example
filesize($file)
This function returns the size of a file, in bytes. It's useful to calculate how much space a file occupies on disk.
<?php
// get file size in bytes
echo "Size is " . filesize('myfile.html') . " bytes";
?>
 
fileowner($file)
filegroup($file)
 
These functions return the owner and group ID for a file. They're useful to find out who "owns" a particular file.
<?php
// get file owner and group
echo "UID: " . fileowner('myfile.html');
echo "GID: " . filegroup('myfile.html');
?>
 
fileatime($file)
filemtime($file)
 
These functions return a timestamp indicating when a file was last accessed and modified respectively. They're useful to find out if a file has changed since a particular date.
<?php
// get file access/modification times
echo "Last accessed on: " . date("d-m-y", fileatime('myfile.html'));
 
echo "Last modified on: " . date("d-m-y", filemtime('myfile.html'));
?>
 
fileperms($file)
This function returns the permissions of a file. Use it to check if a file is readable, writable or executable.
<?php
// get permissions in octal format
echo "File permissions: " . sprintf('%o', fileperms('myfile.html'));
?>
 
filetype($file)
This function returns the "type" of a file - whether link, directory, character or block device, or regular file. Use this to test the nature of a file before using it in an operation.
<?php
// get file type
echo "File type: " . filetype('myfile.html');
?>
 
stat($file)
This function is a "catch all" function that returns detailed statistics about a file, including its owner and group, size, time of last change, block usage and inode number. Use this function instead of the functions listed previously if you need to obtain complete file statistics in a single call.
<?php
// get file statistics
print_r(stat('myfile.html'));
?>
realpath($file)
This function turns a relative file path into an absolute path. It's useful when you need to find out exactly where a file is located on disk.
<?php
// get absolute path
// returns "/tmp/myfile.html"
echo "File path: " . realpath("./cook/book/../../myfile.html");
?>
 
basename($file)
dirname($path)
 
Given a complete file path, these functions can split it into its constituent parts and separately return the file name and directory name respectively.
<?php
// split directory and file names
// returns "/usr/local/bin"
echo "Directory: " . dirname("/usr/local/bin/php");
 
// returns "php"
echo "File: " . basename("/usr/local/bin/php");
?>
 
file($file)
This function reads the contents of a file into an array. Each element of the array represents one line of the file. This function is useful to read a file's contents into a variable, so that it can be processed further.
<?php
// read file contents
$lines = file('myfile.html');
 
// print line by line
for($x=1; $x<=sizeof($lines); $x++) {
    echo "Line $x: " . $lines[$x-1] . "\n";
}
?>
 

Monday, May 5, 2014

Linkovi 05.05.2014



78

|
|
| SQL Server profiler, SQL query analizer, SQL Enterprise Manager
|

http://books.google.rs/books?id=G2YqBS9CQ0AC&pg=PA100&lpg=PA100&dq=mssql+server+2000+editor&source=bl&ots=ZvV2DiIOfR&sig=pB-TxGDKMva62WqNiB_fsVLO6bY&hl=sr&sa=X&ei=xodmU7asEo_s0gWStYDgDw&ved=0CFAQ6AEwBA#v=onepage&q=mssql%20server%202000%20editor&f=false



77

|
|
|
|

http://technet.microsoft.com/en-us/library/aa175266(v=sql.80).aspx



76

|
|
|
|

http://assist-software.net/blog/writing-fast-and-powerful-javascript-applications



75

|
|
|
|

http://www.cimgrupa.eu/cim/sr/ShowSoftware.aspx?ctrlSoftwareDisplay=40



74

|
|
|
|

http://green-adv.rs/



73

|
|
|
|

http://scx010c06e.blogspot.com/2012/03/advance-web-hacking.html



72

|
|
|
|

http://epodsetnik.wordpress.com/



71

|
|
|
|

http://www.irdevelopers.com/



70

|
|
|
|

https://sites.google.com/site/saldookp/home



69

|
|
|
|

http://www.modern.ie/en-us/virtualization-tools#downloads



68

|
|
|
|

caesium.sourceforge.net/download.html



67

|
|
|
|

http://www.nirsoft.net/utils/installed_drivers_list.html



66

|
|
|
|

http://www.extractpdf.com/



65

|
|
|
|

http://www.fireeye.com/products-and-solutions/web-security.html



64

|
|
|
|

http://puppylinux.org/wikka/HowToChangeAddKeyboardLayout



63

|
|
|
|

http://resources.infosecinstitute.com/dos-attacks-free-dos-attacking-tools/



62

|
|
| http://www.murga-linux.com/puppy/viewtopic.php?t=51702
http://www.murga-linux.com/puppy/viewtopic.php?t=38666&start=15&sid=7c2260b9ee644f1b7ea8be05361aec91
|

http://www.murga-linux.com/puppy/viewtopic.php?t=51702



61

|
|
| http://www.redips.net/php/resize-images/
http://www.redips.net/php/create-thumbnail-image-1/
http://www.redips.net/php/create-thumbnail-image-2/
|

http://www.redips.net/php/write-to-log-file/



60

|
|
|
|

https://www.stanford.edu/dept/its/communications/webservices/wiki/index.php/How_to_create_logs_with_PHP



59

|
|
|
|

http://www.php.net/manual/en/memcache.getstats.php



58

|
|
|
|

http://www.comtradeshop.com/hard_diskovi



57

|
|
|
|

http://www.winwin.rs/racunari-i-komponente/racunarske-komponente/hdd/interni-hard-diskovi/hard-disk-adapter-ide-to-sata-winstars-wt-rc15-bidirectional-convertor-chipse-1171239.html



56

|
|
|
|

http://www.gigatronshop.com/hard_diskovi



55

|
|
|
|

http://sourceforge.net/projects/hjt/



54

|
|
|
|

http://www.loadtime.net/



53

|
|
|
|

http://www.winwin.rs/prizma-barometar-sa-termometrom-higrometrom-i-casovnikom-kw307n-cp1-1159546.html



52

|
|
|
|

http://www.guru99.com/ethical-hacking-tutorials.html



51

|
|
|
|

http://www.myandroidsolutions.com/



50

|
|
|
|

http://phantomjs.org/



49

|
|
| Zaista odlican operativni sistem sa kancelarijskim aplikacijama na srpskom, idealna zamena za skupi Windows i Office
|

http://www.cp6linux.org/



48

|
|
|
|

http://xamarin.com/download



47

|
|
|
|

http://www.pdfescape.com/open/



46

|
|
|
|

http://www.ubuntu-rs.org/preuzimanje-ubuntua/



45

|
|
|
|

http://www.swissdelphicenter.ch/torry/showcode.php?id=1629



44

|
|
|
|

http://forum.codecall.net/topic/48889-c-tutorial-xor-encryption/



43

|
|
|
|

http://forum.notebookreview.com/windows-os-software/689749-guide-how-add-hp-laserjet-1010-1012-1015-printer-windows-8-a.html



42

|
|
|
|

http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/hp-laserjet-1010-printer-driver-for-windows-8-64-bit/td-p/2725723



41

|
|
| http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?sp4ts.oid=5295980&spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState=docId%3Demr_na-c03327635-4%7CdocLocale%3D%7CcalledBy%3D&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
http://support.microsoft.com/kb/2914219/en-us
hotfix
http://support.microsoft.com/kb/2830154
|

http://support.microsoft.com/kb/2830154



40

|
|
|
|

http://stackoverflow.com/questions/12899452/how-to-save-a-memo-or-richedit-as-utf-8-text-file



39

|
|
|
|

http://docwiki.embarcadero.com/CodeExamples/XE5/en/TStringsEncoding_(Delphi)



38

|
|
|
|

http://francois-piette.blogspot.com/



37

|
|
|
|

http://www.belarc.com/free_download.html



36

|
|
|
|

https://github.com/Erls-Corporation/open-webkit-sharp/tree/master/Examples%20%26%20Tests/OpenWebKitSharp%20Example



35

|
|
|
|

https://code.google.com/p/open-webkit-sharp/



34

|
|
|
|

http://www.pdfjoin.com/



33

|
|
|
|

http://stackoverflow.com/questions/16255925/php-resize-images-and-save-to-server



32

|
|
|
|

http://php.net/manual/fr/function.imagecopyresized.php



31

|
|
|
|

http://sharp-coders.com/web-development/upload-resize-and-save-image-in-jpg-using-php



30

|
|
|
|

http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/



29

|
|
|
|

http://camstudio.org/



28

|
|
|
|

http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx



27

|
|
|
|

http://www.supercounters.com/fc.php?id=816478&w=1



26

|
|
|
|

http://www.supercounters.com/stats/816478



25

|
|
|
|

http://www.spamhaus.org/



24

|
|
|
|

http://www.prestigio.rs/news/product_news/Prestigio_MultiPad_7_0_Prime_3G_Designed_For_Dynamic_People



23

|
|
|
|

http://evuln.com/tools/xss-encoder/



22

|
|
|
|

http://homeplug.certapp.net/showcase/product/120/



21

|
|
| http://www.homeplug.org/certified_products
|

http://homeplug.certapp.net/showcase/product/186/



20

|
|
|
|

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.41.4231&rep=rep1&type=pdf



19

|
|
|
|

http://www.autoitscript.com/forum/topic/136095-easy-plugin-compiler-using-tcc/



18

|
|
|
|

http://www.microsoft.com/security/scanner/en-us/default.aspx



17

|
|
| http://www.online-tech-tips.com/computer-tips/hide-file-in-picture/
http://malwaretips.com/threads/tutorial-how-to-hide-exe-files-into-jpg.7432/
|




16

|
|
|
|

http://www.ntwind.com/software/hstart.html



15

|
|
|
|

http://www.nirsoft.net/utils/http_network_sniffer.html



14

|
|
|
|

http://www.nirsoft.net/utils/web_site_sniffer.html



13

|
|
|
|

http://resources.infosecinstitute.com/hacking-autoupdate-evilgrade/



12

|
|
|
|

http://www.securelist.com/en/blog/208214122/Brazilian_bankers_gone_wild_now_using_malicious_Office_files



11

|
|
|
|

https://code.google.com/p/slowhttptest/wiki/InstallationAndUsage



10

|
|
|
|

http://ha.ckers.org/slowloris



9

|
|
|
|

http://www.tecmint.com/apache-security-tips/#comment-133660



8

|
|
|
|

https://www.dan.me.uk/tornodes



7

|
|
|
|

https://www.dan.me.uk/torlist/



6

|
|
|
|

http://wiki.mikrotik.com/wiki/How_to_Detect_and_Block_TOR_Browser_traffic



5

|
|
|
|

hackademix.net/2007/09/26/cross-browser-proxy-unmasking



4

|
|
|
|

http://ha.ckers.org/blog/20070926/de-anonymizing-tor-and-detecting-proxies/



3

|
|
|
|

http://www.backbox.org/



2

|
|
|
|

https://www.pentester.iz.rs/blog/tag/apache2-dos-protection.html



1

|
|
|
|

http://friziderr.wordpress.com