Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: From php to perl + template solution

by Nik
on Jul 13, 2010 at 08:43 UTC ( #849192=note: print w/ replies, xml ) Need Help??


in reply to Re: From php to perl + template solution
in thread From php to perl + template solution

That what i want to do, but those stuff take place inside perl script code. If the user request a web page from my website, how the index.py will be called with that webpaeg request as parameter so that it know for WHAT webpage he need to add, display counter?

I have no php code any more inside my html pages, just pure html code made from dreaweaver that the uyser clicks on them. How all the above take place?


Comment on Re^2: From php to perl + template solution
Re^3: From php to perl + template solution
by moritz (Cardinal) on Jul 13, 2010 at 08:56 UTC
    If the user request a web page from my website, how the index.py will be called

    Are you sure you're still talking about the same problem as before? Do you really need to mix perl, python and php?

    And can you not actually avoid calling an external program, and do the counter updating in Perl? If not, what prevents you? <bllockquote> so that it know for WHAT webpage he need to add, display counter?

    Usually by passing command line arguments, or setting environment variables. But of course that depends on how the called script expects to get its arguments.

    Perl 6 - links to (nearly) everything that is Perl 6.
Re^3: From php to perl + template solution
by marto (Chancellor) on Jul 13, 2010 at 09:31 UTC

    Seriously, did I wake up in 1994 today? A page counter? You've posted several times over the years about such things. Again your post seems to be about basic coding problems which aren't language/technology specific, others have already given you the pseudocode you need to implement. Consider installing something like awstats if you are concerned with site usage statistics.

      I have implemented it with Perl code in the past and with php code as well. But never with Perl + Template use. Thats what iam asking. Not code just the logic of it.

        "I have implemented it with Perl code in the past and with php code as well."

        Yes I see your previous reaped request for python help on this very topic. Consider reading How do I post a question effectively? since as usual, it seems you have problems actually asking questions that people can understand, without others having to ask you several questions for clarification.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://849192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-08-21 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls