Here is what I'm trying to do:
I have the main script to display pages from the database: index.cgi
And I would like from now and then to be able to add another script output to that index.cgi... like a counter for example, but without changing the index.cgi
So like index.cgi displays a page...
PaulTEG can you please explain, what do you mean by 1?
1DMF, my web site is database based: http://www.bloodware.tk
I have to display everything from the script first...
Is there somesort of perl module that can help me with that instead?
Thanks again
I know in order to execute a script with SSI I need the calling page to end with .shtml
But what if I have a perl script displaying html, can I in some way call from that html (inside the perl script) to SSI?
Or is there some other way I can embed printed value of other script into my perl html...
I can't do the code as you suggested, because !about is just an example, I have more commands to match.
As for the g, I really don't think it's the problem, because I removed it and the i as well, and still i get the same result.
if ($data =~ /\!/ig)
{
if ($data =~ /\!about/ig)
{
print "1";
}
}
The above code is acting very weird;
The idea is simple, to match if the string $data contains a ! char, if it is, match a command: !about
But when the code is running, the first match is successful, but the...
I don't really see how that helps... the cmd already does it by itself, no?
Is it possible that the Prompt => '' needed to be adjusted? to detect --MORE-- ?
I'm trying to use the Net::Telnet but I have a small problem.
I connect the server and send a command.
The server receives the command and sends me the output.
The thing is, because the output is not complete but has a: --MORE-- at the bottom is makes the
@lines = $telnet->cmd("show port...
I want to send over a socket non-readable chars, for example: 0x01
So I treid to do the next:
print $sock 0x01;
But it's not working right, the char being sent is not the one I want... it's just random junk at best.
Is there a special way to send hex values over sockets?
well i found the problem, but i don't know how to fix it...
the problem is with the < > it creates some sort of weird collition with something, i guess... any ideas?
the output of:
abcbc
is
abc<img src=a.bmp]bc
instead of:
[code]abc<img src=a.bmp>bc<img src=b.bmp>
i have a text input that contains tags, that i want to exchange with <IMG SRC=>.
i tried the next code but it doesn't really work:
$msg =~ s/\/\<IMG SRC=$1\>/g;
why does it work the way to should?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.