I have a script say abc.sh which needs to be executed by another script as
. ../abc.sh
but the control never returns to the calling script. The control does come back if I use
../abc.sh
but then abc.sh is run as child script.
Please tell me how do I bring the control back to the calling...
So far I have tried
my $referer = new URI($q->referer);
#gives you the url
$referer =~ m!/(.*)/!;
#extracts between first and last /
$referer =~ m!$1(.*)\?!;
#extracts from what ever was extracted by statement 2 till ?
prints $1;
#prints file name
seems to be working but I am sure there...
Hello all,
I am using HTML::Template to separate the design from logic. As of now I am using html header and footer in all template pages as under:
Code:
<div id="header"> <h1><a id="bigtext" title="Go to home page" href="home.pl">TITLE</a></h1> <div id="links"> <text2 id="text2">Logged in as...
Hi gurus,
What can be the perl regular expression that replaces the <script></sript> tags and anything between them with blank space
currently I am doing soemthing like this,
$comments =~ s!<script||javascript||vbscript||(../)||</script>!!ig;
but this just removes the <script tags
Thank you
I have a function that receives the integer values :
void link::add(int val)
{
node1 *q,*temp;
q = new node1;
if(node==NULL)
{
node = new node1;
node->data=val;
node->next=NULL;
}
else
{
q=node;
while(q->next != NULL)
{
q = q->next...
the thread is created in the main function and and IP address of the Host and port number is passed to the thread.
I think I have to create an object of the struct sockaddr_in which will have the IP address of the Host and the port number too, and pass it to the thread.
Thanks for your reply...
Hello all,
I have a clientA program that connects to the server.
What i need is to create a thread in the clientA call it clientB which has a different port.
The clientA sends the IP address and Port number of the clientB to the server, and the server sends the Message "Hello" to the clientB...
I want to store the username and login_id in the session .
i am tryin to do this.
$session = $q->cookie(-name=>$session->name,-value=>$session->id); #session cookie
$session{"username"} = $q->param("$usernameVar");
$session{"login_id"} =...
Hi all,
I am working on an online system where when the user logs on to the system a session is created, they view their folders and their uploaded files under a folder.
I am using query strings to display the list of files in a particular folder.
but the problem is, any one can change the...
i meant absolute path in the line below that i wrote in my previous post:
but if i embed file path in the perl/cgi file it works fine
it works fine with absolute path..
Yes the other server is an FTP server. but the problem is i select a file from the HTML file and pass the file name as param to a perl/cgi file, then it doesnt find the file.
but if i embed file path in the perl/cgi file it works fine
do let me know if you want to know anything else...
-rakesh
If I mount the other server on the current server, it will still be vulnerable to security holes..
is there any other way to do this i mean the user should be able to upload and retreive files from a different server.
some one has suggested me to use Net::FTP
but its not working for me...
Hi all,
Well we want to let the users uplaod files from their machines but the problem is that the files to be uploadded should go to another server (file server, for security reasons).
i have tried uploading the files on the same server and it works fine but have no clue how to upload files...
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.