hey guys i really need some help out here. have php 5 running buh got some file s ah gotta work on and everything has de .php3 and my php engine wont interpret it kinda worried any got any idea wats wrong ?:mad:

    Find out what the PHP5 extension is from your web host. Chances are it is .php or .php5, or possibly .phtml

      Change the extensions to ".php", perhaps, and hope they run under PHP5? (As PHP4 is schedule to "die" by the end of this year, trying to run something under PHP3 seems both risky and a bit silly.)

        have about 16 mil file n ders no way i can change every thing .

          currently my php engine is php 5 and the files i have .have de .php3 extension

            have about 16 mil file n ders no way i can change every thing

            One option is to get your web host to configure the server to treat .php3 files as PHP5 scripts. But, of course it should be possible to change everything. For example, you could write a PHP script to change all the filenames and even (very carefully) perform search and replace within the files.

            That said, if you really have PHP3 scripts, you are probably out of luck and should get a PHP5.2 compatible substitute for whatever script you are using. If you wrote the scripts yourself, I do wonder what on earth persuaded you to use the .php3 file extension :p

              laserlight......... 🙂 nope i didn't write dat script ayt .. someone did n ah gotta rework on fde files on ma local pc.. n am currently running php5 so tell me something 🙂 jst want someone to make ma day

                n am currently running php5

                The options are as I stated (and perhaps another option: use a rewrite rule).

                  If running under Apache, you could put a .htaccess file in your root web directory with the following line:

                  AddType application/x-httpd-php .php3
                  

                    yeah i already tried that .. by adding that to the httpd.conf file but it still wont interpret it

                      coldnerd wrote:

                      yeah i already tried that .. by adding that to the httpd.conf file but it still wont interpret it

                      Sorry if it's an obvious question, but did you restart Apache after doing that?

                        still on ma knees anyone who has de solution shd jst paste it in here ayt will read , work on it n thank u ..
                        thanks to ya'll

                          Since the scripts are apparently old (PHP3), I'd guess there's a good chance they use short PHP tags ("<? . . . ?>" instead of "<?php . . . ?>"), so you may need to enable short_open_tags in your config file.

                            Write a Reply...