Log In · Register

 
 
Closed TopicStart new topic
PHP Help
sheertalentx
post Mar 29 2007, 06:29 PM
Post #1


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



So...does anyone know of a really good PHP tutorial? I use get-hosting.net and it has php so that means I dont need to download anything right? I want my header and side bar to be the php part...so...how do I go about doing that? Anyone know? My link is http://ATOMICxKISS.net

thanks for the help!!
 
*WHIMSICAL 0NE*
post Mar 29 2007, 06:42 PM
Post #2





Guest






Well, if you want to download PHP, you can do that here. I don't think that's what you want though. I think you mean includes:

http://www.albinoblacksheep.com/tutorial/include
http://www.tizag.com/phpT/include.php

Eh, I'm sure if you googled PHP Includes you might find some more websites that explain it in different ways. There's also a php topic that's pinned:
http://www.createblog.com/forums/index.php?showtopic=132247
 
sheertalentx
post Mar 29 2007, 08:15 PM
Post #3


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



thanks for the help!! i will check up on these sites and see if it helps me out! one more thing...when saving html files...do i save them as something.html or something.php??
 
*WHIMSICAL 0NE*
post Mar 29 2007, 08:47 PM
Post #4





Guest






If they have HTML in them, then I usually save them as .html... When I switched over to using includes on my site, I switched my files to .php, for me it seems to run smoother that way and keeps things organized. When I had includes and .php extension I still had html in those files and the file extension didn't effect that.
 
sheertalentx
post Mar 29 2007, 09:06 PM
Post #5


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



did you use notepad? cause i will save it as something.php and it changes it to something.php.txt and its a text document...am i misunderstanding? lol im not very quick on the uptake, ive never had my own domain before
 
wildncrazyath3rt
post Mar 30 2007, 10:19 AM
Post #6


Senior Member
****

Group: Member
Posts: 280
Joined: Jul 2006
Member No: 436,368



i have a Q also.
When u dl it.. what should u open it up with?
and also what would it have in it?
 
*mipadi*
post Mar 30 2007, 10:26 AM
Post #7





Guest






PHP files can be opened in any text editor. They typically contain PHP scripting or some HTML markup.
 
*WHIMSICAL 0NE*
post Mar 30 2007, 01:17 PM
Post #8





Guest






QUOTE(Sheer Talent @ Mar 29 2007, 9:06 PM) *
did you use notepad? cause i will save it as something.php and it changes it to something.php.txt and its a text document...am i misunderstanding? lol im not very quick on the uptake, ive never had my own domain before

One thing that might help is that if you can view your file extensions on your computer. Try opening up My Documents (something most computers have on them) select Tools > Folder Options > View (tab on top)
then go to the third thing after "Hidden Files and Folders". It should say "Hide extensions for known file types" and unselect that.

Then when you save your file delete what windows has typed in there and save it as something.php
 
bigtrey90
post Apr 1 2007, 04:32 PM
Post #9


talent on another level
*****

Group: Member
Posts: 746
Joined: Oct 2006
Member No: 475,735



you can look at this too:
http://www.w3schools.com/php/default.asp
 
sheertalentx
post Apr 1 2007, 11:46 PM
Post #10


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



bah...i feel so dumb!!! i changed my html to phps by doing the folder options thing, and now the site is saying that there was a parse error and there was an unexpected T_INCLUDE. I dunno what that means. Erm...here is what I have made so far...is it right???

QUOTE
<html>
<head>
<title>fly free//atomicxkiss</title>
<script type="text/javascript" src="http://www.haloscan.com/load/sheertalentx"> </script>
</head>
<style>

<? php include ("body.php"); ?>


</style>


<? php incldue ("header.php"); ?>
<!-- about -->
<div style="position: absolute; left: 213; top: 308; width: 144;">

<? php include ("side.php"); ?>


</div>

<div style="position: absolute; left: 373; top: 308; width: 300;">


<---post--->

<div class="head">My Rantings</div>
<div class="head2">Blog</div>
<b>{Mar} 27 ||2007</b>
<br><b>Mood:</b> Concerned
<br><br>
Hello there! I am watching Beauty and the Beast...my favorite disney movie of all time!! I am so excited! The sheep is about ready to eat part of a page in her book lol. Then those dumb girls are gonna swoon over Gueston which cracks me up cause they are so dumb. I wanna play one of em hahaha. I would LOVE to be Belle one day at Disney or on Broadway. I tried out for Come Blow Your Horn yesterday and the day before. I dunno how I did. I think I did well but I dunno if the director wants me as the part...there were a lot of really good people there. I will find out today or tomorrow I suppose. *nervous* I want this part so bad, but who knows. I may not be what the director wants. I will let yall know ASAP!
<br><br>
Aaanyway...I should be doing math homework...but I hate it so incredibly much. I just wanna chill. I studied all day yesterday and I took a test yesterday and today. My brain is tired. I don't do school well lol. Part of me wants to pack up all my crap in my car, pick up my pay check, and drive all the way to New York with nothing but what I already have and $300. I wonder what would happen. I dunno. I'd be a waitress and audition and want it so bad. I would get it. I would catch a break. Eventually. Its all about positive thinking. Anyway...well I'm gonna try to focus on my movie. I'll update more later on! Still working on getting new graphics up...makin new web layouts for you to use soon! Bai kids!
<br><br>
<center><a href="java script:HaloScan('Comments3');" target="_self"><script type="text/javascript">postCount('Comments3');</script></a></center>
<br><br><br>
<b>{Mar} 22 || 2007</b>
<br><b>Mood:</b> So Happy
<br><br>
HELLO! ITS RAINING!!!!!!! I am so happy! I love the rain sooo much it puts me in such a fantastic mood. I hate snow so much. I love the rain. So I am sitting here, listening to the rain and drinking a cappuccino. Wonderful.
<br><br>
So I have decided that my job may be incredibly boring at points but I have it pretty easy. What did I do yesterday? Well...for the first hour or so I took papers out of envelopes and watched the spongebob movie. Then I worked on a database which isn't too bad, just tedious. Overall I think I enjoy my job, and I really love the people a lot. My mom works there so that makes things a little annoying sometimes cause she and I bicker like mother and daughter do, but then the other 3 people and I all get along great. So...my job is quite easy.
<br><br>
Brian is coming here today! He should be here in about an hour or so...I AM SO FREAKING EXCITED!!! I haven't seen him for 2-3 weeks. I think its been 3...I dunno. But...thats a long time. I miss him lots. He will be here until Sunday evening, or maybe even Monday morning, I dunno. It's up to him really. I just wanna see him as long as possible. I dunno when I will see him again. Oh well.
<br><br>
I really don't have that much to talk about. I know, I'm not interesting but dang it...I don't care!! I bought a domain 2 days ago but the company still hasn't cleared the payment so I can't sign in yet. I'm started to get irratated about it. They need to hurry up. I'm really starting to get frustrated about it. Oh well...it will go through eventually. I just gotta be patient. Oh well. Has anyone else ever used get-hosting.net? Did you have good times with it? lol I mean, did it work well for you?!? Also, do any of you know anything about php? Can you help me out cause I really need to start using php cause its really annoying having to go through each page and mess with it. Get-hosting.net supports php. Anyway, any help is appriciated!
<br><br>
OH I added some website layouts for yall to use!! You can find 3 here and 2 at createblog.com so YEEA! Use em!! lol I need to make more stuff I just don't have a lot of time right now so please just hang in there and wait it out, I PROMISE I will get stuff up ASAP! Thanks kids! Okay well I am out! Gonna watch some TV before my honey gets here!! K...leave me one kids on the tag board!!
<br><br>
<center><a href="java script:HaloScan('Comments2');" target="_self"><script type="text/javascript">postCount('Comments2');</script></a></center>
<br><br><br>
<b>{Mar}20 || 2007</b>
<br><b>Mood:</b> Kinda Angry
<br><br>
OMG OKAY SO MY PREVIOUS 4 ENTRIES ARE GONE AND I STARTED MAKING A NEW ONE AND THEN THAT ONE JUST ACCIDENTALLY GOT DELETED BY ME! I AM SO DONE WITH THIS GAME! For all you users who are seeing my site for the first time, I do update a lot but my entries are gone and I would put a new entry that is more than this up but I am just really in a bad mood, I'm sick, and I've got cramps and one heck of a headache and I think I just lost $22 so I am not in a good mood whatsoever! I will post when I am better k? Bear with me. Thanks
<br><br>
<center><a href="java script:HaloScan('Comments');" target="_self"><script type="text/javascript">postCount('Comments');</script></a></center>

<br><center><a class="nav" href="http://www.freewebs.com/sheertalent/Moreblog.htm">More?</a></center>






</div>

</div></body></html>


Please lemme know...maybe I am screwing up the includes and thats why its not working! Thanks so much for all the help that has been offered so far! I can't even tell you how much I appreciate it!!
 
*mipadi*
post Apr 2 2007, 12:43 AM
Post #11





Guest






CODE
<? php incldue ("header.php"); ?>

You spelled include wrong, for one thing.
 
sheertalentx
post Apr 2 2007, 11:29 AM
Post #12


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



so i did!!! lol im dumb...when i get home i will fix that and see if it fixes the problem! maybe a simple spell check on my part would do the trick lol!! thanks for spotting that!


EDIT

It didnt work...still the same error message. Gah...I'm getting annoyed with this game. I don't want to load up my site until I have this done though so then they can all be phps. I'm gonna look for help at my university but if you all have any more ideas please please pleeeeease let me know!
 
*mipadi*
post Apr 2 2007, 02:33 PM
Post #13





Guest






You also have a lot of lines like this:
CODE
<? php ...

which should look like this:
CODE
<?php ...
.
When I tested your code on my own server, the PHP interpreter gave an "unexpected T_INCLUDE" error at line 8, which corresponds to the first line of PHP code, so I think that's the problem.
 
sheertalentx
post Apr 3 2007, 10:14 AM
Post #14


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



i found a different way to do it with codegrrl.com and it works!! *excited* thanks so much for trying to help me out!
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: