grandman Posted December 15, 2008 Share Posted December 15, 2008 Hello, I have a problem, how should this be written: $URL="http://www.mysite.com/on/cont/ " . <?php "$dirname" ?> . "/" . "index.php"; header ("Location: $URL"); DG Link to comment https://forums.phpfreaks.com/topic/137052-solved-how-should-i-write-this/ Share on other sites More sharing options...
Mark Baker Posted December 15, 2008 Share Posted December 15, 2008 <?php $URL="http://www.mysite.com/on/cont/ " . "$dirname" . "/" . "index.php"; ?> Link to comment https://forums.phpfreaks.com/topic/137052-solved-how-should-i-write-this/#findComment-715775 Share on other sites More sharing options...
gevans Posted December 15, 2008 Share Posted December 15, 2008 $URL="http://www.mysite.com/on/cont/$dirname/index.php"; header ("Location: $URL"); Link to comment https://forums.phpfreaks.com/topic/137052-solved-how-should-i-write-this/#findComment-715776 Share on other sites More sharing options...
grandman Posted December 15, 2008 Author Share Posted December 15, 2008 Hello, Thank you to all who replied, why did I do what I did. Is that called "concat" (don't know how to spell it now) the file. I really need to learn when to do so and when not... DG Link to comment https://forums.phpfreaks.com/topic/137052-solved-how-should-i-write-this/#findComment-715795 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.