Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 143301

Questions about PHP, a widely-used general-purpose scripting language that is especially suited for Web development.

3
votes
1answer
I am adding spam protection to my personal php framework and I think honeypots are a great way to block spam. Unfortunately they weren't invented yesterday and probably most bots do fetch CSS and can … with practice tell me which is the best way to hide a honeypot? And JavaScript is not really an option because I'm building this, as I said, as part of a framework, so I can't really hardcode some JS into a php function. And finally, there's no spam tag so I'm tagging this as security. …
asked Feb 11 '15 by php_nub_qq
1
vote
1answer
I am building a game based on PHP and MySQL. There is a player-vs-player mode but I figured I should add a player-vs-computer mode as well, since players may not be online at all times, especially in …
asked Jul 19 '14 by php_nub_qq
0
votes
1answer
I cannot find information on this anywhere so I assume it doesn't exist. It makes much sense for me for such functionality to exist and I want to ask whether it actually does and I am wrong in my ass …
asked Apr 13 '15 by php_nub_qq
1
vote
1answer
Generally I have 3 classes, a container that holds an array of items and a special object that is another property of the container class. What I need to do is access the special object from an item o …
asked Sep 23 '15 by php_nub_qq
0
votes
1answer
I have a bunch of x-y graphs given to me and I need to be able to transform them into some kind of data structure from which I will be able to get Y with X value. The problem is, though that I have 4, …
asked Jan 8 '15 by php_nub_qq
40
votes
10answers
I need to check if is within a list of IPs and then proceed with the code, otherwise throw an exception. <?php $ip = '192.168.1.5'; $ips = [ '192.168.1.3', '192.168.1.4', '192.168.1.5 …
asked Aug 25 '16 by php_nub_qq
-1
votes
2answers
I, for the life of me, cannot find any literature on this, simply because I have no clue how it is called. I want to learn how to implement a payment option that consists of paying with your credit/d …
asked Aug 18 '14 by php_nub_qq
1
vote
2answers
I'm sorry if this has been asked but I'm not quite sure how to search for it. I'm having a bit of trouble understanding how mail() works in PHP. The way I see it, using that function, I can send e … -mails from any user on my mail server - existent or not, without needing any credentials or anything. I doubt the guys from PHP would let this be the way I think it is and I also suspect that this has …
asked Jan 6 '15 by php_nub_qq
0
votes
1answer
I think I've understood the basic idea behind object mapping but there is one gap in my knowledge base that I hope to fill now. First let me tell you what I understand out of the whole thing. I have …
asked Feb 25 '15 by php_nub_qq
1
vote
1answer
I have 2 objects that I'm not very certain what is the proper (or better) way I should use. I have a query builder object that constructs an SQL statement like $qb = new SelectQuery('users'); $qb->c …
asked Jul 24 '16 by php_nub_qq
1
vote
3answers
Alright so it is an essential part of OOP that one class should only do one thing, and it makes sense. In practice I've seen that classes which don't obey this rule get thick and cluttered. So I was …
asked Feb 1 '15 by php_nub_qq
1
vote
4answers
In my application users can subscribe to other users, like in every social network out there. However I'm experiencing some trouble when a user has too many subscribers. Every time a user posts someth …
asked Sep 28 '14 by php_nub_qq
0
votes
1answer
need to access a function, it also feels wrong. With php 5.6 or something they introduced namespaced functions, but even if that was not the case I could still fake a namespace with name prefixes, so …
asked May 17 '16 by php_nub_qq
-1
votes
4answers
example 2 opposed to example 1 regarding program execution? Given that I have not graduated in computer science I'm not as familiar on programming (and php) internals and how code is evaluated and …
asked Oct 30 '15 by php_nub_qq
1
vote
1answer
I'm a PHP developer, and what do PHP developers do? They create frameworks, so I'm having my way with my little mvc framework project and I've stumbled across a design problem I'd like some opinions … the model is just there to hold data. Problem is, how do I get this data into the model. Warning: this involves PHP internals and my performance obsession This is what I initially had. abstract …
asked Mar 5 '17 by php_nub_qq

15 30 50 per page