Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Header('Location: ...') を使用してリダイレクトを行う単純な php スクリプトがあり、1 つの配列 (それぞれ 20 文字のような 6 つのキーと 6 つの値セル) を CakePHP に送信する必要があります。
「session_start()」を使用しようとしましたが、これによってセッション変数に接続できません。URL を明確にする必要があるため、_GET は使用できません。POST はオプションかもしれませんが、ヘッダー要求中にデータを送信する方法がわかりません。
これを試して
$arr = array('this'=>'is', 'some'=>'stuff'); $url = 'someurl.php?vals=' . url_encode(serialize($arr)); header("Location: $url");