![]() |
|
Zend PHP, Change the Way Web Applications are Built and Deployed (11) / Credit Guide
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.
if($secim== gecen ) if ($bugun_ay==1) $bugun_ay= 12 ; $bugun_yil=$bugun_yil-1; } else $bugun_ay=$bugun_ay-1; if($secim==1) $bugun_query= $bugun_gun . / . $bugun_ay . / . $bugun_yil ; $query=$query. and t.t_bitis $bugun_query ; //3 aylik icin if($secim==3) if ($bugun_ay =3) // + 12 - 3 yerine +9 yapiliyor ve yildan 1 dusuluyor. $bugun_ay=$bugun_ay+9; $bugun_ay=$bugun_ay-3; //6 ay if($secim==6) card consolidation credit debt
if ($bugun_ay =6) // + 12 - 6 yerine +6 yapiliyor ve yildan 1 dusuluyor. $bugun_ay=$bugun_ay+6; $bugun_ay=$bugun_ay-6; //9 ay if($secim==9) if ($bugun_ay =9) // + 12 - 9 yerine +3 yapiliyor ve yildan 1 dusuluyor. $bugun_ay=$bugun_ay+3; $bugun_ay=$bugun_ay-9; if($secim==12) /*print query ; print $query ;*/ $calistir_query=ODBC_EXEC( $connect, $query ); $toplam=ODBC_RESULT( $calistir_query, toplam ); credit union
if (empty($toplam)) $toplam=0; if ($table== toplam ){ div align= center b print $toplam ; /b /div if ($table== resim ){ $resim_boyu=$toplam*1.5; td valign= bottom div align= center img src= ../../images/nokta.jpg width= 15 height= print $resim_boyu ; /div if ($table== ad ){ div align= center print $prs_ad ; /div merchant credit guide co
//while sonu //function table_olustur sonu table_olustur( toplam ); table_olustur( resim ); table_olustur( ad ); /tr //if sonu td height= 51 div align= center !-- #BeginLibraryItem /Library/alt.lbi -- td height= 36 colspan= 3 div align= center font face= Times New Roman, Times, serif size= 2 Bu Site a href= http://www.bimar.com.tr font color= #000000 b Bimar apply online for credit card
Bilgi Ytlem Hizmetleri A. /b /font /a tarafyndan hazyrlanmyttyr br 1997-2000 BYMAR br a href= mailto:webadmin@bimar.com.tr webadmin@bimar.com.tr /a /font /div !-- #EndLibraryItem -- /div /body /html Usage Example Rate This Script 0 - No rating 5 - Excellent 4 - Good 3 - Fair 2 - Needs improvement 1 - Unsatisfactory by card credit debt debt guide
Add Code Add Code Zend Guard 5.0 Beta Offer HTML Add Code A function for parsing a html. Type: code fragment Added by: carlosjordao Entered: 21/07/2000 Last modified: 08/12/1999 Rating: * * * * (5 votes) Views: 9341 This function just extract the html tags from a string and put them in a array like credit repair
[ IMG ][0][ WIDTH ] = 130 I think this is useful for who wants get some tag properties. For example, I created it to help me developing a bot to search throught a website and it was designed just to get tags information. By now, for getting meta tags is still better using the php functions. Any doubts you can email me at carlosjordao@yahoo.com, but don t worry if I answer you from another address. active credit credit guide
php /* * parseHtml.php * Author: Carlos Costa Jordao
* Email: carlos@radiumsystems.com.br * * My notation of
variables: * i_ = integer, ex: i_count * a_ = array, a_html *
b_ = boolean, * s_ = string * What it does: * - parses a html
string and get the tags * - exceptions: html tags like
br hr /a , etc * - At the end, the array
will look like this: * [ IMG ][0][ SRC ] =
xxx
* [ IMG ][1][ SRC ] = xxx * [ IMG ][1][ ALT ] = xxx * [ A ][0][ HREF ] = xxx */ function parseHtml( $s_str ) { $i_indicatorL = 0; $i_indicatorR = 0; $s_tagOption = ; $i_arrayCounter = 0; $a_html = array(); // Search for a tag in string while( is_int(($i_indicatorL= strpos($s_str, , $i_indicatorR))) ) { // Get everything into tag... $i_indicatorL++; $i_indicatorR = strpos($s_str, , $i_indicatorL); credit score
$s_temp = substr($s_str, $i_indicatorL, ($i_indicatorR-$i_indicatorL) ); $a_tag = explode( , $s_temp ); // Here we get the tag s name list(, $s_tagName, , ) = each($a_tag); $s_tagName = strtoupper($s_tagName); // Well, I am not interesting in br , /font or anything else like that... // So, this is false for tags without options. bad car credit guide loan
$b_boolOptions = is_array(($s_tagOption= each($a_tag))) $s_tagOption[1]; if( $b_boolOptions ) { // Without this, we will mess up the array $i_arrayCounter = (int) count($a_html[$s_tagName]); // get the tag options, like src= htt:// . Here, s_tagTokOption is src and s_tagTokValue is http:// do { $s_tagTokOption = strtoupper( strtok($s_tagOption[1], = )); bad credit loan
$s_tagTokValue = trim(
strtok( = ));
$a_html[$s_tagName][$i_arrayCounter][$s_tagTokOption] =
$s_tagTokValue; } while( $b_boolOptions ); } return $a_html; }
Usage Example // Example: //$str = img
alt= blue asdfas br afasdff A
href= blublublu n ; $str = join(
n , file( index.html ) ); $a_htmlParsed =
array(); $a_htmlParsed = parseHtml( $str ); credit definition derivative
Add Code Add Code Zend Guard 5.0 Beta Offer HTML Add
Code Get Title tag Type: code fragment Added by:
Biseauno Entered: 23/07/2000 Last modified:
08/12/1999 Rating: * * * (3 votes) Views: 7173
It permit you to get the title of a web page. Permet
d obtenir le titre d une page web php
function get_title_tag($chaine){ bad credit mortgage
$fp = fopen ($chaine, r ); while (! feof ($fp)){
$contenu .= fgets ($fp, 1024); if (
stristr($contenu, title )){
break; } if (
eregi( title (.*) /title ,
$contenu, $out)) { return $out[1]; else{ return false;
Usage Example echo
get_title_tag( http://www.zend.com ); you ll have
Zend / Where PHP meets eBusiness Rate This Script the insider guide to credit
php function wrap_text($text, $wrap) { $wrap -= 2;
//wrapped phrase is started and ended by a char
preg_match_all( /bw.{1, $wrap}wb/ ,
$text, $parts); return (
implode( br , $parts[0])); }
Usage Example $phrase = This is a very long
string only with spaces, alphanumerics, it takes over 72
characters on a single line, it should be
wrapped ; business credit card
function sow($string, $insert, $increment) { $insert_len = strlen($insert); $string_len = strlen($string); $string_len_ending = $string_len + intval( $insert_len * ($string_len / $increment)); $i = $increment - 1; while($string_len_ending $i) { $string = substr($string, 0, $i) . $insert . substr($string, $i); banker complete credit guide
Zend Technologies - Code GalleryAdd Slashes to all form data fields Zend Technologies - Code GalleryFormatting data in quadrants of a parent table. php
/*------------------------------------------------------------------------------------------------
File: cls_table_quadrant.inc Purpose: Useful when we have
multiple subtables of data we need formatted in an orderly way.
Provides seven format types. Once you realize that HTML is
nothing but strings you see how easy it is to programmatically
format. All we need to do is create strings
(they can be nested tables, images, links, whatever) and pass them to this class. Author: John B. Damask, President - Damask Solutions; jbdamask@earthlink.net Created: 3.31.00 Requirements: Modified: Copyright 2000 Initiative Foundation ------------------------------------------------------------------------------------------------*/ Class Table_Quadrant { var $classname = Table_Quadrant ; var $tabletype; credit card application
var $tablevars = array(); var $quads = array(); /*------------------------------ set_table_type() sets class type variable to desired type -------------------*/ function set_table_type($type) { if(! eregi( ^[1-6] , $type)) { echo Error: . $type . is not a valid table typen ; exit; } else { $this- tabletype = $type; } } // end function set_table_type() /*--------------------------- get_table_type() returns the class table type ----------------------------------*/ credit guide managing
function get_table_type() { if($this- tabletype) { return $this- tabletype; echo Error: Table type not setn ; } // end function get_table_type() /*---------------------------- format_table_type() creates strings of HTML table cells -------------------------*/ function format_table_type($type) { switch($type) { case 1 : $this- quads = array ( q1 = td valign= top align=left , q2 = td valign= top , credit card offer
q3 = td valign= top , q4 = td valign= top ); break; case 2 : $this- quads = array ( q1 = td COLSPAN= 2 , q2 = , q3 = td , q4 = td ); case 3 : $this- quads = array ( q1 = td ROWSPAN= 2 , q2 = td , q3 = , q4 = td ); case 4 : $this- quads = array ( q1 = td !-- Quadrant 1 -- , q2 = td ROWSPAN= 2 !-- Quadrant 2 -- , merchant credit guide company
/*-------------- get_table_quadrants() returns a string representation of our table ---------*/ function get_table_quadrants($type, $ary, $tablevars= ) { $this- format_table_type($type); $str = sprintf ( !-- Parent Table -- n TABLE ); if( is_array($tablevars)) { for($i=0; $i count($tablevars); $i++) { while(list($k, $v) = each($tablevars[$i])) { bad credit
$str .= sprintf ($k . = . $v . ); $str .= sprintf ( n ); $str .= sprintf ( TR n ); if($ary[ title ]) { $str .= sprintf ( TD colspan=2 n ); $str .= sprintf ( div align=center n ); $str .= sprintf ( H2 . $ary[ title ] . /H2 n ); $str .= sprintf ( /div n ); $str .= sprintf ( /TD /TR n ); $str .= sprintf ($this- quads[ q1 ] . n ); collection collection complete
$str .= sprintf ($ary[ data1 ]); $str .= sprintf ( /TD n ); if($this- quads[ q2 ] != ) { $str .= sprintf ($this- quads[ q2 ]); $str .= sprintf ($ary[ data2 ]); $str .= sprintf ( /TR n ); if($this- quads[ q3 ] != ) { $str .= sprintf ($this- quads[ q3 ]); $str .= sprintf ($ary[ data3 ]); if($this- quads[ q4 ] != ) { $str .= sprintf ($this- quads[ q4 ]); $str .= sprintf ($ary[ data4 ]); credit counseling
$str .= sprintf ( /TABLE n ); return $str; } // end function get_table_quadrants /*---------------------- () prints our table to screen ------------------------------*/ function ($type, $ary, $tablevars= ) { print $this- get_table_quadrants($type, $ary, $tablevars); } // end Class Table_Quadrant Usage Example // sample program to demonstrate how to use cls_table_quadrant.inc complete credit guide higher
// John B. Damask President - Damask Solutions jbdamask@earthlink.net include ( ./cls_table_quadrant.inc ); // Class for formatting complex data $tblquad = New Table_Quadrant; $title = Test Table Quadrant - Type ; $data1 = table border=0 tr td bgcolor=red Quadrant 1 /td /tr /table ; $data2 = a href=mailto:someone@somewhere.com Quadrant 2 /a ; chase credit card
$data3 = table border=0 tr td bgcolor=green Quadrant 3 /td /tr /table ; $data4 = b i Quadrant 4 /i /b ; $tablevars = array(array( width = 500, border = 1)); // There are 7 formatting types so let us print em all for($i=1; $i 8; $i++) { $title = Test Table Quadrant - Type $i ; $ary = array( title = $title, data1 = $data1, data2 = $data2, data3 = $data3, data4 = $data4); complete credit guide hedging
Zend Technologies - Code GalleryAutoLink (Hypertext link URL, EMAIL)Add Code Add Code Zend Guard 5.0 Beta Offer HTML Add
Code AutoLink (Hypertext link URL, EMAIL) Type: code
fragment Added by: oops Entered: 22/09/2000
Last modified: 02/12/2001 Rating: * * * * * (4
votes) Views: 11751 auto linked URL, E-mail address in document
php # auto linked URL, E-mail address in
document bad credit home loan
# Scripted by JoungKyun Kim admin at oops.org # # auto_link ver 5 by 31-JAN-2002 # This function is part of JSBoard at http://jsboard.kldp.org # that is PHP Web Board. # preg_replace - replace regular expression case insensitive in PERL TYPE # http://www.php.net/manual/function.preg-replace.php function auto_link($str) { # don t use target if tail is follow $regex[file] = gz|tgz|tar|gzip|zip|rar|mpeg|mpg|exe|rpm|dep|rm|ram|asf|ace|viv|avi|mid|gif|jpg|png|bmp|eps|mov ; bad credit personal loan
$regex[file] = (.($regex[file]) ) TARGET= _blank ; # define URL ( include korean character set ) $regex[http] = (http|https|ftp|telnet|news|mms)://(([xA1-xFEa-z0-9:_-]+.[xA1-xFEa-z0-9:; #=_~%[] /., +-]+)([.]*[/a-z0-9[]]|=[xA1-xFE]+)) ; # define E-mail address ( include korean character set ) $regex[mail] = ([xA1-xFEa-z0-9_.-]+)@([xA1-xFEa-z0-9_-]+.[xA1-xFEa-z0-9-._-]+[.]*[a-z0-9] [xA1-xFEa-z0-9=]*) ; credit score guide
# If use wrap=hard option in TEXTAREA tag, # connected link tag that devided sevral lines $src[] = / ([^ n]*)n([^ n]+)n([^ n]*) /i ; $tar[] = \1\2\3 ; $src[] = / ([^ n]*)n([^n ]*) /i ; $tar[] = \1\2 ; $src[] = / (A|IMG)[^ ]*(HREF|SRC)[^=]*=[ n]*($regex[http]|mailto:$regex[mail])[^ ]* /i ; $tar[] = 1 2= \3 ; online credit report
# replaceed @ charactor include email form in URL $src[] = /(http|https|ftp|telnet|news|mms)://([^ n@]+)@/i ; $tar[] = \1://\2_HTTPAT_\3 ; # replaced special char and delete target # and protected link when use html link code $src[] = / (quot|gt|lt)/i ; $tar[] = !\1 ; $src[] = / a([^ ]*)href=[ ]*($regex[http])[ ]*[^ ]* /i ; $tar[] = A1HREF= \3_orig://\4 TARGET= _blank ; credit guide
$src[] = /href=[ ]*mailto:($regex[mail])[ ]* /i ; $tar[] = HREF= mailto:\2#-#\3 ; $src[] = / ([^ ]*)(background|codebase|src)[ n]*=[n ]*($regex[http])[ ]*/i ; $tar[] = \1\2= 4_orig://\5 ; # auto linked url and email address that unlinked $src[] = /((SRC|HREF|BASE|GROUND)[ ]*=[ ]*|[^=]|^)($regex[http])/i ; $tar[] = \1 A HREF= 3 TARGET= _blank \3 /a ; $src[] = /($regex[mail])/i ; bad credit debt consolidation
$tar[] = A HREF= mailto:1 \1 /a ; $src[] = / A HREF=[^ ]+ ( A HREF=[^ ]+ )/i ; $tar[] = \1 ; $src[] = / /A /A /i ; $tar[] = /A ; # restored code that replaced for protection $src[] = /!(quot|gt|lt)/i ; $tar[] = \1 ; $src[] = /(http|https|ftp|telnet|news|mms)_orig/i ; $src[] = #-# ; $tar[] = @ ; $src[] = /$regex[file]/i ; # restored @ charactor include Email form in URL credit guide process
$src[] = /_HTTPAT_/ ; # put border value 0 in IMG tag $src[] = / (IMG SRC= [^ ]+ ) /i ; $tar[] = 1 BORDER=0 ; # If not MSIE, disable embed tag if(! ereg( MSIE , $HTTP_SERVER_VARS[HTTP_USER_AGENT]) $src[] = / embed/i ; $tar[] = embed ; } $str = preg_replace($src, $tar, $str); return $str; } Usage Example See the example online credit card application
php /* format_page.php version 1.02 2000/10/08
22:01:00 by operator@superprivate.com
http://dvd.superprivate.com - DeCSS, css-auth,
cyberpatrol4break, cuecat mirror The license for this software
is free, just keep this header in place, ok PHP4/MySQL hosting
$10/ month at http://missoulaweb.com with SSH, telnet 100 megs
of disk Changes: v.1.01 20000930 . added background
property to have table image background (like clear
pixels)
. removed all default row or cell bgcoloring . made it so no bgcolor= will be printed at all if the tablecolor , rowcolor , or tdcolor prop is unset v.1.02 20001008 . added valign property so u can line things up vertically in td cells across a row */ class format_page { // define properties var $tablewidth = 80% ; var $tablebackground; var $tablecolor; var $tablealign = center ; var $border = 0; boston credit first guide
var $cellspacing = 0; var $cellpadding = 8; var $rowcolor; var $tdcolor; var $tdalign = center ; var $tdvalign; var $cellsperrow = 2; var $ ; var $tdstofinish; Define the methods 1st method is the constructor, which has the same name as the class and is called on every instantiation of the class pass in the array of stuff to format and integer how many columns u want it in like: $f- format_page(array( a , b , c ), 7); credit card debt
function format_page($arr, $cols) { $this- = $arr; if(empty($cols)) $cols = $this- cellsperrow; $this- cellsperrow = $cols; // stop if any necessary properties of this class are fubar $err = $this- check_fubar(); if($err) { echo $err; return; } // figure out how many td cells will have to be added in when u run out of things to // format, so your html table isn t broken if u want 4 columns and have 7 things. back credit foreclosure
// if the number of coulmns divides evenly into the number of things you have, there are // 0 td cells to finish. $this- tdstofinish = ( sizeof($this- ) % $this- cellsperrow == 0 0 : $this- cellsperrow - ( sizeof($this- ) % $this- cellsperrow)); } // end constructor method function check_fubar() { if(!$this- || ! is_array($this- ) || credit card processing
! sizeof($this- ) ) return Error: Bad or empty array of things to format. ; if(! is_integer($this- cellsperrow) || $this- cellsperrow 1) return Error: Non-integer, zero or negative columns argument. Try positive integers. ; } function printout() { $arr = $this- ; // just easier to type $ret = table . (empty($this- tablebackground) : background= . $this- tablebackground . ). beat bureau consumer credit
monebaggasse-Zend and IBM Sponsor Wiki for System i PHP Redbook Development ( 12) //www.itjungle. story07.html 5. Announcements There will be many announcements regarding PHP and Zend over the next three months that will interest all who are reading this and many who are not receiving these monthly updates. It is a very exciting time for those on the System i platform wishing to build web applications and we, Zend, look forward to working closer with all of you.
Read more
- Zend Delivers Integrated Development Environment for Professional PHP Developers
- PHP Leader Enters U.S. Market
- Oracle and Zend Partner on Development and Deployment Foundation for PHP-Based Applications
- Zend Unveils PHP 5 -- The Most Advanced Web Application Scripting Language for Enterprise Developmen
- Zend Performance Management Suite Boosts Enterprise PHP Performance Multifold
- Oracle And Zend Announce General Availability Of Zend Core For Oracle
- Zend Technologies Kicks Off PHP Certification Program at O'Reilly Open Source Convention 2004 (
- PHP Roadmap
Zend's success depends on on a successful, source community built around PHP. To help with this Zend has provided leadership, support, development & hosting resources and other support to many open source projects including core PHP, frameworks, tools and community sites. Zend provides thousands of hours and significant financial resources to help the projects on this page. Think of them as Zend's way to stay involved with the community of developers and companies who build solutions using PHP.




