Page 1 of 1
.mdu
Posted: Sun Nov 12, 2006 6:41 am
by iantimmy123
I am an beginner/intermediate of PHP and have noticed a few PHP programs I have downloaded use .mdu whiles. What are these and how do they work. I've had a look on the net but can't see anything.
Thanks
Posted: Sun Nov 12, 2006 7:15 am
by feyd
How are they being used in relation to the PHP files? I would suspect they are nothing more than a "random" file extension their developers chose to use for included functionality. From doing a bit of searching that's what it seems people are doing in their code at any rate.
Posted: Sun Nov 12, 2006 7:27 am
by iantimmy123
That does make sense. They are described as modules in the comments (looking in Cutenews). When I try to open them Dreamweaver gives me the message that a valid editor cannot be found so I cannot see the contents
Posted: Sun Nov 12, 2006 7:31 am
by feyd
Try opening them in Notepad/TextEdit/nano or whatever ultra basic text editor you have on your machine.
To protect them from prying eyes, on your server I would set the .mdu extension to be parsed as PHP otherwise the server will likely send the actual code as plain text if requested.
Posted: Sun Nov 12, 2006 7:45 am
by iantimmy123
Ah I can see them and it makes sense. I assume they are used to make editing the code easier without having loads of different web pages. Have you got any advice about using modules (if it's the correct name) in this way
Posted: Sun Nov 12, 2006 8:23 am
by feyd
Interacting with them is extremely similar to having the code they contain in the file you include them in. The difference is usually extremely minimal, but has the added benefit of using the code in other pages without having to copy it.
Posted: Sun Nov 12, 2006 12:52 pm
by iantimmy123
Brilliant. Thanks a lot for all your help