PHP (Hypertext Preprocessor) Info. |
|
|||
|
|
![]() |
|||
![]() |
Zend PHP, Change the Way Web Applications are Built and Deployed (118) / PHP (Hypertext Preprocessor) Info.Businesses utilizing PHP know Zend as the place to go for PHP expertise and sound technology solutions. Zend delivers the premier web application platform products and services for PHP applications. Zend products are focused on PHP, which has taken the market by storm. PHP, according to NetCraft, has surpassed ASP, making it the most popular web scripting language and the Zend Engine is being utilized on over 15 million websites today.$__src_array[$file] = @file ($file); if (!$__src_array[$file]) return; if ($line - $line_offset 1) $start = 1; $start = $line - $line_offset; if ($line + $line_offset count ($__src_array[$file])) $end = count ($__src_array[$file]); $end = $line + $line_offset; print table cellpadding=1 cellspacing=0 border=0 bgcolor=#808080 width=80% tr td ; print table cellpadding=2 cellspacing=0 border=0 bgcolor=white width=100% ; download php for ($i = $start; $i = $end; $i++) { $str = @highlight_string ( . $__src_array[$file][$i-1] . , TRUE); $pos1 = strpos ($str, ); $pos2 = strrpos ($str, ); $str = substr ($str, 0, $pos1) . substr ($str, $pos1+5, $pos2-($pos1+5)) . substr ($str, $pos2+5); ($i == $line) $bgcolor = bgcolor=#ffccaa : $bgcolor = ; print tr td bgcolor=#d0d0d0 width=15 align=right code $i /code /td developer php td $bgcolor $str /td /tr ; print
tr bgcolor=#c00000 td colspan=2 nowrap
font color=#ffffaa code $type:
$msg /code /font /td /tr
/table /td /tr /table code font
color=gray File:
$file /font /code p ; Usage
Example #!/php/php -q /* package_exe.php Copyright (C) 2002
by Mukunda Modell url: http://www.20after4.net email:
mukunda@20after4.net You are free to use this script however
you see fit, however, you must keep this notice intact and you
must agree to the following disclaimer: Disclaimer: this script
is provided as is and without any warrenty, not even the
implied warrenties of merchantability or
fitness for a particular purpose. I explicitly disclaim responsibility for this script including any damages that might result from your use or misuse of the script. Usage: create a new file and paste this source code into it. Then make the file executable and run the program from the linux shell: /path/to/this/script.php /path/to/exe /path/to/archive exe is an executable file that you want to package. php xml archive is the name of a tar file that will be created. once your archive is created you can copy the tar file to another machine and execute a command similar to this one to extract the archive: cd / tar -xvkf /path/to/archive.tar (note: the -xvkf is important: the k prevents tar from overwriting and files that already exist) */ if (empty( $argv [ 1 ]) || empty( $argv [ 2 ])) { echo Usage:n----------npackage_exe executableFile archiveFilen----------nThe result is a tar archiveFile containing ; file php echo executableFilenand the sharedlibraries that it needs (according to ldd)nn ; } else $list = shell_exec ( ldd $argv[1] ); $arr = explode ( = , $list ); $files = $argv [ 1 ]; Echo Finding shared library dependencies for $filesn------------------------------------------------n ; for ( $i = 0 ; $i count ( $arr ); $i ++) { $lib = explode ( ( , $arr [ $i + 1 ]); php upgrading $lib = trim ( $lib [ 0 ]); echo $lib .
n ; $files = $files . . $lib ; }
passthru ( tar -cvhf $argv[2]
$files ); Usage Example php function assignFromArray ( $array, $prepend =
, $append = ) { foreach ( $array as
$key = $value ) { global ${ $prepend . $key . $append }; ${
$prepend . $key . $append } = $array [ $key ]; } }
Usage Example /** class.cacher.php -- Class used to cache a
variable in serialized form. Written by Serge Stepanov
(serge_AT_gfxcafe.com). Feel free to email me with questions.
If you find this useful, would be great to hear from you.
version 1.0 - Changes: - First release. Notes: - Get() method
will only use the first occurrence, after which the loop will
be broken. Example:
include( class.cacher.php );
$cache = new Cacher; // Get var if not 60 seconds old $variable = $cache- Get( variable_with_id , 60); if (!$variable) { // Cache file expired or is inexistant // Do something to get new data $cache- Set( variable_with_id , $newdata); $variable = $newdata; } echo $variable; **/ class Cacher { var $cacheDir = /tmp/ ; // Where things are cached to (must have trailing slash!) var $defaultCacheLife = 3600 ; // How long to cache something for in seconds, default 1hr ajax php Set($varId, $varValue) -- Creates a file named cache.VARID.TIMESTAMP and fills it with the serialized value from $varValue. If a cache file with the same varId exists, Delete() will remove it. **/ function Set ( $varId, $varValue ) { $this - Delete ( $varId ); // Clean up old caches with same varId $fileHandler = fopen ( $this - cacheDir . cache. . $varId . . . time (), a ); // Create new file dream foundation php weaver fwrite( $fileHandler, serialize ( $varValue )); // Write serialized data fclose ( $fileHandler ); } Get($varID, $cacheLife) -- Retrives the value inside a cache file specified by $varID if the expiration time (specified by $cacheLife) is not over. If expired, returns FALSE function Get ( $varId, $cacheLife = ) { $cacheLife = (!empty( $cacheLife )) $cacheLife : $this - defaultCacheLife ; // Set default cache life php proxy /* Loop through the directory looking for cache file */ $dirHandler = dir ( $this - cacheDir ); while ( $file = $dirHandler - read ()) { /* Check for cache file with requested varId */ if ( preg_match ( /cache.$varId.[0-9]/ , $file )) { $cacheFileName = explode ( . , $file ); // Cache filename array $cacheFileLife = $cacheFileName [ 2 ]; // Cache file creation time nuke php theme $cacheFile = $this - cacheDir . $file ; // Full location /* Check to see if cache file has expired or not */ if (( time () - $cacheFileLife ) $cacheLife ) { $fileHandler = fopen ( $cacheFile, r ); $varValueResult = fread ( $fileHandler, filesize ( $cacheFile )); return unserialize ( $varValueResult ); // Still good, return unseralized data php security } else { break; // Cache expired, break loop $dirHandler
- close (); return FALSE ; // Return false Delete($varId)
-- Loops through the cache directory and removes any cache
files with the varId specified in $varID function Delete (
$varId ) { unlink ( $this - cacheDir .
$file ); // Delete cache file Usage Example Cache file expired or doesn t exist. Do something to get new result. $cache- Set( var1 , $newresult); $variable = $newresult; echo $variable; Rate This Script 0 - No rating 5 - Excellent 4 - Good 3 - Fair 2 - Needs improvement 1 - Unsatisfactory Search This Category All Categories ***** end contents ***** ***** end holding page ***** BEGIN zend_footer hosting mysql php web php sourcecode and current versions at http :
//sourceforge.net/projects/phpsmartirc PEAR package page : http
: //pear.php.net/Net_SmartIRC/ ChangeLog of the new version (
0.5.5 ) http : //sourceforge.net/project/shownotes.php
group_id=60664 release_id=173425
Usage Example * Please Note: All courses must be purchased at least 24 hours in advance of their scheduled start date. php5 Powered By Zend Platform Contact Us | Terms and Conditions | Privacy Policy php web Zend Support / Store / Zend.com Zend GuardAnnual Subscription Renewal - $995 Zend Platform Please contact your sales person for renewal pricing details. development mysql php web Discontinued Zend Products, including Zend Encoder, Zend Accelerator, ZPS and Zend Small Business Programs - Please check your Pickup Depot for renewal options or contact a sales person for pricing details. index php Zend Core Support ProgramsZend also offers enhanced level of support, including phone-based support, for Zend Core customers. See Zend Core support programs details download php Zend Support for evaluation versionsZend offers free evaluation support for all our software evaluations. You are entitled to unlimited support tickets for a period of 30 days from the submission of the first support ticket. You may also wish to consult our vast knowledge base and user forums. developer php Core Support / Zend Support / Store / Zend.com Zend.com/ Store / Zend Support / Core Support Shopping Cart database php Zend Guard 5.0 beta Zend Core Silver Support Zend Network Silver Support Yearly Subscription - $298(Dual CPU server). Add To Cart Zend Core Silver Support Quantity Discount: Get 10% off starting with your 5th copy. Simply add the product to your shopping cart and update your desired quantity - discount will be calculated automatically. php xml Buy 5 units or more - recieve 10% discount /a Zend Coreis the leading production quality PHP 5 stack - certified, enhanced and supported by Zend. Zend Network is the Maintenance and Support technology which takes care of your PHP environment - insuring that your high-quality, secure and reliable Zend Core you start with stays that way! file php Zend Network offers subscription based enhanced levels of support for Zend Core: Zend Network Silver support, Zend Network Gold Support and Zend Network Platinum Support. php upgrading Zend Network Silver Support1 year subscription, $298 (Dual CPU server). Provides the key capability to give you peace of mind: php forum
Silver level Maintenance provides key security updates, both manually and via the Zend Core Updater. PHP mini level releases (e.g., PHP 5.2.0 to PHP 5.2.1) are provided to insure that your environment is kept current with PHP bug fixes and other updates. nuke php theme PHP security updates are provided for one year after the release of a new version of Zend Core giving you a reliable environment that you can depend on. Silver support also provides you with unlimited Web-based Support Tickets - response within up to 48 hours. Add to Cart Zend Network Gold and Platinum Support The Zend Network also provides the ability to upgrade to premium levels of phone-based Support from normal business hours, up to 24x7 availability. For more information, contact Zend Sales. php security Zend Network Free Support TicketAll users who download Zend Core and register for the Zend Network receive one free web based support ticket to assist with installation related issues only. editor php PHP Maintenance Summary Security Hot Fixes Other FixesLevel Remote Exploit Non-Remote Exploit hosting mysql php web Critical Bugs Other Mini Version Updates Download Priority Maintenance Term Basic None* No N/A Current Release Silver 72 Hours 1 Week Yes 3 1 Year Gold 2 2 Years Platinum 1 2 Years** * Zend will provide manual updates for critical best faith effort. ** Additional years can be negotiated. 4th development edition mysql Support Services SummaryWeb Support php web Phone Support Tickets Response Hours Response 1* Unlimited 48 hours 24 hours Business Hours 6 hours 24x7x365 2 hours * Installation related problems only. development mysql php web Other links Events / Company / Zend.com Zend.com/ Company / Events index php Zend Events Upcoming Events Trade Shows, Conferences and Speeches Recorded Events On Demand Webcasts and Demos Trade Shows, Conferences and Speeches Linux 2007April 19, 2007 - Lisbon, Portugal Together with dri, Zend s partner in Portugal, Zend will join the Linux 2007 in Lisbon. Zeev Suraski, Zend Co-founder, will speek on the future of web applications development. For more information Php . download php PHP Business SeminarApril 26, 2007 - Rotterdam, The Netherlands Zend and Dutch Partner Ibuildings will be hosting a PHP Business Seminar in Rotterdam. The seminar is designed for IT managers, CIOs and Directors of Web Development who specialize in application development, ecommerce and interactive Internet sites. This event will present PHP as a valid and robust technological solution for Enterprises looking for a fast, comprehensive and safe application solution and how with the correct attention to management it is possible to greatly improve performance and availability of web applications. For more information Php . developer php MySQL ConferenceApril 23 26, 2007 - Santa Clara, CA Join Zend Co-founder Andi Gutmans as he speaks on the State of PHP and Zend Product Engineer Bill Karwin as he presents Using MySQL with Zend Framework at the April conference. For more information: Andi Gutmans at MySQL Conference. COMMON 2007 Annual Conference Expo April 29 May 3, 2007 - Anaheim, CA database php At this IBM System i event of the year, experts from around the world deliver education on leading-edge System i technologies IBM (Erwin Earley) and Zend (Ed Kietlinski) will jointly present an all-day workshop that will take a comprehensive look at the essential elements of PHP 5. The workshop will prepare attendees to use tools to create scripts that are secure, efficient and reliable. For more information: Ed Kietlinski at Common. php xml MIX07April 30 May 2, 2007 - Las Vegas, Nevada Join Zend Co-Founder Andi Gutmans at MIX07 in Las Vegas. MIX is Microsoft s conference for Web designers, developers and decision-makers who make their living at the forefront of the consumer Web. Join the conversation with Microsoft and others on how to harness the latest technologies, unlock new revenue opportunities, reduce development costs and improve customer experience. MIX is for cutting-edge Web professionals designing and building next-generation experiences. file php PHP|Tek 2007May 15 18, 2007 - Chicago, IL Zend presence - details still to be announced. ZEND PHP CONFERENCE EXPO October 8 11, 2007 - Burlingame, CA Zend has recently announced that this year s PHP Conference and expo will be held October 8-11 at the Hyatt Regency in Burlingame, California. The Hyatt is minutes away from the San Francisco International Airport and a short BART ride away from San Francisco. php upgrading On Demand Webcasts and Demos Enterprise Enable Your PHP Applications with ZendPlatform 3.0 is Zend s latest release of the world s premier application server for PHP. Led by PHP expert Edward Kietlinski, we showcased how Zend Platform 3.0 improves PHP application performance, manageability, reliability, integration and scalability. This 40 minute demonstration addressed the common business drivers that you expect from enterprise grade PHP applications. php forum View this Zend Webinar and learn how Zend Platform 3.0 helps to make your PHP applications and business enterprise ready. View Webinar Zend Studio Leveraging Your System i Investment Your System i/AS400 is the most reliable computer on the planet and houses your company s most critical data. In this webcast, Ed Kietlinski, Solutions Consultant at Zend, demonstrated the following and much more: flash php
Read more
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| Copyright © 2008 www.smbar.com. | Blog | Sitemap | Advertise | Privacy | Disclaimer | Contact | Links |