Q: I try to learn some php, my site is getting really cumbersome to administer, and is worse when I add. Php I figure would be great, but i cannot seem to not find good places to learn. Sure, there are many sites, PHPNuke, php.net, phpbuilder, etc etc, I have them all and all the tutorials I find are horrible. They are either too short and simplistic, or they are too deep and have a lot of things I dont care about. Ive learned lately is C, have been involved with programming and off for a few years now. I know what a variable. I know what a function is a constant, etc etc. so I know a lot of php right off the bat. (His very C – as it is great because I am now learning
basically C), all pages of my site are exactly the same. same colors, same table layout, same everything. the only difference is the content in them. I figure I was the main file index.php, which is two files, the main layout file, which contains information about the layout and whatnot, and then the second file, which is determined by the variable passed to index.php that ie index calls. php? = Games.html or just? = Games, whatever. It takes the contents of that file, and formats it nicely all based on the data in the file format and then display. I know many of the sites have this kind of technique, Im just a terrible time finding good information on doing. Like I said, I looked around at all the big PHP sites, is to google, Im at my wits end and thats why I thought I ask here (as AT is usually a hardware forum) for more information and
thanks oh yeah, the site is in sig: D
C-Section Recovery & Health Guide
Re:<< Here is how I see guy's problem and a possible solution:
Assuming you want to have a consistent look and feel in ALL of your pages (as stated in your "requirements/problem definition", all you need is ONE php script.
In this script, you will hard code the "look and feel" part (the green backgound, possibly a navigation bar on top and/or on the left, a banner on top etc.). You will add logic to this same php script that will pull data (content) from a database (mySQL, mSQL, MS SQL Server, MS Access depending on your web hosting provider's availability). It is in this database that you are going to store your content. The logic will be tied to which link was clicked on your main page and/or in the navigation bar.
I know that I am probably oversimplifying things. Depending on your document tree (subsections of your site), you will need a more complicated script/setup. However, I feel that the part you need to concentrate on is how to access a database using PHP. Maybe you should not try to become a PHP expert right now. Just learn how to apply PHP to solve specific tasks. This way you can become an expert during the process. Then, some time later, you can revisit your PHP books and polish your knowledge.
guy >>
yeah i am running apache and i'm sure i can set up MySQL without much trouble. i suppose i will just start off slow and take it from there. maybe i'm trying to go too fast.
guy and guy: thanks for all the suggestions but i tend to avoid MS like the plague
thanks for everyone's input, it is very appreciated and i will check out all the links ![]()
Time Management Mastery For Busy People
Re:Here is how I see guy's problem and a possible solution:
Assuming you want to have a consistent look and feel in ALL of your pages (as stated in your "requirements/problem definition", all you need is ONE php script.
In this script, you will hard code the "look and feel" part (the green backgound, possibly a navigation bar on top and/or on the left, a banner on top etc.). You will add logic to this same php script that will pull data (content) from a database (mySQL, mSQL, MS SQL Server, MS Access depending on your web hosting provider's availability). It is in this database that you are going to store your content. The logic will be tied to which link was clicked on your main page and/or in the navigation bar.
I know that I am probably oversimplifying things. Depending on your document tree (subsections of your site), you will need a more complicated script/setup. However, I feel that the part you need to concentrate on is how to access a database using PHP. Maybe you should not try to become a PHP expert right now. Just learn how to apply PHP to solve specific tasks. This way you can become an expert during the process. Then, some time later, you can revisit your PHP books and polish your knowledge.
guy
Time for Tables PC Games – Learn multiplication facts
Re:<< You could give ASP a try. VBscript is easier to learn in my opinion. >>
I suggest ASP.NET assuming that guy has some OOP experience.
Ewww.. the only spaghetti code I dare to touch these days is DHTML.
Alternative Hepatitis C Treatments
Re:I agree with guy, online tutorials are more geared towards people who know the language and just need a quick refresher on how to do a certain thing. Unfortunately, I'm not a teacher and have absolutely no teaching skills at all, so any "help" I give you would be useless as it probably wouldn't make sense.
Ideally, PHP is used with a database, as the data retrieval is made a ton easier, as well as it comes out in a manner that is easy to format. If you're trying to pull data out of simple files to create content for your site, that's most definately what's giving you all the grief then, as even seasoned vets would have a little trouble sorting it all out.
All I can suggest is to maybe grab yourself a textbook on the subject, one that just explains the simple parts of PHP cause once your get the syntax you're gonna be flying(with your C experience and knowledge of control structures).
Devshed.com (http://www.devshed.com) has some decent tutorials if you haven't been there yet. If you have any specific questions, definately ask, lots of people around here have great PHP knowledge. Personally, I might not attempt creating your site layout as you have planned, however I'm uncomfortable working with file data, as I was only even taught to work with database connectivity as a source of data input.
C Section – Exercise and Recovery Plan
Re:Did you try Webmonkey's Tutorials (http://hotwired.lycos.com/webmonkey/programming/php/)?
Surefire French Learning Package.
Re:You could give ASP a try. VBscript is easier to learn in my opinion.
Surefire German Learning Package.
Re:Well, I have now come to the conclusion that books and online tutorials are very different animals.
If you are having trouble with a particular aspect of a language, or cannot get a specific and commonly used feature to work, online tutorials are great.
However, if you want to learn how to use a language well, books are the way to go.
I recently started learned php (couple of months ago) using the Wrox book beginning php. I had a programming background, so as you say, I know what a function is. I read the book cover to cover. The first 200 pages I read quickly, and most of it was telling me how to suck eggs. After that much of it wasn't new, but made me think twice. I expected it to be like this, so I didn't get impatient.
Having finished it I'm glad I read it, and now I can move forward with some confidence.
I guess what I'm saying is that sometimes you have to put the work in to get your foundations sturdy, and only then can you move onto bigger things. (I'm probably telling you how to suck eggs now! but sometimes what you don't want to hear is right for you! :Q)
Anyway, just my perspective on this based on the fact that I too went through a similar experience to what you are having now.
I hope this is some use!
ps nice colour scheme on your site, btw………………
Best of Time Management
Re:I feel your pain!!! I have been trying to get a php bulletin board going for over a month working at it every day for 4 to 5 hours. There are no good tutorals out there anywhere I can find. I hope you find something.
guy
0 Comments.