From 8788d4b5f597465daaabf46455cd086b6b7deb58 Mon Sep 17 00:00:00 2001
From: Derek Allard
$data = array(
'name' => 'John Doe',
- 'email' => 'john@some-site.com',
- 'url' => 'http://www.some-site.com'
+ 'email' => 'john@example.com',
+ 'url' => 'http://www.example.com'
);
echo form_hidden($data);
// Would produce:
<input type="hidden" name="name" value="John Doe" />
-<input type="hidden" name="email" value="john@some-site.com" />
-<input type="hidden" name="url" value="http://www.some-site.com" />
+<input type="hidden" name="email" value="john@example.com" />The above would generate 30 newlines.
Converts double slashes in a string to a single slash, except those found in http://. Example:
-$string = "http://www.some-site.com//index.php";
-echo reduce_double_slashes($string); // results in "http://www.some-site.com/index.php"
+$string = "http://www.example.com//index.php";
+echo reduce_double_slashes($string); // results in "http://www.example.com/index.php"
Removes any leading/trailing slashes from a string. Example:
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html
index 0f6075585..08e6f7d0c 100644
--- a/user_guide/helpers/url_helper.html
+++ b/user_guide/helpers/url_helper.html
@@ -224,7 +224,7 @@ $url_title = url_title($title, 'underscore');
This function will add http:// in the event it is missing from a URL. Pass the URL string to the function like this:
-$url = "www.some-site.com";
+$url = "www.example.com";
$url = prep_url($url);
diff --git a/user_guide/libraries/ftp.html b/user_guide/libraries/ftp.html
index aa61ed3dc..84518f9a2 100644
--- a/user_guide/libraries/ftp.html
+++ b/user_guide/libraries/ftp.html
@@ -169,7 +169,7 @@ array in that file. Then save the file at config/ftp.php and it will
$newdata = array(
'username' => 'johndoe',
- 'email' => 'johndoe@some-site.com',
+ 'email' => 'johndoe@example.com',
'logged_in' => TRUE
);
diff --git a/user_guide/libraries/trackback.html b/user_guide/libraries/trackback.html
index c5a50f0cc..02eeaa9cc 100644
--- a/user_guide/libraries/trackback.html
+++ b/user_guide/libraries/trackback.html
@@ -83,8 +83,8 @@ Trackback Class
$this->load->library('trackback');
$tb_data = array(
- 'ping_url' => 'http://some-site.com/trackback/456',
- 'url' => 'http://www.my-site.com/blog/entry/123',
+ 'ping_url' => 'http://example.com/trackback/456',
+ 'url' => 'http://www.my-example.com/blog/entry/123',
'title' => 'The Title of My Entry',
'excerpt' => 'The entry content.',
'blog_name' => 'My Blog Name',
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html
index 243065653..eb1904e16 100644
--- a/user_guide/libraries/xmlrpc.html
+++ b/user_guide/libraries/xmlrpc.html
@@ -151,7 +151,7 @@ you will have to include the data type in the request array.
Here is an example of a simple array with three parameters:
-$request = array('John', 'Doe', 'www.some-site.com');
+$request = array('John', 'Doe', 'www.example.com');
$this->xmlrpc->request($request);
If you use data types other than strings, or if you have several different data types, you will place
--
cgit v1.2.3-24-g4f1b