php-general Digest 23 Jul 2009 07:54:18 -0000 Issue 6245

Topics (messages 295708 through 295731):

Re: Client Side PHP
        295708 by: Lenin
        295710 by: Eddie Drapkin

unsetting a referenced parameter in a function
        295709 by: Tom Worster
        295719 by: Shawn McKenzie
        295723 by: Tom Worster
        295724 by: Martin Scotta

Re: Session Confusion.
        295711 by: Yuri Yarlei

newbie question - php parsing
        295712 by: Sebastiano Pomata
        295714 by: João Cândido de Souza Neto
        295715 by: Shane Hill
        295716 by: Lenin
        295717 by: Martin Scotta
        295720 by: Shawn McKenzie

Re: putenv usage
        295713 by: Yuri Yarlei

Calculating number of checkers (draughts) possible positions
        295718 by: דניאל דנון

Re: Replace in a string with regex
        295721 by: Ford, Mike
        295722 by: rszeus

help with stream filter
        295725 by: °×ºÆƽ

How to build an FF extension
        295726 by: Javed Khan
        295727 by: Paul M Foster
        295731 by: Ashley Sheridan

Mediawiki's url confusion
        295728 by: µËÐòÀÖ
        295730 by: Paul M Foster

Re: newbie - Is there a calendar module for date entry?
        295729 by: phphelp -- kbk

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Thu, Jul 23, 2009 at 1:06 AM, Bastien Koert <phps...@gmail.com> wrote:

> On Wed, Jul 22, 2009 at 1:56 PM, Javed Khan<iankha...@yahoo.com> wrote:
> > I need help on my project I want to have my browser do compling of PHP
> scripts. Can someone please send me some concepts and if possible codes to
> do this. I know this aspect will pose great security threat to the server
> and client but I will still love any help with this.
> > Thanks,
> > J. K
> >
> >
> >
>
> PHP is a server side language. If you want to have php as an
> executable on the client, you could look at www.roadsend.com for the
> compiler. Otherwise, you could create a dll on windows for for
> execution in IE or as jim mentioned, write an extension for FF
>

Sorry to Bastien and posting to the list again:
@Javed Khan:
If you just want to have php functions in client side JS then visit
www.phpjs.org

Did you try any good php IDE? like NetBeans 7.0 or Zend Studio or did you
try Dreamweaver with site defined?

--- End Message ---
--- Begin Message ---
On Wed, Jul 22, 2009 at 4:03 PM, Lenin<le...@phpxperts.net> wrote:
> www.phpjs.org

That's hilarious!  Thanks for that laugh =)

--- End Message ---
--- Begin Message ---
though the manual is perfectly clear that this should be expected, i was a
bit surprised that the result of the following is 42

<?php
function foo(&$a) {
  $a = 42;
  unset($a);
  $a = 'meaning';
}
foo($a);
print("$a\n");
?>

normally i would expect unset() to free some memory. but in this example it
doesn't and has a different behavior: it releases foo's reference to the
global $a, allowing the next line to define a local $a.

i think i'd have preferred compile error.



--- End Message ---
--- Begin Message ---
Tom Worster wrote:
> though the manual is perfectly clear that this should be expected, i was a
> bit surprised that the result of the following is 42
> 
> <?php
> function foo(&$a) {
>   $a = 42;
>   unset($a);
>   $a = 'meaning';
> }
> foo($a);
> print("$a\n");
> ?>
> 
> normally i would expect unset() to free some memory. but in this example it
> doesn't and has a different behavior: it releases foo's reference to the
> global $a, allowing the next line to define a local $a.
> 
> i think i'd have preferred compile error.
> 
> 

Well, you unset the reference and then you assigned 'meaning' to a local
function variable $a.  Why would you get a compile error?

-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---
On 7/22/09 6:09 PM, "Shawn McKenzie" <nos...@mckenzies.net> wrote:

> Tom Worster wrote:
>> though the manual is perfectly clear that this should be expected, i was a
>> bit surprised that the result of the following is 42
>> 
>> <?php
>> function foo(&$a) {
>>   $a = 42;
>>   unset($a);
>>   $a = 'meaning';
>> }
>> foo($a);
>> print("$a\n");
>> ?>
>> 
>> normally i would expect unset() to free some memory. but in this example it
>> doesn't and has a different behavior: it releases foo's reference to the
>> global $a, allowing the next line to define a local $a.
>> 
>> i think i'd have preferred compile error.
>> 
>> 
> 
> Well, you unset the reference and then you assigned 'meaning' to a local
> function variable $a.  Why would you get a compile error?

