Author Topic: Need a lesson on PHP  (Read 2076 times)

0 Members and 3 Guests are viewing this topic.

Offline Cholo

  • Hiatus
  • *
  • Posts: 111
  • Respect: +11/-0
  • Gender: Male
    • The Tar Heel Forum
Re: Need a lesson on PHP
« Reply #15 on: October 13, 2010, 01:29:34 PM »
Thanks again to all you guys for the help.  Nice to see you too ccb. I haven't gotten the time to install Dream Portal yet, but I'm working on a project I'm thinking of using it on. 

Anyway .. in the case where I'm using php include to include a php or html file into an html file, does the included file need to look a certain way?  ie, does it need to have html or php tags? 

Right now I'm trying to include a bit of code from another file that is located in a separate directory on the same server into an html file and it's not working. 

Offline ccbtimewiz

  • New Member
  • *
  • Posts: 25
  • Respect: +4/-0
  • Gender: Male
    • Dream Portal
Re: Need a lesson on PHP
« Reply #16 on: October 13, 2010, 02:35:31 PM »
Show me what you're doing

Offline Cholo

  • Hiatus
  • *
  • Posts: 111
  • Respect: +11/-0
  • Gender: Male
    • The Tar Heel Forum
Re: Need a lesson on PHP
« Reply #17 on: October 13, 2010, 03:59:30 PM »
I'm adding a live chat widget to a bunch of websites (which are all on the same server). The chat will be "sliding out" using a bit of javascript. 

I placed a single javascript file into a directory on one of the main websites and all the other satellite websites are linking to that javascript file in the <head> section.

What I can't figure out is how to do the same thing with the following bit of html code.  All of the websites I am dealing with have html extensions and need to stay that way.

Code: [Select]
<div class="slide-out-div">
            <a class="handle" href="http://link-for-non-js-users.html">Live Chat Support[/url]
            <p><!-- Beginning of meebo me widget code.
Want to talk with visitors on your page? 
Go to http://www.meebome.com/ and get your widget! -->
<embed src="http://widget.meebo.com/mm.swf?saetzTIAkl" type="application/x-shockwave-flash" width="280" height="275"></embed>
            </p>
            <p><center>- - - - - - - - - - - - - - - - - - - - - -</center>
            [br /]
            If prompted, you must run the ActiveX plugin for the chat to function. If we are away or you are having technical difficulties, please feel free to contact us using the "Get Started Now" form to the right or call our office by phone at (518) 465-2211.</p>
        </div>

 ??? Seems like it should be so simple and I'm sure it is, but I'm stuck. Thanks for the help.

Offline butchas

  • Hosted Member
  • *
  • Posts: 112
  • Respect: +8/-0
  • evil php programmer & mac, ah errr... cat lover
    • East Coast Rolling Thunder car club
Re: Need a lesson on PHP
« Reply #18 on: October 14, 2010, 11:35:51 PM »
Not sure what you want  but...

Code: [Select]
<?php
echo ' <div class="slide-out-div">';
echo 
' <a class="handle" href="http://link-for-non-js-users.html">"Live Chat Support"</a><p>';
/* Beginning of meebo me widget code.
Want to talk with visitors on your page?  
Go to http://www.meebome.com/ and get your widget! */
echo ' <embed src="http://widget.meebo.com/mm.swf?saetzTIAkl" type="application/x-shockwave-flash" width="280" height="275"></embed>
            </p>
            <p><center>'
- - - - - - - - - - - - - - - - - - - - - -'</center> 
            <br />
            " If prompted, you must run the ActiveX plugin for the chat to function. If we are away or you are having technical difficulties, please feel free to contact us using the "Get Started Now" form to the right or call our office by phone at (518) 465-2211."</p>
        </div>'
;
?>

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal