Jump to content

MYSql Webpage Creator PHP


LaughingQuoll

Recommended Posts

I was wondering how I could have a PHP script that would run on a special directory each day to see if there are any new entries to a MySQL database. If there were new entries it would create a new web directory using the name of the new entry with a default index.php inside. I have googled around and cant seem to find out how to do it.

Link to comment
https://forums.phpfreaks.com/topic/289307-mysql-webpage-creator-php/
Share on other sites

I think you're missing the whole point of web programming languages like PHP.

 

The reason why we use PHP is because we do not want tons of static files for different pages. We render the HTML dynamically. So if your content is in a database, you fetch the data, assemble the page and display it.

If you know a better way to do it please tell me.

 

It's difficult to know what you're trying to do based on the information provided. We might be able to help if you let us know what you're database looks like and describe what the expected output should look like.

 

 

In case you're unfamiliar with building dynamic pages in PHP, the following video may help with the basics:

 

Note that this is an older video which uses the deprecated mysql_* function. At some point in the near future, you'll need to use MySQLi or PDO if you're not doing so already. More information can be found here:

http://www.php.net/manual/en/mysqlinfo.api.choosing.php

Archived

This topic is now archived and is closed to further replies.

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