Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] Probleme mit apache, PHP und variablen per url >>
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
IINeOII
n00b
n00b


Joined: 29 Aug 2003
Posts: 43

PostPosted: Sun Dec 14, 2003 11:58 pm    Post subject: [OT] Probleme mit apache, PHP und variablen per url >> Reply with quote

Ich hab folgendes Problem:

Ich betreibe einen apache2 webserver mit php4
funktioniert soweit alles einwandfrei, bis auf die tatsache das sich durch die eingabe von z.B.

http://www.kaplan.de/index.php?variable=hallo

keine variablen definition erziehlen lassen kann :(

normalerweise müsste die variable in diesem fall $variable jetzt den inhalt hallo haben, hatse aber nich :(

hatte jemand ein ähnliches problem und kann mir da vielleicht raushelfen, vielleicht muss ja noch irgendetwas in den config dateien aktivert werden oder so
Back to top
View user's profile Send private message
Nightwish
n00b
n00b


Joined: 10 Dec 2003
Posts: 10

PostPosted: Mon Dec 15, 2003 2:04 am    Post subject: Re: Probleme mit apache, PHP und variablen per url >> Reply with quote

IINeOII wrote:
Ich hab folgendes Problem:

Ich betreibe einen apache2 webserver mit php4
funktioniert soweit alles einwandfrei, bis auf die tatsache das sich durch die eingabe von z.B.

http://www.kaplan.de/index.php?variable=hallo

keine variablen definition erziehlen lassen kann :(

normalerweise müsste die variable in diesem fall $variable jetzt den inhalt hallo haben, hatse aber nich :(

hatte jemand ein ähnliches problem und kann mir da vielleicht raushelfen, vielleicht muss ja noch irgendetwas in den config dateien aktivert werden oder so

register_globals ist vermutlich off.

Genaueres erfährst Du in der php Doku. Allerdings sollte man register_globals mit Vorsicht behandeln, eine Aktivierung birgt auch Sicherheitsrisiken und verleitet zu "schlampigem" bzw. unsicherem Programmierstil.

Auf Deine Variable kannst Du natürlich auch ohne register_globals zugreifen, siehe dazu die Doku der vordefinierten arrays $_GET[], $_POST[] bzw. $_REQUEST[]
Back to top
View user's profile Send private message
IINeOII
n00b
n00b


Joined: 29 Aug 2003
Posts: 43

PostPosted: Tue Dec 16, 2003 5:46 pm    Post subject: Reply with quote

Recht hat er !

Danke schön viel mals!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum