icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Help With Includes, Please??

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old October 9th, 2004, 12:52 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
Lives in High Desert, California, USA
27 posts
Gave thanks: 0
Thanked 0 times
Help With Includes, Please??

Hello! I run my site with the handy, liteweight cms PHP-Update. I'd like to begin to use Noah's Classifieds, but I need perfect integration with my existing site.

PHP-U divides all of its pages between a pre-made header template and a pre-made footer template. The content actually goes into <td></td> tags, the first being at the end of the header, the second at the start of the footer.

I'd like to "inject" Noah's classifieds into that content area, but I can't figure out which part of Noah's controls the rest, or what I might need to change as far as paths in the Noah's configuration.

make sense??? I have a beginner's skill with PHP, but I can follow logic well enough.

Anyone out there able to help? Here's the site in questions: MWS Media.

Thanks very, very much
mwsmedia is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 9th, 2004, 2:11 AM   #2 (permalink)
rocks your socks.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
This may take more than includes. I too am a beginner with php. If you need perfect integration with it, you'll end up doing way more in the way of conversion to bridge the databases to each other as well as functions. But just to plaster it in, wouldn't something like this work:

<?php
include ("whereeverthepathtothe/index.php");
?>

it probably won't but may put you in the right direction, or others who know more than me
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 9th, 2004, 3:13 AM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
Lives in High Desert, California, USA
27 posts
Gave thanks: 0
Thanked 0 times
I get what you're saying -- I've looked at NoahC (tired of typing it out!) in detail, and the index.php file calls several other files. Might be more complicated than I'm prepared to tackle.

I wish I could find a nice, simple, no-bells-and-whistles classified script... every one I saw tries to throw everything in but the kitchen sink, and really, all I need is simplicity (and template customization.)

All I need is everything, as Roddy Frame used to sing...
mwsmedia is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 9th, 2004, 6:11 AM   #4 (permalink)
rocks your socks.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
where did you find the script? when i'm in search of scripts i go to two places:

http://www.hotscripts.com
http://www.php.resourceindex.com

these may help you with what you need, if you haven't tried them yet
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 9th, 2004, 12:24 PM   #5 (permalink)
Surpass Fan
Super #1
 
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
Could just try writing your own... If you truely just want it simple, than that would be really easy. Just incorporate PHP/MySQL and you're set.
__________________
- Evan Charlton | [site] | Server - SH58
Kickersny.com is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 9th, 2004, 3:02 PM   #6 (permalink)
rocks your socks.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
I always love how many people tell us beginners to write our own of what ever we are doing. I had a guy tell me to write my own forum the other day. I'm lucky to be able to write my own name.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 9th, 2004, 4:15 PM   #7 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
Quote:
Originally Posted by djsckizo
I always love how many people tell us beginners to write our own of what ever we are doing. I had a guy tell me to write my own forum the other day. I'm lucky to be able to write my own name.
I tried writing my own forum... It was about 2-3 weeks after I started learning PHP. I got some things down, but never got to posting.. I could probably get a basic one going now, but nothing near like what Invision or vBulletin have.

The reason they recommend coding your own is that integration is often a lot easier. Of course with little knowledge, that's not an option.

You could likely get away with modifying the script you're currently using (take pieces that you need, throw it into your own file and hope it works). Then again, that too can be difficult. I'm horrible with integrating anything with anything else.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 10th, 2004, 12:31 AM   #8 (permalink)
rocks your socks.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
Yeah, that's exactly right. With the knowledge I have, I'm not able to code anything near that. However, I've got on my list of things I need to do, to write out scripts for the following:

Guestbook
Simple Threaded BB (basically a peg board)
Form Mail

I'm going to write out scripts like these and give them away on my hosting site. Atleast, when I get the chance to sit down and get going on it.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 10th, 2004, 12:59 AM   #9 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
Those are very good scripts to start on. They're somewhat basic and will help you along the way at a later time.

Silly me, I have myself coding a website for my school which will include a student and teacher login where class notices can be posted, along with student marks and lots of other crazy little things. Should be an interesting project and I have until Jan 28th to complete it. Guess it will go under testing 2nd semester. Hope they use it next year.

Comment you code.. Always, always comment, you'll find it very useful later on when you're going through a 500 line document trying to find something.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On