Welcome to the Mod Share forums.
You are not logged in.
Pages: 1
It is done on modshare with project id's.
I was wandering how to automatically create a new directory when something is made.
Offline
Okay, thanks. I don't know much PHP, I'm learning, but one of the ways I learn is by observing. You can't observe PHP if it is done beforehand and doesn't show up
Offline
Okay, thanks. I don't know much PHP, I'm learning, but one of the ways I learn is by observing. You can't observe PHP if it is done beforehand and doesn't show up
If you want, we can give you the source code for some pages on Mod Share (obscuring some code, such as how passwords are stored).
Offline
jacob is right in that you have to use mkdir() in PHP to make a new directory, but that's not entirely what we did with projects.
We modified the HTACCESS code to add a RewriteRule that actually rewrites the pretty URLs /view/1234567890 into something more web-like, for example view.php?project=134567890
(Of course that's not the real URL... there's not even a file called view.php in the main directory )
After that, the page (view.php in the example) will use that GET variable to identify the details of the project from a database, and display the contents of that page. Pretty neat!
For more info google RewriteRule
LS97 - Mod Share Admin
Offline
chanmanpartyman wrote:Okay, thanks. I don't know much PHP, I'm learning, but one of the ways I learn is by observing. You can't observe PHP if it is done beforehand and doesn't show up
If you want, we can give you the source code for some pages on Mod Share (obscuring some code, such as how passwords are stored).
That would be great.
Offline
jacob wrote:chanmanpartyman wrote:Okay, thanks. I don't know much PHP, I'm learning, but one of the ways I learn is by observing. You can't observe PHP if it is done beforehand and doesn't show up
If you want, we can give you the source code for some pages on Mod Share (obscuring some code, such as how passwords are stored).
That would be great.
Which page do you want the code of? I'll send you the link through your notifications.
Offline
chanmanpartyman wrote:jacob wrote:chanmanpartyman wrote:Okay, thanks. I don't know much PHP, I'm learning, but one of the ways I learn is by observing. You can't observe PHP if it is done beforehand and doesn't show up
If you want, we can give you the source code for some pages on Mod Share (obscuring some code, such as how passwords are stored).
That would be great.
Which page do you want the code of? I'll send you the link through your notifications.
Home page and Upload page please.
[offtopic]
Did you just add the edit post name feature?
Offline
Pages: 1