![]() |
I want to learn php...any tips, advice?
Hey everyone,
Just like the title to this thread suggests...how can I learn php and mysql so that I can 'jazz' up my sites, especially for refershing the page and making new banners and text links show up where the old ones were? |
I would fist learn the basics of site building before trying to learn how to script sites.
|
So what your saying then is that I still have a ways to go?
|
Most of the stuff that I build, like free sites, are just straight very simple html.
Unless you are planing on becoming a programmer or something like that you need to learn… How to sell. How to get traffic Where is get traffic How to build sites that get accepted What niches you are good at selling What sponsors convert well for your traffic Etc. For what php, mysql, cgi, etc. that I do use I use pre-made scripts that I then have to learn how to use, but I don't need to know how to write them. |
I feel I am at the point where I am VERY close to creating pretty good sites. I am still trying to find my specific niches.
Lately, I have been getting traffic like crazy, but not so many sales. |
If you want to learn PHP, read a small tutorial and start programming something you want. The manual is your friend.
And I really meant it, if you want to learn you need to try programming something. At least that's what works for me. :) |
You make it sound easy. I have been at php.net. There are a number of actions you must take before you can actually begin programming in php.
You have to download a php program. Then you have to fiddle around with mySQL, etc. I don't think its that difficult but there are a number of 'things' you have to do first. I still have to figure out what those things are first. And I have to practice as well |newbie| |
#1) Go to Amazon.com and buy books - not tutorials as they all suck. Buy reference manuals.
#2) Bookmark php.net #3) Go to http://www.scriptschool.com/php/ and take this free course. If all else fails, just hire me. |buddy| |
Quote:
|
Quote:
It's simple, but useful... Create an html file called "banner.html" with your banner code in it like this ![]() Insert sales text here Upload it to your server and check that it's there. Copy an existing html page and change the extension to ".php" instead of ".html" (NB: You can set up your server to read php from html pages) Amongst the html of this page add these three lines of php code... PHP Code:
This is useful because you can link up all your sites to that single banner.html, and then if you wanna change sponsor for any reason, you only need to change the banner.html and ALL your sites will change sponsor because they are being served from one central point, in the same way you can do this with SSI. |
Thanks urb...but what if you want to have the banner "rotate" from a series of say 10 banners?
I've noticed when I press "refresh" on some of the bigger or more sophisticated sites, diffrent banners and link codes show up. Is that php script more complex? |waves| |
Quote:
|
Thanks for the hot tip, urb!
You have been most helpful! |waves| |
I found a book at Amazon called php4 Developer's guide - used $2-97. And I found it good for beginning with php.
|
The best tip, hotscripts.com ... find a script that is something simple that you want to do, d/l a few of them like it and get them working. Then try to make changes to it.
|
Okay, here's the deal...
Learning PHP is pretty easy. Learning to be a PROGRAMMER is not. Sure, you can learn PHP in a matter of a couple weeks if you are reasonably intelligent. But you will spend YEARS learning how to be a true PROGRAMMER unless you have a competent mentor (like myself). I have been programming for well over 20 years. I've forgotten more languages than most people will ever learn. What this gave me is an innate knowledge of programming and analysis so that I can provide an efficient solution for my clients as quickly as possible. All the code hacks out there that have a few years of college and some programming classes don't know shit. They've only lived in the puristic world of "everything works the first time" and have no experience getting their asses handed to them because one line of code caused them late night pager and/or phone calls to fix something that "should have worked". Can you learn php basically overnight? yeah, if you're a quick reader. Can you become a competent programmer overnight? NO. ok, stepping off the soap box (I'm blaming Cleo) . :) |
Quote:
Anyone can cook, but it takes years to become a good chef. |
Quote:
|
Quote:
|
Mishi :)
Quote:
|
Thanks a lot guys!
I will definitely take into consideration EVERYTHING that has been posted. Being a determined individual by nature, will help me get to where I want to be. As far as being a 'bonafide' programmer, that won't happen overnight, this I knew and realized before all the posts that were posted by all of you. A webmaster friend of mine has lent me a book entitled 'begining PHP4,' a wrox programmer to programmer publication. I've begun reading it. There are mantopics that are covered in this publication, and book is almost 800 pages!! Thanks for all the kind gestures, bits of information, and advice/wisdom. I am going to continue building and submitting free sites, as usual and as time permits. Being only a part-time webmaster for now who has tasted modest success in my first 4 months, I feel any/all information I acquire will only be for MY benefit. Regards, Pornrex |
Its not php but this is a very easy to use banner rotator, it displays a html snippet randomly http://www.focalmedia.net/htmlrotate.html and its for free
|
Thanks Harry.
Any info on improving the quality of sites is greatly appreciated. |bananna| |
Not ideal for everyone but i run apache, mysql and php locally with my machine set up as a server. That way i can muck about with php and mysql dbases to my hearts content before i put stuff up live. There are plenty of places where you can get hold of php scripts or snippets of code for free that can often help you out.
|
By far the best tutorial I have found for PHP is the 16 part course at http://www.scriptschool.com/ - it is an excellent and very concise foundation course in php and web scripting in general.
|
All times are GMT -4. The time now is 04:31 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc