-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
Force users to login before they use internet
Zane replied to hiprakhar's topic in Third Party Scripts
Here's something I pulled up after a Google or two http://www.sustworks.com/site/prod_ipnrx_help/html/InboundPortMappingHelp.html Well, where this main fiber is going..is your modem. You have to have a modem or else.. how are you even getting internet? If it's like you said and there is no modem then you're obviously getting your internet from another source not mentioned. Seeing as how the modem is where you enter your username and password for the Internet you or your company has paid for. Something needs to be done to the Routing Table.. I'm not exactly sure what it is, but that's where you need to be looking. Whether you're using a modem or not. -
Force users to login before they use internet
Zane replied to hiprakhar's topic in Third Party Scripts
If you want to restrict access to the internet, you have to start at the source... the modem. Whether you have dial-up, DSL, cable or T1; there is a modem somewhere that directs "the internet" everywhere on your network. This is where you would set up your restrictions. If your modem has built-in firewall features then great.. use them. block the main ports for the internet and direct it to another computer on the network that hosts your "Login Screen webpage" You could use the worst POS computer you got for it too. So long as it hosts a webserver and a database. Once they're logged in.. redirect them to another computer that is allowed internet access.. AKA a proxy server. Keep in mind though, I'm no networking specialist or security engineer so... if all that sounds vague, forgive me. But in my mind.. that's how it would all work. -
I joined this forum community in April 2004, 4 months before I turned 18. Now... for those that can't do math. It's four months before I'm 24.
-
The OP of that thread is the only real accumulative list. The rest are just posts of people's lists. Although it hasn't been updated it quite awhile. The reason you don't start another thread about the same thing another thread having 2 or more pages is:.. Well, it's a hot topic. People have contributed to it and in doing that have essentially "subscribed" to it. By starting another one you have a paradox of Webhost discussion. Then comes the question to the regular user.. "Which one is better?" They'll choose the newer of course leaving all the former people out in the cold when they check their new replies... just hoping to see a new webhost review on the list. There's nothing wrong with talking about the topic on hand in ... the actual topic. So I'll lock this for now and if you really want to review a webhost... go here http://www.phpfreaks.com/forums/index.php/topic,117475.0.html
-
QFT.. Why would you want random IDs in the first place? What's wrong with the regular way? But if you did prefer random IDs, the best route would be to propagate about 1000 or so "empty" entries to begin with.. and then run a SELECT RAND() WHERE NOT EMPTY type query...when you create a new user..
-
I really want to punch Justin Bieber in the face!
Zane replied to Orionsbelter's topic in Miscellaneous
-
notify an admin.
-
http://www.phpfreaks.com/forums/index.php/topic,113143.0.html There ya go
-
mmmm.. okra. and leaves
-
SELECT COUNT(column) as theCount, column FROM table ORDER by theCount You could also GROUP BY theCount and get only three results... 3 | apple 5 | strawberry 19| orange
-
premiso was trying to steer you right with str_split.. it's afterwards that you'd use regex.. (the preg functions) $aWord = str_split("SomeThing"); foreach($aWord as $letter) echo preg_match("#[A-Z]#", $letter) ? "It's uppercase!" : "It's lowercase!";
-
most likely your ISP or email's domain was "red flagged" as a spam domain. Either that or we set something in place (to long ago to remember) to only accept reputable domains.. but I doubt it.
-
Getting a list of all subdirectories and storing them inside an array
Zane replied to sh0wtym3's topic in PHP Coding Help
you could try using one of these glob statements glob(./*/*.*) glob(~/.*/*) glob(*/*) glob(../*/*) -
They are called short tags. It's best to leave them off, but one of the percs of having them turned on is that you can use them to perform ONE function (on the fly).... without a semicolon to boot. =function() ?> =echo 'blah' . 'blah' . 'blahblah' ?> You could do a find and replace with your IDE/HTML editor. Find "=" and replace it with "<?php echo " But that's just assuming everything is just an echo... which is what it looks like.
-
IMHO.. it'd be better to use regex. You could probably scan the current questions in the PHP Regex board already and find the solution you need.
-
There are some good sources of zip code databases here http://www.phpfreaks.com/forums/index.php/topic,208965.0.html No need to start from a CSV
-
Surprisingly, this place is pretty accurate http://www.hostip.info/ Off by about 10-20 miles
-
Yeah.. that's the INSERT key.. it'll do it every time.
-
True, it'll give you a fair .. and probably accurate position to begin a radial search from, but that's just it.. you would have to perform a radial search from that point, get all the zipcodes within X miles (in which X is unknown).. and guess logically (somehow) from the responses. That's pretty much.. a "half-assed" accurate. And something half-assed is never something to rely on.
-
Mine aren't the sharpest either. I'm surprised that query I gave you worked.. I liked your version better though.. I didn't know you could do an IN (SELECT...
-
SELECT platforms.name FROM platforms_reviews LEFT JOIN platforms ON platforms_reviews.platform_id = platforms.id WHERE platforms_reviews.review_id = {$review['id']}
-
If you're gonna have a cross-platform website... you should always start by programming for IE.. not chrome, not firefox, not safari... Because 9 times out of 10.. Internet Explorer will be the one giving you the most problems. Other browser problems can be tweaked much easier than IE's.
-
It sounds like you're wanting to keep a value into a variable... forever. Incrementing to 3 and repeat. You oughta make a file... called something like currentteam.inc or just currentteam. It doesn't really matter about the file extension just so long as it's "text application" works on.. notepad or wordpad, etc. Then you can pull the file everytime the page loads and run your scripts on it to check and see what the current team is. incrementing it and setting it to 1 on == 3 OR.. since I see you're already using a database.. you can just compare the new team to the last added team member. SELECT teamid FROM onlineplayers ORDER by id DESC LIMIT 1
-
Upload an image and store the path in the database
Zane replied to michaelkirby's topic in PHP Coding Help
the path of the temporary file is stored in the $_FILES array. This is assuming you had the file input within a form that you submitted. If you look at $_FILES['fileInputname']['tmp_name'] you'll see the temporary location