===============
TNT:
===============
My server doc says the perl is in
#!/usr/bin/perl but I leave it to #!/usr/local/bin/perl and the admin.cgi works fine, however I changed the add.cgi to #!/usr/bin/perl it also can't work, so this may not be the problem?!
When typing "perl -w add.cgi"
The following appear:
Ambiguous use of log => resolved to "log" => at add.cgi line 168.
Name "main::build_root_url" used only once: possible typo at add.cgi line 63.
Name "main::build_use_templates" used only once: possible typo at add.cgi line 3
3.
Name "main::db_mail_path" used only once: possible typo at add.cgi line 163.
Name "main::db_smtp_server" used only once: possible typo at add.cgi line 162.
Name "main::db_mailer_log" used only once: possible typo at add.cgi line 169.
Name "main::db_single_category" used only once: possible typo at add.cgi line 60
.
Name "main::db_modified" used only once: possible typo at add.cgi line 94.
Name "main::db_script_url" used only once: possible typo at add.cgi line 139.
Name "main::db_contact_email" used only once: possible typo at add.cgi line 137.
"my" variable $category masks earlier declaration in same scope at /www/227media
/site2/adm/site_html.pl line 684.
Use of uninitialized value at /www/227media/site2/adm/db_utils.pl line 572.
Use of uninitialized value at /www/227media/site2/adm/db_utils.pl line 575.
Content-type: text/html
<PRE>
CGI ERROR
==========================================
Error Message : You cant run this script from telnet/shell.
Script Location : add.cgi
Perl Version : 5.00404
Form Variables
-------------------------------------------
Environment Variables
-------------------------------------------
ENV : /home/227media/.bashrc
HISTFILESIZE : 1000
HISTSIZE : 1000
HOME : /home/227media
HOSTNAME : thumos2.moreprofits.com
HOSTTYPE : i386
LOGNAME : 227media
LS_COLORS :
MAIL : /var/spool/mail/227media
OSTYPE : Linux
PATH : /usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bi
n:/usr/local/ssl/bin:/usr/local/java/bin:/usr/local/Hughes/bin:/usr/local/mysql/
bin:/usr/local/ssh/bin:/usr/spectro:.:/home/227media/bin
PS1 : \h:\w\$
PS2 : >
SHELL : /bin/bash
SHLVL : 1
SSLTOP : /usr/local/ssl
TERM : ansi
USER : 227media
USERNAME :
_ : /usr/local/bin/perl
Thus, I really don't get any idea about that...
What's wrong with these?
===============
dan:
===============
I have double-checked the links.cfg file and it is correct! I just move the Links from my old server to the new hosting server, but I don't know why the Links don't work in the new server.
Thanks both your help but please help!
Do anyone can give me more idea about that?