SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: php or php3?

  1. #1
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using php4 and I want to run a script that has all php3 file extensions. Why didn't the developers think about this, or am I doing something wrong?

    If I change the file extension to php instead of php3 everything works fine....but am I going to have to change all instances of php3 in the code?

    please advise

    thanks

    dav

  2. #2
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the software you're using doesn't have a PHP version, your best bet is to get your host to upgrade your server to PHP4.

  3. #3
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am building my site on my local machine Win2000/NT. I currently have installed PHP 4.0 - Win32 Distribution and MYSQL.

    I am trying to setup a PHP coded link script. The script has PHP3 file extensions throughout.

    I am wondering why the PHP3 file extensions won't work with PHP4...has anyone else had this problem?

    Maybe this is a better description of my problem.

    dav

  4. #4
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well if this was *nix you'd just add the php3 extension to your mime conf file. anybody know how to do this for the Win version?

  5. #5
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey thanks....thats all I needed.

    dav

  6. #6
    SitePoint Addict Drinky's Avatar
    Join Date
    Jan 2001
    Location
    England
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jonese
    well if this was *nix you'd just add the php3 extension to your mime conf file. anybody know how to do this for the Win version?
    You can do this in windows by means of a simple registry entry...

    For personal webserver:
    locate the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map

    add the string value(s)
    ".php"="C:\windows\system\php\php4isapi.dll" (this is how they look on my system)
    they are of the format
    key name = fileextension
    key value = path to php parser .dll file.

    For IIS:
    From php install notes
    - Under 'ISAPI Filters', add a new ISAPI filter. Use 'PHP' as the filter name, and supply a path to the php4isapi.dll that is included in the distribution.
    - Under 'Home Directory', click on the 'Configuration' button. Add a new entry to the Application Mappings; Use the path the php4isapi.dll as the Executable, supply .php as the extension, leave 'Method exclusions', blank, and check the Script engine checkbox.
    Just repeat this with different file extensions
    Last edited by Drinky; Feb 25, 2001 at 19:48.
    Drinky


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •