We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts
    Are we going to have a training session with Jason about using advanced class and function? wink

    Honestly, PHP has the weirdest usabilty of class in all other programming languages that I use. But that might be one of the biggest advantage of scripting language, it’s a lot easier to use. One more thing though, some time the use of strong typing in PHP is really needed, considering that I saw a lot of PHP script running around without the use of strong typing, which sometime it’s hard for me to grasp the whole concept of the code. Take an example one variable $temp that is use for string, integer, float, and etc. Can you imagine when you read the code and you start wondering what’s the type of the current content for this $temp variable? But that’s also one of the benefit that I can see form PHP, which lead to the flexibility in building a small usefull code, if it is use correctly.

    Dude... I’m way over my head now. I guess I post this on the wrong topic wink It’s just a thought that come across my mind when reading advanced php scripting post in this topic.

    Keep it up mark... Glad to have this snippet with me all the time... wink
      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
      • 26435
      • 1,193 Posts
      Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of AppendTvs(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /Library/WebServer/Documents/assets/snippets/newslisting/functions.php on line 127


      Hmmm? What’s this all about?

      -sD-
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 18397
        • 3,250 Posts
        Hmmmmm, that was the fix Jason reccomended for a problem I was having with a function that modified an existing array. What version of php are you running?
          • 26435
          • 1,193 Posts
          I am testing it under Mac OS X 10.4.3 running Apache 1.3.33, MySQL 4.0.25, and PHP 5.0.4 as a local testing server
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 18397
            • 3,250 Posts
            Info I just found looking up the error:

            At some stage in PHP development, PHP was changed so that instead of forcing arguments to be passed by reference with ’&’ the requirement to pass by reference was placed in the function prototype and forcing pass by reference with ’&’ was depracated. At this point the php.ini option "allow_call_time_pass_reference" was added. By default, allow_call_time_pass_reference is set to On but if you turn it off (or are using a PHP where allow_call_time_pass_reference is removed) you may get this warning.
              • 26435
              • 1,193 Posts
              Quote from: ScottyDelicious at Jan 08, 2006, 09:47 PM

              I am testing it under Mac OS X 10.4.3 running Apache 1.3.33, MySQL 4.0.25, and PHP 5.0.4 as a local testing server

              Ok... I tried it out on my hosted server (with Site5.com) on a linux machine, and it works fine. Must be stupid Mac OS X!!! grin
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 18397
                • 3,250 Posts
                NewsListing Version 6.1.1

                Bugfix Release

                I had a misplaced & that was causing problems.
                  • 18397
                  • 3,250 Posts
                  NewsListing Version 6.1.2

                  Bugfix Release

                  Another minor bug with some versions of php.
                    • 8461
                    • 205 Posts
                    Just to check as its the first time I have installed a snippet

                    Basically I replace the contents of my current NewsListing snippet with this file "snippet.newslisting.6.1.txt"

                    Then copy the supplied functions.php into assets/snippets/newslisting/functions.php

                    And everything should be fine?

                    P.S I am assuming those files on the first topic of this forum item contain the latets downloads
                      • 33453
                      • 141 Posts
                      That’s exactly right, edge.

                      What I tend to do though is create a new snippet called "NewsListing61" and use that in place of the original. That way you can always go back if anything goes wrong.