-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
[SOLVED] More visible TOPIC SOLVED button
.josh replied to Maq's topic in PHPFreaks.com Website Feedback
Are you seriously suggesting an icon to explain what the "Topic Solved" button means and how to push it? If people don't understand how to push that button, what makes you think they'll understand how to push that icon? Or, if they can't figure out what "Topic Solved" means, they probably won't be in a position to be having their problem solved in the first place. I have a sneaking suspicion most people don't click it because they don't care. I'm sure there are some that simply don't see it, but unless we have a big flashing thing popping up every time they enter the thread, I really don't see the amount of topics being marked going up, regardless of where we put the button. All that aside...what's with this rash of requests to alter mods? You guys need to go to the smf community to make these suggestions. We're just some random place that uses smf and some mods. We aren't the ones who make them. -
Better method would be to store all the information as a single encrypted string and have your script decrypt and separate it. I feel I should mention though that most browsers these days already have their own user/pass storage system in place, which makes not having "auto-logins" not that big of a deal. Sure, the user still has to physically click the login button, but IMO that's a good tradeoff for the potential security risks of storing that sort of info in cookies. Just throwing it out there.
-
Actually a better search term would be "ajax form validation" those tutorials will show you the principle of "live" db checking you can take that and apply it to what you want to do: making a real-time dropdown suggestion like google.
-
How about a captcha tutorial? Lots of them around, but we're supposed to be a resource, right? I may do it myself, if someone else doesn't volunteer.
-
Tested it, as well. Houston, we have a problem.
-
...and...you felt the need to double post this, why?
-
As a matter of fact, I just stumbled across something the other day! For $10 a month, you get: - 100 Terabytes Storage - 1 Terabyte Bandwidth - Unlimited FTP Accounts - Unlimited Email Accounts - MySQL Database Accounts - Unlimited Subdomains - Free Software for Reseller Management and Selling
-
[SOLVED] security tutorial - Outside file access
.josh replied to Lambneck's topic in PHP Coding Help
it doesn't matter what is in public_index.php. You can have whatever you want in it. People usually keep stuff like db connection info in it and then include or require it in some other x.php script that is in public_html directory. -
[SOLVED] Why isn't my $_POST less than working...?
.josh replied to Alexhoward's topic in PHP Coding Help
Alex: So you're saying that no matter what, you are being directed to that header location? Are you sure it's that one, and not maybe some other header in your code, or something? Because there is no reason why that condition should evaluate true if you enter in something > 5 -
[SOLVED] Why isn't my $_POST less than working...?
.josh replied to Alexhoward's topic in PHP Coding Help
Yeah that works awesome if the expected value is supposed to be an int. But I have a sneaking suspicion that since his default is a float... -
[SOLVED] Why isn't my $_POST less than working...?
.josh replied to Alexhoward's topic in PHP Coding Help
You can use it just fine. You probably aren't using it right. Or something else is wrong with your code. Again, post your code. Seriously, doesn't it make sense that if you want help with code, to post the code? -
[SOLVED] Why isn't my $_POST less than working...?
.josh replied to Alexhoward's topic in PHP Coding Help
This works just fine: <?php if ($_POST['amount'] < 5) { echo "less than 5"; } else { echo "more than 5"; } ?> <form method='post' action=''> <input type='text' name='amount' value='0.00' style='width: 60px'> <input type='submit' value='submit'> </form> You're going to have to show your actual code not just some example. -
[SOLVED] Why isn't my $_POST less than working...?
.josh replied to Alexhoward's topic in PHP Coding Help
having something in the value attribute simply assigns a default. If the user enters something into the form it will overwrite it. -
Looks like you have a plan for what you need to do. Break it down, research one thing at a time. When writing your code, if you encounter some kind of issue, post the code, and we will be more than happy to help find the bug. But we aren't here to write your scripts for you, especially when it's you're homework; that defeats the purpose of learning.
-
We aren't here to help you get around other people's scripts. Thread closed.
-
[SOLVED] security tutorial - Outside file access
.josh replied to Lambneck's topic in PHP Coding Help
Yes, it is an example page. And it is outside of /public_html. /public_html is not the root, it's a directory in the root. public_index.php is also in the root, but not in the /public_html directory (or any subdirs of it), hence, it's outside the directory. /public_html is the "root" as far as the outside world is concerned, but it is not the root directory of the server. -
You say that you have generated a captcha image and put it on the screen for the user...after that you make a simple form...
-
Do you have a hosting plan somewhere? Is it free? There's a good possibility they don't allow you to execute php scripts. You need to give more details about where you are trying to execute your script.
-
Really? Damn I coulda swore I read differently when I looked into that.
-
yep. www.google.com On a more serious note...well, more more serious, because I was being serious about googling, I really don't think you're going to find testing centers for PHP. AFAIK Zend is the only "official" php certification company around, and you do that online. You could go to college and take computer classes that may or may not touch on php, but nothing like a real php certification (though I think I'd rather have a b.s. or w/e in comp sci than some php cert lol).
-
lol are you talking about jesi?
-
TBH I do not think that simply having it green is enough. Average people who come in here having not been here before and read threads like this will not know the difference between a green post and a blue post; there's no reason why anybody should make that logical leap.
-
[SOLVED] Glich in the board software.
.josh replied to p3aul's topic in PHPFreaks.com Website Feedback
If the filename already exists, it won't let you upload it. I do think there is a bug - or rather, lack of feature would be more accurate - that if you do reach that point, there's no way to remove that file from the list of files to be uploaded, so you have to refresh and start all over. -
You don't need an entire CMS to do that. Simply go to your server's directory/file browser (through cpanel or command line or however you do it), move your ebook files to a different directory, and change the chmod (the file's read/write/execute permissions) to only allow your server to access it. Change the target on your webpage to point to the new place. The end. As far as forcing user to login, there are a ton of tutorials out there for that. It's pretty basic,easy to setup stuff.