从CakePHP调用表单数据到外部PHP

I need to upload a video to youtube from cakephp currentlly after upload the media file moved to "tmp' folder in cakephp 'app/webroot/upload/tmp' youtube files are in app/webroot/upload/youtube/upload.php

Cakephp output on form submission

array(
    'postby_id' => 'user',
    'videoTitle' => 'my new video',
    'videoDescription'  => 'my description ',
    'videoTags' => hi,this,is,my,data,
    'date_posted' => '2016-05-26 10:21:16',
    'videoPath' => '11464258076.mp4'
)

upload.php

$client_id = 'MYID.apps.googleusercontent.com'; // Enter your Client ID here
$client_secret= 'MY_SECRET'; // Enter your Client Secret here
$APPNAME = "name";

$videoPath = "";
$videoTitle = "";
$videoDescription = "";
$videoTags = array("","","");

After upload youtube return video ID.

How can i pass form data from cake php form to this upload.php file? and that youtube video ID to cakephp?

solved by using a Component thanks to MBosman