Browsing articles in "PHP"
Apr
26

Simple XML

By admin  //  PHP  //  No Comments

PHP5 has come up lot of improvement when it comes to XML parsing as compared to parsing XML in PHP4. PHP5 has come up with a new function called SimpleXML for parsing XML files. This article will guide the PHP programmers on how to use the SimpleXML function in PHP5.

Advantages of SimpleXML

* You can now directly jump to content by providing the tag name
* Internally creates an Associative Arrays for Attributes so you can directly access the attributes by specifying the attribute name as key

Limitation of SimpleXML

* It cannot process XML document with version 1.0+ so it is necessary that the xml document should have version ‘1.0′.

For more information please visist
http://www.permadi.com/blog/2010/02/parsing-xml-in-php-using-simplexml/

Apr
12

Disable or Enable WordPress Plugins using Database

By admin  //  PHP  //  No Comments

If you want to Disable or Enable All WordPress Plugins using the Database this is simple. Open PHPmyAdmin and write SQL.

SELECT * FROM wp_options WHERE option_name = ‘active_plugins’;

A single record with active_plugin name will come, click edit then you will see below style code…. empty code and click go…

a:31:{i:0;s:13:”AddMySite.php”;i:1;s:19:”akismet/akismet.php”;i:2;s:23:”all_in_one_seo_pack.php”;i:3;s:16:”authenticate.php”;}

Or you could just use below SQL to empty active_plugins

UPDATE wp_options SET option_value = ” WHERE option_name = ‘active_plugins’;

For More information you can vist perishablepress.com

Mar
25

Delete WP post revesions

By admin  //  PHP  //  No Comments

Delete WP post revesions

  • Step-1:Login to your phpmyadmin and select your WordPress database.
  • Step-2:Click on the sql button to open the sql command window.
  • Step-3:Run this query.

DELETE FROM wp_posts WHERE post_type = “revision”;

It’s Done.Now you have removed unnessary space on your database by deleting unnecessary post revisions. This way you can minimize database size and improve performance.

Second way is to use delete-revision plugin
delete-revision

Third way is to update wp-config.php
Add this line of code before

?>

define(‘WP_POST_REVESIONS’,false);

Mar
16

Senior PHP Developer Job

By admin  //  PHP  //  No Comments

I come to know a post of senior php developer job, so I am sharing for programmers to check their self where r they standing in their php devlopment career.

Skills

  • Senior-level PHP/LAMP developer with 5+ years experience.
  • Extensive OOD / OOP experience.
  • Experience working in an XP environment required; other agile methodologies a plus.
  • Knowledge of and experience applying design patterns and implementing industry best practices required.
  • Strong SQL development and design skills.
  • Extensive experience working with large MySQL databases and complicated structures (MERGE tables, replication, etc)
  • Knowledge and experience working with PHPUnit; Trac and Subversion a plus.
  • Ability to write and consume web services and REST services.
  • Practical knowledge of Amazon EC2 a plus.
  • Excellent written and verbal communication skills. Ability to propose, advocate and critique design alternatives to determine solutions.

Job Duties

  • PHP programming. Developer will code, debug, and unit test systems per requirements and technical design.
  • DB Design and Development. Developer will be expected to code, update, debug and optimize SQL. In the case of new or existing relational databases new hire will be expected to lead the data design and produce enterprise-level data models.
  • Review and analyze requirements / write estimates. Developer will review requirements and design documents to produce estimates and task lists based on those requirements.
  • Support, refactor and enhance an existing production system.

Work Environment

  • We run a virtual office. The new hire will be expected to work remotely. As a result, the appropriate candidate will be highly self-motivated. The best candidate understands and is comfortable knowing that they will be evaluated strictly on results they produce.
  • Must have a reliable high-speed broadband internet connection.
  • Must provide your own computer, but a virtual development environment is provided.

Location:

US candidates only.

Visit site

Mar
16

GetSimple PHP Simplest CMS

By admin  //  PHP  //  No Comments

Hello, Today I will introduce a new PHP based CMS. It’s “GETSIMPLE”.The Simplest Content Management System EVER introduce in PHP history. The most important aspect of “GETSIMPLE” is it use XML for storing data rather than MYSQL and obviously it’s open source. It’s user interface(UI) is very simple and better in performance if compare with other. I recommend you should explore more about “GETSIMPLE”

Visit getsimple
Download getsimple