|
It is currently Fri Nov 22, 2024 9:24 am
|
Offered a small php and mySQL task
Author |
Message |
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
Offered a small php and mySQL task
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Tue Mar 07, 2006 3:24 pm |
|
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Tue Mar 07, 2006 3:48 pm |
|
|
ElevenBravo
King
Joined: Wed Apr 16, 2003 2:18 pm Posts: 1976 Location: Sexy Town
|
_________________ Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
|
Tue Mar 07, 2006 4:27 pm |
|
|
Mole
Minor Diety
Joined: Fri Apr 11, 2003 5:09 pm Posts: 4004 Location: Walsall, West Mids, UK
|
_________________ Games to complete: GTA IV [100%] (For Multiplayer next!) Fallout 3 [50%] Rock Band [35%] http://www.cafepress.com/SmeepProducts
|
Tue Mar 07, 2006 5:17 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Tue Mar 07, 2006 5:38 pm |
|
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Tue Mar 07, 2006 6:08 pm |
|
|
Rinox
Minor Diety
Joined: Mon Mar 31, 2003 7:23 am Posts: 14892 Location: behind a good glass of Duvel
|
_________________ "I find a Burger Tank in this place? I'm-a be a one-man cheeseburger apocalypse."
- Coach
|
Tue Mar 07, 2006 6:46 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
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)?
Last edited by derf on Tue Mar 07, 2006 8:02 pm, edited 1 time in total.
|
Tue Mar 07, 2006 7:59 pm |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
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.
|
Tue Mar 07, 2006 8:02 pm |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
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.
|
Tue Mar 07, 2006 8:03 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
Right, that'll save some hassle.
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Tue Mar 07, 2006 8:07 pm |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
Last edited by Pig on Tue Mar 07, 2006 8:14 pm, edited 2 times in total.
|
Tue Mar 07, 2006 8:08 pm |
|
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
|
Tue Mar 07, 2006 8:13 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
|
Tue Mar 07, 2006 8:15 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Tue Mar 07, 2006 8:16 pm |
|
|
Who is online |
Users browsing this forum: No registered users and 65 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|