How To Incorporate A Php Script To My Website - php beginner needs help

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

How To Incorporate A Php Script To My Website - php beginner needs help

MusicOnly
Well i dont know exactly how to say this but i ll try. So last few months i ve been discovering web design, dreamweaver, photoshop. I learned how to create layout and how to preapare it in dreamweaver but now i am stuck with php. I dont know how to put script in desired cell an lots of other stuff. yeah i am stupid, but i am who i am. all those tutorials are not helping me because they dont tell you how to install script where i want.
i am going to explode. i tried to find finished script on hotscripts.com but i cant/dont_know which one will suite my needs. my layout is here.

You see, i need shoutbox script, search script like one here where i can search by song or band names, script which will show the most downloaded songs ( top 5 songs on my layout), and script which will show last 5 updated items.. and so on.. list is quite big, because i have big plans for my site and php is my only problem wright now.

My main question would be how to install damn script where i want?
Second question would be can someone help me?


Notice from BuffaloHELP:
Topic title is very important. Please make it very specific. Modified.

 

 

 


Reply

BuffaloHELP
Once you insert a PHP script into your current page, you need to rename or save as whateverfilename.php otherwise your PHP script will not work.

If, let's say, you want to insert a PHP script to your finished HTML page within a table setting, a simple way to start would be:

HTML
<table>
<tr>
<td>

<?PHP
{insert the complete php script here}
{and close it with}
?>

</td>
</tr>
</table>


You'll note that <?PHP is the command to start the PHP script and ?> tells it to stop running the PHP script. For more information on how to use PHP scripts, visit http://www.PHP.net or http://www.w3schools.com for more samples.

This above sample is the easiest way to start using PHP scripts for your skill level. As you graduately become more comfortable using PHP code structure, you can then design the whole webpage using only PHP commands, rather than half HTML and half PHP. But the fundamentals of PHP codes come from basic HTML commands.

 

 

 


Reply

MusicOnly
thanks Buffalo. It helped me a lot. And sorry for posting topic in wrong section.

Reply

savge17
I always find PHP script hard to work with, but with the right resources it can be done very easily.

Reply

rvalkass
There is another option for inserting PHP scripts into a page, especially if you are going to be using the same script on a lot of pages. If you put the script in it's own file (surrounded by the <?PHP and ?>) and give it a logical name, such as shoutbox.php, you can then include that file in any page you want. It also means that if you edit the script you automatically edit it for every page rather than having to go through and change it hundreds of times. To include a file you need 1 line:
CODE

Rest of your HTML here...

<?PHP include('filename.php'); ?>

Some more HTML here...

Reply

Gem
True that will work but with most scripts, like rvalkass said uses the include function. Antoher way you could do it is to make a pure php file and use variables
for example:
CODE

<?php

$watever="your code here";

?>

then in your main file:

CODE
<?PHP include('filename.php'); ?>

$watever

I think that is right but ill have to check u on it tongue.gif

Reply

Albus Dumbledore
QUOTE(Gem @ Aug 6 2006, 12:00 AM) *

True that will work but with most scripts, like rvalkass said uses the include function. Antoher way you could do it is to make a pure php file and use variables
for example:
CODE

<?php

$watever="your code here";

?>

then in your main file:

CODE
<?PHP include('filename.php'); ?>

$watever

I think that is right but ill have to check u on it tongue.gif



yes, the code for using PHP include is

CODE
<?php include("FILE NAME.html"); ?>


and in their case, they would be putting a PHP script into the file so they would need it to be .php biggrin.gif


i wrote a tutorial on how to use the PHP includes you can find it

http://www.trap17.com/forums/how-make-simp...ite-t33636.html there biggrin.gif if you need further help with it.. if you evern plan on using it you can look there or PM me as well..

Reply

Panzer
Give yourself lots of space when you are typing/copying your info on to your script.

Lots

Of

Spaces

Doesnt

Matter