when you state it in those terms (which are clearly correct) i wouldn't.

but if the way i think is "unset() destroys the specified variables" (as the
manual puts it) then i expect that the specified variable would be
destroyed, not the reference.

so, as i said, i was a bit surprised when the variable wasn't destroyed.
once i understood what was happening, i thought it a bit confusing to have
such scope-dependent differences in behavior of a language element.



--- End Message ---
--- Begin Message ---
On Wed, Jul 22, 2009 at 9:27 PM, Tom Worster <f...@thefsb.org> wrote:

> On 7/22/09 6:09 PM, "Shawn McKenzie" <nos...@mckenzies.net> wrote:
>
> > Tom Worster wrote:
> >> though the manual is perfectly clear that this should be expected, i was
> a
> >> bit surprised that the result of the following is 42
> >>
> >> <?php
> >> function foo(&$a) {
> >>   $a = 42;
> >>   unset($a);
> >>   $a = 'meaning';
> >> }
> >> foo($a);
> >> print("$a\n");
> >> ?>
> >>
> >> normally i would expect unset() to free some memory. but in this example
> it
> >> doesn't and has a different behavior: it releases foo's reference to the
> >> global $a, allowing the next line to define a local $a.
> >>
> >> i think i'd have preferred compile error.
> >>
> >>
> >
> > Well, you unset the reference and then you assigned 'meaning' to a local
> > function variable $a.  Why would you get a compile error?
>
> when you state it in those terms (which are clearly correct) i wouldn't.
>
> but if the way i think is "unset() destroys the specified variables" (as
> the
> manual puts it) then i expect that the specified variable would be
> destroyed, not the reference.
>
> so, as i said, i was a bit surprised when the variable wasn't destroyed.
> once i understood what was happening, i thought it a bit confusing to have
> such scope-dependent differences in behavior of a language element.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
RTM: http://php.net/unset

The behavior of *unset()* inside of a function can vary depending on what
type of variable you are attempting to destroy.

If a globalized variable is *unset()* inside of a function, only the local
variable is destroyed. The variable in the calling environment will retain
the same value as before *unset()* was called.

/ ... /

If a variable that is PASSED BY REFERENCE is *unset()* inside of a function,
only the local variable is destroyed. The variable in the calling
environment will retain the same value as before *unset()* was called.


I think the manual is very clear about unset.

-- 
Martin Scotta

--- End Message ---
--- Begin Message ---
Hello

For the authentication you can do a form, it will pass the login
informations to some class who do the sql validation and put in session
the informations of user, but not the password, i prefer put in session
because when he close the browser the session will down



for 2 , 

On the first point, session variables are not something people can get 
to from the client side unless you send them to them.  What you see on 
the client side is a session identifier that allows the server to 
retrieve the actual session values.


for 3

You dont need encode all the session for the security, if you want more 
security for some variables, encode just these



for 4

One of the intentions of the session is store informations for the easy 
aplication access



for 5

I think its not a good idea, the ip can change in the middle of the aplication

Yuri Yarlei.
Programmer PHP, CSS, Java, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



> Date: Wed, 22 Jul 2009 10:19:44 -0700
> From: darrenwi...@yahoo.com
> To: php-gene...@lists.php.net
> Subject: [PHP] Session Confusion.
> 
> Dear Forums,
> 
> Kindly advice me professionally because, am getting more confused on what to 
> do about my application that needed to be online very soon.
> 
> The fear is about Session and Authentication.
> 
> Here are my questions.
> 1.   Must a Page Authentication be done by Session or Cookie. If not what are 
> the other options.
> 2.   How secured is Session without encoding.
> 3.   Must you encode Sessions at all time and if not what type of Session.
> 4.   Is it dangerous to pass one Session on several Page.
> 5.   What about locking a Session to an IP ......(tips needed)
> 5.   Session Security tips please.
> 
> Thank You All.
> 
> Williams.
> 
> 
> 
>       

_________________________________________________________________
Descubra todas as novidades do novo Internet Explorer 8
http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_campaign=IE8

--- End Message ---
--- Begin Message ---
Hi all,

A little doubt caught me while I was writing this snippet of code for
a wordpress template:

<?php if (the_title('','',FALSE) != 'Home') { ?>
<h2 class="entry-header"><?php the_title(); ?></h2>
<?php } ?>

I always thought that php was called only between the <?php ?> tags,
and I'm pretty sure that's right, while HTML code was simply wrote in
document as is, without further logic.
Now, I can't figure out how this snippet works: I mean, shouldn't HTML
code be simply put on document, as it is outside php invoke?
Effectively if the title of page is 'Home', the HTML part is totally
skipped.

