Jump to content

how to create a file


divinedesigns1
 Share

Recommended Posts

how can i create a .php file, using a form and php? im trying to create file for each link a user create using a control panel, is it possible to do so? if yes how?

Link to comment
Share on other sites

fopen() and file_put_contents() will create a file if it doesn't already exist. I would not recommend you allowing users to put content in a php file on your server, that's the fastest way to get your site hacked.

even if its just for backend? Cause I wanted to use it for the admin
Link to comment
Share on other sites

What would do those scripts? Why not using regular php file for admin job?

Link to comment
Share on other sites

What would do those scripts? Why not using regular php file for admin job?

because I ran into a small problem which I would like to avoid in the future, creativity helps at times
Link to comment
Share on other sites

tell us what the problem is then. that would be better than asking for ways to let people just write scripts directly on your server. >.<

there's no problem, just a client wanted to create a extra tab and i didnt feel the need to go and make the page, then upload it, so i though by creating a way that allow me to make the tab and the page dynamically would save time. thats all

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...