carraras Posted June 30, 2006 Share Posted June 30, 2006 In my index.php file I have the code:[code]if($action=="Rename") require_once("rename.php");[/code]Let's say rename.php has code of:[code]<? $first="one"; echo $first; ?>[/code]I want to combine the two files. If it was a simple include, then I would have no problem.[i]How would I [b]combine[/b] the two in index.php?[/i]Thank you,Sam Quote Link to comment https://forums.phpfreaks.com/topic/13315-bringing-two-files-together/ Share on other sites More sharing options...
.josh Posted June 30, 2006 Share Posted June 30, 2006 do you mean like this?index.php[code]if($action=="Rename") { $first="one"; echo $first;}[/code]if that's not what you mean then be more specific Quote Link to comment https://forums.phpfreaks.com/topic/13315-bringing-two-files-together/#findComment-51334 Share on other sites More sharing options...
carraras Posted June 30, 2006 Author Share Posted June 30, 2006 Sounds right. I just didn't know if [color=green][i]require_once[/i][/color] was much different than [color=blue][i]include[/i][/color].Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/13315-bringing-two-files-together/#findComment-51353 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.