Home  |  Linux  | Mysql  | PHP  | XML
From:alexander simashin Date:Sun Dec 20 03:11:29 2009
Subject:Re: script working from shell, but not from browser.
>
> Hi Alexander,
>
> Since both scripts work on our server, and not yours, all I can think of is
> that it's something specific to your server environment.
>
I think that too, but can`t understand where is the problem :(.

2009/12/19 David Taiaroa <design@panchroma.ca>

> Does something simple like this work for you? I'm trying to help you narrow
> down where the problem is.
>
> #!/usr/bin/perl
> use CGI ;
> $query = new CGI;#  CGI
> print $query->header;
>
> my $url = 'http://www.cpan.org';
> use LWP::Simple;
> my $content = get $url;
> print $content;
>
> print $query->end_html;
>
>
> I have it at http://joiedevivre.nb.ca/cgi-bin/test3.cgi
>
>
> Dave
>
>  ok. i modify it a little - i added some strings to print something before
and after print $content;
so now i have
print "before print \$content  <br>";
print $content;
print "after print  \$content <br> ";

so in shell it is works great, in browser we got -
before print $content
after print $content
... so the $content is empty.
http://62.176.11.182:50235/cgi-bin/test3.cgi

P.S. sorry but this is my home VMware server so it could be down for some
time.

Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next


Your recent visits
RE: content type headers
Help me please
Re: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?
64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server
variable scope


  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants