... MySQL from a tarball, be aware that the installation has several parts to it, including unpacking and moving files, creating users and groups, configuring, initialization, permissions, and more. ... ZendServer-CE -php- 5.2.10-4.0.5-linux-glibc23-i386 ./install.sh When prompted, accept the default of /usr/local for the installation path. Installing MySQL If you also need to install MySQL fr...
Ngày tải lên: 07/07/2014, 08:20
... of the original string $a String variable containing the left-hand part of the new string $b String variable containing the right-hand part of the new string How It Works This plug- in first notes ... HTML link and not the actual link itself, which must remain unchanged; the plug- in s main use is for reducing the space that the text of a link takes up on a web page. About the Plug- i...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P21 ppt
... imagejpeg(PIPHP_MakeThumbnail($image, 100) ); Because this plug- in also uses the PIPHP_ImageResize() function, you will need both of these in (or included by) your program file. The Plug- in function PIPHP_MakeThumbnail($image, ... Functions $w Integer representing the image’s current width $h Integer representing the image’s current height $thumbw Integer representing the thumbna...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P23 pptx
... file $filetype Array containing details about the file $mime String containing the image’s type (such as “image/png”) $image GD image object created from $contents How It Works The first thing this plug- in does ... corresponding saving in bandwidth, whereas a higher setting uses more bandwidth but results in better quality. How to Use It To display a file directly to a browser, just...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P25 ppt
... the Plug- in This plug- in takes the URL of a web page, along with a link from within that page, and then returns the link in a form that can be accessed without reference to the calling page in ... first part of $page up to and including the host domain name $p Integer pointer to the final / in $page $base The current directory where $page is located How It Works In order to c...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P28 pptx
... Functions $data String containing user’s IP address and browser details $fp File pointer to the counter file $file String containing contents of $filename $lines Array containing all lines extracted ... Functions $list String variable containing HTML to be returned How It Works This plug- in starts by opening a new HTML list tag, which can be either <ol or <ul, depending on the valu...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P29 pptx
... Functions $data String containing the referring page URL $fp File pointer to the referrer file $file String containing the contents of $filename $temp Temporary array containing unique referring URLs How ... processing your log files, but neither of these methods is as quick and easy to use as this plug- in for providing instant data, as shown in Figure 5-10. About the Plug- in This...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P30 pptx
... digits of $number $cclen Integer containing the number of characters in $number $chksum Integer containing the credit card checksum $j Loop counter $d Character containing individual digits extracted ... minus, multiply, and divide), and only then is the input passed to eval(). Figure 6-1 shows a variety of expressions being calculated. About the Plug- in This plug- in accepts a stri...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P36 ppt
... containing all the links found at $url $missing Array containing any links passed in $links that are not present in $results $failed Integer counter that indexes into $missing, incrementing on ... match $link String containing the current link being processed, as extracted from $links PIPHP_GetLinksFromURL() Plug- in 22: This function returns all the links at a given URL. PIPHP_RelTo...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P38 pptx
... $shorts $line String containing a single line extracted from $lines $j Integer counter for iterating through $longs FIGURE 7-5 Creating short URLs using your own domain is easy with this plug- in. ... $file The datafile for this plug- in Variables, Arrays, and Functions $contents String variable containing the contents of $file $lines Array containing all the separate lines from $conte...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P40 ppt
... object for traversing $dom $hrefs Object containing all a href= link elements in $dom $links Array of all the links discovered in $url $to Array containing the version of what each $link should be ... to in order to ensure it is absolute $count Integer containing the number of elements in $to $j Integer counter for iterating through $hrefs and $to $link Each link in turn extracted f...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P41 ppt
... tag $ititle String extracted from the RSS image title tag $iurl String extracted from the RSS image url tag $out String containing converted HTML $tlink String containing link of current item $tdate String ... item $tdate String containing publication date of current item $ttitle String containing title of current item $tdesc String containing description of current item How It Works This pl...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P43 pptx
... online $users Array containing unique user details $usertime String containing time the user being processed last accessed the web site $userip String containing the IP and User Agent string ... Functions $ip String containing the IP address and the User Agent of the current user $out String containing the contents of the datafile to be written back to the server $online Integer counter conta...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P49 pptx
... database. Figure 9-1 shows this plug- in in action with a user being added twice to the database, the duplicate checking ensuring that the second insertion is ignored. FIGURE 9-1 This plug- in creates a user ... utilities, and it saves on having to configure and maintain a database such as MySQL. Indeed, had I gone the database route (or if you’ve been experimenting with the plug- i...
Ngày tải lên: 07/07/2014, 08:20
Plug in PHP 100 POWER SOLUTIONS- P62 ppt
... S S , a n d X M L 273 close of business. Figure 10-13 shows the plug- in being used to convert 100 U.S. dollars into UK pounds. About the Plug- in This plug- in takes a value and currencies to ... $main = array(); $lines = explode('@', substr($data, 0, -1)); foreach($lines as $line) { list($l, $r) = explode('|', $line); $main[$l] = $r; } $m...
Ngày tải lên: 07/07/2014, 08:20