Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > PHP4 e 5
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
klod
.primate.

User info:
Registered: Jul 2003
Posts: 65 (0.01 al dì)
Location: milano
Corso: informatica
Anno: ormai...
Time Online: 13:58:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Angry PHP4 e 5

Ciao a tutti,vi riporto un problema a cui non so dare spiegazioni che mi è capitato giusto ieri.
Ho installato apache 1.x con php 4.3 e mysql e sto facendo una pagina html con form di login e registrazione in php.
Mi registro, tutto viene scritto sul db e tutto funziona alla perfezione.
Poi per necessità di nuove funzioni xml/xslt upgrado il php alla versione 5..non l'avessi mai fatto..

Warning: Cannot modify header information - headers already sent by (output started at /path_doc_dir/config.inc.php:16) in /path_doc_dir/EseguiRegistrazione.php on line 52


dopo questo errore dice che la registrazione è avvenuta con successo..:shock: ..beh provo a loggarmi e:

Warning: Cannot modify header information - headers already sent by (output started /path_doc_dir/config.inc.php:16) in /path_doc_dir/EseguiLogin.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /path_doc_dir/config.inc.php:16) in /path_doc_dir/EseguiLogin.php on line 11
:? :?

Allora mi armo di buona voglia e configuro apache php e mysql sul server linux pensando che con php4 ripartisse tutto da capo (ah..ho provato a rimettere il php4 su windows ma mysql non lo vuole più,si dev'essere affezionato al php5 e non funziona) ma niente da fare, stessi errori!!
Cosa può essere??

__________________
..:: disturbosi project ::..

02-02-2005 16:30
Click Here to See the Profile for klod Click here to Send klod a Private Message Visit klod's homepage! Find more posts by klod Add klod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Bella sfida senza sapere cosa c'è in config.inc.php :)

Stai usando la funzione "header" da qualche parte?

Con il passaggio da php4 a 5, sicuramente ti si sono modificati i file di configurazione, tra i cui vari parametri dovrebbe esserci qualcosa tipo error_reporting... Guarda sulle man o su google :)

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

02-02-2005 16:38
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
klod
.primate.

User info:
Registered: Jul 2003
Posts: 65 (0.01 al dì)
Location: milano
Corso: informatica
Anno: ormai...
Time Online: 13:58:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

<?php
$user="user";
$password="pass";
$host="localhost";
$nome_db="nome_db";
$db=mysql_connect($host,$user,$password);
if ($db == 0)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");

$connessione=mysql_select_db($nome_db,$db);

if ($connessione == 0)
die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
?>

__________________
..:: disturbosi project ::..

02-02-2005 16:56
Click Here to See the Profile for klod Click here to Send klod a Private Message Visit klod's homepage! Find more posts by klod Add klod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Alf
°o.mini sayan.o°

User info:
Registered: Jun 2003
Posts: 5381 (0.67 al dì)
Location: Mediolanum
Corso: Informatica
Anno: FINITOOOO!
Time Online: 155 Days, 9:46:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by klod
<?php
$user="user";
$password="pass";
$host="localhost";
$nome_db="nome_db";
$db=mysql_connect($host,$user,$password);
if ($db == 0)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");

$connessione=mysql_select_db($nome_db,$db);

if ($connessione == 0)
die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
?>


Sbaglio o sono 14 ? :asd:

__________________
(\ /)
( . .)
c('')('') This is Bunny!
Help her succeed in world domination by copy and pasting her in
your signature.

02-02-2005 17:07
Click Here to See the Profile for Alf Click Here to See the Blog of Alf Click here to Send Alf a Private Message Find more posts by Alf Add Alf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
klod
.primate.

User info:
Registered: Jul 2003
Posts: 65 (0.01 al dì)
Location: milano
Corso: informatica
Anno: ormai...
Time Online: 13:58:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non sbagli...fico eh!
Ti adoro, cancellando 2 righe vuote in fondo ora va tutto..non me ne ero accorto!
Grazie!!

__________________
..:: disturbosi project ::..

Last edited by klod on 02-02-2005 at 17:11

02-02-2005 17:09
Click Here to See the Profile for klod Click here to Send klod a Private Message Visit klod's homepage! Find more posts by klod Add klod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Alf
°o.mini sayan.o°

User info:
Registered: Jun 2003
Posts: 5381 (0.67 al dì)
Location: Mediolanum
Corso: Informatica
Anno: FINITOOOO!
Time Online: 155 Days, 9:46:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by klod
Non sbagli...fico eh!
Ti adoro, cancellando 2 righe vuote in fondo ora va tutto..non me ne ero accorto!
Grazie!!


Oh merd ...
C'erano dei caratteri "spuri" allora ... :)
Non li riuscivi a visualizzare ma c'erano :D

bene

__________________
(\ /)
( . .)
c('')('') This is Bunny!
Help her succeed in world domination by copy and pasting her in
your signature.

02-02-2005 19:39
Click Here to See the Profile for Alf Click Here to See the Blog of Alf Click here to Send Alf a Private Message Find more posts by Alf Add Alf to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mmmpiù o meno :)

E' che 9 volte su 10, quando c'è un messaggio di quel tipo è perché ci sono righe vuote da qualche parte. Per quello gli ho chiesto se aveva usato la funzione header: ho avuto lo stesso problema un paio di anni fa :)

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

02-02-2005 19:48
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 21:53.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.043 seconds (71.98% PHP - 28.02% MySQL) con 23 query.