COMPUTER
SOLUTIONS
Room 305
No.14, 955 Yan An
延安中路955弄14号瀚文轩305室
Tel:
+86 21 62890765
+86 21 62890056
Fax: +86 21
62890765
Web: www.computersolutions.cn
E-mail:
support@computersolutions.cn
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 twiceDo you have an alias in apache for /cgi-bin to /home/wtfzone/www/cgi-bin?Depending on what you are trying to do<?phpvirtual ("/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@computersolutions.cn
From: support-bounces@drupal.org [mailto: support-bounces@drupal.org] On Behalf Of Noonien Soong
Sent: Friday, February 10, 2006 12:34 PM
To: support@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 10warning: 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@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/ ]