How to Install PECL Library in shared server?

Most of us don’t have installation access in all LAMP based shared server.
In this Open source world you never know which function and which code you have to use.
Recently I have encountered one php function which was really important for me to post something from one server to another.
That was  http_post_fields() which is available  in  pecl_http php extension.
pecl_http php extension is used to provide a convenient and powerful set of functionality for most of PHP’s applications, like HTTP urls, dates, redirects, headers and messages etc.
After spending so many hours I figured out how to install and make it work.
I would be happy if you can utilize my hard work and install your own without any paid help!

These are the Steps
1. Download directly in you server for example html folder or wherever you want to install.

wget http://pecl.php.net/get/pecl_http-1.6.1.tgz

2.  Uncompress the files using following commands

tar –xzvf pecl_http-1.6.1.tgz

cd pecl_http-*

Note : If there is one more directory after untar please remove that.

3.  Compile and install using these commands (Just run one after another)

A.  phpize

B.  ./configure

C.  make

D.  make install

4.  After completing step 3 add following line in your PHP.INI file.
Now a day’s giving php.ini access is fashion!

extension=http.so

5. Add newly installed pecl_http php extension to php.ini file. Its important to add correct path, if you are installing from root this step is not required.

extension_dir=/home/this_is_your_server_path/html/pecl_http-1.6.1/modules

Thats it!

Share

How to disable all wordpress plugins?

Sometimes you have to disable wordpress plugins all at once and most wordpress webmaster don’t like going wordpress plugin section and
Disable manually one by one, this looks very boring and annoying.
Here I have real quick peaceful solution!
1. Open you wordpress database in PhpMyAdmin.
2. Open SQL query panel/popup window.
3. Run this command

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

And it’s done!!
This query will not remove any plugin from server. You can again reactivate your wordpress plugins manually from blog control panel.
You can use this query to make your wordpress blog automated.

Share

How to Get the Page URL with php code?

Every php coder ask questions to get CURRENT PAGE URL with PHP, it is not as straightforward in raw php coding as one may think to get the current url to use it inside your application. Here is a code which you can use to get url easily.


function CPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}

Share

Where to Download PHP eBooks?

CakePHP.Application.Development

Publishing:Packt Publishing Birmingham-Mumbai

Authors:Ahsanul Bari, Anupom Syam Step-by-step introduction to rapid web development using the open-source MVC CakePHP framework

Download link

Zend-PHP.Certification.Study.Guide

Publisher:Zend Technologies

Authors:Stuart Herbert, Daniel Kushner, George Schlossnagle, Chris Shiflett, Björn Schotte The Zend PHP Certification Study Guide covers every topic that is part

of the exam. It was developed by some of the very same authors who designed the exam’s

questions and was thoroughly reviewed to ensure that it provides every bit of information required to cover each subject appropriately.
Download link

Wicked.Cool.PHP

Publisher:No Strach

Authors:William Steinmetz, Brian Ward Wicked Cool PHP contains a wide variety of scripts to process credit

cards, check the validity of email  addresses, template HTML, and serve dynamic images and text. The 76

easily implemented scripts will also teach you how to download and you will now
Download link

The.Definitive.Guide.to.symfony

Publisher: Apress

Authors:Francois Zaninotto,Fabien Potencier For this book, you need a basic understanding of PHP 5 and

object-oriented programming. Of course, having already developed web applications in PHP before reading

this book is a plus, for you will see this book as a collection of answers to the questions you regularly ask yourself
Download Link


TextPattern.Soluction-PHP.based.Content.Managment.Made.Easy

Publisher: Friendsof an Apress company

Authors: Kevin Potts, Robert Sable, Nathan Smith Each one of this book’s authors has traversed the meandering road of open-source content manage-ment, arriving at Textpattern as a powerful tool to assist in rapid site development. The bookyou are now reading is one that we wanted to have when we first learned to use this system. It is the result of alabor of love for a methodology that has made our lives easier.
Download Link


SitePoint.The.PHP.Antholog.with.code.example

Publisher: Sitepoint

Author: Harry Fuecks The PHP Anthology is, first and foremost, a compilation of the best solutions provided to common PHP questions that turn up at the SitePoint Forums on a regular basis, combined with the experiences and insights I’ve gained from my work with PHP on a daily basis over the last four years
Download Link


