elad135 Posted April 23, 2011 Share Posted April 23, 2011 Hi, I'm quite new to PHP and I'd like to know if there's a way for me to use some PHP solution to get data from another PHP file instead of used AJAX. My intention is to have some kind of a loop in one PHP file that'll have a variable that gets the returned data from a different PHP file on every iteration and does something with it. Would be simple enough to do it with Ajax but I can't use it in this instance. Any thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/234513-transfer-data-from-one-php-file-to-another/ Share on other sites More sharing options...
elad135 Posted April 23, 2011 Author Share Posted April 23, 2011 Never mind. I found a workaround Quote Link to comment https://forums.phpfreaks.com/topic/234513-transfer-data-from-one-php-file-to-another/#findComment-1205217 Share on other sites More sharing options...
fugix Posted April 23, 2011 Share Posted April 23, 2011 what is your solution? Quote Link to comment https://forums.phpfreaks.com/topic/234513-transfer-data-from-one-php-file-to-another/#findComment-1205269 Share on other sites More sharing options...
Fadion Posted April 23, 2011 Share Posted April 23, 2011 You'll need SESSIONS to achieve that, but most probably you've figured that out already. Quote Link to comment https://forums.phpfreaks.com/topic/234513-transfer-data-from-one-php-file-to-another/#findComment-1205368 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.