By Dwayne on Monday, January 4th, 2010
The code will work in the wp-config.php file if you happen to get locked out of the admin.
Happens a few times here and there. Just put this is at the starting code of thw wp-config file in
your wordpress home directory.
define(‘WP_HOME’,'http://example.com’ http://example.com%27);
define(‘WP_SITEURL’,'http://example.com’ http://example.com%27);
–
Dwayne Myers
Web Designer/Developer
386-307-4289
DreamDrivenDesigns.com
By Dwayne on Sunday, November 29th, 2009
Bookmark this category
How to send html mail using php. In custom forms etc.
<?php
$to = “somebody@example.com, <a
href=”mailto:somebodyelse@example.com”>somebodyelse@example.com”;
$subject = “HTML email”;
$message = “
This email contains HTML Tags!
| Firstname | Lastname |
|---|---|
| John | Doe |
“;
// Always set content-type when sending HTML email
$headers = “MIME-Version: 1.0″ . “rn”;
$headers .= “Content-type:text/html;charset=iso-8859-1″ . “rn”;
// More headers
$headers .= ‘From: ‘ . “rn”;
$headers .= ‘Cc: <a
href=”mailto:myboss@example.com”>myboss@example.com’ . “rn”;
mail($to,$subject,$message,$headers);
?>
By Dwayne on Friday, November 20th, 2009
Bookmark this category
Here’s the code:
<meta http-equiv="REFRESH"
content=”0;url=http://www.the-domain-you-want-to-redirect-to.com”>
Optional page text here.
<meta http-equiv="REFRESH"
content=”0;url=http://www.the-domain-you-want-to-redirect-to.com”> is
the part that actually does the redirecting.
The number preceding the url (in this case zero) tells the browser the
number of seconds to wait before redirecting to the new url.
By Dwayne on Friday, November 20th, 2009
Bookmark this category
Here’s the code:
<meta http-equiv=”REFRESH”
content=”0;url=http://www.the-domain-you-want-to-redirect-to.com”>
Optional page text here.
<meta http-equiv=”REFRESH”
content=”0;url=http://www.the-domain-you-want-to-redirect-to.com”> is
the part that actually does the redirecting.
The number preceding the url (in this case zero) tells the browser the
number of seconds to wait before redirecting to the new url.
By Dwayne on Wednesday, November 18th, 2009
Bookmark this category
URL (pronounced like the letters “U,” “R,” “L,”) stands for Uniform
Resource Locator. A URL is the Internet address of a particular site or
document available via the World Wide Web.
example www.dreamdrivendesigns.com
–
Dwayne Myers
(386)307-4289
Http://www.DreamDrivenDesigns.com