1. $date = date(“Y-m-d”);
  2. $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +12 month”);
  3. $date = date(“Y-m-d”,$date);
  4. echo $date;
  5. Other examples
  6. $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 day”);
  7. $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 week”);
  8. $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +2 week”);
  9. $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +1 month”);
  10. $date = strtotime(date(“Y-m-d”, strtotime($date)) . ” +30 days”);

1) Change the “locale” to “cht”.

2) Change the “CodePage” to 950.

If the chinese word still cannot be display, you can try to change another font. It’s work for me.

, , , , ,

<?php

$notice_text = “This is a multi-part message in MIME format.”;
$plain_text = “This is a plain text email.\r\nIt is very cool.”;
$html_text = “<html><body>This is an <b style=’color:purple’>HTML</b> text email.\r\nIt is very cool.</body></html>”;

$semi_rand = md5(time());
$mime_boundary = “==MULTIPART_BOUNDARY_$semi_rand”;
$mime_boundary_header = chr(34) . $mime_boundary . chr(34);

$to = ‘hei@fastgreatcl.com’;
$bcc = “You <you@you.com>, Them <them@them.com>”;
$from = “Me.com <me@me.com>”;
$subject = “My Email”;

$body = “$notice_text

–$mime_boundary
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

$plain_text

–$mime_boundary
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

$html_text

–$mime_boundary–”;

if (@mail($to, $subject, $body,
“From: ” . $from . “\n” .
“bcc: ” . $bcc . “\n” .
“MIME-Version: 1.0\n” .
“Content-Type: multipart/alternative;\n” .
” boundary=” . $mime_boundary_header))
echo “Email sent successfully.”;
else
echo “Email NOT sent successfully!”;
?>

http://www.tek-tips.com/faqs.cfm?fid=2681

, , ,

Access parent windows within iframe using jQuery.

e.g.

<script type=”text/javascript”>

p=window.parent;

