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 > Aiuto PHP Thread Rating: 2 votes, 4.00 average.
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
fozzy
apprentice monk

User info:
Registered: May 2002
Posts: 1968 (0.23 al dì)
Location: Bollate (MI)
Corso: SA-299
Anno: primo...di studio "serio"
Time Online: 10 Days, 10:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Aiuto PHP

Non e' materia di informatica quindi lo caccio qui se lo volete spostare bene.. :)

Mi sto finalmente mettendo sotto con il PHP e mi sono rotto di passare da una pagina all'altra stringhe chilometriche nell'URL... perche'? perche' non mi va che chiunque veda quello che passo (almeno non sempre - e comunque voglio poter decidere cosa far vedere)
Fin qui tutto facile, ci sono le sessioni fatte apposta...

session_start();
prima di ogni altra cosa.. tutto bene, la index mi include un'altra pagina nella quale non faccio altro che registrare e settare un parametro (tastino + e -) e ricaricare la pagina.
Qualche volta va qualche volta no... perchè?!?!?!?!

Aiut..

Ciao e grazie, Fozzy

__________________
I sense much NT in you, NT leads to Blue Screens,
Blue Screens lead to downtime, downtime leads to suffering.

NT is the path to the Dark Side....

19-11-2002 21:25
Click Here to See the Profile for fozzy Click here to Send fozzy a Private Message Visit fozzy's homepage! Find more posts by fozzy Add fozzy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Lightman
.grande:maestro.

