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 #177257 is a reply to message #177245] Thu, 01 March 2012 23:28 Go to previous messageGo to previous message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma:
Senior Member
On 3/1/2012 6:10 AM, The Natural Philosopher wrote:
> Scott Johnson wrote:
>> On 3/1/2012 4:57 AM, The Natural Philosopher 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?
>>> Talking of the wrong tool for the job, I once heard of a man trying to
>>> build a battleship out of papier mache.
>>>
>>>
>>>
>>>
>>
>> Hmmm.
>>
>> Seems sort of a shortsighted comment.
>>
>> What would you use for doing something for example as simple as MySQL
>> DB maintenance from a cron job?
>
> C, script? anyone of a zillion better tools than PHP..
> Currently I use C.
>
>
>>
>> But also I would have to say if you are using PHP, then the display
>> page would indeed have php code on it (even as simple as a single line
>> include/require) in which case pulling the page name is going to be
>> the same.
>>
>> And if the battleship is only a display model on a small shelf then
>> paper mache seems feasible.
>
> You would be surprised actually at how tough a material it is.
>
> Ok its not quite carbon fibre..laminate.. but actually if you had
> nothing else, it WOULD work.
>
> Which is my point. PHP is not a particularly brilliant language. There
> are better, for all other applications that do NOT expect you to
> routinely switch between echoed output and simple-style coding.
>
> Why not use one?
>
>
>
Why not use C, script? Well if all your classes are coded in PHP why
not use those same classes in your cron job? That way as the needs of
the project such as a DB change, you only need to focus on the changes
in the PHP class and not ensure your C or zillion other scripts are
changed accordingly.
[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: Sun Nov 24 20:29:26 GMT 2024

Total time taken to generate the page: 0.04885 seconds