Pramod T P

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

Daily Archives: April 28, 2011

Joomla

Load tinymce editor on client side – Joomla

April 28, 2011 Pramod T P Leave a comment
 <?php
  $editor =& JFactory::getEditor();
  echo $editor->display( 'story', $story , '600', '300', '5', '2' );
 ?>
JoomlaPHP
Joomla

How to get prefix of tables in Joomla site

April 28, 2011 Pramod T P Leave a comment
<?php
 $dVar=new JConfig();
 echo $dVar->dbprefix //jos_
?>
JoomlaPHP
Joomla

How to check whether the user is logged in or not – Joomla

April 28, 2011 Pramod T P Leave a comment
<?php
 $user = & JFactory::getUser();
 if($user_id=$user_id=$user->get('id'))
 	echo "Logged in user"
?>
JoomlaPHP
Joomla

Find out the user id of the logged in user – Joomla

April 28, 2011 Pramod T P Leave a comment
<?php
 $user = & JFactory::getUser();
 echo $user_id=$user_id=$user->get('id');
?>
JoomlaPHP
PHP

How to decode the data – PHP

April 28, 2011 Pramod T P Leave a comment
<?php
  $enData	=base64_encode("First");
  echo base64_decode($enData);//First
?>
PHP
PHP

How to encode the data – PHP

April 28, 2011 Pramod T P Leave a comment
<?php
  echo base64_encode("First");
?>
FunctionsPHP
PHP

How to check whether a file exists or not – PHP

April 28, 2011 Pramod T P Leave a comment
<?php

if(file_exists($filePath))
	echo "Exists"

?>
fileFunctionsPHP
PHP

How to delete a file – PHP

April 28, 2011 Pramod T P Leave a comment
<?php
 unlink("../".$deleteFilePath) or die("could not delete the file");
?>
filePHP
PHP

How to terminate the current script – PHP

April 28, 2011 Pramod T P 1 Comment
<?php
 chmod("../".$image_thumb_path_medium,0777) or die("Could not change permission thumb");
 chmod("../".$image_thumb_path_medium,0777) or exit("Could not change permission thumb");
?>
FunctionsPHP
PHP

Modify the permission of a file/directory – PHP

April 28, 2011 Pramod T P Leave a comment
<?php

chmod("/your_dir/your_file", 0600);
// Read and write for owner, nothing for everybody else

chmod("/your_dir/your_file", 0644);
// Read and write for owner, read for everybody else

chmod("/your_dir/your_file", 0755);
// Everything for owner, read and execute for others

chmod("/your_dir/your_file", 0750);
// Everything for owner, read and execute for owner's group

?>
fileFunctionsPHP

Posts navigation

1 2 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
April 2011
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« Mar   May »

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...