I'm not sure whether these are programming questions, but I'm sure lots of new programmer like myself has been asking the same questions.
I've created a webservice to update data to a vfp free tables using php.I use VfpOledb to connect php and the tables. Many client use this webservice to update their data to several tables in the server. Example : user A update to table t_sales in directory X, user B update to table t_sales in directory Y, user C update to table t_sales in directory Z.
The questions are :
which one is better/faster and why : creating a different php files (webservice) for a different user, or creating one php file with a switch case part inside to determine the datasource location?
which one is better/safer and why : send the datasource location as a parameter from the user, or store the datasource location in the php file?
Many thanks