FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Name of page itself?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Name of page itself? [message #177252 is a reply to message #177235] Thu, 01 March 2012 17:01 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <jinrnq$ga5$2(at)news(dot)albasani(dot)net>,
The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:

> Tim Streater wrote:
>> In article
>> <f244fbdd-78f1-48b4-a578-635b97e4dbde(at)gr6g2000vbb(dot)googlegroups(dot)com>,
>> Captain Paralytic <paul_lautman(at)yahoo(dot)com> wrote:
>>
>>> On Feb 28, 9:58 am, Sonnich Jensen <sonnichjen...@gmail.com> wrote:
>>
>>>> I have not worked with PHP for 2+ years, now again and need to refill
>>>> my brain...
>>>>
>>>> How can I get the name of the main page?
>>>>
>>>> Say, index.php includes menu.php, how do I get the name of the main
>>>> page, in this case index.php?
>>>> Next say page1.php, page2.php etc?
>>
>>> A php file is NOT the same as a web page. A single php file may have
>>> the ability to generate more than one page. Alternatively many php
>>> files may be used to generate 1 page.
>>
>> Or it might generate no pages at all. None of mine do.

> Fabulous. Write only memory in the computer as well?

Oy just watch it. Mine generate no web pages because:

1) They are CLI scripts which do things such as check for or create
certain SQLite databases, and then launch apache and Safari.

or:

2) They are asked, by the browser, via AJAX, to do certain things like
read/write SQLite databases, communicate with remote hosts, and report
results back to the browser. Which proceeds to update the already
existing page based on those results.

In fact I may go through and remove all the <form></form>, since no
<form> is ever submitted. AIUI, elements such as <button> etc would work
just as well anyway.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MAX(id)
Next Topic: string to array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Feb 17 23:04:19 GMT 2025

Total time taken to generate the page: 0.06020 seconds