p.$(‘#select2′).append(‘<option value=\”$matches[1],$matches[2]\”>&lt; $matches[1] &gt; $matches[2]</option>’);

</script>

, ,

In jQuery, you can get elements with CSS class name and id easily.

For example,

1. ID: #id

  • $(‘#idA’) – selects all elements that have an id of ‘idA’, regardless of its tag name.
  • $(‘div#idA’) – selects all div elements that has an id of ‘idA’.

2. Class: .classname

  • $(‘.classA’) – selects all elements that have an class name of ‘classA’, regardless of its tag name.
  • $(‘div.classA’) – selects all div elements that has an class name of ‘classA’.

3. Class: [name="value"]

  • $(‘div[name^="nameA"]’) – selects all elements that have an name of ‘nameA’, regardless of its tag name.
  • e.g. [name*="value"], [name~="value"], [name$="value"]

3. Change attr: $(‘#idA’).attr()

  • $(‘#idA’).attr(‘src’, ‘value) – change value of attribute that have an idof ‘idA’, regardless of its tag name.

Full Example

<html>
<head>
<title>jQuery Get element with class name and id</title>

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>

</head>

<script type="text/javascript">

$(document).ready(function(){

    var $element = $('.classABC').html();
    alert($element);

    var $element = $('#idABC').html();
    alert($element);

});

</script>
<body>

<h1>jQuery Get element with class name and id</h1>

	<div class="classABC">
		This is belong to 'div'
	</div>

	<div id="idABC">
		This is belong to 'div id="idABC"'
	</div>

</body>
</html>
http://www.mkyong.com/jquery/jquery-how-to-get-element-with-css-class-name-and-id/
,

If you surf too many, you will get a warning email.

If don’t want member surf too many, why not set a quota to them?

=============================================

The Mind Is Wrong!

A Very Warm Welcome To ALL The NEW
Members!
And An EXTREME Thank You To Those
That Recruited Them! :)

Weird Title…The Mind Is Wrong! but it is!

To Succeed or to be Successful has Nothing
to do with Being PERFECT or the BEST at it.

Many don’t GO for their DREAM because they
feel “I Won’t Be Good Enough!”

It’s a MIND Thing instilled in ALL Of us.
Stubborn Bastards like ME, that are Too Stupid
to stop, are the ones that Excel!

I’ve Flopped on MY Behind on Many sites I Created!
Screw ups, is growth!
Don’t do that again! or do it differently.

Lighted Smiley Ornaments on Main/Ref pages dropped
Signups by 30%, had to do the Snow!

I was trained by a Turkish Chef, Eddie Onur, Years
ago, I still Screw up meals!

The Unknown to PERFECT is why Many Fail or Get
Stuck in Same O Same O.

Learn as YOU Go and KNOW You WILL Screw up
Often, and get over it!

So Many Won’t do what they WANT, cause of their
own mind won’t let them.

You couldn’t operate a computer a few years ago,
look at You NOW!
The SAME with Anything Online!
Jump In, Fall On Your Face, Clean Yourself off, and
BE Stubborn, and Be Successful!

If People want to BLAME or Control YOU, …
That is WHY TimTech and Robert Puddy isn’t Allowed
Here. and Talk BS as a Friend, Only after Your Money.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Smiley’s Take!
~~~~~~~~~~~

On Conversions!
At 5000-15000 members, SmileyTraffic Massively Converted!
as Any Growing exchange would.
20-40 Views a day, 500 credits, 6 signups, but takes
60 days to get them.
I can’t WAIT that Long!

Why Would I surf, If credits weren’t being used up?
And Massive Backed Up in database, they’ll Never get out,
like TrafficDelivers, for an Example.
That would be a WASTE of My time! unless forcing money
on YOU To Surf! at 50/500/500/$0.02 for 175 views.

“Clicking For Pennies” which his BS tells Others is Taboo.

That My Friend’s, is a PAID TO SURF!
“Clicking For Pennies” Site!

MONEY, but in this case, Cannot Deliver credits!
The Doug FreeLoading Fuel, will Stop Abruptly and soon.
WHY re-Upgrade, but for Commissions, the Delivery can
be done as a Free Member. Thus a HYIP!

Get Your Money there, My Friends, while it’s there, in 6
months, this exchange will be in trouble, maybe less.

I’ve Suspended, then Deleted Upgraded Members for
Cheating! Not like Doug Wishes To Lash out in Retailiation
of me Pulling Our 3-way Contest off his Free-Loading.

Saying I’m Housing Cheaters INFLATES Our Clicks per day.
In same Sentence he Included Easyhits4u, I cannot Speak
for Easyhits4u. but when you have a $3.00 payout, you’ll
have that.

WHY would I Pay somebody out of MY Account that CHEATS?
I Don’t need the Extra views!
It’s Already Higher in Views that I’m Comfortable with on Manual.

Some Jealous/Vindictive Owners can SAY to their Members.
“SmileyTraffic Houses Cheaters!”

I Spend 5-6 hours a day on SmileyTraffic, besides my
8.5 to 10.5 hour offline job.
Luckily My Babe Supports Me 100% and sits beside me
while I do this.

I do all the checks of IP, passwords, sites, surfing habits,
and other stuff I paid to have programmed in.

SmileyTraffic, is the FIRST Exchange of Size-able,
that Doesn’t hire others to do Support, Approve Sites,
etc….I Do it Myself, I have to!
Call it the “Personal Touch!”

We’ve done Massive FIRST’s over the Years!

And Don’t Take Crap From Anyone.
It’s A Traffic Exchange for Pete’s Sake!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Your Stats!
Your Money – 0.842
Your Manual Credits – 512.88
Your Auto Credits – 29
Your Banners – 2500
Your Text Ads – 2500

EVERYONE wants to Be Successful, Many Follow BS,
“You MUST have this, Do This, Do That,
Upgrade Here, There!”
From So-Called Guru’s!

That is HOW THEY are Successful!
Once YOU are Gone, Another takes YOUR Place.
Revolving Door of BS Money!

SmileyTraffic is Self-Supporting!
Even When TimTech/Robert Puddy Group Did an ALL OUT
BAN of SmileyTraffic to KILL ME!

They didn’t know I had LARGE Downlines and Also
Knew People with Large Downlines!

When TimTech/Puddy Control Crap Started, Many Size-able
sites also put Millions Of Credits in MY Accounts as well as
FREE Upgrades for Standing UP and Speaking The TRUTH!

Members here are Treated as THEY were when I opened
in 2004, I Don’t need or want the Ego crap.

I could care less how Much Money YOU Have or Don’t have.
USE SmileyTraffic as it Suits YOUR Needs.

Can I be doing this Totally Online, yes, but I have nearly 16
years with Quanex.com, I’m not giving up MY FREE Retirement!
Free Stocks, 401k with 401k.com, and Company Pension.

Every Person Makes 1 Million Dollars+ in Their Lifetime.
$25,000 X 40 Years = 1 Million
At 32 years old, I started getting my head out of my ass.
I’m 47 now
What YOU Do with that Million, is up to YOU!

You NEVER have to Agree with what I type.
I just want YOU to look and Think about things
differently.

What Freakin’ Peckergant said Exit Java OK/Cancel was
OK on Traffic Exchanges. many times another box Asking
me if I wish To Leave!

Have Fun!
http://www.youtube.com/watch?v=0g2HWmCXX3M

On song Titties and Beer, You’ll see the POWER
of InFluence in a “Live” Setting.

How else can you Get there?
Give Up?
http://www.youtube.com/watch?v=BqzgcNQHxEg&feature=related

Quit Following Boneheads, that are After Your Money.

Build Downlines, go from there.
1 Level don’t work for me, in Ummph to get me going.
3:1 Exchange is a Sad Exchange.
Largest Payout Bonus exchange, at 3:1,
DUH! Good For You!

I do 2:1 and with Many JV’s, some Can Do It Right!
So Many Contests are “Rigged” but TELL You How
Honest They Are!
Ficticious names as winners that ARE them, etc…

SmileyTraffic is ALL Up Front!
What You See, Is What You Get!

Every Member I Do ONE ON ONE with, not A
Support Bonehead!

That Makes SmileyTraffic, SmileyTraffic!
106,000+ Members.
I Cannot Change!

Smiley
http://www.smileytraffic.com/

To Delete Your Account:
http://www.smileytraffic.com/contact.php

, ,

Step 1:

Tap on the lake.
Step 2:

Wait for the fish on hook, then tap the screen again.

Step 3:

Slide up on the screen when the fish is hooked.
Step 4:

If the fishing is successful, you will see the below picture.


, ,

The ENUM Type

An ENUM is a string object with a value chosen from a list of permitted values that are enumerated explicitly in the column specification at table creation time.

An enumeration value must be a quoted string literal; it may not be an expression, even one that evaluates to a string value. For example, you can create a table with an ENUM column like this:

CREATE TABLE sizes (
    name ENUM('small', 'medium', 'large')
);

The SET Type

SET is a string object that can have zero or more values, each of which must be chosen from a list of permitted values specified when the table is created. SET column values that consist of multiple set members are specified with members separated by commas (“,”). A consequence of this is that SET member values should not themselves contain commas.

For example, a column specified as SET('one', 'two') NOT NULL can have any of these values:

''
'one'
'two'
'one,two'

SET can have a maximum of 64 different members.

 

ENUM and SET Constraints

ENUM and SET columns provide an efficient way to define columns that can contain only a given set of values. SeeSection 10.4.4, “The ENUM Type”, and Section 10.4.5, “The SET Type”. However, in MySQL 4.1 and earlier, ENUMand SET columns do not provide true constraints on entry of invalid data:

  • ENUM columns always have a default value. If you specify no default value, then it is NULL for columns that can have NULL, otherwise it is the first enumeration value in the column definition.
  • If you insert an incorrect value into an ENUM column or if you force a value into an ENUM column with IGNORE, it is set to the reserved enumeration value of 0, which is displayed as an empty string in string context.
  • If you insert an incorrect value into a SET column, the incorrect value is ignored. For example, if the column can contain the values 'a''b', and 'c', an attempt to assign 'a,x,b,y' results in a value of 'a,b'.
, ,

It’s a good game~ But so many bugs



, , , , ,

Tenacy 開心直通車支援 PPTP,L2TP/IPSec 以及 OpenVPN 三種標準的網路協定(OpenVPN 尚未啟用)。
http://tenacy.hpc.tw/public
教學

, ,