Results 1 to 2 of 2

Thread: HELP NEEDED WITH CODE!!!

  1. #1
    Skeeza
    Guest

    Default HELP NEEDED WITH CODE!!!

    I have setup a chat system on my site which is completely integrated with aedating scripts. It works just fine so far but i have run into a problem i just can't figure out here...

    I have a snippet of code i wish to add to my index.php file in the area of where it shows you who is online, how many members have registered and from what country etc...

    This is the area i wish to add the code to:
    ###########################################

    $out .= "<table cellpadding=0 cellspacing=0 border=0 align=center><tr><td>";

    $out .= "<table cellpadding=0 cellspacing=0 class=text border=0 align=center>";

    $out .= "<tr><td width=17><img width=17 height=14 src=$site[images]group1.gif></td><td width=100%><b> "._t("_Currently Online")."</b></td></tr>\n";

    $out .= "<tr><td height=1 class=memb_stat colspan=2 width=6><img src=$site[images]spacer.gif width=6 height=1></td></tr>\n";

    $out .= "<tr><td width=17 align='right'><img width=17 height=14 src='$site[images]us2.gif'></td><td width=100%> "._t("_Total")." - $members_online</td></tr>\n";

    $out .= "<tr><td width=17 align='right'><img width=17 height=14 src='$site[images]us4.gif'></td><td width=100%> $total_c_members_onl "._t("_members")." "._t("_from").":</td></tr>\n";

    $out .= '<form action="'.$_SERVER[PHP_SELF].'" method=post name="cForm2"><tr><td align=right colspan=2>';
    ###############################################

    This is the code i wish to use, but because of the " within the code it just will not work, i have tried \" but for some reason it still will not work.


    I have tried :
    <? echo @join (@file ("http://www.url.com/cgi-bin/chat/public.pl"),"")?>

    and also:
    <? echo @join (@file (\"http://www.url.com/cgi-bin/chat/public.cgi\"),\"\")?>

    Please can anyone help me on this, it has me very confused..lol

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    When you say it does not work - what happens? Nothing on the page? Something on the page but not what you expect?

    Here are a couple ways to do it :

    <?php
    echo @join (@file ('http://you.com/cgi-bin/ad.pl'),'')
    ?>

    with you.com of course being your domain.

    Also, you can try :

    <?php
    virtual('/cgi-bin/ad.pl');
    ?>

    http://www.php.net/manual/function.virtual.php

    This function is only supported when PHP is installed as an Apache module.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installation help needed.
    By Necerius in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 04-04-2010, 07:42 AM
  2. code help needed
    By silverado350 in forum Ray Community Widget Suite
    Replies: 0
    Last Post: 08-04-2008, 07:45 PM
  3. Help Needed
    By driver_x in forum Free Mod Exchange
    Replies: 1
    Last Post: 09-20-2007, 12:47 AM
  4. Another section needed ?
    By netaffair in forum Free Mod Exchange
    Replies: 1
    Last Post: 07-17-2007, 11:13 AM
  5. Some little changes, help needed please
    By csallis in forum General Troubleshooting
    Replies: 0
    Last Post: 06-25-2007, 12:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •