Hi guys. I'm trying to get nph-build.cgi to rebuild the "changed" detailed and category pages, after a link has been modified.
I've added this in Modify.pm;
my $command = "perl /webusers/user/cgibin/admin/nph-build.cgi --changed";
system($command);
}
...and then just before any "modify_success" templates are show (3 times in LSQL 2.2.0), I added;
...yet that doesn't work.
I've written a test.cgi script, to check how the formatting is (and if it will work at all), and that ran fine! The code is;
use strict;
use CGI;
my $IN = new CGI;
print $IN->header();
my $command = "perl /webusers/user/cgibin/admin/nph-build.cgi --changed";
print "C: $command";
system($command);
print "Done...";
Anyone got any ideas? (BTW, this server isn't running SuEXEC ... but they do have CGI wrap installed).
TIA for any replys.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I've added this in Modify.pm;
Code:
sub custom_rebuild_changed { my $command = "perl /webusers/user/cgibin/admin/nph-build.cgi --changed";
system($command);
}
...and then just before any "modify_success" templates are show (3 times in LSQL 2.2.0), I added;
Code:
&custom_rebuild_changed;...yet that doesn't work.
I've written a test.cgi script, to check how the formatting is (and if it will work at all), and that ran fine! The code is;
Code:
#!/usr/bin/perl use strict;
use CGI;
my $IN = new CGI;
print $IN->header();
my $command = "perl /webusers/user/cgibin/admin/nph-build.cgi --changed";
print "C: $command";
system($command);
print "Done...";
Anyone got any ideas? (BTW, this server isn't running SuEXEC ... but they do have CGI wrap installed).
TIA for any replys.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!