Recent Articles
Jun 30, 2009 | No Comments

The cyberspace is large and meliorate than what a plain application allows. Webbots, Spiders, and Screen Scrapers is for programmers and people who poverty to verify flooded nonnegative of the vast resources acquirable on the Web. There’s no think to permit browsers bounds your online experience-especially when you crapper easily automate online tasks to meet your individualist needs. Learn how to indite webbots and spiders that do every this and more: - Programmatically download whole websites - Effectively parse accumulation from scheme pages - Manage cookies - Decode encrypted files - Automate modify submissions - Send and obtain telecommunicate - Send SMS alerts to your radiophone sound - Unlock password-protected websites - Automatically effort in online auctions - Exchange accumulation with protocol and NNTP servers Sample projects using accepted cipher libraries fortify these newborn skills. You’ll see how to create your possess webbots and spiders that road online prices, aggregative assorted accumulation sources into a azygos scheme page, and deposit the online accumulation you meet can’t springy without. You’ll see exclusive aggregation from an old webbot developer on how and when to indite stealthy webbots that simulate manlike behavior, tips for nonindustrial fault-tolerant designs, and different methods for actuation and planning webbots. You’ll also intend advice on how to indite webbots and spiders that attitude website someone concept rights, nonnegative techniques for shielding websites from discarded robots. As a bonus, meet the author’s website to effort your webbots on distribution direct pages, and to download the scripts and cipher libraries utilised in the book. Some tasks are meet likewise tedious-or likewise important!- to yield to humans. Once you’ve automatic your online life, you’ll never permit a application bounds the artefact you ingest the cyberspace again. Download
Read the story »
Jun 20, 2009 | No Comments

Convert PHP scheme scripts into Windows interface exe.
Read the story »
Jun 14, 2009 | No Comments

As a PHP developer, there are destined problems you’re nearly secure to face. Generating charts and graphs, converting HTML documents to PDF format—PHP is armored to appendage every of these, but... [[ This is a noesis unofficial only. Visit my website for flooded links, another content, and more! ]]
Read the story »
Jun 2, 2009 | No Comments

In this terminal broadcast in our program saint clarinettist ties it every unitedly and shows you how to place the ...
Read the story »
Jun 2, 2009 | No Comments

PHP has gained a mass among non-technical scheme designers who requirement to add mutual aspects to their sites. Offering a upgrade acquisition curve, PHP is an reachable still coercive module for creating impulsive scheme pages. As its popularity has grown, PHP's base feature ordered has embellish progressively more sophisticated. Now PHP 5 boasts modern features--such as newborn object-oriented capabilities
Read the story »
May 28, 2009 | No Comments

Publisher: Wrox (November 26, 2004)Language: EnglishISBN-10: 0764572822ISBN-13: 978-0764572821With the promulgation of PHP 5 and the Zend Engine 2, PHP eventually graduates from it early life as a... [[ This is a noesis unofficial only. Visit my website for flooded links, another content, and more! ]]
Read the story »
May 28, 2009 | No Comments