User info:
Registered: Jul 2002
Posts: 1517 (0.18 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:24:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Difficile dirlo senza aver visto il codice.
Non potresti postare almeno le parti piu' significative ?

__________________
"What peece of worke is a man, how noble in reason, how infinit in faculties, in forme and moouing, how expresse and admirable in action, how like an Angell in apprehension, how like a God: the beautie of the world; the paragon of Annimales; and yet to me, what is this Quintessence of dust: man delights not me" - Hamlet

19-11-2002 22:38
Click Here to See the Profile for Lightman Click Here to See the Blog of Lightman Click here to Send Lightman a Private Message Find more posts by Lightman Add Lightman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fozzy
apprentice monk

User info:
Registered: May 2002
Posts: 1968 (0.23 al dì)
Location: Bollate (MI)
Corso: SA-299
Anno: primo...di studio "serio"
Time Online: 10 Days, 10:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Questa parte viene inclusa nell'index, che gestisce il session_start()

Grazie, Fozzy


La prima parte e' la connesisone al DB e la definizione di variabili, la seconda e' la stampa dei thumbnail e la terza (se e' definito il nome di una immagine) e' l'immagine stessa
(la pagina richiama se stessa come "parametro" per l'include di index.php)


<?php

Qui avevo postato un centinaio di righe di codice sbagliato..

?>

__________________
I sense much NT in you, NT leads to Blue Screens,
Blue Screens lead to downtime, downtime leads to suffering.

NT is the path to the Dark Side....

Last edited by fozzy on 19-11-2002 at 23:07

19-11-2002 22:46
Click Here to See the Profile for fozzy Click here to Send fozzy a Private Message Visit fozzy's homepage! Find more posts by fozzy Add fozzy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Teju
:L'anti - anti-global!!:

User info:
Registered: Dec 2001
Posts: 1394 (0.16 al dì)
Location: Cassina Beach
Corso: Info
Anno: 3° ...circa...
Time Online: 5 Days, 8:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Senti, ma che fa la session_start() ?

__________________
Teju.it - Una vita da raccontare

19-11-2002 22:57
Click Here to See the Profile for Teju Click Here to See the Blog of Teju Click here to Send Teju a Private Message Visit Teju's homepage! Find more posts by Teju Add Teju to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fozzy
apprentice monk

User info:
Registered: May 2002
Posts: 1968 (0.23 al dì)
Location: Bollate (MI)
Corso: SA-299
Anno: primo...di studio "serio"
Time Online: 10 Days, 10:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

E' la pagina sbagliata!!!!! ma porcccc...
mando subito quella giusta.. questa e' quella che volevo fare, non quella di test..

<?php
session_register("prova");
print "<FONT color=\"ffffff\">";
print "\$prova vale: $prova";
print "<BR>";
print "<A HREF=\"index.php?pagina=test&prova=".($prova+1)."\">+</A>";
print"</FONT>";
?>


Se non passo nulla $prova vale 0.. se clicco sul + nell'URL passa ad 1 ma nella pagina non lo rileva..

o devo dirgli esplicitamente di salvare il valore da qualche parte?

Grazie..

__________________
I sense much NT in you, NT leads to Blue Screens,
Blue Screens lead to downtime, downtime leads to suffering.

NT is the path to the Dark Side....

Last edited by fozzy on 19-11-2002 at 23:06

19-11-2002 23:00
Click Here to See the Profile for fozzy Click here to Send fozzy a Private Message Visit fozzy's homepage! Find more posts by fozzy Add fozzy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ahhh ecco l'altro codice non sembrava solo php direi un misto di linguaggi :P
Allora x quanto ne so io i problemi potrebbero essere:

1 non hai inizializzato la sessione con session_start();
2 non so se hai disattivato o no la var "registerglobals" nella configurazione di php. se e' disattivata $prova non credo la consideri una variabile di sessione poiche penso che si riferisca alle var di sessione con un hash che ora non ricordo e che non ho il tempo di andare a cercare ma x farti capire una cosa tipo $HTTP_GET_VARS e $HTTP_POST_VARS per le var dei due metodi http.
3 se come da su non hai la "registerglobals" a "on" la variabile prova che gli passi nell'url viene vista come una variabile in HTTP_GET_VARS e non di sessione ovvero non sovrascrive la tua quindi in pratica non viene effettuato l'incremento.

Ciao spero di esserti di aiuto

20-11-2002 08:30
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fozzy
apprentice monk

User info:
Registered: May 2002
Posts: 1968 (0.23 al dì)
Location: Bollate (MI)
Corso: SA-299
Anno: primo...di studio "serio"
Time Online: 10 Days, 10:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la session_start() si trova nell'index che include questa paginetta test.php
Per registerglobals devo verificare in teopria non le voglio usare, manon voglio nemmeno le GET e POST visto che il vantaggio delle sessioni e' proprio quello di non doverle usare.. :D

A questo punto altra curiosita'.. Come gestireste l'incremento della variabile? Form? e altro tasto per ricaricare la pagina?
Grazie, Fozzy

__________________
I sense much NT in you, NT leads to Blue Screens,
Blue Screens lead to downtime, downtime leads to suffering.

NT is the path to the Dark Side....

20-11-2002 08:38
Click Here to See the Profile for fozzy Click here to Send fozzy a Private Message Visit fozzy's homepage! Find more posts by fozzy Add fozzy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si ma senza GET e POST premettendo che gli hash cmq lui te li crea anche se vuoti ma mettiamo il caso che non usi ne' GET ne' POST come incrementi la variabile ? nel senso..non puoi farlo a quel punto interattivamente puoi farlo solo scrivendo codice fisso in una qualche pagina che incrementi la variabile

Ciao :)

20-11-2002 08:48
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
empirico
Red Nerd

User info:
Registered: Nov 2001
Posts: 2217 (0.25 al dì)
Location: Milano
Corso: University of Southern Desert.
Anno: pino Insegno
Time Online: 8 Days, 21:11:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Virgo ma quante cose sai? :shock:

__________________
quando ho creato il De Bell non esisteva Facebook.
Sono un Red Nerd.


20-11-2002 12:07
Click Here to See the Profile for empirico Click Here to See the Blog of empirico Click here to Send empirico a Private Message Find more posts by empirico Add empirico to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

+ di ieri e meno di domani ( e meno di renaulto ihhiih :) )

:)

arrivo al silabbbbbbbbb

20-11-2002 12:23
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lord2y
BANNATO

