Variable transmission Between two pages in php

On February 15, 2009, in Programing, by Yao Yuan

在网站设计中,我们常常用到用户登陆这一方法,在登陆后,一般的网站都会根据不同的用户来给定不同的页面,在链接到该站的一个新的网页或者打开一张新网页时,我们也会看到用户的信息能够被记住,现在尤其常用的是,登陆后链接或打开该站的其它网页都会看到诸如”XXX,晚上好”之类的问候语,这些当然都是在登陆后变量传送的结果,在我做个人主页的过程中,曾尝试几种变量传送的方法,现写出来与大家探讨一下。

在网站设计中,我们常常用到用户登陆这一方法,在登陆后,一般的网站都会根据不同的用户来给定不同的页面,在链接到该站的一个新的网页或者打开一张新网页时,我们也会看到用户的信息能够被记住,现在尤其常用的是,登陆后链接或打开该站的其它网页都会看到诸如”XXX,晚上好”之类的问候语,这些当然都是在登陆后变量传送的结果,在我做个人主页的过程中,曾尝试几种变量传送的方法,现写出来与大家探讨一下。

Continue reading »

Tagged with:  
Tagged with:  

superglobals variable

On February 15, 2009, in Programing, by Yao Yuan

In PHP 4.2.0 and later, the default value for the PHP directive register_globals is off. This is a major change in PHP. Having register_globals off affects the set of predefined variables available in the global scope. For example, to get DOCUMENT_ROOT you’ll use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of [...]

In PHP 4.2.0 and later, the default value for the PHP directive register_globals is off. This is a major change in PHP. Having register_globals off affects the set of predefined variables available in the global scope. For example, to get DOCUMENT_ROOT you’ll use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of $HOME.

For related information on this change, read the configuration entry for register_globals, the security chapter on Using Register Globals , as well as the PHP » 4.1.0 and » 4.2.0 Release Announcements.

Using the available PHP Reserved Predefined Variables, like the superglobal arrays, is preferred

Continue reading »

Tagged with:  

You were my everything – translate

On February 15, 2009, in YaoYuan, by Yao Yuan

(Talking)This goes out to someone that was Once the most important person in my life 曾经她是我生命中最重要的一个人

(Talking)This goes out to someone that was Once the most important person in my life 曾经她是我生命中最重要的一个人

Continue reading »

Tagged with:  

variable variable, PHP and you

On February 14, 2009, in Programing, by Yao Yuan

什么叫作变量的变量?根据PHP手册,变量的变量是指取得一个变量的值并把它作为另一个变量的变量名。这表述显得相当的直接,容易和那些在一个句子中使用 “变量”这个词弄混淆。给一个简单的例子,你定义一个变量 — x 等于 this — 然后定义一个变量的变量,意味着你把 x 的值作为新变量的名,在这个例子中,这个新变量的值是 is cake。用PHP来表示如下:

什么叫作变量的变量?根据PHP手册,变量的变量是指取得一个变量的值并把它作为另一个变量的变量名。这表述显得相当的直接,容易和那些在一个句子中使用 “变量”这个词弄混淆。给一个简单的例子,你定义一个变量 — x 等于 this — 然后定义一个变量的变量,意味着你把 x 的值作为新变量的名,在这个例子中,这个新变量的值是 is cake。用PHP来表示如下:

Continue reading »

Tagged with:  

The use of varible in PHP

On February 14, 2009, in Programing, by Yao Yuan

就像大部份的结构化程序,有所谓的全局变量与局部变量,php 在这方面也是有相同的处理方式。

就像大部份的结构化程序,有所谓的全局变量与局部变量,php 在这方面也是有相同的处理方式。

Continue reading »

Tagged with:  

Variable type of php

On February 14, 2009, in Programing, by Yao Yuan

php 的变量类型不多,有以下五种: string integer double array object

php 的变量类型不多,有以下五种:

  • string
  • integer
  • double
  • array
  • object

Continue reading »

Tagged with:  

Power shared hosting plan and only pay $1 for the entire year

On February 13, 2009, in All for Free, by Yao Yuan

Happy valentine’s day!! and ,www.surpasshosting.com have a new hosting plan. I think it’s really cheap. One Love for Three Days – February 14th through 16th! You can purchase the Power shared hosting plan and only pay $1 for the entire year! After the year is up the normal yearly payment cycle for that plan will [...]

Happy valentine’s day!! and ,www.surpasshosting.com have a new hosting plan. I think it’s really cheap.


One Love for Three Days – February 14th through 16th! You can purchase the Power shared hosting plan and only pay $1 for the entire year! After the year is up the normal yearly payment cycle for that plan will begin. Remember that the Surpass service and support will be the same as it always has been!

This link must be used to order – it will be available here on February 14!

And just a note: You are responsible for registering your domain name. One Love does not include a domain name. Also, last year we put up 10 brand new servers in our data center to accomodate our One Love customers. This year expect the same fast servers each with the same low number of accounts. It couldn’t be any better..

We are mailing a free sticker this year to each person who signs up. Put the sticker on your laptop, notebook, houseplant, pet or even your forehead! If you’d like to show us a photo of your sticker’s new home, we would love to see them posted in our community forum! (The sticker to the left is not the actual sticker, we are posting the real one before the 14th!)

Why sign up for One Love?

Our third One Love sale has the great same reasons as it did the past two years! For example, you can get a One Love account if you’ve never had an account with Surpass Hosting before. Use this opportunity to try out our service to see what everyone has been talking about! In a year you can choose to renew!

If you already have an account with Surpass and are thinking about a new project; it’s the perfect time now to register for your new domain and get those ideas rolling!

You want to give your sweetie a geeky gift? A One Love account is nearly free and your cuddlebug can finally start a blog about how wonderful you are. You two… get a room. Seriously.

Tagged with:  

Scroll and Move Background Windows

On February 13, 2009, in Tips & Skills, by Yao Yuan

we always looking for methods for us to work faster on our computer such as using shortcut keys, mouseless browsing firefox addon and etc. In fact, I use my keyboard more than mouse because it has been proven that keyboard works faster than mouse. One annoying problem in Windows that I don’t like is when [...]

we always looking for methods for us to work faster on our computer such as using shortcut keys, mouseless browsing firefox addon and etc. In fact, I use my keyboard more than mouse because it has been proven that keyboard works faster than mouse. One annoying problem in Windows that I don’t like is when I have a lot of programs and windows open and navigating around them in my 17″ LCD monitor is somehow tough.

To move an active window in Windows operating system, we’ll have to make sure that the window is not maximized and we’ll have to move the mouse cursor to the titlebar to drag it. However this is done much easily in Linux operating system by holding the Alt key and then just left click anywhere on the window dragging it anywhere we like. This saves you the trouble of moving your mouse all the way to the top to restore down the Window first and then move it by holding the left click on titlebar.

I found a small tool called Flying Windows that is able to enable the Alt + Window drag in Windows plus a few more useful hacks for Windows system.

Continue reading »

Tagged with:  

receiced 10$ from backlinks.com

On February 13, 2009, in Make money, by Yao Yuan

My blog started to sell text links with backlinks.com on  01/25/2009, and receiced 10$ on 1 February 2009. so i think sell text links with backlinks is a good way to earn extra money if you have a weblog.

My blog started to sell text links with backlinks.com on  01/25/2009, and receiced 10$ on 1 February 2009. so i think sell text links with backlinks is a good way to earn extra money if you have a weblog.

Continue reading »

Tagged with:  
Page 14 of 23« First...1213141516...20...Last »

You may interested this