webForumDet fria alternativet

Hjälp med att konfigurera PHP

5 svar · 151 visningar · startad av His Divine Shadow

His Divine ShadowMedlem sedan sep. 20004 079 inlägg
#1

Jag har just installeratPHP men när jag ska starta det har detproblem med att ladda PHP, det hittar inte 'extensions' i PHP.ini filen står det såhär:

; UNIX: "/path1:/path2"
;include_path=".:/php/includes"
;
; Windows: "\path1;\path2"
include_path=".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
doc_root= d:\inetpub\wwwroot

; The directory under which PHP opens the script using /~usernamem used only
; if nonempty.
user_dir=

; Directory in which the loadable extensions (modules) reside.
extension_dir= ./

Det är extension dir som inte funkar gissar jag, vad ska jag skriva?
Jag har prövat med
./extensions
c:\php\extensions
plus mycket mera

Förresten vet nån av några bra PHP tutorials?

------------------
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.

Web-TorMedlem sedan nov. 200013 890 inlägg
#2

I min php.ini står det

extension_dir = ./

------------------
/Tor
www.tor.nu

His Divine ShadowMedlem sedan sep. 20004 079 inlägg
#3

Kan dethär ha nått att göra med att min windows mapp och php.ini ligger på D: och php mappen på C:?

------------------
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.

Web-TorMedlem sedan nov. 200013 890 inlägg
#4

Från php.net:

You will need to change the 'extension_dir' setting to
point to your php-install-dir, or where you have placed
your 'php_*.dll' files. ex: c:\php

------------------
/Tor
www.tor.nu

His Divine ShadowMedlem sedan sep. 20004 079 inlägg
#5

Jo man tycker ju det, men icke.
Jag använder Apache förresten.
Min PHP.ini fil:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path=".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path=".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
doc_root=

; The directory under which PHP opens the script using /~usernamem used only
; if nonempty.
user_dir=

; Directory in which the loadable extensions (modules) reside.
extension_dir=c:\php

; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl=On

Fan om jag fattar nått...

------------------
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.

His Divine ShadowMedlem sedan sep. 20004 079 inlägg
#6

Äh det funkar ju inte alls, Apache startar inte heller, hur fans svårt ska det vara å få igång dethär?
Fan då man inte har tillgång till en 2k server med IIS 5...

------------------
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.

129 ms totalt · 3 externa anrop · v20260731065814-full.fb544a5a
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
125 ms — hämta tråd, inlägg och bilagor (db)