Jump to content

Combine (include) two scripts in one site.


YvE

Recommended Posts

Hello! This is my first thread on this site, newly got registred.

My problem is (as the topic speaks) that a want to include two third party scripts into one site.
I'm not good at PHP, but I can understand some of its commands.

My first script is http://michaelbertsch.eu/project/50, but on my site ( http://www.teamdritings.com/Bilder )
My second is http://www.truefusion.vze.com/ , ( http://www.teamdritings.com/Shoutbox )

These are located on different folders on my ftp, but that doesnt matters yet.

The TinyGallery script is just one file, it's just a file named "index.php"
But the shoutbox script have several files, like: smileys, .css, 3 .php , etc.

My question is how I can easily include both scripts in one site :)

I have read the tutorial on this site about include, but I need some guidence and no one around my can this tho :S http://www.truefusion.vze.com/

Asking kindly, pls help me
Link to comment
Share on other sites

Maybe this is what you need:
http://nl2.php.net/manual/en/features.remote-files.php

So including external files is not always allowed, but when it is do the following:
[code]
<?
include("http://www.webaddress.com");
?>
[/code]

But it's usually disabled so I'm not sure.
Link to comment
Share on other sites

Hey again.

I on my way to success now, but I can't quite get the include/remote stuff working..

This is the lines that I included in the "index.php" for the TinyGallery script.

<link rel="stylesheet" href="http://www.teamdritings.com/Shoutbox/style.css" type="text/css" media="screen" />

...........FUNKE IKKE HELT ENDA.........

<?php include("http://www.teamdritings.com/Shoutbox/index.php");?>

As you can see on the site, the shoutbox appears on the window but all the functions will not work..like smileys, new posts etc.
See for yourself, http://www.teamdritings.com/Bilder

This is how my folders are sorted on my FTP:




[attachment deleted by admin]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.