AD MANAGEMENT
Collapse
BEHOSTED
Collapse
Announcement
Collapse
No announcement yet.
Search Result
Collapse
130 results in 0.0535 seconds.
Keywords
Members
Tags
-
C++/CLI Output to the Command Line
You saw in the previous example how you can use the Console::Write() and Console::WriteLine() methods to write a string or other items of data to the command line. You can put a variable of any of the types you have seen between the parentheses following the function name and the value will be written...
-
The Equals Operator
The equals comparison operator (==, two equal signs) enables you to test whether two values are equal. For example, you might use the expression
to test whether the values stored in $a and $b are the same.The result returned by this expression is true if they are equal or...
-
truncate
The truncate modifier truncates a string at the given point. You can specify after how many characters you will truncate it. This modifier is extremely helpful for article management websites where only truncated excerpts of articles are needed to be shown in the front page. This modifier takes three...
-
Weakness: No Server Process
Although this is one of SQLite's strong points, the fact that SQLite has no server process leads to a series of
scaling difficulties: file locking and concurrency issues, lack of persistent query caches, and scaling problems when handling very large data volumes.
Also, the only way...
-
Make_std_zval( )
The most basic of the pval/zval access macros provided by the extension API is the MAKE_STD_ZVAL( ) macro:
This does the following:
• Allocates memory for the structure using emalloc( )
• Sets the container reference count to 1
• Sets the container...
-
Singleton Pattern
The singleton pattern is probably one of the best-known design patterns. You have probably encountered many situations where you have an object that handles some centralized operation in your application, such as a logger
object. In such cases, it is usually preferred for only one such application-wide...
-
Tidy Extension
PHP 5 includes support for the useful Tidy (http://tidy.sf.net/) library. It enables PHP developers to parse, diagnose, clean, and repair HTML documents. The Tidy extension supports both a functional and an OO interface, and its API uses the PHP 5 exception mechanism.
-
Using a Loop to Examine an Array’s Contents
Arrays go naturally with for loops. Very often when you have an array variable, you step through all of its values and do something to each one. In this example, I want to print the index and the corresponding country’s name. Here’s the for loop that performs this task:
Because...
-
scope
The context within which a variable can be accessed. A variable defined within a method may be referenced only within that method, whereas the scope of an instance variable is the entire class.
-
Understanding regex basics
A regex can be used to look for literal text, text patterns, or a combination of both. To find a match with a PCRE, use the PHP function preg_match(), which normally takes two arguments: a string containing the pattern being searched for and the string to be searched. Although you can pass the pattern...
-
Cleaning Your Cache Through CLI
While the PHP-GTK project is great, in our sample application we really don’t need a desktop view. We do, however, potentially need to do some housekeeping. If we are not careful, our cache can grow huge as our application gets big. While the cache is self cleaning, on an extremely large cache (thousands...
-
What information can I gather about my site’s visitors?
Assuming you’re using Apache, you have access to a wealth of information about visitors—data that’s communicated by their browsers to your Web server.
Here’s a script which demonstrates the point:
The output this generates, if you click on the link, is as fol...
-
How do I consume SOAP Web services with PHP?
In the previous solution, you learned to build and use XML-RPC Web services with PHP. Most of the publicly-available Web services out there, however, use the newer Simple Object Access Protocol[45] (SOAP), not XML-RPC. In thissolution, I’ll show you how to consume SOAP Web services with your PHP...
-
Cleaning up a function that generates a link
For our first example, we will try the first approach to separating markup and code. We will place the HTML output under test and change the PHP code slowly and incrementally so that the code is always working and the tests never fail. This is manageable in this case since there is not much HTML ...
-
How do I create compressed ZIP/TAR files with PHP?
Perhaps you have a directory that contains many files, or different types of files, as well as subdirectories. There may well be situations in which you need to create a download of the whole directory that preserves its original structure. The typical command line approach to achieving this on Unix-based...
Unconfigured Ad Widget
Collapse