#1
|
||
|
Page Name
Is there a way to get the Page.php to know its own name? Like a getfilename() function so tha it shows that file name?
__________________
|
#2
|
||
|
#3
|
||
|
hmm I did something like that but I think there is a probablem because I am not passing it in the header of the functions that use it.
It is another freaking: Notice: Undefined variable: pagename in d:\easyphp\www\video.php on line 224 Thing is that it is defined....I placed: $pagename="video.php"; at the top of the file.
__________________
Last edited by atholon; 10-16-2007 at 06:45 PM. |
#4
|
||
|
could you post a bit more of your code?
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#5
|
||
|
Got it reslolved. The reason was because I was not passing it through the () at the top of the functions that were going to us it.
$_SERVER[PHP_SELF] was what I was looking for. It will save a lot of headaches in the future.
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My Page Is Up! Hooray! | Sen | Web design and Programming | 5 | 11-19-2006 11:32 AM |
Open text from page in another page | katana*GFR* | Web design and Programming | 21 | 07-21-2005 10:28 AM |
Page Cannot Be Displayed | atholon | Feedback / Novahq.net Support | 1 | 04-21-2005 11:57 AM |
<Previous page 1 2 3 4 5 6 next page> script | big n00b at php | phphq.Net Forums | 4 | 03-11-2005 12:35 PM |
How to get on page 1? | jeremy | Delta Force | 0 | 01-03-2003 07:03 PM |