Hi
Sorry you've not had any replies yet. I've got to be honest and tell you that what you're asking is about as clear as mud. I didn't understand your first post and I don't understand your followup either. To you, you know what you're talking about, what your project is, what you want it to do etc. To us, you're asking a random question about adding .pdf files and where to change the extension.
Let me give you an example..
I'm working on my own CMS with modules / plugins. It works ok but in the database i need to know how to find what other modules depend on a module. I found some code i think will do the job <imagine php code here> but I've not got a clue what to do with it.
Would you understand any of that or be able to understand it clearly?
Quote:
Originally Posted by graisbeck
when I want to add a link to a pdf file via an include, the file browser only shows .php files. The code I have below looks like thats the code I need changing to allow .pdf, .doc and .docx files, but I don't have a clue how to change it.
|
If the code you have looks like it'll do what you want, you should be skilled enough to know how to re-write it. If you're not, how can you be sure you've go the code that does what you think it does? You say the file browser only shows php files.. What do you mean by this? Is it an online file manager? Online php editor? Or is it a download prompt asking you to save a .php file?
Why do you need to add file extensions? - To make it scan files, output a download header? - You're not telling us much but expecting us to know the answers.
Quote:
Originally Posted by graisbeck
So to simplify:
Where in this code do I add a pdf file extension please?
|
Again, until we have a better explanation, you're not going to get any answers from us as we simply can't help despite your politeness. You need to describe the project, scenario, problem and the result you'd like a bit clearer.