Web Hosting Talk







View Full Version : OT: PHP Help??


ablaze
04-24-2002, 04:09 PM
Sorry for the off topic post, but I'm getting desperate. I've been looking around for the past four days for any tutorials or anything that would help me change my site (just a basic personal site/blog) over to PHP... I don't want to do any big template thing like Fast Template because I don't know PHP that well, but I can't find any tutorial or anything that would show me how to do it the easy way... :eek: if anyone knows of such a site or can help me out, please let me know!

I found one thing on newbienetwork.com that showed how to do it, but I couldn't get it to work... arrrgh! Again, sorry for the OT, but like I said, going crazy... :bawling: Thanks...

Falco1199
04-24-2002, 04:15 PM
I could use a tutorial on phpBB if anyone knows of one...

alpha
04-24-2002, 05:00 PM
why not just archive your current blogger and just start using a new php-based news/blogger script?

no point in trying to do php just for that one thing

ablaze
04-24-2002, 05:37 PM
Well, I've got about 30 subsections and the reason I wanted to use PHP was to make it easier to update the layout changes...

SI-Chris
04-24-2002, 06:33 PM
If you don't mind spending a little bread this is an excellent book to get you started with PHP/MySQL: http://sitepoint.com/books/?bookid=PHPMSQL

poOf
04-24-2002, 06:45 PM
dodo's new world (http://regretless.com/dodo/newworld) i think this may be helpful.. i never really finished trying the tutorial.. but i guess it looks simple enough..

tensixteen64
04-24-2002, 06:49 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
goes at the top before anything.

I use includes to pull in my stuff. I'm assuming this is what you mean? <div align="center"><?php
include('nameofwhatyouwanttoincludehere.php');
?></div>


I use this with Movable Type and never had a problem switching it over. I just built .php pages and made them the includes. You can see them in action on my weblog sidebar www.simplysara.com/wip

:) Hope this helps!

Sara

ablaze
04-24-2002, 08:15 PM
Thanks for the replies guys... I do have the book by Larry Ullman, "PHP For the World Wide Web" which helped learn the basics but just isn't enough. I think I've basically figured it out but for one question, and if somebody could answer this I'd be indebted for life... :D

When I initially pull up index.php, I have it set as the default to show blog.php... then, when you click on bio (index.php?x=bio), it's supposed to show that file instead of the blog... but it doesn't. Here's the code I put in the header.php file where I want the content to go:

<?php
$x = basename($x);
if(!$x) {
include("blog.php");
} else {
include("$x"); }
?>

which is just giving me an error message. Can anyone help? If it helps, this is what I've got in my index.php file:

<?php
$default = "blog";
$MainPage = "header.php"; // Main Template File
$Content = "./x"; // Location of Content
$PageExtension = ".php"; // What comes at the end of the page...

require ("header.php");
?>

Can you tell I've never programmed before? Yeah, don't answer that one... ;)

tensixteen64
04-26-2002, 04:53 PM
Ok you confused me enough that I read that a few times. Why not just have index.php then do links to bio, etc. Would be tons easier. That's what I did as I know that people type in the web addy and then what I want them to see is a way of them choosing where they want to go. Rename your blog page to index, then you work around the whole thing. Of course, I'm a lazy sort then. :)

Sara

Snow White
04-27-2002, 12:57 PM
Hi

I wrote some php tutorials myself, if you find it useful, they are at http://www.daydreamgraphics.com/tutorials/

Btw, my site is entirely in php and mysql. I don't use fast template. I did it with include files (which is really easy php syntax) and wrote a few common functions to reduce coding for the template.

The functions are completely optional since they mostly deal with MySQL for my site.

To update a layout, I only need to edit 2 text files + 1 css file.

Its covered in my PHP tutorials.