Secure.PHP.Development.Building.50.Practical.Applications

Publisher:WileyAuthor:Mohammed J.Kabir

This book is designed for intermediate-level to advanced-level PHP developers who can review the fifty PHP applications

developed for this book and deploy them as is or customize them as needed.
Download Link

Rails.for.PHP.Developers

Publisher:The Pragmatic BookshelfAuthor:Derek DeVries,Mike Naberezny

Rails embraces a general development philosophy that sets a high pri-ority on creating maintainable code. By following some simple guide-

lines, you should be able to keep a uniform pace of development and be free to change your code with little fear of breaking existing functional-ity.

Download Link

Programming.PHP.2nd.Edition

Publisher:O’ReillyAuthor:Rasmus Lerdorf, Peter Macintyre,Kevin Tatroe

Programming PHP, Second Edition is the authoritative guide to PHP 5 and
is filled with the unique knowledge of the creator of PHP (Rasmus
Lerdorf) and other PHP experts. When it comes to creating web sites, the
PHP scripting language is truly a red-hot property. In fact, PHP is
currently used on more than 19 million web sites, surpassing Microsoft’s
ASP .NET technology in popularity. Programmers love its flexibility and
speed; designers love its accessibility and convenience.


Download Link


Pro.PHP.Patterns.Frameworks.Testing.and.More

Publisher:AppresAuthor:Kevin McArthur

This is an advanced book. I have needed to choose carefully which information to include and what readers should be expected to know already. Readers should have a

solid understanding of HTTP and PHP—that is, you should understand how to make web pages and build forms, and you should understand key concepts like the HTTP request cycle.
Download Link

PHP.Eclipse.A.User.Guide

Publisher:PACKET publishingAuthor:Shu-Wai Chow

Take advantage of the leading open source integrated development environment to develop,organize, and debug

your PHP web development projects.
Download Link

PHP.Web.2.0.Mashup.Projects

Publisher:PACKT publishingAuthor:Shu-Wai Chow Create practical mashuos in PHP,grabbing and mixing data from Google

Maps,Flickr,Amazon,YouTube, MSN Search,Yahoo!,Last.fm, and 411Sync.com
Download Link

Share

Installing WordPress mu with Shell Access

1. IF you are windows user download Putty and Log in to your server via SSH protocol.
2. I expect you know how to use Putty!!
3. Download wordpress mu in your server

wget http://mu.wordpress.org/latest.zip

4. Execute the LS command to ensure that the file is there and ready to be unzipped.

LS

5. Extract the archive with unzip latest.zip

unzip latest.zip

6. You’ll need to copy all the files from the “wordpress-mu” folder to the current directory. Because wordpress-mu comes packaged into a “wordpress-mu” folder.

cp -rf ./ wordpress-mu/* ./

This command will recursively copy all of the files and folders from the “wordpress-mu” directory into the current working directory.
Six easy steps will save your time especially if you are using dialup or any show connection.

Share

How to Setup WordPress mu in local system?

As we all know WordPress mu normally require sub domain or domain to install in local system.
Here are steps to configure wordpress mu in local system xampp.

You need to make a sub domain.
Open this  WINDOWSsystem32driversetchosts
Add local.domain (or whatever you'd like to call it) to the localhost line
Example :  127.0.0.1 localhost local.domain
Try this now - http://local.domain/
Done!!
Share

FCKeditor Plugins Repository – 2

Dynamic CSS Plugin

Combo plugin

DHTML-Comment-Boxes/-Info-Boxes

Convert Tab-Stops from Word-Text

StripTags-Plugin

iBrowser

Local Storage for values

Sample OnKeyDown Event Capture Plug-in

Content Max Length for editor

Tagging Plugin

ChangeHeading

Required form elements

ProIframe 1.0 (iFrames support)

Open in new window V2

‘CMS Made Simple’ Content browser/insert link

SpellWord-plugin

OpenWord-plugin

Template Manager v1.0

iManager V 1.1 released

Cross-browser toggle table borders plugin

Plugin: Image Manager from Wei Zhuo

FileIcon

Flash plugin v2

SpanControl (merge/split cells in rows or cols)

HTML CleanUp Plugin

Plugin: Content length toolbar button

CssEditor plug-in for FCKEditor

Share