Page 1 of 1
New To PHP
Posted: Wed May 28, 2003 6:50 pm
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
Posted: Wed May 28, 2003 7:16 pm
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...

Posted: Wed May 28, 2003 8:23 pm
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)
Posted: Wed May 28, 2003 9:14 pm
by phice
$var = $PHP_SELF;
Posted: Thu May 29, 2003 2:56 am
by twigletmac
phice wrote:$var = $PHP_SELF;
But then $PHP_SELF is kinda deprecated so probably best to use $_SERVER['PHP_SELF'].
Mac