ClanKiller.com https://forums.clankiller.com/ |
|
Offered a small php and mySQL task https://forums.clankiller.com/viewtopic.php?f=8&t=1686 |
Page 1 of 3 |
Author: | derf [ Tue Mar 07, 2006 3:24 pm ] |
Post subject: | Offered a small php and mySQL task |
Author: | Satis [ Tue Mar 07, 2006 3:48 pm ] |
Post subject: | |
Author: | ElevenBravo [ Tue Mar 07, 2006 4:27 pm ] |
Post subject: | |
Author: | Mole [ Tue Mar 07, 2006 5:17 pm ] |
Post subject: | |
Author: | derf [ Tue Mar 07, 2006 5:38 pm ] |
Post subject: | |
Author: | Satis [ Tue Mar 07, 2006 6:08 pm ] |
Post subject: | |
Author: | Rinox [ Tue Mar 07, 2006 6:46 pm ] |
Post subject: | |
Author: | derf [ Tue Mar 07, 2006 7:59 pm ] |
Post subject: | |
Okay, im starting from zero now. Ive installed mySQL and im currently installing php v5.somethng. Mail configuration (wizard) starts during the install. "Enter address of your SMTP server." What is this, and why do i need to set it up? "Enter 'from' address". Again, how and why? Anyway, i hit "forward" and specified "Apache". It said something about "the software for [verb] Apache has not been written yet, you gotta do this manually." Whats that about? So, apparently it finishes successfully. Both are on my PC now, whether php works or not, i dont know. So there, lets say i have some concept code infront of me, how do i code it? Do i embed it into the HTML somehow and upload the php and MySQL scripts? Oh, and do you think this job could be done in 5 hours? (with no starting knowledge)? |
Author: | Pig [ Tue Mar 07, 2006 8:02 pm ] |
Post subject: | |
For the most part, IP tables are pretty accurate. Some ISP's are worse than others. In order to make this work, the page needs to have PHP installed (duh), and the page needs to either have a .php extension, or be set up to parse the page extension with PHP (add handler in Apache, for instance). that will make sure your code will run. The php code to look up the IP is pretty easy. Honestly, if they have the IP in a CSV, it would be easier to work with that than mysql. It would also be more reliable. Once you have the country, you can either write the form field with the value attribute set to the country, or use PHP to write a javascript snippet to populate it. Sitepoint.com has some good php articles for getting started. If you have a decent amount of time, you should be able to figure it out. IF they want one or two day turn around, i wouldn't take it. Not if you don't know any PHP. I google around, but everything was way overkill for what you need. |
Author: | Pig [ Tue Mar 07, 2006 8:03 pm ] |
Post subject: | |
I wouldn't bother setting up your own server. Just get them to give you FTP and MySQL access, and then set up a test directory to muck around in. Don't do anything to the real page till you get it right. |
Author: | derf [ Tue Mar 07, 2006 8:07 pm ] |
Post subject: | |
Right, that'll save some hassle. |
Author: | Pig [ Tue Mar 07, 2006 8:08 pm ] |
Post subject: | |
Author: | Pig [ Tue Mar 07, 2006 8:13 pm ] |
Post subject: | |
Author: | derf [ Tue Mar 07, 2006 8:15 pm ] |
Post subject: | |
Author: | derf [ Tue Mar 07, 2006 8:16 pm ] |
Post subject: | |
Page 1 of 3 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |