Forum: PHP Jan 16th, 2009 |
| Replies: 3 Views: 444 Well if that were the case, you could write a .htaccess file that only allows requests from localhost to access the files in the directory. |
Forum: PHP Jan 15th, 2009 |
| Replies: 3 Views: 444 You should be fine as long as you only allow certain file types to be uploaded. For instance, you don't want people to be able to upload files that may contain malicious code to your website. You... |
Forum: PHP Jan 15th, 2009 |
| Replies: 3 Views: 261 For future reference, try using this tool. It's really handy. http://www.roblocher.com/technotes/regexp.aspx |
Forum: PHP Jan 15th, 2009 |
| Replies: 3 Views: 261 |
Forum: PHP Jan 15th, 2009 |
| Replies: 5 Views: 1,661 As far as I know, there is no Master's in Web. Even a Bachelor's is hard to come by. If you want to, you could go for your CIW certification (http://www.ciwcertified.com/certifications/program.asp)... |
Forum: PHP Jan 15th, 2009 |
| Replies: 7 Views: 1,281 Additionally, your code is very unsafe. Anyone could hack this form with MySQL injections, such as typing ' OR a=a-- in the password field. This would allow them to login to the site with the... |
Forum: PHP Oct 4th, 2008 |
| Replies: 5 Views: 445 Basically the problem was $i starting off as 0. This threw it off completely. I used $n to start as 1 and count (because I use the $i for more than just an increment).
I'll be posting this project... |
Forum: PHP Oct 4th, 2008 |
| Replies: 5 Views: 445 Well, your solution didn't work for me, but it got me thinking and now my code works. :D
Soon I'm going to post it in the Web Developer's Lounge. It'll be something everyone wants. ;) |
Forum: PHP Oct 4th, 2008 |
| Replies: 5 Views: 445 Okay, so I'm writing an application. In this application there is a drop down with the selections 10, 20, 30, and so on to 100. This drop down controls the amount of times a loop will occur.... |
Forum: Site Layout and Usability Sep 25th, 2008 |
| Replies: 10 Views: 2,885 That depends on your target audience. I'm well aware that parts of the world only have dial-up. So I suppose if your target audience doesn't include the US, Japan, China, or Europe, then sure, 80% of... |
Forum: Site Layout and Usability Sep 24th, 2008 |
| Replies: 10 Views: 2,885 Rofl 80% of the users on dial up? That's hilarious. |
Forum: PHP Sep 19th, 2008 |
| Replies: 6 Views: 690 Should be something like this:"<a href=\"re_images/".$img."\" target=\"_blank\"><img src=\"re_images/".$img."\" alt=\"ALT TEXT\"width=\"100\" height=\"100\" border=\"1\" /></a><br />\n"; |
Forum: HTML and CSS Sep 19th, 2008 |
| Replies: 21 Views: 2,779 Even then I'd say to do it all yourself. I think most people start to use WYSIWYG editors when they get into the business side of web design and have to meet deadlines. I'm way to picky about... |
Forum: HTML and CSS Sep 18th, 2008 |
| Replies: 21 Views: 2,779 This is certainly not the place I'd pick a fight, and I'm not. Stating an observation:
He said that on the subject of people giving bad advice. Therefore, he's saying that the Indians in this... |
Forum: IT Professionals' Lounge Sep 18th, 2008 |
| Replies: 3 Views: 1,094 The importance of certifications will vary from employer to employer. But it never hurts to have as many as possible. For Web Development, I would suggest going for your CIW (Certified Internet... |
Forum: PHP Sep 18th, 2008 |
| Replies: 6 Views: 690 And if you're interested in making that code a little smaller:
<?php
if(!empty($a1[image])) {
$im_array = explode("|", $a1[image]);
$images = "";
if ($im_array !== false) {
foreach... |
Forum: PHP Sep 18th, 2008 |
| Replies: 8 Views: 2,011 This:<?php while($row = mysql_fetch_array($sqlresult)){ ?>Should be this:<?php while($rows = mysql_fetch_assoc($sqlresult)){ ?>Your variable was named $row and you called it later in the loop as... |
Forum: PHP Sep 18th, 2008 |
| Replies: 8 Views: 957 If you're using JavaScript to call a PHP file, then it sounds like AJAX. In which case you would have to use the DOM to display the result of the PHP script. Please show us the script you're using. |
Forum: HTML and CSS Sep 18th, 2008 |
| Replies: 21 Views: 2,779 Ah, but no mention of those of us who actually gave him valuable advice.
I sense a bit of British distaste towards the Indians. Just because there are tons of them immigrating to your country... |
Forum: Linux Servers and Apache Sep 17th, 2008 |
| Replies: 11 Views: 2,425 Checking for IIS is a big thing. If IIS is isntalled, it will never work. |
Forum: PHP Sep 16th, 2008 |
| Replies: 2 Views: 948 The phone number is a good idea as a spam bot probably won't fill that in correct, especially if we validate it. :)
This method will accept a 10 digit phone number with spaces, dashes, or neither.... |
Forum: Linux Servers and Apache Sep 16th, 2008 |
| Replies: 11 Views: 2,425 First off, if you're using something like Windows XP, you need to make sure that you allow incoming traffic to your PC through port 80. The same needs to be done if you have a router or firewall... |
Forum: Site Layout and Usability Sep 16th, 2008 |
| Replies: 10 Views: 2,885 Absolutely no more than 50K. |
Forum: IT Professionals' Lounge Sep 16th, 2008 |
| Replies: 0 Views: 624 Well I wanted to get some other professional input on a very small, but useful script I'm writing. It began as a script for a friend of mine that is a teacher that wanted something similar to the W3C... |
Forum: PHP Sep 16th, 2008 |
| Replies: 3 Views: 542 Better yet go get phpMyAdmin and use the GUI to do it. That's about as simple as it gets. |
Forum: HTML and CSS Sep 16th, 2008 |
| Replies: 9 Views: 892 In reference to the poll, using table elements for layouts is bad, but using CSS tables is so very good (as soon as IE8 is standard and all majors browsers support it).
It will revolutionize the... |
Forum: HTML and CSS Sep 16th, 2008 |
| Replies: 3 Views: 553 If you want to use one, I would use Web Designers Directory (http://www.webdesigners-directory.com/), and I do. If you Google "Web Design" it's on the first page. |
Forum: HTML and CSS Sep 16th, 2008 |
| Replies: 21 Views: 2,779 Please don't start learning on Dreamweaver. -_-
When learning HTML, CSS, or any programming or markup language, you need to learn to do it by hand first so that you understand each element that is... |
Forum: PHP Sep 16th, 2008 |
| Replies: 1 Views: 488 I may be wrong, but I believe there's PhpBB3 addons that will place ads on your site. I'm not sure, I hate putting ads on my forums. |
Forum: PHP Sep 16th, 2008 |
| Replies: 2 Views: 467 Well, if you're using a web host you can simply FTP to the server and drag and drop the image to where you need it.
What kind of host are you using? |
Forum: PHP Sep 16th, 2008 |
| Replies: 6 Views: 537 I made a ton of edits to my post. I kept noticing errors, lol. I've been doing this too long. :X |
Forum: PHP Sep 16th, 2008 |
| Replies: 6 Views: 537 And you probably want to declare the E-mail variables correctly. Also, paragraph tags within a form used in that way aren't exactly semantically correct. It's acceptable to use <br /> tags right... |
Forum: Existing Scripts Sep 16th, 2008 |
| Replies: 9 Views: 3,946 Well, since I disabled the catch all address, I haven't had the problem. I use Google Apps mail for my company's E-mail addresses. The method I used may have only have pertained to Gmail. |
Forum: PHP Sep 15th, 2008 |
| Replies: 3 Views: 2,605 Well, it sounds like he doesn't need to do it personally, but needs to have a script that can do it for users of the script he's writing.
I've thought about doing something like this, but I never... |
Forum: PHP Sep 15th, 2008 |
| Replies: 3 Views: 924 This was actually the script I was going to suggest. You could implement it with your current system and possibly identify the IP addresses by the IP addresses your users logged in with. Just a... |
Forum: PHP Sep 15th, 2008 |
| Replies: 8 Views: 866 Actually, I tried my code and it didn't work. :P
Here's one that works like I described.
<?php
$filename = 'hitcount.txt';
if (!$_COOKIE['counter']) {
setcookie("counter", 1,... |
Forum: PHP Sep 12th, 2008 |
| Replies: 2 Views: 440 Yeah, I was just going to say Google. =P |
Forum: PHP Sep 12th, 2008 |
| Replies: 8 Views: 866 I've taken code from Shanthi's post and edited to to set a cookie when a user visits the page. When the user refreshes the page, it checks for the cookie. If the cookie exists, it does not add to the... |
Forum: PHP Sep 12th, 2008 |
| Replies: 3 Views: 2,648 Alright, no problem. The first thing we'll do is make sure that your drop down menu retains its value. In order to do this, we check the POST value of the select field and then add... |
Forum: PHP Sep 12th, 2008 |
| Replies: 3 Views: 991 Setting cookies is relatively easy.
setcookie("pr", array(), time()+3600);
That should work. Then when someone adds an item to their cart, you can append the next item to the array in the cookie.... |