JavaScript and HTML Related Question?

Theyann

New member
Hi guys, I have a (little) question... Namely: can I use JavaScript code to achieve something what can I also achieve with PHP?

I want this: to somehow change this URL - www.some-site.com/folder1/folder2/folder3/some-document.html - into something like this - www.some-site.com/?page=some-document.html ...and I would like to do this with JavaScript code (if possible).

If not, then I would like for URL to be like this (with PHP script): instead of www.some-site.com/folder1/folder2/folder3/some-document.html, to be: www.some-site.com/general.php?page_id=some-page.html

Also, can I use PHP file to call HTML pages? For Example: I have created 10 web pages with all the content I need (Content.php), and I created one main HTML file (Index.html), so, when I write the code inside Index.html like this - <A href="Content.php?page=Page_1.html">Page 1</A>, to actually call that command: to execute Page_1 with a click within Index.html but through Content.php, is this possible? I mean, something like silent redirection OR hiding the actual path to my HTML file, but to open the HTML file through the PHP?

I am sorry if I was a bit confusing, but I trully hope you can help me, since I have trying all the examples and tutorials I could find, but they was either too complicated or too confusing, or too complexed. I just want some plain and simple code and as same plain and simple instruction how to use it in short details... I also want to know how can I make download of PDF file via PHP by file_id or something... Thank you so much. :-)
 
Back
Top