User info:
Registered: Jul 2002
Posts: 1498 (0.17 al dì)
Location: Milano
Corso: Qualcosa a che fare con l'informatica
Anno: 24esimo ;-(
Time Online: 9 Days, 17:16:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

visto la nuova tendenza di php di levare la possibilità di usare variabili globali che ne pensi di usare php ad oggetti???

Risolveresti tutti i tuoi problemi, passando da una pagina all'altra gli oggetti :cool:

__________________
Linux User#271051
Only God can judge me, is that right?
Only God can judge me now
Only God baby, nobody else. All you other motherfuckers get out my business (2Pac)

21-11-2002 09:05
Click Here to See the Profile for lord2y Click Here to See the Blog of lord2y Click here to Send lord2y a Private Message Visit lord2y's homepage! Find more posts by lord2y Add lord2y to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fozzy
apprentice monk

User info:
Registered: May 2002
Posts: 1968 (0.23 al dì)
Location: Bollate (MI)
Corso: SA-299
Anno: primo...di studio "serio"
Time Online: 10 Days, 10:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

azz. pure qui gli oggetti... :D
Vedro' di darci un occhio, grazie per il consiglio..

ad ogni modo fin ora mi sembra che l'unica via realmente percorribile sia quella del POST... solo che ogni volta che faccio una modifica pe la quale decido di aggiungere un parametro devo andare a modificare tutti i link sulla pagina..
potrei provare a definire una variabile che contiene il link generico.. mah vedremo.. :D

Ciao, Fozzy

__________________
I sense much NT in you, NT leads to Blue Screens,
Blue Screens lead to downtime, downtime leads to suffering.

NT is the path to the Dark Side....

21-11-2002 11:35
Click Here to See the Profile for fozzy Click here to Send fozzy a Private Message Visit fozzy's homepage! Find more posts by fozzy Add fozzy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
korn
SET FIRE!

User info:
Registered: Jun 2002
Posts: 5793 (0.67 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 1°! ....fuori corso :(
Time Online: 37 Days, 5:56:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lord2y
visto la nuova tendenza di php di levare la possibilità di usare variabili globali che ne pensi di usare php ad oggetti???


se lo fanno gli stronco la carriera..

__________________
» Collect some stars to shine for you, and start today ‘cause there are only a few. _ (In Flames)
» Don't stop for nothing, it's full speed or nothing! I'm taking down, you know, whatever is in my way! _ ('tallica)
» I am my own god, I do as I please. _ (Pain)
» Ninetynine, ninetynine knives! Ninetynine knives inside! Nobody gets out alive! _ (The Haunted)
Web: http://www.negativesignal.com - ICQ# 171585477 - Death to software patents! And TCPA too! "e uno!", diceva il boia.

21-11-2002 13:46
Click Here to See the Profile for korn Click Here to See the Blog of korn Click here to Send korn a Private Message Visit korn's homepage! Find more posts by korn Add korn to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fozzy
apprentice monk

User info:
Registered: May 2002
Posts: 1968 (0.23 al dì)
Location: Bollate (MI)
Corso: SA-299
Anno: primo...di studio "serio"
Time Online: 10 Days, 10:57:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora preparati, l'uso di variabili globali é "deprecato" dalla PHP4.0 e vanno esplicitamente attivate in fase di installazione.

Ciao, Fozzy

__________________
I sense much NT in you, NT leads to Blue Screens,
Blue Screens lead to downtime, downtime leads to suffering.

NT is the path to the Dark Side....

21-11-2002 14:25
Click Here to See the Profile for fozzy Click here to Send fozzy a Private Message Visit fozzy's homepage! Find more posts by fozzy Add fozzy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Virgo
.illuminato.

User info:
Registered: Jun 2002
Posts: 239 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 5 o 3
Time Online: 5 Days, 16:21:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

E direi che sia la soluzione migliore visto quello che implica utilizzare variabili globali....io di certo le nuove pagine le farei senza utilizzare le var globali.
Fozzy la storia del link non l'ho capita :(

Ciao

22-11-2002 10:07
Click Here to See the Profile for Virgo Click here to Send Virgo a Private Message Find more posts by Virgo Add Virgo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 00:30.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   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.075 seconds (56.37% PHP - 43.63% MySQL) con 25 query.