Is the if construct that does all the magic inside?

--- End Message ---
--- Begin Message ---
You made a mistake in your code:

<?php the_title(); ?>

must be:

<?php echo the_title(); ?>

-- 
João Cândido de Souza Neto
SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br

"Sebastiano Pomata" <lafayett...@gmail.com> escreveu na mensagem 
news:70fe20d60907221355m3fa49a75ua053d2f1b9aca...@mail.gmail.com...
> Hi all,
>
> A little doubt caught me while I was writing this snippet of code for
> a wordpress template:
>
> <?php if (the_title('','',FALSE) != 'Home') { ?>
> <h2 class="entry-header"><?php the_title(); ?></h2>
> <?php } ?>
>
> I always thought that php was called only between the <?php ?> tags,
> and I'm pretty sure that's right, while HTML code was simply wrote in
> document as is, without further logic.
> Now, I can't figure out how this snippet works: I mean, shouldn't HTML
> code be simply put on document, as it is outside php invoke?
> Effectively if the title of page is 'Home', the HTML part is totally
> skipped.
>
> Is the if construct that does all the magic inside? 



--- End Message ---
--- Begin Message ---
2009/7/22 João Cândido de Souza Neto <j...@consultorweb.cnt.br>

> You made a mistake in your code:
>
> <?php the_title(); ?>
>
> must be:
>
> <?php echo the_title(); ?>


<?= the_title(); ?>

also works.

-Shane



>
>
> --
> João Cândido de Souza Neto
> SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS
> Fone: (0XX41) 3033-3636 - JS
> www.siens.com.br
>
> "Sebastiano Pomata" <lafayett...@gmail.com> escreveu na mensagem
> news:70fe20d60907221355m3fa49a75ua053d2f1b9aca...@mail.gmail.com...
> > Hi all,
> >
> > A little doubt caught me while I was writing this snippet of code for
> > a wordpress template:
> >
> > <?php if (the_title('','',FALSE) != 'Home') { ?>
> > <h2 class="entry-header"><?php the_title(); ?></h2>
> > <?php } ?>
> >
> > I always thought that php was called only between the <?php ?> tags,
> > and I'm pretty sure that's right, while HTML code was simply wrote in
> > document as is, without further logic.
> > Now, I can't figure out how this snippet works: I mean, shouldn't HTML
> > code be simply put on document, as it is outside php invoke?
> > Effectively if the title of page is 'Home', the HTML part is totally
> > skipped.
> >
> > Is the if construct that does all the magic inside?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html>  -
"Sports is like a war without the killing."

2009/7/23 Shane Hill <shanehil...@gmail.com>

> 2009/7/22 João Cândido de Souza Neto <j...@consultorweb.cnt.br>
>
> > You made a mistake in your code:
> >
> > <?php the_title(); ?>
> >
> > must be:
> >
> > <?php echo the_title(); ?>
>
>
> <?= the_title(); ?>


Short tag and not recommended as its deprecated now, would be void at PHP
6.0

--- End Message ---
--- Begin Message ---
This is how I'd write this snippet

<?php
if ( 'Home' !== ( $title = the_title('','',FALSE)))
{
    echo '<h2 class="entry-header">',
        $title,
    '</h2>';
}
?>

On Wed, Jul 22, 2009 at 6:31 PM, Lenin <le...@phpxperts.net> wrote:

> Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html>
>  -
> "Sports is like a war without the killing."
>
> 2009/7/23 Shane Hill <shanehil...@gmail.com>
>
> > 2009/7/22 João Cândido de Souza Neto <j...@consultorweb.cnt.br>
> >
> > > You made a mistake in your code:
> > >
> > > <?php the_title(); ?>
> > >
> > > must be:
> > >
> > > <?php echo the_title(); ?>
> >
> >
> > <?= the_title(); ?>
>
>
> Short tag and not recommended as its deprecated now, would be void at PHP
> 6.0
>



-- 
Martin Scotta

--- End Message ---
--- Begin Message ---
João Cândido de Souza Neto wrote:
> You made a mistake in your code:
> 
> <?php the_title(); ?>
> 
> must be:
> 
> <?php echo the_title(); ?>
> 

I haven't used worpress in a long time, but the the_title() function
might echo the title unless you pass the FALSE parameter, in which case
it just returns it.

-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---
You can use the date_default_timezone_set(), it will set the default timezone 
to your timezone choose, some server denied the access to the environment 
variable

