为什么URL会影响我的变量

为什么URL会影响我的变量

本文介绍了为什么URL会影响我的变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看看这个:



点击Nintento,A,然后点击魔法中的冒险王国


o_O


为什么突然失去系统变量?


但是如果我制作一个文件的精确副本并将其放在我的主目录中,它就可以了!



但现在尝试Nintendo,A和A。和ADDAMS FAMILY,THE。 o_O


它失去了它!但现在尝试另一个,它的工作原理!我已经遍历了我的代码

一遍又一遍,我不能为我的生活找出任何可辨别的

模式,我也无法计算为什么它这样做。以下是源代码:



我唯一能想到的是变量以某种方式在

url,这导致它搞砸了。我不完全是你所谓的PHP专家,但是我不确定。有没有人对我怎么解决这个问题有什么想法?


-


Onideus Mad帽匠

mhm?1 x?1

Take a look at this:
http://www.backwater-productions.net/npindex/index.php

Click "Nintento", "A", and then click "Adventures In The Magic Kingdom"

o_O

Why does it suddenly lose the system variable?

But then if I make an EXACT copy of the file and put it in my main directory, it works!
http://www.backwater-productions.net/index.php

But now try "Nintendo", "A" and "ADDAMS FAMILY, THE". o_O

It loses it! But now try it on the other one and it works! I''ve gone through my code
over and over and over again and I can''t for the life of me figure out any discernable
pattern nor can I figure out why it''s doing it. Here''s the source code:
http://www.backwater-productions.net/npindex/source.ph3

The only thing I can think of is that the variables are somehow being passed along in the
url and that''s causing it to screw up. I''m not exactly what you would call an expert in
PHP though so I''m not really sure. Does anyone have any ideas on how I can fix this lil
problem?

--

Onideus Mad Hatter
mhm ?1 x ?1
http://www.backwater-productions.net

推荐答案




好​​吧,我想没有人知道或者没有人关心。 *耸耸肩*


我找到了解决办法,虽然我还不知道原因。我发现,如果我输入一个

虚假变量,比如



Well, I guess nobody knows or nobody cares. *shrugs*

I did find a solution, although I still don''t know the cause. I found that if I put in a
faux variable, like





好吧,我想没有人知道或没有人关心。 * shrugs *



Well, I guess nobody knows or nobody cares. *shrugs*




Personnaly我不喜欢任何帖子开头的看看

那里,等等

只需发布您的代码并准确揭示您的问题:实际行为

和期望的行为。


-

您是否阅读过手册?




Personnaly I don''t really like any post beginning by "Have a look
there", etc.
Just post you code and expose precisely your problem : actual behaviour
and desired behaviour.

--
Have you read the manual?
http://www.php.net/manual/en/


这篇关于为什么URL会影响我的变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 02:49