Jump to content

GENERATING a new file with PHP?


etnies99

Recommended Posts

Hello all,

 

I have a delimma on one of my websites.  First of all i must say I am not a php expert, and intermidiate at best.  Anyways, my website is a listing directory which i basically created from scratch.  Businesses can list for a fee.  I have created a admin area for clients, sales reps, and management (in php), which uses a mysql database to collect all the data. 

I have no problem with the directory itself, as far as generating the content via php.  The problem is with the search.  Since the directory will be pullled directly from the database, there are no files to search for the search box. 

 

So i was woundering if there is a way to genterate a new php file, in the respective directory, once I ok the listing.  You see once a company purchases a listing plan the list will sit in que until i approve it.  Once I approve it I want it to generate the file with the data i specify.

 

I just need to know if this is possible, or if there is a better way of doing this.

Any references would be of great help.

 

 

Thank You very much,

 

Adam

 

 

Link to comment
https://forums.phpfreaks.com/topic/44647-generating-a-new-file-with-php/
Share on other sites

If you are generating the file just for the search function, I would change the search to search the database.

 

If there are other technical reasons to create the file then just use the PHP file commands. Take care with the directory permissions. If this is run from PHP, then it will run as user 'apache' who may, or may not have permission to create files.

 

monk.e.boy

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.