Yuri Yarlei.
Programmer PHP, CSS, Java, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



> Date: Wed, 22 Jul 2009 15:16:25 +0100
> From: phpm...@jawbone.freeserve.co.uk
> To: manojsingh2...@gmail.com
> CC: php-gene...@lists.php.net
> Subject: Re: [PHP] putenv usage
> 
> 2009/7/22 Manoj Singh <manojsingh2...@gmail.com>:
> 
> > Now my question is whether it is fine to use putenv in the production
> > environment? Whether the putenv changes the timezone value globally for all
> > request or for the current request only?
> 
> "The environment variable will only exist for the duration of the
> current request." - www.php.net/putenv
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

_________________________________________________________________
Compartilhe os momentos mais importantes da sua vida.
http://www.microsoft.com/brasil/windows/windowslive/products/photos-share.aspx?tab=1

--- End Message ---
--- Begin Message ---
I am trying to calculate the number of possible checkers position - at first
without including promotion (queen/king).

Each player starts with 12 pieces in his color,
And the whole board has 32 places (64 / 2).

At first glance I thought - each place can be occupied by either black
piece, white piece, or nothing. Which means 3^32 is the answer.

Then I realized it can't be, since there is maximum of 12 pieces in each
color,
And if are for example 10 white pieces (-2), then:  +2 empty squares.

I thought about the following - We got minimum of 8 places that aren't
occupied,
So I start with 1 ^ 8 (which is 1)

I got 12 squares that have either white or nothing - which means 1^8 * 2^12
And of course another 12 taken by black or nothing
Which means 1^8 * 2^12 * 2^12 = 2^24

Its not the final number, There are a lot less, I just don't know how to add
it to the equation...

-- 
Use ROT26 for best security

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: rszeus [mailto:rsz...@gmail.com]
> Sent: 22 July 2009 19:23
> To: 'Jim Lucas'
> Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk; php-
> gene...@lists.php.net
> Subject: RE: [PHP] Replace in a string with regex
> 
> No, sory, my bad typing. It's not the problem..
> I have the same on both caxses, only chnage the variable $id
>  $file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg"
>  $id = '70';
>  echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id,
> $file);
>  Get: 0
> 
> file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg";
> $id = test;
> echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id,
> $file);
> 
> Get: screen/test
> 
> What is wrong with having na integer on the var ?

Well, the problem here is that when you concatenate $id containing 70 on to 
'$1', you effectively end up with '$170' -- which the manual page at 
http://php.net/preg-replace makes clear is ambiguous, but is likely to be 
treated as $17 followed by a zero, rather than $1 followed by 70. Since $17 
doesn't exist (as you don't have that many capturing subpatterns in your 
pattern!), it is taken to be the null string -- leaving just the left over 0 as 
the result of the replacement. QED.

The workaround for this is also given on the page referenced above, which is to 
make your replacement be '${1}'.$id.

Incidentally, I don't really see the need for the $1, or the equivalent 
parentheses in the pattern -- since a fixed string is involved, why not just 
use it directly in both places? Like this:

   preg_replace('#screen/temp/(.+?)_1(.+?\.jpg)#', 'screen/'.$id, $file);

which completely sidesteps the problem.

Cheers!

Mike
 -- 
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Leeds Metropolitan University, C507, Civic Quarter Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom 
Email: m.f...@leedsmet.ac.uk 
Tel: +44 113 812 4730




To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--- End Message ---
--- Begin Message ---
Thank you very much!
Understand. And it Works very well now.

Cheers

-----Mensagem original-----
De: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] 
Enviada: quinta-feira, 23 de Julho de 2009 00:04
Para: php-gene...@lists.php.net
Assunto: RE: [PHP] Replace in a string with regex

> -----Original Message-----
> From: rszeus [mailto:rsz...@gmail.com]
> Sent: 22 July 2009 19:23
> To: 'Jim Lucas'
> Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk; php-
> gene...@lists.php.net
> Subject: RE: [PHP] Replace in a string with regex
> 
> No, sory, my bad typing. It's not the problem..
> I have the same on both caxses, only chnage the variable $id
>  $file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg"
>  $id = '70';
>  echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id,
> $file);
>  Get: 0
> 
> file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg";
> $id = test;
> echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id,
> $file);
> 
> Get: screen/test
> 
> What is wrong with having na integer on the var ?

