Forum: PHP Feb 24th, 2008 |
| Replies: 4 Views: 304 Re: problem of rhyme game Well, if you're waiting for someone to do your homework for you... you'll probably keep waiting.
Here's a hint, though. Use a loop that will continue to execute until you get to the last... |
Forum: HTML and CSS Feb 22nd, 2008 |
| Replies: 9 Views: 1,125 Re: create forum site? Actually, using HTML would make the project impossible, not more difficult.
HTML (along with CSS) is just a way to mark-up and present information. It helps you organize content on a website.
In... |
Forum: PHP Feb 14th, 2008 |
| Replies: 4 Views: 355 Re: Help with .inc files!! You can dynamically check to see whether or not the file was included, and then automatically display the regular page or some other content.
First thing you'll want to do (at least when you're not... |
Forum: PHP Feb 14th, 2008 |
| Replies: 36 Views: 1,494 Re: phpmyadmin issue Well, the best way to do that would be to remember the password you used.
In lieu of that, you can log in as the root user and modify the password for the user 'pma' to something new.
Here's how... |
Forum: PHP Feb 11th, 2008 |
| Replies: 4 Views: 236 Re: please tell me what is wrong with the code? What he's trying to say, is you should never insert user input directly into the database. There are a number of ways a malicious user can use that type of insert statement to hack into your... |
Forum: Promotion and Marketing Plans Feb 9th, 2008 |
| Replies: 12 Views: 1,535 Re: Adding my Website link to google and yahoo This may be true. But your Yahoo Backlinks can be used as a measure of site popularity - good for advertisers and such. TNX, for example, looks at both Yahoo backlinks and Google pagerank.
Both... |
Forum: PHP Feb 9th, 2008 |
| Replies: 5 Views: 595 |
Forum: Promotion and Marketing Plans Feb 9th, 2008 |
| Replies: 12 Views: 1,535 Re: Adding my Website link to google and yahoo You may have noticed that the "Visit XYZ's Homepage" link attached to your name is not nofollow.
However, I don't blame the webmaster for trying to limit spam on the forums. If sig links are... |
Forum: PHP Feb 9th, 2008 |
| Replies: 6 Views: 311 Re: retrieving live information from other sites I don't think so. Flash does a good job of wrapping up all the information so that you can't easily manipulate or edit it.
Is there another site for Korean showtimes (like Fandango in the US)? ... |
Forum: Python Feb 8th, 2008 |
| Replies: 7 Views: 554 Re: Python support in Linux Well, then time for you to do a little data collection and research. =)
I'm sporting Ubuntu Gutsy Gibbon, and it came with Python pre-installed (although I had to install the mysqlDB package... |
Forum: PHP Feb 8th, 2008 |
| Replies: 1 Views: 287 Re: Data feed url linking If by "data feed" you mean an xml feed/file, then you can access it through PHP using either an XML parser or a pre-built package like SimpleXML.
I'd suggest reading through the section in Practical... |
Forum: Search Engine Optimization Feb 7th, 2008 |
| Replies: 7 Views: 809 Re: Problem with Google and Wordpress What did you do with all of the pages when you switched to Wordpress?
Presumably the posts now have new URLs. Did you use a 301 redirect to tell Google where to go? It might have crawled your... |
Forum: PHP Feb 7th, 2008 |
| Replies: 5 Views: 595 Re: Add a Link into PHP web page...How To?? The easiest way would be to just add an html link to the page. Note that you can easily mix and match php and html on the same page. Just end your php block with a ?> and then print html.
For... |
Forum: HTML and CSS Feb 6th, 2008 |
| Replies: 5 Views: 350 Re: puzzled? You need to change the quotes around your doctype stuff. Notice how they slant in and out? That's a special type of quote (probably created an an escape sequence), that doesn't work for quoting... |
Forum: PHP Feb 4th, 2008 |
| Replies: 2 Views: 441 Re: PHP OOP Question The link that Naveen posted has a good overview of these OOP concepts.
No, there are no other types - just these three.
As for when to use them... you should always try to use the most restrictive... |
Forum: PHP Feb 3rd, 2008 |
| Replies: 8 Views: 330 Re: logging in problem That would be your best bet. It's particularly hard to help someone that doesn't understand the code at all - so I would always suggest learning the basics before you try and implement someone... |
Forum: PHP Feb 3rd, 2008 |
| Replies: 1 Views: 1,305 Re: dynamic drop down menu in php In HTML, what you're looking for is the <select> tag. This creates a dropdown list, like...
<select>
<option value="value">Text</option>
<option value="value">Text</option>
</select>
So... |
Forum: PHP Feb 3rd, 2008 |
| Replies: 7 Views: 400 Re: Login page login help Ahh, I thought that you were going to store a bunch (or at least a handful of users).
If you tried to add more records to the file, it would get more complicated to parse the variable names, make... |
Forum: PHP Feb 3rd, 2008 |
| Replies: 7 Views: 400 Re: Login page login help Should be plenty safe. No one will be able to see the password details, because it will be parsed by the php interpreter. Just like how your mySQL user/password information is floating around... |
Forum: PHP Feb 2nd, 2008 |
| Replies: 7 Views: 400 Re: Login page login help I'm not sure if this would be the best way to do it...
However, the basic functions you'll need to use are PHP's file functions. The simplest way to do it would be...
$fileContents =... |
Forum: Promotion and Marketing Plans Feb 2nd, 2008 |
| Replies: 6 Views: 1,016 Re: Social Network for Webmasters? DZone seems to be more geared towards programmers/developers than simple web designers.
With that in mind, I love DZone and go there far more than any other social bookmarking site. The rest are... |
Forum: Promotion and Marketing Plans Feb 2nd, 2008 |
| Replies: 26 Views: 10,961 |
Forum: PHP Feb 1st, 2008 |
| Replies: 1 Views: 740 Re: PHP Select Statement You need to do two things here.
First, order the results in descending order, so that the latest entry is first in the list. For this, you can use "ORDER BY userID DESC".
Then, you need to grab... |
Forum: PHP Feb 1st, 2008 |
| Replies: 2 Views: 413 Re: Lost Password I agree. That script is entirely unnecessary unless you're locking down Fort Knox.
One simple way to generate a random password would be...
$pw = md5( time() );
$pw = substr($pw, 0,... |
Forum: PHP Feb 1st, 2008 |
| Replies: 16 Views: 835 Re: Newby to PHP here.... (Google Analytics) This usually comes from having a missing semicolon. The previous statement was never closed, so PHP isn't ready to begin a new statement - like require_once.
Check that lines 25 and 26 look like... |
Forum: PHP Feb 1st, 2008 |
| Replies: 11 Views: 597 |
Forum: Promotion and Marketing Plans Jan 28th, 2008 |
| Replies: 15 Views: 3,372 Re: G Analytics take foooorever! I agree. The reason it appears to show lower numbers is because it shows actual, real visitors. Other scripts like webalizer or WP Slimstat will show any requests to your web server. If you're... |
Forum: PHP Jan 27th, 2008 |
| Replies: 2 Views: 476 Re: Simple Question about PHP Sometimes you can cut down on it. Other times it's necessary to open and close php tags a lot.
In your case, you can cut down significantly on the opening/closing brackets. In between the... |
Forum: PHP Jan 27th, 2008 |
| Replies: 7 Views: 674 Re: md5 help/mysql help So if you were to add this line (#2) ...
$row = mysql_fetch_assoc($result); // note assoc
echo $password . '<br />' . $row['password'] . '<br />';
if ($row['password'] == $password) {
echo "Login... |
Forum: PHP Jan 27th, 2008 |
| Replies: 7 Views: 674 Re: md5 help/mysql help How is the password stored in the database?
You say the code works fine without md5 but it doesn't work with md5. When you change the code to encrypt the password, do you also change the database... |
Forum: PHP Jan 27th, 2008 |
| Replies: 1 Views: 330 Re: get the value from derived table Now you need to execute the query, save the result, and get the values using one of the mysql_fetch functions (mysql_fetch_row(), mysql_fetch_assoc(), mysql_fetch_object() - go to php.net for more... |
Forum: PHP Jan 26th, 2008 |
| Replies: 8 Views: 696 Re: Send email through php? I've never set one up on a windows server, but I would assume you would use your ISP's SMTP server. This is usually "smtp.isp.com" or "mail.isp.com" or some such thing. For example, mine is... |
Forum: PHP Jan 26th, 2008 |
| Replies: 8 Views: 696 Re: Send email through php? If you didn't set up the smtp settings in your php.ini file, it won't work. Check the SMTP and smtp_port settings.
If you're determined not to use the mail function or need something more advanced,... |
Forum: HTML and CSS Jan 26th, 2008 |
| Replies: 9 Views: 1,125 Re: create forum site? Building a forum from scratch would be an interesting project... but long and unnecessary unless you're really interested in learning how to do it.
If you want to get something off the ground... |
Forum: HTML and CSS Jan 26th, 2008 |
| Replies: 7 Views: 1,076 Re: CSS question regarding hover images I think that paints the problem with far too broad a brush. Why would you have to get rid of all hover images in order to be handicap accessible?
Example. A hover image could be used to change the... |
Forum: PHP Jan 25th, 2008 |
| Replies: 2 Views: 303 Re: multi-file Class in PHP I'm not sure if it's the best idea to just copy and paste a set of functions into a class. Doesn't quite live up to the most rigorous notions of OOP...
More to the point, I don't believe this is... |
Forum: PHP Jan 25th, 2008 |
| Replies: 7 Views: 588 Re: Form display settings I was able to create a border and style a fieldset fine with Firefox. What browser are you using?
If there's a problem with compatibility with a fieldset, you can wrap all of the form elements... |
Forum: PHP Jan 23rd, 2008 |
| Replies: 4 Views: 380 Re: hi.. need help.. That's the name of the smtp server that I would use (for Optimum Online). You can find the name of the server from your ISP. If you use some kind of pop3 e-mail browser (like Outlook or Evolution),... |
Forum: PHP Jan 22nd, 2008 |
| Replies: 4 Views: 380 Re: hi.. need help.. There are a couple of ways to do this.
The most direct, permanent and effective way is to edit the php.ini file. If you're running php on a local server (i.e. your computer), then this should be... |
Forum: PHP Jan 22nd, 2008 |
| Replies: 4 Views: 718 Re: Question about crypt function Yes... and no.
Take a look at the output of this snippet.
$cypher = crypt ( time() );
echo $cypher . '<br />';
echo crypt('password', $cypher) . '<br />';
echo crypt('password1', $cypher) . '<br... |