473,499 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Granting table permissions to anonymous users

5 New Member
Newbie warning: please be gentle with me... I've never had to worry about permissions before, all my dbs have been single-user.

I want to set up a PHP/MySQL based website to display photos listed in a table, which any visitor can interrogate (read-only) without a username or password; <link removed> is the sort of thing I'm aiming at, if you want an example. My webspace provider has all the right stuff, and I can do the coding myself, once I've got my head around one basic question... All the books and guides I've looked at concentrate on how to limit permissions to specific logged-in users but I can't find anything about giving permissions to all.

It seems to me that the way to give everyone access is to hard-code a specific username@localhost and password into the PHP forms which access the database, having given that generic user the correct very limited permissions. But in the event that I get two or more visitors at the same time, will MySQL actually allow that, or will it insist that the "same" user can only perform one transaction at a time?

Or is there some other approach which works better?

Many thanks in advance

Michael
Sep 28 '07 #1
3 1670
Atli
5,058 Recognized Expert Expert
Hi Michael. Welcome to The Scripts!

If I'm reading this correctly, you want your PHP code to fetch this data from the MySQL database and display it on your website?

If so, you will never need more than a single MySQL user. All your PHP code can execute queries on your MySQL server using a single user, even if there are a million different visitors viewing your page at the same time.

P.S. I removed the link from your post, as all links to commercial webs are strictly forbidden by the Postin Guidelines.
Sep 29 '07 #2
MichaelHooker
5 New Member
Thanks very much.

Yes, you understand my question correctly, and it would seem that you're saying that my approach is the right one, which is comforting.

I think those of us who access the website URL I posted to look at and download for free the well over a million aircraft photos which we contribute gratis would be surprised that you classify them as a commercial site. They are first and foremost a portal/resource for enthusiasts.

Thanks again.

Michael
Sep 29 '07 #3
Atli
5,058 Recognized Expert Expert
Yes, indeed, your approach is the right one.

I think those of us who access the website URL I posted to look at and download for free the well over a million aircraft photos which we contribute gratis would be surprised that you classify them as a commercial site. They are first and foremost a portal/resource for enthusiasts.
I use the term 'commercial' very loosely there. All links to other websites, with very few exceptions, are not allowed in the technical forums. Especially those who contain advertisements (tho I don't remember seeing any in at your URL), which will most of the time be classified as spam.
Sep 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
7997
by: BingoHandJob | last post by:
Hello group! I'm having a problem and I hope some of you may be able to point me in the right direction. I inherited a web site using php, running on Windows 2000 & IIS. The site was...
0
2314
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
3926
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
8540
by: Ted | last post by:
How do I grant all privileges for a schema that has a large number of existing tables, procedures, functions, etc to a newly created role, without having to issue a grant statement for each object...
2
4292
by: J.Beaulieu | last post by:
Hi I'll have probably to use sql server soon but prior to that I have a question concerning priviledges and security. Is it possible for someone to do like in access, ie creating a db/table...
2
10080
by: LazyAnt | last post by:
Hello, I have DB2 v8.1 for Linux for a class environment; each user has his/her own database as dbadm and they are suppose to study queries from another database. They have the right...
5
3138
by: Kissi Asiedu | last post by:
I have access 97 database being run by multiple users. It was working fine until I created a form and a macro to open the form at start-up. Now only one user can open the table. If a second user...
1
3574
by: Lee Gillie | last post by:
I need to be able to kill a process programmatically under ASP.NET. IIS runs under the local system account. The user accessing the web is using anonymous access. We would prefer NOT to grant...
1
1166
by: derekolive | last post by:
I need to restrict insert permissions on a single table to a pre defined time window each day. One way would be to craete a new user in NT and restrict login to the time window, and then only...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.