[support] Traffic Trade Script
Lawrence Sheed
Lawrence at shanghaiguide.com
Fri Feb 10 08:15:56 UTC 2006
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 <blocked::blocked::blocked::http://www.computersolutions.cn/>
E-mail: support at computersolutions.cn <blocked::blocked::blocked::mailto: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.macmariner.com>
http://www.knightrider.org--
[ Drupal support list | http://lists.drupal.org/ ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20060210/3f8ddedd/attachment.htm
More information about the support
mailing list