Jump to content

Recommended Posts

Hi All

I have a a directory website but numereous listings don't have their own website so they are requesting a single page to show a summary of their business and products.

I know how to do most of it the part I am unsure of is:

I have a form where they upload text, images, etc to a database and upload the images. what I would like to do is to save it as a file under a subdirectory. Is it possible to save a file php file using php

 

Thank you in advance

 

Lional

Link to comment
https://forums.phpfreaks.com/topic/292115-creating-php-files-with-php/
Share on other sites

You could build a single page that's populated based on your database? Basically, you build a page that has a space for the summary, images, etc. Then a database row ID is passed to the page which references the business information to show. The ID is used to query the database and retrieve the business information to fill in the spaces.

You could do somedomain.com/clientname and use mod_rewrite (via .htaccess) or some other "friendly" url scheme to push all request to one file, which you use to look up the client's details in the db.

 

Also consider looking into WordPress, which has multisite functionality, and auto sign-up options as well.

Thank you, I thought of that approach but the only issue I have with that is how would the client access the page outside of the site. would it be something like this:

www.somedomain.com/buspage.php?usrid=(then the client id)

 

Yep, that would work

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.