Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: rakeshou
  • Order by date
  1. rakeshou

    script sourcing issue.

    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...
  2. rakeshou

    Perl Regular Expression help

    Wow, thats what I wanted. Thank you, Appreciate it.
  3. rakeshou

    Perl Regular Expression help

    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...
  4. rakeshou

    Perl Regular Expression help

    I need to extract the name of the file open_a.pl from the URL like: http://localhost/cgi-bin/open_a.pl?group_id=41 Thank you
  5. rakeshou

    Common header and footer using HTML::Template

    Dear 1DMF and others, <TMPL_INCLUDE NAME="filename.tmpl"> worked like a charm Thank you.. Really appreciate it. Rakesh
  6. rakeshou

    Common header and footer using HTML::Template

    Thanks for the help, I will try to include another template in a template and see how it goes.. Regards, Rock
  7. rakeshou

    Common header and footer using HTML::Template

    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...
  8. rakeshou

    perl regular exp prevent cross site scripting

    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
  9. rakeshou

    passing right value to the function

    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...
  10. rakeshou

    Winsock - create a thread and assign a port number to it.

    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...
  11. rakeshou

    Winsock - create a thread and assign a port number to it.

    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...
  12. rakeshou

    storing data in session variable

    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"} =...
  13. rakeshou

    relating a folder and files under it with a logged in user.

    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...
  14. rakeshou

    uploading file on a different server than the webserver

    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..
  15. rakeshou

    uploading file on a different server than the webserver

    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
  16. rakeshou

    uploading file on a different server than the webserver

    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...
  17. rakeshou

    uploading file on a different server than the webserver

    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...

Part and Inventory Search

Back
Top