How to find the full URL of the page in PHP in a platform independent and configuration independent wayJune 3rd, 2005 Without much ado, I present the script. It handles http and https URL's and should work across platforms and configurations (like using htaccess for clean url's etc.).
Good article on understanding java.lang.ThreadLocalApril 24th, 2005 ThreadLocal allows you to have copy of variable per thread, which are subject to garbage collection when the thread goes away. IBM has an excellent article on understanding and using ThreadLocal.
Understanding Race, Religion, Politics, Sex & BigotryMay 31st, 2007 Doug Karr, product manager for a "permission-based email service provider" (permission spam?) lays down three interesting rules for understanding differences of race, religion, politics, sex and bigotry: 1. He will never understand others; so he tries to respect things that he doesn't understand.
Email Problems: Translator Plugin Pro Clients Please ReadSeptember 22nd, 2006 A lot of my emails are not reaching for some strange reason which is delaying my effort to provide you with free upgrades. Please bear with me.
Pitfalls of Software & Java Education in Engineering SchoolsFebruary 9th, 2006 I have been interviewing several freshers who were taught Java in engineering schools under computer science curriculum. Interviewing them highlighted serious problems with their education as well as with the system.
Solving Failure To Forward Emails in Mozilla Thunderbird by Message Filters; Understanding Thunderbird Account ArchitectureSeptember 28th, 2007 I faced a vexing problem with the otherwise excellent Mozilla Thunderbird email client. I was unable to forward emails to another account using the rules in Message Filters.
Understanding Linkie WinkieAugust 13th, 2006 Update: LinkieWinkie merely leveraged the links to create yet another blog site. Nice bait and switch, but I expected better.
Relational schema still speaks volumes about any application - A look at FatimaApril 18th, 2005 We often talk about understanding an application from code and unit tests with catch phrases like - "code is the documentation". In my experience I haven't found a better and more concise documentation then reading the SQL schema for any application, assuming it has one.
Thunderbird: How To Automatically Forward Email in Certain Folders?September 28th, 2007 I solve this problem in a different way. Normally we write rules to send messages to a particular folder.
Understanding Java: Simplified Hello World for Socket ProgrammingApril 15th, 2006 In my experience much of the complexities a newcomer faces in the Java world is understanding extraneous stuff like handling exceptions or formatting data etc. Today I was requested for the nth time (n -> infinity) how to write a simple socket client and server (actually debug one).
Help Me With Understanding My Site StatsSeptember 5th, 2007 I noticed something funny with this site's statistics. On average people are spending 4 minute 8 seconds on the site.
Javablogs appears to be brokenFebruary 15th, 2004 Often the popular listings of javablogs appeared suspect to me as many times I could see the same listings on top for days, whereas newer listings with higher view count didn't make the list. However it was just a feeling from reading entries from both start page and most popular page.
What Matt Mullenweg (WordPress Author) Knows About You (WordPress & Akismet Plugin User)April 8th, 2006 I took a look at the data we are sending to Akismet, a WordPress plugin for comment spam protection, for each comment submitted on your blog, if you use this plugin for comment spam prevention. I have recently started using Akismet, a WordPress plugin from WordPress author Matt Mullenweg.
Tutorial: Learn Python in 10 MinutesJuly 13th, 2007 Poromenos, a greek student, has written a nice tutorial on Python, a rapidly growing and ever popular Web 2.0 language. I think it will take you somewhat longer than 10 minutes to go through all the examples.
How to Moderate Japanese Comments in WeblogOctober 28th, 2005 Or any non-English language in which you are not proficient...
June 15th, 2006 at 3:45 pm
$_SERVER variables not set by Tomcat
Not able to get the value for variable in Tomcat 5.5 and PHP Version 5.1.4 configuration
In fact, only values in _SERVER are
_SERVER is array 3
Key: REQUEST_TIME value: 1150399842
Key: argv value: Array
Key: argc value: 0
Searched but couldn’t find anything relevant. Any pointers?
August 17th, 2006 at 12:08 am
Hey…I was wondering how to call a particular function by using the $_SERVER['PHP_SELF'] command. Is there any supported way of calling a function from this?
-Dan P.
December 3rd, 2006 at 4:40 am
hey,
I have a problem in which the url isn’t parsed properly so it doesnt add the .php to the end of the address in the url bar. for example, http://www.mysite.com/test/11 is suppose to be http://www.mysite.com/test/11.php the .php is missing.
My code:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
AddType text/xml .xslt
SetHandler text/xml
# PHP is in CGI Mode, so we need a different mod_rewrite
RewriteCond %{REQUEST_URI} !categories\.php
RewriteRule ^categories(.*) /categories.php?$1 [L]
RewriteCond %{REQUEST_URI} !questions\.php
RewriteRule ^questions(.*)$ /questions.php?$1 [L]
RewriteCond %{REQUEST_URI} !search\.php
RewriteRule ^search(.*)$ /search.php?$1 [L]
December 20th, 2006 at 12:55 pm
Hi there,
I need to retrieve just the page name from the URL - anyone knows how could I do it?
I want then assing its value to a variable and use it in sql query for comparasion.
Any help would be appreciated.
I look forward.
Sebastian
May 2nd, 2007 at 11:33 pm
how can i get the file name without the directory name
June 19th, 2007 at 8:05 am
subash have searching ajob
August 7th, 2007 at 6:42 am
Is this better to call php_self function or create a new file.Because when people refresh it submit the message twice, how can overcome this issue.
October 8th, 2007 at 6:22 am
Hello..
I’ve done with a program which send copy from local machine to server.
I m having problem while copying the file. Its copied, but goes in Apache server. Please help me to copy that file in server(www)folder.
November 1st, 2007 at 1:24 am
Very useful … did clarify some technicalities for me. Thanks for the headsup! =)
February 17th, 2008 at 7:00 am
While I am excecuting $_SERVER['PHP_SELF']then I am getting one message in my browser Forbidden
You don’t have permission to access /
March 10th, 2008 at 10:02 am
thankyou for the informative article.
June 10th, 2008 at 8:25 am
Hi the inforamtin on this site is really helpfull
Thanks
! BYE
October 15th, 2008 at 9:16 am
Great explanation!
It’s easy to get mixed up and get errors lol.
Thanks
December 20th, 2008 at 8:59 am
i have same problem with “george”
While I am excecuting $_SERVER['PHP_SELF']then I am getting one message in my browser Forbidden
February 25th, 2009 at 6:44 pm
nicely explained! very helpful
March 2nd, 2009 at 1:57 am
I use a $page_name at the top of all my PHP files..it makes things really simple. I do use $_SERVER['REQUEST_URI'] and PATH_INFO , but only when I really need them.
June 3rd, 2009 at 5:58 pm
thanks for sharing valuable information.