d@ng’s WORLD
Tự động gửi SMS tới điện thoại khi có thư mới! Tất cả các mạng di động VN.
Just a small test:
Project structure:
/admin/index.php
/index.php
/inc.php
/db.php
—- /inc.php —-
require ‘db.php’;
—- /db.php —-
function greeting() {
echo ‘Ciao’;
}
—- /index.php —-
require ‘inc.php’;
—- /admin/index.php —-
require ‘../inc.php’;
That’s it.
When executing, /index.php run fine, puts out greeting ‘Ciao’.
/admin/index.php has a fatal error:
Fatal error: Call to undefined function greeting() in D:\xampp\htdocs\test\blog.php on line 2
If rename /db.php to /anything-but-not-db.php then the code runs fine. Weird???
That error not orcur if using WAMP instead of XAMPP.
—-—-—-—-—-—-—-—-—-—-—-—-—-—-—-—-
Update:
The answer is here: http://www.apachefriends.org/f/viewtopic.php?f=16&t=53310
Nản vãi
WebForm phải có validation
Validation bắt buộc control không được thay đổi content ở client
Tắt validation của cả page thì không được
Tạo derived control để không bắt buộc validation thì không lấy được giá trị khi postback
Thế là lại phải quay về dùng UpdatePanel. Mà cái thằng này thì chán thôi rồi :(
Nản!
“Things Wong Kar Wai taught me about love”
1. You will fall in love only once. Obstacles will prevail. The rest of your life is spent recovering.
2. Anything that distracts you from the pain of your loss is good. Some people are more successful in this regard than others.
3. Eroticising their objects will be the pinnacle of your sexual fulfillment.
4. Desire is kept eternally alive by the impossibility of contact.
5. The most potent way to exist is to occupy someone else’s imagination.
6. Technology will only heighten your sense of desolation making you more keenly aware that no one is trying to call.
7. Hook up with someone. Live with them. Sleep with them. Tag along. Don’t be fooled. You are only a transitory distraction. Ask for commitment. Declare your love. Watch the set up evaporate.
8. Some coincidences are deliberate.
(via thatfreak)
Are you or someone you know an introvert? Here is a guide to share with your friends.
Any other tips you would like to add?
Remove source control association (SourceSafe)
- Delete all *.scc and *.vspscc files in project folder and nested folders.
- Open *.sln in raw text editor (Notepad or equivalent), remove source control section.
- Open project files (*.vbproj, *.csproj) in raw text editor and remove source control attributes.
Make our project work with IIS 7
- In IIS Manager, add new application for our project in default website.
- Open *.sln and *.webinfo in Notepad, change website URL to our new location.
Save all files and reload projects. Voila


