Jump to content

[SOLVED] syntax error


ballhogjoni

Recommended Posts

In function definitions I do not think you can use concatonation...or $strings for that matter.

 

Instead what I would do a constant variable defintion and use that.

 

IE:

 

<?php
$next = 3;
define('DEFAULT_REDIRECT', 'HTTP://' . $_SERVER['PHP_SELF'] . '?page=' . $next);

function redirect($filename=DEFAULT_REDIRECT, $delay="0", $die="0") {

}
?>

Link to comment
https://forums.phpfreaks.com/topic/48845-solved-syntax-error/#findComment-239390
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.