# Send PhP variables from one file to another

**URL:** <https://forum.kirupa.com/t/send-php-variables-from-one-file-to-another/82341>\
**Category:** programming\
**Created:** [March 9, 2005, 3:40pm UTC](https://forum.kirupa.com/t/send-php-variables-from-one-file-to-another/82341 "2005-03-09T15:40:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvangelosRoxxor](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@EvangelosRoxxor](https://forum.kirupa.com/u/EvangelosRoxxor)\
**Post date:** [March 9, 2005, 3:40pm UTC](https://forum.kirupa.com/t/send-php-variables-from-one-file-to-another/82341/1 "2005-03-09T15:40:44Z")

</div>

I have two php scripts, alpha.php and beta.php. In alpha.php, how do I run beta.php and pass beta.php a variable from alpha.php. Also, how do I ‘retrieve’ the variable for use in beta.php?
