Organizational Research By

Surprising Reserch Topic

Question:Removing URL parameters to reset PHP variable?



asked Sep 13, 2013 in PHP by anonymous
edited Sep 12, 2013
0 votes
31 views



Related Hot Questions

2 Answers

0 votes

 

I have a personal website where I want to showcase some downloads I've made. Each download has a description and download link, however I don't want to create an individual page for each item (as in 'item1.php', 'item2.php', etc.) because the format is pretty much "standard." So, I put all the text in a XML file and then use PHP to parse it.
 
Here's what my XML looks like:
 
 
 Index
 Personal site
 
 Navigation
 
 Description]]>
 Download]]>
 
 
 Item 1
 Item 1 is awesome, get it now!
 
 Item 1 is an incredible item that you must get right away!

]]>
 http://dropbox.com">Here]]>
 
 
And here's my index.php:
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes

 

I have a personal website where I want to showcase some downloads I've made. Each download has a description and download link, however I don't want to create an individual page for each item (as in 'item1.php', 'item2.php', etc.) because the format is pretty much "standard." So, I put all the text in a XML file and then use PHP to parse it.
 
Here's what my XML looks like:
 
 
 Index
 Personal site
 
 Navigation
 
 Description]]>
 Download]]>
 
 
 Item 1
 Item 1 is awesome, get it now!
 
 Item 1 is an incredible item that you must get right away!

]]>
 http://dropbox.com">Here]]>
 
 
And here's my index.php:
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...