|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Junior Member
Iscritto dal: Oct 2005
Messaggi: 27
|
[PHP]Php in locale su Linux
Ciao a tutti, ho questo problema:
ho utilizzato apache, php(4.4.2), mysql su uno spazio web on-line (provando ad usare lo script del cap. 8 di questo manuale ), e tutto funziona correttamente. Ora ho bisogno di utilizzarlo su Fedora4; ho installato apache(2.0.54), mysql(14.7 Distrib 4.1.11) e php(5.0.4): i servizi partono, php è attivo (provando phpinfo()), ma lo script non funziona correttamente. Quale può essere il motivo?
__________________
CPU: Commodore Semiconductor Group 6502A ¤ COPROCESSOR: VIC-I (6560) ¤ RAM: 5 KB expandable up to 32 KB ¤ GRAPHIC MODES: 184 x 176 ¤ COLORS: 8 character colors, 16 background/border colors ¤ I/O PORTS :1 joystick port, 1 user port, 1 serial port, 1 cartrige port, RGB output, tape interface ¤ POWER SUPPLY :External power supply unit, 18 Watts |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Feb 2005
Messaggi: 321
|
che errore ti da?
potrebbe essere dovuto al fatto che ora stai usando la versione 5 di php, dove alcune cose cambiano rispetto alla 4.
__________________
Ho trattato con ... Aristocrat74 ... felipe ... civas85 ... Isomarcus ... Flipoweb ... GN_Snake ... smartz ... cajenna |
|
|
|
|
|
#3 |
|
Junior Member
Iscritto dal: Oct 2005
Messaggi: 27
|
Non mi da nessun errore...semplicemente lo script non fa quello che dovrebbe fare. Mi sapresti dire se in questa sintassi ce qualcosa che Php ver.5.0.4 non riconosce?
------------------------ $links = array( "index.php3" => "Home page", "pagina2.php3" => "Pagina 2", "pagina3.php3" => "Pagina 3" ); $pagina_corrente = basename($PHP_SELF); while (list($url,$desc)=each($links)) { if ($url==$pagina_corrente) { echo "<b>$desc</b> "; } else { echo "[<a href=\"$url\">$desc</a>] "; } } -------------------------
__________________
CPU: Commodore Semiconductor Group 6502A ¤ COPROCESSOR: VIC-I (6560) ¤ RAM: 5 KB expandable up to 32 KB ¤ GRAPHIC MODES: 184 x 176 ¤ COLORS: 8 character colors, 16 background/border colors ¤ I/O PORTS :1 joystick port, 1 user port, 1 serial port, 1 cartrige port, RGB output, tape interface ¤ POWER SUPPLY :External power supply unit, 18 Watts |
|
|
|
|
|
#4 |
|
Member
Iscritto dal: Oct 2005
Messaggi: 65
|
Hai controllato nella configurazione di Apache che vengano correttamente interpretati i files .php3?
Magari e' quello |
|
|
|
|
|
#5 | |
|
Junior Member
Iscritto dal: Oct 2005
Messaggi: 27
|
No purtroppo non è quello, ho già controllato
I miei dubbi si rivolgono più su questa riga: Quote:
__________________
CPU: Commodore Semiconductor Group 6502A ¤ COPROCESSOR: VIC-I (6560) ¤ RAM: 5 KB expandable up to 32 KB ¤ GRAPHIC MODES: 184 x 176 ¤ COLORS: 8 character colors, 16 background/border colors ¤ I/O PORTS :1 joystick port, 1 user port, 1 serial port, 1 cartrige port, RGB output, tape interface ¤ POWER SUPPLY :External power supply unit, 18 Watts |
|
|
|
|
|
|
#6 |
|
Member
Iscritto dal: Oct 2005
Messaggi: 65
|
Non lo so. Sicuramente e' lecita $_SERVER['PHP_SELF']
Prova, poi ci fai sapere (Y) |
|
|
|
|
|
#7 |
|
Junior Member
Iscritto dal: Oct 2005
Messaggi: 27
|
Grande Emyl
![]() Con $_SERVER['PHP_SELF'] funziona in tutt'e due le versioni; l'unica piccola differenza è che restituisce un percorso 'semi'-assoluto (es. "/index.php" invece di "index.php"). Grazie per l'aiuto!
__________________
CPU: Commodore Semiconductor Group 6502A ¤ COPROCESSOR: VIC-I (6560) ¤ RAM: 5 KB expandable up to 32 KB ¤ GRAPHIC MODES: 184 x 176 ¤ COLORS: 8 character colors, 16 background/border colors ¤ I/O PORTS :1 joystick port, 1 user port, 1 serial port, 1 cartrige port, RGB output, tape interface ¤ POWER SUPPLY :External power supply unit, 18 Watts |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 12:07.




















