Ads

PHP: How to Get MAC Address for Current System Using PHP

May 1, 2010 · Leave a Comment
Filed under: Featured, PHP 

Here is the below code in PHP that is used to get MAC address in PHP

<?php

ob_start(); // Turn on output buffering

system('ipconfig /all'); //Execute external program to display output 

$capout=ob_get_contents(); // Capture the output into a variable 

ob_clean(); // Clean the output buffer

$findcurrentsystem = "Physical";

$pmac = strpos($capout, $findcurrentsystem); // Find the position of Physical text 

$mac=substr($capout,($pmac+36),17); // Get Physical Address

echo $mac;

?>

Magento Common problems and solutions for images disappear from website

April 11, 2010 · Leave a Comment
Filed under: Featured, Magento Cart, PHP, Shopping Carts 

If images disappear from the  Magento site check the below

logo_magento

  1. Cache refresh
  2. image path being CASE SENSITIVE
  3. incorrect image path in catalog_product_entity_media_gallery while porting
  4. Make sure you have GD installed fine on your server.,.. if not re-install it ..and also disable open_basedir function for this account.
  5. php_value memory_limit : supports only values in M and not in G you can’t give 1G instead give it as 1024M.

Hope this save lot of time for other Magento users.

Download Free CodeIgniter PDF Books

March 7, 2010 · Leave a Comment
Filed under: CodeIgniter, Featured, php framework 

If you are using Codeigniter for developing PHP applications you noticed the ìindex.phpî part of the URL of your application.

CodeIgniter (CI) is a powerful open-source PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. CodeIgniter is an MVC framework, similar in some ways to the Rails framework for Ruby, and is designed to enable, not overwhelm.

This book explains how to work with CodeIgniter in a clear logical way. It is not a detailed guide to the syntax of CodeIgniter, but makes an ideal complement to the existing online CodeIgniter user guide, helping you grasp the bigger picture and bringing together many ideas to get your application development started as smoothly as possible.

  • Clear, structured tutorial on working with CodeIgniter
  • Careful explanation of the basic concepts of CodeIgniter and its MVC architecture
  • Using CodeIgniter with databases, HTML forms, files, images, sessions, and email
  • Building a dynamic website quickly and easily using CodeIgniter’s prepared code

Buy From Amazon


Code Igniter Framework Overview

More Information download from here http://openpdf.com/ebook/codeigniter-pdf.html

Finally, the good folks at EllisLab released CodeIgniter. After working with and experimenting with all the available. PHP MVC frameworks, CodeIgniter has come … Install and configure CodeIgniter. The first step in any new CodeIgniter project is to download the latest package (1.6.2 as of this writing; see the … it�the rest of the system folder contains CodeIgniter core code, libraries, and other files you shouldn’t mess with. …

File name: 2008_Getting_Started_with_CodeIgniter.pdf
Search: getting started codeigniter

If you are using Codeigniter for developing PHP applications you noticed the �index.php� part of the URL of your application. You can remove it by doing two simple things: 1. Edit the config.php from .system/application/config/ and change the $config['index_page'] like this: $config['index_page ...

File name: how-to-remove-indexphp-from-your-codeigniter-application-url.pdf
Search: remove index codeigniter application

arbitrary commands that can bypass stronger CodeIgniter Security class even if. $config['global_xss_filtering'] = TRUE;. Thus we can execute XSS on …

File name: CodeIgniter%20Global%20XSS%20Filtering%20Bypass%20Vulnerability.pdf
Search: codeigniter global filtering bypass vulnerability
Download CodeIgniter PHP Framework

CodeIgniter PHP Framework

CodeIgniter PHP. Framework. Toby Beresford. toby@tobyberesford.com. Page 2. Content. � Bio. � Benefits. � Why Frameworks. � MVC. � Demo. � Links. Page 3. Toby Bio … Download from. www.codeigniter.com. Page 9. Upload to your server. Page 10. See the welcome screen. Page 11. Create your database. Page 12. Configure CodeIgniter Base. URL. Page 13. Configure Database. Connection. Page 14. Create a controller. Page 15. Add the view. Page 16 …

How to install the APC PHP Cache on Debian (Lenny)

February 12, 2010 · Leave a Comment
Filed under: Featured, PHP, Zend 
The APC cache can significantly improve your PHP script performance, just by installing it, which basically takes 5 minutes! (Plus, it’s actually supported by the core PHP developers and will probably be integrated into PHP6…) Here’s what I did on my Debian Lenny box… First you may want to have a reference benchmark to see if it actually improves: Code:

ab -c5 -n100 http://www.yoursite.com/yourscript.php

Now install the APC package: Code:

aptitude install php-apc

Now, restart apache: Code:

/etc/init.d/apache2 restart
Now, you can run your benchmark again and see the difference! Tada! :)
Follow up: APC comes with a control panel script, that allows you to check cache usage. Here’s how to make it available on your web root (for example):Code:
gunzip /usr/share/doc/php-apc/apc.php.gz
ln -s /usr/share/doc/php-apc/apc.php /var/www/apc.php

Note that you should also have the php-gd package installed in order to get nice charts! ;)

Php Database Question…? « SEY

February 6, 2010 · Leave a Comment
Filed under: PHP 

put this in “addtodatabase.php” // this connects to the database , replace dblocation, username, password and dbname with your own info @ $db = new mysqli('dblocation', 'username', 'password', 'dbname'); if (mysqli_connect_errno())


SEY – http://www.sey7.com/

Mysqli dumper 1 6 – Rapidshare files

February 6, 2010 · Leave a Comment
Filed under: PHP 

Download mysqli dumper 1 6 for free, Free download mysqli dumper 1 6 from rapidshare.

PHP For Freshers..: Best For Interview , PHP4 , PHP5, PHP6 , PHP 4

February 6, 2010 · Leave a Comment
Filed under: PHP 

A new MySQL extension named MySQLi for developers using MySQL 4.1 and later. This new extension includes an object-oriented interface in addition to a traditional interface; as well as support for many of MySQL's new features,


PHP For Freshers.. – http://phpfriend.blogspot.com/

How to install Drupal | docs.ongetc.com

February 6, 2010 · Leave a Comment
Filed under: PHP 

Assuming you will be using mysql/mysqli . This is fresh install and you already create the database and have the mysql login information ready for the install. Installation steps: After download and un-compress the latest version of


docs.ongetc.com – http://docs.ongetc.com/

PHP Report Maker 2.0.0.10 | The Warez Technology

February 6, 2010 · Leave a Comment
Filed under: PHP 

Locale, default date formats. mysqli, etc. (See PHP Settings); Saving and restoring project from Project File; Synchronize project settings with changes in database; Creates virtual directory in IIS automatically; CSS stylesheet


The Warez Technology – http://voxitec.com/

Google SEO Problem with .htaccess

February 6, 2010 · Leave a Comment
Filed under: PHP 

inc/config.php and check the entry for $config['database']['type']. A common issue is having 'mysql' instead of 'mysqli', or having 'mysqli' instead of 'mysql'. If you do not know what needs to be here, contact your host provider.


MyBB Community Forums – All Forums – http://community.mybboard.net/