Hi I´m new to this and have a question

I´ve installed apache 2.0.45 and PHP 4.2.3 and used phpdev to get it started and it checks ou ok when running through the testpages of phpdev
But when I test my site (php+flash) php doesn´t seem to work. Could it be that my php-files on my site is "old" php code and won´t work with php 4 or is php 4 compatible with "old" php.
I´ve tested the same site on my webhotel and there it works out fine.
Should I install "older" php versions as well?

    What do you mean by "older" PHP?

    PHP/FI 2.0?
    PHP3

    or an earlier version of PHP4?

      I´m not sure my self ( I am new )
      But I figured that maybe the code in my php-files are written in som code that is adapted to PHP3 or something and won´t work with PHP 4.
      Or might it be that I have to put my html pages in the PHP folder or Apache folder to get the PHP code to work.

      As you can see I´m stubbling in the dark here.

      The php code I use is some free code that I just modified.

      Thx for responding so quickly!!!

        Well, I doubt it is PHP/FI, and if it is PHP3, there are some differences.

        More likely the scripts are in a early version of PHP4, and so it assumes register_globals is set to on, or there is something in the way it is coded that doesnt make it robust enough.

          But if it works on my webhotel it shouldn´t it be robust enough?

            I noticed that registrer_global is set to off I´ll try to find out where I´ll change that ( guessing httpd.conf?). Hope that is it.
            Thx again

              Hmm tried that but it wasn´t it.
              I´m lost it works on my webhotel but I can´t runém locally. Checked the code for external links but there was only local links so that couldn´t be it.

              😕 😕 😕

                Yes I figured that one out 🙂

                But it still doesn´t work, been browsing forums to find out if someone have had similar problems but no luck so far.

                Should all PHP related files work "globaly" on my computer or do I have to save those files in a special phpfolder in my apache dir?

                  Well, generally I place my PHP scripts in htdocs when I want them to be executed.

                    Damn it won´t work 😕

                    Well I´m gonna try changing the path in wich I´m calling the code. No it´s just a local path maybe if I alter it to a http://localhost hopefully that will do it🙂

                    Thx for your help laserlight

                      Write a Reply...