这句正确得如何写啊?总是出错

WBOY
Release: 2016-06-23 14:13:38
Original
786 people have browsed it

header('Location:go.php?pic='. $mulu .''. $time .'x'. $userip . '.jpg');

这句正确得如何写啊?总是出错。。。php就是晕啊。。好多的.和’究竟得怎样区分??


回复讨论(解决方案)

Location: 后加个空白试试

Location: 后加个空白试试

不行。。出现Parse error: syntax error, unexpected '=' 

用双引号,下面的试试:
header("Location: go.php?pic={$mulu}{$time}x{$userip}.jpg");

那一句没有错,可能错在其他地方。你还是贴出全部代码和错误提示吧。

解决了。。晕死了。是我文件其他地方出错了。。。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template