New To PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
j0ker21m
Forum Newbie
Posts: 9
Joined: Wed May 28, 2003 6:50 pm

New To PHP

Post by j0ker21m »

I am new to php yet have quite a bit of experience "modding" other php scripts. I am looking to creating a script from scratch, yet am not creative enough to come up with a program to script. Could someone please help me out by directing me to a site that offers flowcharts for people to practice coding? Or if you have an idea for a fairly simple script, could you send me a flowchart or something that would help me to being able to script it?

Thanks,

joker
Jokers Domain
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Personally, I prefer the good ole pen&paper when flowcharting. Each building block on an A4-sheet (or more): that's cross-platform compatibility and I don't have to deal with any bugs or insufficiencies, costs or system-resources than my own.

Apart from that: what do you want your script to do? Can't harvest without sowing... :)
j0ker21m
Forum Newbie
Posts: 9
Joined: Wed May 28, 2003 6:50 pm

Post by j0ker21m »

What is the function to assign the current page name to a variable? Is it something like:

$page = REQUEST_URL

*this would probably actually request whole URL...but that would be fine too

(also looking for same thing for visitor's IP)
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

$var = $PHP_SELF;
Image Image
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

phice wrote:$var = $PHP_SELF;
But then $PHP_SELF is kinda deprecated so probably best to use $_SERVER['PHP_SELF'].

Mac
Post Reply