Toon posts:

Probleem met php_mime_magic.dll

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo,

Ik krijg de volgende error:

unable to load dynamic library 'c:/phpdev/php/extensions/php_mime_magic.dll' - The specified procedure could not be found.

Ik heb phpdev423 geiinstalleerd en daar een update overheen gegooid naar php 4.3.0. Ik probeer de functie mime_content_type te gebruiken maar het lukt me niet om de dll te laden. Ik heb de extension in php.ini aangezet, het pad naar magic.mime ingesteld en het pad naar de extensions directory ingesteld. Ik gebruik apache 1.3.27. Ik draai het op XP. Ik heb de dll gekopieerd naar c:/windows en naar c:/windows/system32. De pc al een aantal keer opnieuw opgestart, maar dat hielp ook niet.
Heeft iemand nog een idee, want de mijne zijn op.

alvast bedankt.

  • pjvandesande
  • Registratie: Maart 2004
  • Laatst online: 21-05 14:59

pjvandesande

GC.Collect(head);

Copeer de file is naar het volgende path:
c:\phpdev\php\extensions\

Of staat hij daar al?

edit:

Waarom zet ik een path nou in de code tag :?

[ Voor 42% gewijzigd door pjvandesande op 14-04-2004 17:52 ]


  • Infinitive
  • Registratie: Maart 2001
  • Laatst online: 25-09-2023
Wat ik vreemd vind is dat er staat "the specified procedure could not be found". Dat zou er op wijzen dat de dll file zelf wel bestaat en op de juiste locatie aanwezig is, maar dat de inhoud ervan niet helemaal correct is. Ik vraag me dan wel af, welke functie dan ontbreekt. Jammer dat dat niet in de foutmelding staat ("specified" - ja handig om te weten...!).

Aan de andere kant lijkt het me sterk dat er in je binary package een mislukte dll file zit. Werken andere extenties wel?

putStr $ map (x -> chr $ round $ 21/2 * x^3 - 92 * x^2 + 503/2 * x - 105) [1..4]


  • Infinitive
  • Registratie: Maart 2001
  • Laatst online: 25-09-2023
offtopic:
What the f... mmm waarschijnlijk quote in plaats van edit gebruikt... please ignore, delete.

[ Voor 91% gewijzigd door Infinitive op 14-04-2004 18:12 ]

putStr $ map (x -> chr $ round $ 21/2 * x^3 - 92 * x^2 + 503/2 * x - 105) [1..4]


Verwijderd

Topicstarter
De andere extensies werken wel, zover ik die gebruikt. Ik heb ook een nieuwe php versie gedownload van php.net en de dll vervangen, maar dan krijg ik hetzelfde.
Het enige wat ik nog raar vind is de uitleg op php.net (http://www.php.net/manual/en/ref.mime-magic.php)

Installation
You must compile PHP with the configure switch --with-mime-magic to get support for mime-type functions. The extension needs a copy of the simplified magic file that is distributed with the Apache httpd.

Note: The configure option has been changed from --enable-mime-magic to --with-mime-magic since PHP 4.3.2

Note: This extension is not capable of handling the fully decorated magic file that generally comes with standard Linux distro's and is supposed to be used with recent versions of file command.

Note to Win32 Users: In order to use this module on a Windows environment, you must set the path to the bundled magic.mime file in your php.ini.

Example 1. Setting the path to magic.mime

mime_magic.magicfile = "$PHP_INSTALL_DIR\magic.mime"

Remember to substitute the $PHP_INSTALL_DIR for your actual path to PHP in the above example. e.g. c:\php

Hoe moet ik php opnieuw compileren?

  • Infinitive
  • Registratie: Maart 2001
  • Laatst online: 25-09-2023
Je hoeft hem niet overnieuw te compileren. Je moet gewoon dat stukje over Win32 users opvolgen. Even opzoeken of je de magic.mime file ergens hebt staan en dat het pad in je php.ini zetten.

putStr $ map (x -> chr $ round $ 21/2 * x^3 - 92 * x^2 + 503/2 * x - 105) [1..4]


Verwijderd

Topicstarter
Ik heb het erin gezet:

mime_magic.magicfile = "C:\phpdev\php\magic.mime"

maar dat maakt verder niet echt veel uit, ik krijg nog steeds dezelfde error.
Als ik een test bestandje maak met phpinfo(), dan vindt ik de variabele nergens terug, het lijkt alsof hij het niet meeneemt. :?
Pagina: 1