Jump to content

double parsing


jmr3460

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/183083-double-parsing/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/183083-double-parsing/#findComment-966261
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/183083-double-parsing/#findComment-967693
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.