To display limited characters from database or from string there is a ready made function available in php it is called – substr ( string string, int start [, int length])
Out put will be – phpmind
Beginner PHP Programmer always searches for easy way to collect Checkbox data from forms.
Here in this post I have used 3-4 lines of easy code to collect data from multi checkboxes. Instead of using several table-fields you can store your comma separated data in on field of the table. This is easy and handy.
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.
2. Uncompress the files using following commands
Note : If there is one more directory after untar please remove that.
3. Compile and install using these commands (Just run one after another)
4. After completing step 3 add following line in your PHP.INI file.
Now a day’s giving php.ini access is fashion!
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.
Thats it!
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; }
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 |
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. |
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 |
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 |
|
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. |
|
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 |
|
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. |
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. |
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 |
|
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. |
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. |
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 |
Basic step by step easy to install Zend Framework video.
Click on links below to download your desired ebook! if you don’t find any book which you are looking for just just drop a mail here, i assure you you will get a copy of that book!!