This is something I constantly wager on the PHP Freaks forums , and I dead dislike it. It's the disreputable or die() statement. $result = mysql_query('SELECT foo FROM bar', $db) or die('Query failed: ' . mysql_error($db)); I wager it every the time, and I wager grouping informing another grouping to do that every the time. It's stark only intense training and it's happening that grouping move to see this. When I play grouping with it they commonly feature something along the lines of "oh, but it's meet for debugging purposes". Okay, so I separate to place reflexion and var_dump() statements in my cipher for debugging as well. However, this is not the same. It's quite manifest that you wouldn't poverty an clothing var_dump'ed to the concealment in the test application, but you sure do poverty whatever variety of nonachievement direction for when e.g. database queries fail. The or die() gimmick is a rattling slummy pick for individual reasons: It's not a rattling pleasant artefact to inform the individual with an nonachievement message. Using for happening the mysql_error() call with it, as some grouping do, exposes aggregation that should never intend creation in a creation surround (see: PHP Security ) You cannot grownup the nonachievement in some way. You cannot index the error. You cannot curb whether it should be creation to the concealment or not. It's alright to do that in a utilization environment, but sure not in a creation environment. It prevents you from doing some variety of cleanup. It meet ends the playscript abruptly. So if your lowercase or die() gimmick is meet for debugging purposes, how are you feat to appendage possibleness errors after you've deployed your application? Fortunately, PHP does actually allow a duty that allows you to improve PHP errors on runtime: trigger_error() This duty allows you to improve errors of identify E_USER_NOTICE, E_USER_WARNING and E_USER_ERROR. These bear meet same their non-USER counterparts, i.e. errors of identify E_USER_ERROR are mortal and halts enforcement patch the another digit doesn't. If you are utilised to doing the or die() it's also rattling cushy to implement: $result = mysql_query('SELECT foo FROM bar', $db) or trigger_error('Query failed: ' . mysql_error($db), E_USER_ERROR); Syntactically this is rattling such same the preceding cipher snippet, but such better. Because errors of these types bear same errors PHP would ordinarily attain you crapper also ingest every the facilities PHP has for nonachievement direction . You crapper compel a bespoken nonachievement trainer so you crapper pass pleasant messages to your user, and you crapper index the errors to a enter . Finally you crapper alter creation of errors in a creation environment. Another choice is to ingest exceptions . Example: if (!$result = mysql_query('SELECT foo FROM bar', $db)) { throw new Exception('You fail: ' . mysql_error($db)); } Personally, I favour exceptions because they're easily catchable using try-catch blocks, which makes it pretty cushy to mortify if something unexpected, or kinda an exception, something that doesn't bear as expected, occurs. As an additional incentive you you module intend a arrange analyse which aids in debugging. A enthusiastic warning of omission training could be database transactions using PDO ( MySQLi supports it as substantially if you favour that). When you ordinarily separate a ask on a database computer it module be sworn instantaneously. When you move a dealings changes won't be sworn until you explicitly feature so. This allows you to offence if you wish. We strength hit a falsehood same this: +---------+------------+-----------+-------+ | user_id | first_name | last_name | assets | +---------+------------+-----------+-------+ | 1 | justice | Egeberg | 500 | | 2 | Evangelist | Doe | 350 | +---------+------------+-----------+-------+ We poverty to designate 120 from justice to John. This involves digit operations: 1) Removing assets from Daniel, and 2) Adding assets to John. We requirement both or hour of those dealings to closing successfully. Executing meet digit of them is not an unexceptionable scenario. Here is our designate script: $db = new PDO('mysql:host=localhost;dbname=test', 'user', 'password'); $transferAmount = 120; $fromUserId = 1; $toUserId = 2; try { $db->beginTransaction(); $stmt = $db->prepare('UPDATE users SET funds = funds + :amount WHERE user_id = :user_id'); // remove funds from sender $stmt->execute(array('amount' => $transferAmount * -1, 'user_id' => $fromUserId)); // add funds to recipient $stmt->execute(array('amount' => $transferAmount, 'user_id' => $toUserId)); $db->commit(); // we will only get to this if both the above queries executed successfully } catch (PDOException $e) { $db->rollback(); // damn... well, at least we can roll back echo 'Sorry, but we were unable to transfer the funds. Please contact customer support if the problem persists.'; // log this incident somehow. further info is available using $e->getMessage() } Finally meet a hurried analyse that we did in fact designate the money: +---------+------------+-----------+-------+ | user_id | first_name | last_name | assets | +---------+------------+-----------+-------+ | 1 | justice | Egeberg | 380 | | 2 | Evangelist | Doe | 470 | +---------+------------+-----------+-------+ Yup. Everything's good! In this housing our beatific someone or die() is only not an option. If the prototypal evidence ran fine, but the ordinal unsuccessful I would hit meet forfeited money on nothing, and because the technologist was likewise lazy to compel actual nonachievement direction nobody would be healthy to amount discover what happened, and the housing couldn't be documented. I sure would not revalue that... People requirement to kibosh that or die() nonsense, and modify more importantly, grouping requirement to kibosh doctrine another grouping their possess intense practice. Calling die() when something happens is not an unexceptionable artefact of direction the situation.
Read the story »
May 24, 2009 | No Comments

Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition (Beginning: From Novice to Professional) Publisher: Apress | ISBN: 1590598644 | edition 2008 | PDF | 707 pages | 11,9 mbBeginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition covers every travel of the organisation and antiquity impact participating in
Read the story »
May 24, 2009 | No Comments

Pro PHP: Patterns, Frameworks, Testing and solon Publisher: Apress | ISBN: 1590598199 | edition 2008 | PDF | 340 pages | 5,82 mbTaking tending to pore solely on those topics that module hit the most effect on old PHP developers, Pro PHP is cursive for readers hunt to verify their discernment of both PHP and good code development
Read the story »
May 23, 2009 | No Comments

MySQL/PHP Database Applications, 2nd Edition MySQL/PHP Database Applications, 2nd Edition Brad Bulger, diplomatist Greenspan, king Wall ISBN: 978-0-7645-4963-2 Paperback 808 pages Oct 2003 Description : * Demonstrates Web covering utilization by presenting decade real, ready-to-use examples * Samples move with a ultimate surmisal aggregation and modify with a fully-functional e-commerce place with a shopping cart * New features allow both MySQL 4.1 and PHP 4.2 * Latest edition contains newborn applications including index psychotherapy and send chase * CD-ROM includes every the cipher and examples applications from the aggregation in constituent to MySQL, PHP, Apache, PHP classes, libraries, utilities, and another tools Code: http://yourfileplace.com/files/142974885/john_20wiley_20__20sons_20-_20mysql_php_20database_20applications__20second_20edition.pdf Enjoy ~ For more Evangelist Wiley Publications, Check beneath : Code: http://www.warez-bb.org/viewtopic.php?t=1576169&highlight=
Read the story »
« Older Entries