jmr3460 Posted November 27, 2009 Share Posted November 27, 2009 Hey Freaks, I have a question for anyone. I developed a site before I started doing anything with php. I have now developed a php page that will upload a file and link to this file from a mysql table. My problem is that every other page on this site is .shtml and the menu of every page is using a ssi include. In this include there is a link that in the past I would manually change and now I would like to let the php update it. I have tried to include a file that is also being included. In other words I can make my script rewrite a text file. How do I include this text file on an included file? Is there a way for html to retrieve data from mysql? Quote Link to comment https://forums.phpfreaks.com/topic/183083-double-parsing/ Share on other sites More sharing options...
jmr3460 Posted November 27, 2009 Author Share Posted November 27, 2009 I guess this should have been posted in mysql help. Can I open mysql with pure html? Quote Link to comment https://forums.phpfreaks.com/topic/183083-double-parsing/#findComment-966251 Share on other sites More sharing options...
premiso Posted November 27, 2009 Share Posted November 27, 2009 No, you cannot open MySQL with pure HTML, I am not sure how ssi works, if they do any back end servers side stuff, so you would have to look more into that part of it. But with just a .html, no it cannot as it is client based coding when you need server side coding to do that. Quote Link to comment https://forums.phpfreaks.com/topic/183083-double-parsing/#findComment-966261 Share on other sites More sharing options...
jmr3460 Posted November 29, 2009 Author Share Posted November 29, 2009 Yea thanks for the reply. Sorry it took so long to reply back I solved the problem. Instead of trying to double parse I used the copy() and renamed my file current.pdf to a short term folder then I moved_uploaded_file() to a permanent folder with a permanent name that will not change. My issue was that I needed two links to be updated when I uploaded a file. Instead of updating both links I just renamed the copied file so the link stays the same. Then My permanent link will only appear when a file is uploaded and given its name. I am sorry if this is hard to understand Quote Link to comment https://forums.phpfreaks.com/topic/183083-double-parsing/#findComment-967693 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.