Well, the problem here is that when you concatenate $id containing 70 on to 
'$1', you effectively end up with '$170' -- which the manual page at 
http://php.net/preg-replace makes clear is ambiguous, but is likely to be 
treated as $17 followed by a zero, rather than $1 followed by 70. Since $17 
doesn't exist (as you don't have that many capturing subpatterns in your 
pattern!), it is taken to be the null string -- leaving just the left over 0 as 
the result of the replacement. QED.

The workaround for this is also given on the page referenced above, which is to 
make your replacement be '${1}'.$id.

Incidentally, I don't really see the need for the $1, or the equivalent 
parentheses in the pattern -- since a fixed string is involved, why not just 
use it directly in both places? Like this:

   preg_replace('#screen/temp/(.+?)_1(.+?\.jpg)#', 'screen/'.$id, $file);

which completely sidesteps the problem.

Cheers!

Mike
 -- 
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Leeds Metropolitan University, C507, Civic Quarter Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom 
Email: m.f...@leedsmet.ac.uk 
Tel: +44 113 812 4730




To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm


--- End Message ---
--- Begin Message ---
Hi, everyone

 

         Has anyone tried to use stream filter to decompress a large file?
My problem when doing this is memory consume.

My php process requires more and more memory as time goes. Is this a bug or
just I don’t get the right usage?

 

         My code as follows:

          26 $fp = fopen ( $filename, 'r' );

     27 $filter = stream_filter_append($fp, 'bzip2.decompress',
STREAM_FILTER_READ);

     28 

     29 $counter = 0; 

     30 while ( ! feof ( $fp ) )

     31 {

     32     $counter ++;

     33     $line = fgets ( $fp ); 

 

         Thanks!

 

 


--- End Message ---
--- Begin Message ---
How to build an FF extension and how to install it. I'm using Fedora 10 
operating system. 
Can someone please provide me with the steps 
Thanks 
J.K 


      

--- End Message ---
--- Begin Message ---
On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote:

> How to build an FF extension and how to install it. I'm using Fedora 10
> operating system.
> Can someone please provide me with the steps
> Thanks
> J.K

Let me substitute for Dan here. You're asking this on a PHP list, which
isn't the appropriate venue for such a question. Firefox/Mozilla lists
would be a better place to ask.

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote:
> On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote:
> 
> > How to build an FF extension and how to install it. I'm using Fedora 10
> > operating system.
> > Can someone please provide me with the steps
> > Thanks
> > J.K
> 
> Let me substitute for Dan here. You're asking this on a PHP list, which
> isn't the appropriate venue for such a question. Firefox/Mozilla lists
> would be a better place to ask.
> 
> Paul
> 
> -- 
> Paul M. Foster
> 

I'm not sure those lists could help him either, as the abbreviation for
Firefox is Fx, not FF.

Thanks
Ash
www.ashleysheridan.co.uk


--- End Message ---
--- Begin Message ---
Hi everyone:

I've been studying the codes of Mediawiki for some time.

I'm convinced that the file "index.php" is the only entrance to the whole
site.

But I cannot help myself with the url pattern :
/somepath_to_mediawiki/index.php/pagetitle.

How can this kind of url be parsed to the file "index.php" and the
"pagetitle" be parsed as params?

Why the web server not go straight into path "index.php/" and look for the
file named "pagetitle" ?



My first post ^_^ .And,I'm not sure if this issue should be talked here^_^.
  thank you however~

Lamp Deng
09/07/23

--- End Message ---
--- Begin Message ---
On Thu, Jul 23, 2009 at 11:57:51AM +0800, ?????? wrote:

> Hi everyone:
> 
> I've been studying the codes of Mediawiki for some time.
> 
> I'm convinced that the file "index.php" is the only entrance to the whole
> site.
> 
> But I cannot help myself with the url pattern :
> /somepath_to_mediawiki/index.php/pagetitle.
> 
> How can this kind of url be parsed to the file "index.php" and the
> "pagetitle" be parsed as params?
> 
> Why the web server not go straight into path "index.php/" and look for the
> file named "pagetitle" ?
> 

This type of thing is common for sites using the "MVC" or
"Model-View-Controller" paradigm. The index.php file is what's called a
"front controller". A front controller is usually the entrance to all
the other pages of a site. URLs like this often take advantage of an
Apache feature called "mod_rewrite", which tells Apache how to handle
URLs which look like this. You can look on wikipedia.org for these terms
or google for them, and find full explanations.

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message --- Here is a simple but effective one, which has the advantage of optionally doing datetime.

-- -- http://www.rainforestnet.com

If anyone knows of others that do both date and datetime, I'd love to see them.

Ken


--- End Message ---

Reply via email to