And remember what buffalo said, remember to rename it .PHP , all of your html stuff will still work but without it your php stuff wont.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : incorporate php script website php beginner

  1. Excellent Free Website Templates - (23)
    Site also includes 60 free logo templates, 63 free banner templates, 84 free newsletter templates,
    website arrows, abstract images, and much more. Fantastic resource...
    http://www.templatesbox.com/templates.htm ...
  2. Has Anyone Designed A Website For A Wow Guild? - (2)
  3. Help Creating A Profile Website - how do i make a profile website (13)
    Ok this is my idea: I am making a website about anime. Its function is add anime, review anime,
    search anime, anime information. Users can make a profile. People can make a profile which they can
    edit to theire likes with html to give it a fancy look.(this is what my problem is about) What i
    would like to know is how can i accomplish this. I already have the database for the anime titles
    etc ready, the only thing that needs to be done is the profile section. If you have any tutorial,
    tip or guide i would really really appriciate it. Thx in advance. ...
  4. What Are The Steps To Making A Website? - (19)
    what are some steps to making a website? im doing a project and i need like 5-7, but id ont know
    waht to put. ...
  5. Php Scripts And Website Templates - php scripts and website templates (7)
    I need some help. I´m trying to start my own website but I´m out of ideas about the design... The
    site should look something like this (click to view) Like I said I´m out of ideas so if any of you
    knows of a good and free web template that looks like my site please post the link to it. I´m also
    looking for some free php scripts (classified ads, fotolog, youtube, banner exchange, link exchange,
    adbux) so if you know where I can find any of those scripts please let me know. Thanks in advance.
    "I Need Some Help" isn't a good topic title. Changed to a more descript...
  6. Basic Of Website Creation - Get basic knowledge on website creation here (9)
    By basic, i mean reaaaal "BASIC". I know that its probably redundant info for so many of us, but I
    still would like you to add your bit into this post , so that newbies benefit from it....
  7. Creating A Good Website, How?! - (18)
    Creating a good website, How?! I looked at many forums, searching on now to create a good
    website, by good I meant good website interface. For example, Trap17 have this amazing flash header,
    and nice design… I searched and searched, I found that many people started with a photoshop
    picture, then they make it come true by requesting a website coder (A.K.A. Programmer) to code the
    whole website for it. If, I said if, I were good a art, I can design a good nice picture off
    photoshop, and I know how to code, does that means I can make a good website? Please post any ...
  8. Flash Media Into Html/css Website - does anyone know how to import a flash into a webpage with transparenc (1)
    Hi I need some help , Im designing this website for school studies However, I made a flash drop down
    menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
    For example my flash is width= 800, and height = 200 but my div box on my html page for my
    navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
    animations i want to insert it into my navigation div box but i want to set the flash background to
    transparent so that when the drop down menu comes down it overlaps the text or whateva...
  9. Editing Or Modifying Joomla For A Beginner - Php Help... Joomla related. (4)
    I have this code already existing... (index.php) id ) { initEditor(); } ?> " /> " ; ?> " ;
    ?> .... .... and it goes on. i am told to add this code in the head section...
    /modules/mod_smo_ajax_shoutbox_css.php" type="text/css" /> <script type="text/javascript" src="
    /modules/mod_smo_ajax_shoutbox_js.php"> I don't know much about PHP, but I don't see a
    incorporated in the index.php and I am not sure how to add the code. Anyone help out? Last warning
    notice** Topic title is IMPORTANT! ...
  10. How To Create Smallest Website - (21)
    I wonder if any one create smallest website on earth? any webmaster can share this things .. .if
    they can make how could it be? /wink.gif" style="vertical-align:middle" emoid=";)" border="0"
    alt="wink.gif" />...
  11. Help! Php Or Just Html? - i want to start buliding my website. which is better, php or basic htm (13)
    i try to start this topic in webhost category but it seems like i cant. i dont have the permission
    so i just post my topic here. im sorry mod.. i want to build a website which contains: - Links to
    videos - Informations - photos - flash i don't know if i should use php or just HTML. guys,
    what are your opinions..??...
  12. Website Layout? - Help me please (3)
    Im sorta really new to html and php, and i want to make or edit a layout for my website that i might
    get from this forum thing, and i need sombody to point me to some tutorials or make me a layout.
    also if you want to you can make me a myspace one too xD. Please and thanks....
  13. Php Auto Website Title - (8)
    This simple PHP function is pretty handy if you want your websites pages in the title without having
    to name individual ones. It will look like: QUOTE MyWebsite | Index QUOTE Quote:
    MyWebsite | Gallery QUOTE Quote: MyWebsite | Forums etc.. paste the code into your
    "functions" file, or any webpage which is included in every page you have (Reminder: To include a
    webpage, use 'include("webpage.php");') You can of course put the function in each page, but
    that's just annoying .. /tongue.gif" style="vertical-align:middle" emoid=":P" borde...
  14. Webdesign Frequently Askd Questions - is it posible to design a sercheingin in your website. (11)
    what i wanna no is is it posible to incorporate a custom search engin into your own website. for a
    while now i have bin wondering is it posible to do this as i would like to try something like this
    out. but i have heard of there being a way to do this in pearl but i no nothing of pearl does
    annyone have anny tips or info on this? (i use frontpage and dreamweaver)...
  15. How To Make A Website - (If you're trying to drive people away from your site) (18)
    Alright so there are many topics out there of how to make a website that everyone will love and want
    to go to, but I can't seem to find any about how to make a website that people will hate and try
    to run away from, so here are some pointers for those who are trying to make the worst website:
    Step one: COLORS Be sure to use a vivid and bright background color, and a non-noticeable text
    color. Nothing wakes people wake up more than a florescent yellow background with white text. Make
    people work to try to read your website. After all, you have some great content...
  16. Users Online - Looking for the best counter script (9)
    Hi people, I am wondering If do you know a good "users online" I know many remote hosted services
    for this but I am looking for a counter script to install in my own website, If possible a counter
    that displays my visitors information , like country or an image(flag) links where they come from
    etc. something like this: Webpage I would SO appreciate any help! because I want to give to
    my site a more professional and international look /cool.gif" style="vertical-align:middle"
    emoid="B)" border="0" alt="cool.gif" /> ...
  17. Need A Logo For Website Can't Get Into Ideas - (10)
    Hi friends i'm running site on computinghost server called http://onecore.net i think again i
    need some help,for good touch to the site so pleasse help me can you think of any good logo idea,i
    want simple,creative,techno-anime style yet smoot for eyes. can you think of any good idea,mymind
    is just wandering here and there /unsure.gif" style="vertical-align:middle" emoid=":unsure:"
    border="0" alt="unsure.gif" /> hope u understand that .... Please send in any dieas for logo almost
    anything....
  18. How To Build A Good Website - (2)
    First, have a good color is important. You don't want people say "Ow!!! My
    eyes!!! where's the X button????" So try not to use colors like light green, yellow.
    Second, have some content. Will you like a site just with a title? Updated it AT LEAST once a
    month. Third, try not to put "too much" image on the homepage. Otherwise, if they come from a
    search engion, they will probley want to find something that they want. If that takes too long,
    they'll leave. Fourth, having a portal is good if you have a forum. If you are using something...
  19. Image Not Taking The Right Size In Web Page - An image is correct when designed, but not when put in a website (1)
    When trying to make a web page with a GIF image on it which runs a coloured bar along the top and a
    coloured curve along the side, I come across the weird thing that, when I put the image on a web
    site, it does not take in the whole top and does not run from top to bottom completely. The image is
    made in Adobe Photoshop at a resolution of 1024X768 pixela and looks correct , ie. the horizontal
    bit runs completely from left to righ and the vertical bit completely from topright to bottom right,
    yet when put in to the web page, it shows with big margins left and right and to...
  20. Xml For Dynamic Website Content - (3)
    Anyone got a site where they're using XML to generate dynamic content? I'm thinking of
    using XML for several elements of the website for my workplace, partially because I can easily
    generate XML through a simple VBA interface far easier than XHTML (since I'm only considering
    the content), so that I can set up easy ways of changing that content for the completely computer
    illiterate people I work with. Also, I'm doing an XML course later, so I want ot get some
    practice in /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif...
  21. Man Why Is Everything Hard To Get A Website Design - man webdesigning is hard (32)
    okay ppl why is that they give u front pagew that u make a webdisgn adnthe u have to bye better
    stuff just to get it right plz tell me why...
  22. My Website Design , Any Suggestions? - this is something i designed with the help from user sonesay , what do (13)
    Hey guys I designed and almost finish my site, www.keegonguyen.com .. so what do you guys think?
    Have any good suggestions? or anything that i should take out? anything good or bad about it?
    anything at all that would help me out would be nice /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> Is it too plain? any beneficial criticism will be fine
    /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
    let me know thanks /smile.gif" style="vertical-align:middle" emoid=":)" border="0" ...
  23. Please Rate My Website - out of a possible 10 (19)
    I have built a newly designed website here with Trap17 - http://www.zofanatic.com . Can you please
    rate it or give me some suggestions on the design and layout (including the forum, which runs on
    SMF). Thanks...
  24. What's The Best Script For Web Designing? - (6)
    I've been using PHP for about a month and I like it cos it's so powerful. I don't know
    about the others like CGI, Perl..etc. Can anybody tell me the MAIN Difference between these
    languages? I'd really love to try them out if I know their advantages, pros and cons. I've
    been searching the internet for answers, but they are too complicated and use too many jargons that
    newbies like me don't understand....
  25. Is There An Xbox Live Gamertag Code To Shw The Gamercard On A Website? - The title says all! (1)
    Hi everyone, im looking for a code that will display a users xbox live gamercard. Ive seen one
    little widget but that was for the igoogle page ao its not suitable for what i want. Ideally I want
    one thats written with HTML or something like that so its easy for me to modify and such. What i
    want it to do is t have a URL in the code which the user can then insert their gamertag ID into and
    have the widget display their gamercard for all to see. if i ever use this code it will be on a
    money making site, hopefully, so something thats free to use even for commercial things ...
  26. Need Environmental Website Ideas! - Needing Environmental website ideas for design! (0)
    Hi everyone, I am new to trap17.com. In fact this is my first message. So... Yeah! for me. I
    hope this will website will live up to all of the hype that I have been hearing from all of my
    friends. Ok well getting on to the subject. I am creating an environmental website for a
    competition. The topic is the environment. I can do absolutely anything about the environment. My
    idea is to create a website that will show all of the facts about both the good and bad of the
    environment and all that we can do to help/ save the environment. I am looking for some amaz...
  27. Why This Error? - PHP script fault (4)
    Hello, I typed out a PHP script (literally copied from w3schools, the script is as follows: CODE
    <html> <body> <?php function spamcheck($field)   {
    //eregi() performs a case insensitive regular expression match
      if(eregi("to:",$field) ||
    eregi("cc:",$field))     {     return TRUE;     }   else     {
        return FALSE;     }   } //if "email" is filled out, send email if
    (isset($_REQUEST['email']))   {   //check if the emai...
  28. What Is Topsites Script (its In Php) - (5)
    i have been looking at a lot of php scripts lately and i keep seeing this script over and over
    again. its called "topsites". what is this "topsites" scrtipt. its in php and i m new to this stuff
    so i woulnt know, and non of websites offering the script actually explains what it is. this is a
    big forum so i thought you guys might know what it is. so if you know can you please give me a
    simple brief explanation of it and how it can be useful for a webmaster. i would appericate your
    help. thank you...
  29. Help Needed For Alumni Website. - (6)
    I'm planning to start an Alumni website for my college mates, I searched for any Alumni CMS but
    couldn't find one. So If anyone of you know any Alumni or Community CMS, please share it with
    me. I need a community CMS where each member Can have his own page, and somewhat related to orkut.
    If there is any add-on MODs for Joomla or Mambo please do share them too....
  30. How To Beat Ironport(best Website Blocker?) - proxy browsing (0)
    I am asking this question to all experts And answer is not that simple. Problem is that all the
    proxy sites are also banned by IRONPORT. So u cannot beat it that easily. The only solution i know
    is to find out a newest proxy site before it is banned? Is there any better way? All TECH-GODS...



Looking for incorporate, php, script, website, php, beginner

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for incorporate, php, script, website, php, beginner

*MORE FROM TRAP17.COM*
Excellent
Free Website
Templates
Has Anyone
Designed A
Website For
A Wow Guild?
Help
Creating A
Profile
Website how
do i make a
profile
website
What Are The
Steps To
Making A
Website?
Php Scripts
And Website
Templates
php scripts
and website
templates
Basic Of
Website
Creation Get
basic
knowledge on
website
creation
here
Creating A
Good
Website,
How?!
Flash Media
Into
Html/css
Website does
anyone know
how to
import a
flash into a
webpage with
transparenc
Editing Or
Modifying
Joomla For A
Beginner Php
Help...
Joomla
related.
How To
Create
Smallest
Website
Help!
Php Or Just
Html? i want
to start
buliding my
website.
which is
better, php
or basic htm
Website
Layout? Help
me please
Php Auto
Website
Title
Webdesign
Frequently
Askd
Questions is
it posible
to design a
sercheingin
in your
website.
How To Make
A Website
(If
you're
trying to
drive people
away from
your site)
Users Online
Looking for
the best
counter
script
Need A Logo
For Website
Can't
Get Into
Ideas
How To Build
A Good
Website
Image Not
Taking The
Right Size
In Web Page
An image is
correct when
designed,
but not when
put in a
website
Xml For
Dynamic
Website
Content
Man Why Is
Everything
Hard To Get
A Website
Design man
webdesigning
is hard
My Website
Design , Any
Suggestions?
this is
something i
designed
with the
help from
user sonesay
, what do
Please Rate
My Website
out of a
possible 10
What's
The Best
Script For
Web
Designing?
Is There An
Xbox Live
Gamertag
Code To Shw
The
Gamercard On
A Website?
The title
says
all!
Need
Environmenta
l Website
Ideas!
Needing
Environmenta
l website
ideas for
design!
Why This
Error? PHP
script fault
What Is
Topsites
Script (its
In Php)
Help Needed
For Alumni
Website.
How To Beat
Ironport(bes
t Website
Blocker?)
proxy
browsing
advertisement



How To Incorporate A Php Script To My Website - php beginner needs help



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE