TheJoey Posted September 21, 2009 Share Posted September 21, 2009 How do i make my links show up as urlhere.php?index or urlhere.php?login etc Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/ Share on other sites More sharing options...
Bricktop Posted September 21, 2009 Share Posted September 21, 2009 Hi TheJoey, Do you mean: urlhere.com/index urlhere.com/login If so, it's called mod_rewrite and I would recommend you have a look at http://articles.sitepoint.com/article/guide-url-rewriting Hope this helps. Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922255 Share on other sites More sharing options...
TheJoey Posted September 21, 2009 Author Share Posted September 21, 2009 yeh like insted of showing the full link have something like urlhere.com/index?(1,2,3,4,5,6 all as diferent pages insted of showing urlhere.com/registration.php Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922259 Share on other sites More sharing options...
Bricktop Posted September 21, 2009 Share Posted September 21, 2009 Ah, that's something different. Have a look at this article which is quite helpful in explaining how to achieve this result: http://www.webhostingtalk.com/showthread.php?t=289653 Hope this helps. Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922267 Share on other sites More sharing options...
TheJoey Posted September 21, 2009 Author Share Posted September 21, 2009 thank you bricktop another question for you, i thought i could ask you insted of making a topic How would i join two .txt files and display the output could this be done with join? Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922273 Share on other sites More sharing options...
trq Posted September 21, 2009 Share Posted September 21, 2009 thank you bricktop another question for you, i thought i could ask you insted of making a topic How would i join two .txt files and display the output could this be done with join? join turns array values into a string. How would i join two .txt files and display the output $joined = file_get_contents('file1.txt') . file_get_contents('file2.txt'); echo $joined; Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922280 Share on other sites More sharing options...
TheJoey Posted September 21, 2009 Author Share Posted September 21, 2009 thank you thorpe Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922285 Share on other sites More sharing options...
TheJoey Posted September 21, 2009 Author Share Posted September 21, 2009 thorpe only problem is @:@ @:4 $:5mo||67||joe||joe joe||67|||| it displays them all on the same line Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922294 Share on other sites More sharing options...
trq Posted September 21, 2009 Share Posted September 21, 2009 So, put a new line between them. $joined = file_get_contents('file1.txt') . "\n" . file_get_contents('file2.txt'); Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922299 Share on other sites More sharing options...
TheJoey Posted September 21, 2009 Author Share Posted September 21, 2009 thanks again Link to comment https://forums.phpfreaks.com/topic/174992-solved-url-question/#findComment-922300 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.