[support] Traffic Trade Script

Noonien Soong elgroso at gmail.com
Mon Feb 13 02:43:58 UTC 2006


Hey ! *That output its ok*, the script its working great with drupal.
Problem solved.

Thanks again.
Cristian


2006/2/11, Lawrence Sheed <Lawrence at shanghaiguide.com>:
>
>  Firstly - This isn't really a drupal issue :)
>
>
>
> You're better off discussing this with whoever make the script.
>
> You might also want to run it directly though setting up apache to run cgi
> scripts inline using SSI
>
> Either ask the isp if they have mod_cgi installed, and allow you to SSI's
> (server side includes)
> Or
> Do a <?php phpinfo() ?>, because thats a cgi script, its rather slow
> opening php just so it can open a cgi script.
>
> This might be because your hosting people only let you run like that, I
> don't know.
>
> If you can modify apache, or run cgi's inline then put it inside the page
> in between the <head>...  </head> bit.
>
> eg
>
> <head>
>  <!--#include FILE="/cgi-bin/at/in.cgi" -->
> </head>
> ...
>
>
>
> Read
> http://httpd.apache.org/docs/2.0/howto/cgi.html  and
> http://httpd.apache.org/docs/2.2/howto/ssi.html,
> http://www.yourhtmlsource.com/sitemanagement/includes.html#enablingdirectory
>
> Or give us a url for this traffic script so we can see what it is.
>
>
>
> Cheers,
>
>
>
>
> Lawrence Sheed
>
> *COMPUTER SOLUTIONS**
> *Room 305 Han Wen Xuan Building
> No.14, 955 Yan An Middle Road
> Shanghai China 200040
>
> 延安中路955弄14号瀚文轩305室
> *
> Tel:*       +86 21 62890765
>       +86 21 62890056
> *Fax:*      +86 21 62890765*
> Web:     www.computersolutions.cn
> E-mail: support at computersolutions.cn*
>
>  ------------------------------
> *From:* support-bounces at drupal.org [mailto:support-bounces at drupal.org] *On
> Behalf Of *Noonien Soong
> *Sent:* Saturday, February 11, 2006 11:08 PM
> *To:* support at drupal.org
> *Subject:* Re: [support] Traffic Trade Script
>
>
>  I make the code works. I put them in index.php just after the common
> unclude:
>
> include_once 'includes/common.inc';
> virtual ("/cgi-bin/at/in.cgi");
>
> Now when go to my site, in the source i get this:
>
> <script>
> <!--
> document.cookie='atref=noref$#; path=/;'
> // -->
> </script>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/......
>
> The script thins is the code executed ok !
>
> Regards
> Cristian
>
>
>
>
>
> 2006/2/10, Lawrence Sheed <Lawrence at shanghaiguide.com>:
> >
> >  If it has output in the script, then you'll still get session errors.
> >
> > If it doesn't output anything in the script, then putting it at the very
> > to of the template should work like i put in my example.
> > Also be careful to make the <?php at the very top of your template
> > file.  If there are any carriage returns in the top of the file or spaces
> > before the <?php then these will get output and you'll get the same session
> > errors.
> >
> > ------
> > <?php
> >
> > virtual ("/cgi-bin/at/in.cgi");
> >
> > ?>
> > <html xmlns="http://www.w3.org/1999/xhtml " lang="en" xml:lang="en">
> > <head>
> > ....
> >
> >
> >
> >
> > Regards,
> >
> >
> > Lawrence Sheed
> >
> > *COMPUTER SOLUTIONS**
> > *Room 305 Han Wen Xuan Building
> > No.14, 955 Yan An Middle Road
> > Shanghai China 200040
> >
> > 延安中路955 弄14号瀚文轩305 室
> > *
> > Tel:*       +86 21 62890765
> >        +86 21 62890056
> > *Fax:*      +86 21 62890765*
> > Web:     www.computersolutions.cn
> > E-mail: support at computersolutions.cn *
> >
> >
> >  ------------------------------
> > *From:* support-bounces at drupal.org [mailto: support-bounces at drupal.org]
> > *On Behalf Of *Noonien Soong
> > *Sent:* Saturday, February 11, 2006 8:42 AM
> > *To:* support at drupal.org
> > *Subject:* Re: [support] Traffic Trade Script
> >
> >
> >  I just put the two examples here, to see if one of them loads. I´m only
> > need one. Ths script is just a trade script to count incoming hits.
> >
> > Regards
> > Cristian
> >
> >
> > 2006/2/10, Lawrence Sheed <Lawrence at shanghaiguide.com>:
> > >
> > >  You can't send any html before you do sessions.
> > >
> > > From the look of things I'd start again.
> > >
> > > what are you trying to achieve?
> > >
> > > It looks suspiciously like a cgi script you are calling through php.
> > > It also looks like you might be calling it twice
> > > Do you have an alias in apache for /cgi-bin to
> > > /home/wtfzone/www/cgi-bin?
> > >
> > >
> > > Depending on what you are trying to do
> > >
> > > <?php
> > >
> > > virtual ("/cgi-bin/at/in.cgi");
> > > virtual ("/home/wtfzone/www/cgi-bin/at/in.cgi");
> > >
> > > ?>
> > > <html xmlns="http://www.w3.org/1999/xhtml " lang="en" xml:lang="en">
> > > <head>
> > >
> > >
> > > may work for you.    I'd test with and without the 2nd virtual line to
> > > see if you are calling the script twice.
> > >
> > > But does your script output anything?  If it does, you'll have to do
> > > it differently...
> > >
> > > Again, it looks like you're confused more than anything else!
> > >
> > > Cheers,
> > >
> > >
> > > Lawrence Sheed
> > >
> > > *COMPUTER SOLUTIONS**
> > > *Room 305 Han Wen Xuan Building
> > > No.14, 955 Yan An Middle Road
> > > Shanghai China 200040
> > >
> > > 延安中路955 弄14号瀚文轩305 室
> > > *
> > > Tel:*       +86 21 62890765
> > >        +86 21 62890056
> > > *Fax:*      +86 21 62890765*
> > > Web:     www.computersolutions.cn
> > > E-mail: support at computersolutions.cn *
> > >  ------------------------------
> > > *From:* support-bounces at drupal.org [mailto: support-bounces at drupal.org]
> > > *On Behalf Of *Noonien Soong
> > > *Sent:* Friday, February 10, 2006 12:34 PM
> > > *To:* support at drupal.org
> > > *Subject:* Re: [support] Traffic Trade Script
> > >
> > >
> > >  *If i place the code on template i get this inside the source when i
> > > see the site:*
> > >
> > >
> > > <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
> > > <head>
> > >
> > > <?php virtual ("/cgi-bin/at/in.cgi"); ?>
> > > <?php virtual ("/home/wtfzone/www/cgi-bin/at/in.cgi"); ?>
> > >
> > > *It´s like if the code not has been procesed by php. And when i put
> > > the code on index.php the code works but i get this error in all
> > > pages:*
> > >
> > > *Warning*: session_start(): Cannot send session cache limiter -
> > > headers already sent (output started at
> > > /home/wtfzone/public_html/index.php:2) in *
> > > /home/wtfzone/public_html/includes/session.inc* on line *10*
> > >
> > > warning: Cannot modify header information - headers already sent by (output started at /home/wtfzone/public_html/index.php:2) in /home/wtfzone/public_html/includes/common.inc on line 99.
> > >
> > >
> > >
> > > *Regards
> > > Cristian*
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > 2006/2/10, Peter Apockotos <drupal at apockotos.com>:
> > > >
> > > >
> > > > On Feb 9, 2006, at 9:08 PM, Noonien Soong wrote:
> > > >
> > > > > Hi!
> > > > >
> > > > > I´m trying to include the code for a traffic trade script on my
> > > > > drupal but i cant. I try to include the code on the template and
> > > > on
> > > > > index.php but i cant get them work. The code is:
> > > > >
> > > > >  <?php virtual ("/cgi-bin/at3/in.cgi"); ?>
> > > > >
> > > > > Any idea ?
> > > > >
> > > > > .Cristian
> > > >
> > > > Try using the full path to the cgi-bin.
> > > >
> > > > Peter Apockotos
> > > > http://www.apockotos.com
> > > > http://www.macmariner.com
> > > > http://www.knightrider.org--
> > > > [ Drupal support list | http://lists.drupal.org/ ]
> > > >
> > >
> > >
> > > --
> > > [ Drupal support list | http://lists.drupal.org/ ]
> > >
> > >
> >
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
> >
> >
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20060213/a1396759/attachment-0001.htm


More information about the support mailing list