PDA

View Full Version : Ricompilare php con un opzione (problema da pivellino)


utrecht
20-10-2004, 09:33
ciao a tutti,
sto facendo delle prove con php utilizzando i socket su una mandrake 9.2 (lo so, è già uscita la 10 ma per me era già una mega conquista aver installato almeno una distribuzione :))

Ecco l'errore incriminato:
Fatal error: Call to undefined function: socket_create() in c:\programmi\apache group\apache\htdocs\test\socket\script1.php3 on line 22

Il problema è che non riconosce la funzione socket_create() perchè non ho installato il modulo sockets (dovrebbe essere 'sockets.so').
Presumo che debba ricompilare php con l'opzione --enable socket? ehm... come si fa da shell? :( :(
Per la precisone, php è già installato come modulo su apache: devo prima disinstallarlo?

Grazie e scusate la banalità delle domande!

RaouL_BennetH
20-10-2004, 12:00
se l'opzione che devi passare (dovrebbe essere nel readme) è --enable socket, il ./configure ti basta darlo così da shell: ./configure --enable socket.

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.