etnies99 Posted March 28, 2007 Share Posted March 28, 2007 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 More sharing options...
monk.e.boy Posted March 28, 2007 Share Posted March 28, 2007 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 Link to comment https://forums.phpfreaks.com/topic/44647-generating-a-new-file-with-php/#findComment-216809 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.