Pramod T P

Search
Skip to content
  • Home
  • PHP
  • WordPress
  • Linux
  • Magento
  • My SQL
  • Profile
  • comments

Daily Archives: May 11, 2012

PHP

filesize

May 11, 2012 Pramod T P

It returns  file size

Example

<?php

echo filesize(“test.txt”);

?>

Output

31

fileFunctionsPHP
PHP

fileperms

May 11, 2012 Pramod T P

It returns  file permissions

Example

<?php

echo fileperms(“test.txt”);

?>

Output

33279

fileFunctionsPHP
PHP

fileowner

May 11, 2012 Pramod T P

It returns  file owner

Example

<?php

echo fileowner(“test.txt”);

?>

fileFunctionsPHP
PHP

filemtime

May 11, 2012 Pramod T P

It returns file modification time

Example

<?php

echo date(“D M Y h i s”,filemtime(“test.txt”));

?>

Output

Fri May 2007 03 15 53

fileFunctionsPHP
PHP

fileinode

May 11, 2012 Pramod T P

It returns file inode

Example

<?php

echo fileinode(“test.txt”);

?>

Output

673771

fileFunctionsPHP
PHP

filegroup

May 11, 2012 Pramod T P

It returns file group

Example

<?php

echo filegroup(“test.txt”);

?>

Output

1000

fileFunctionsPHP
PHP

filectime

May 11, 2012 Pramod T P

It returns inode change time of file

Example

<?php

echo date(“D m Y h i s”,filectime(“test.txt”));

?>

Output

Fri 05 2007 03 15 53

fileFunctionsPHP
PHP

fileatime

May 11, 2012 Pramod T P

It returns last access time of file

Example

<?php

echo date(“D m Y”,fileatime(“test.txt”));

?>

Output

Fri 05 2007

fileFunctionsPHP
PHP

file

May 11, 2012 Pramod T P

It reads entire file into an array

Example

<?php

echo “<pre>”;

print_r(file(“test.txt”));

?>


Output

Array
(
[0] => phpcodez
)

fileFunctionsPHP
PHP

file_put_contents

May 11, 2012 Pramod T P

It writes a string to a file

Example

<?php

file_put_contents(“test.txt”,”phpcodez”);

?>

fileFunctionsPHP

Posts navigation

← Previous 1 2 3 4 Next →

Zend | Magento Certified PHP | eCommerce Architect

For Latest Updates
Visit phpcodez.com

Categories

Recent Posts

  • Regular expression
  • preg_match
  • Redirect root domain to a subdomain .htaccess
  • Redirect root domain to a subfolder .htaccess
  • Force SSL htaccess
May 2012
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Apr   Jun »

Recent Comments

togel online's avatartogel online on How to terminate the current s…
business funding's avatarbusiness funding on compare two strings – ja…
unsecured loans uk's avatarunsecured loans uk on Function to add an element int…
treating back pain's avatartreating back pain on Submit HTML form to pop up pag…
Pura Cleanse's avatarPura Cleanse on Add the block "Based on y…
  • RSS - Posts
Blog at WordPress.com.
Pramod T P
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Pramod T P
    • Already have a WordPress.com account? Log in now.
    • Pramod T P
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...