Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5073
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Name of page itself? |
| Date | 2012-03-01 15:28 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <jip0mr$hs8$1@dont-email.me> (permalink) |
| References | (1 earlier) <f244fbdd-78f1-48b4-a578-635b97e4dbde@gr6g2000vbb.googlegroups.com> <timstreater-0B8191.12153501032012@news.individual.net> <jinrnq$ga5$2@news.albasani.net> <jinvl5$3ra$2@dont-email.me> <jio011$oor$1@news.albasani.net> |
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@gr6g2000vbb.googlegroups.com>, >>>> Captain Paralytic <paul_lautman@yahoo.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.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Name of page itself? Sonnich Jensen <sonnichjensen@gmail.com> - 2012-02-28 01:58 -0800
Re: Name of page itself? tdk2fe <tdkrupinski@gmail.com> - 2012-02-28 02:14 -0800
Re: Name of page itself? crankypuss <no@email.thanks> - 2012-02-28 03:23 -0700
Re: Name of page itself? bill <nobody@spamcop.net> - 2012-02-28 08:50 -0500
Re: Name of page itself? Scott Johnson <noonehome@chalupasworld.com> - 2012-03-01 06:02 -0800
Re: Name of page itself? Captain Paralytic <paul_lautman@yahoo.com> - 2012-03-01 03:16 -0800
Re: Name of page itself? Tim Streater <timstreater@greenbee.net> - 2012-03-01 12:15 +0000
Re: Name of page itself? The Natural Philosopher <tnp@invalid.invalid> - 2012-03-01 12:57 +0000
Re: Name of page itself? Paul Herber <paul@pherber.com> - 2012-03-01 13:54 +0000
Re: Name of page itself? Paul Herber <paul@pherber.com> - 2012-03-01 13:59 +0000
Re: Name of page itself? The Natural Philosopher <tnp@invalid.invalid> - 2012-03-01 14:06 +0000
Re: Name of page itself? Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-01 10:05 -0500
Re: Name of page itself? Scott Johnson <noonehome@chalupasworld.com> - 2012-03-01 06:04 -0800
Re: Name of page itself? The Natural Philosopher <tnp@invalid.invalid> - 2012-03-01 14:10 +0000
Re: Name of page itself? Tim Streater <timstreater@greenbee.net> - 2012-03-01 17:05 +0000
Re: Name of page itself? Scott Johnson <noonehome@chalupasworld.com> - 2012-03-01 15:28 -0800
Re: Name of page itself? Tim Streater <timstreater@greenbee.net> - 2012-03-01 17:01 +0000
Re: Name of page itself? Arno Welzel <usenet@arnowelzel.de> - 2012-03-02 18:31 +0100
Re: Name of page itself? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-03-01 13:01 +0100
Re: Name of page itself? Denis McMahon <denismfmcmahon@gmail.com> - 2012-03-01 15:23 +0000
csiph-web