Menu

#45 use "include_once" instead of "include" to include Scripts

open
nobody
None
5
2004-08-28
2004-07-26
No

Something should be considered for phpCMS 1.2.1:

If php Scripts are included with {SCRIPT..} into a
page, they should be included via include_once instead
of include. Otherwise users will get in trouble, if
they try to use the same script more then once on a page.
There are 4 locations in class.realtime_phpcms.php
which must be modified.

I don't know if this has any impact in backwards
compatibility, but I think it doesn't.

ciao.. Iggi

Discussion

  • Bernhard Grün

    Bernhard Grün - 2004-08-18

    Logged In: YES
    user_id=634902

    If we do this than a simple script that only outputs a
    'print "hello world";' can't be included more than once. I
    think that we shouldn't change this.

     
  • Thilo Wagner

    Thilo Wagner - 2004-08-28
    • summary: use "include_one" instead of "include" to include Scripts --> use "include_once" instead of "include" to include Scripts
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.