Can perl get a pagename when called from iframe?


 
Thread Tools Search this Thread
Top Forums Programming Can perl get a pagename when called from iframe?
# 1  
Old 07-26-2010
Can perl get a pagename when called from iframe?

how?
there is html-page with:
<iframe>
<!--#exec cgi="perl-script"-->
</iframe>

so in that perl-script need to delegate the name of html-page
why? too lazy for ajax

Last edited by tip78; 07-26-2010 at 01:19 PM..
tip78
# 2  
Old 07-26-2010
It's not being called "from" an iframe. As a server-side include, the server really doesn't care what part of the webpage it inhabits.

Like CGI scripts, Apache should set environment variables for the script to see. here's a list of ones to try.
# 3  
Old 07-26-2010
how about <!--#exec cgi="perl-script?page-name"-->
?
tip78
# 4  
Old 07-27-2010
I wasn't under the impression server-side scripting worked that way. This isn't a GET call, after all.

Besides, I still think you've already got the information you're looking for in environment variables already. Try $ENV{'REQUEST_URI'};
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Redirect from iFrame Theft

You are here because you have been redirected from a site which is stealing our content with iframe and other content theft techniques. Please comment on this theft of our content or ask questions about content theft in this thread. Thank you. (1 Reply)
Discussion started by: Neo
1 Replies

2. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

3. HP-UX

What is this shell called ?

:wall:What is this shell called ? "/sbin/sh" When I run "echo $SHELL" command on my HP-UX,I get above output. In Linux It was "/bin/bash". Which is bash shell. (5 Replies)
Discussion started by: manalisharmabe
5 Replies

4. Shell Programming and Scripting

Perl script to find where functions is called in c

Hello, I need to write a perl script to find where functions is called in c files.. The script should scan the file and find out the function names and then search to see where they are called... Lets for now assume all functions are internal. I don't know where to start :( ... (4 Replies)
Discussion started by: bojomojo
4 Replies

5. Shell Programming and Scripting

what is it called?

Hey, I've come across and have used things like: fase1=${QUERY_STRING%%&*} and I was wondering what this kind of actions is called? (I'm talking about the % and # operators on strings) Does anyone know where i can find more info about it? It looks like a very powerful tool... Regards, Karel (1 Reply)
Discussion started by: KarelVH
1 Replies

6. Shell Programming and Scripting

perl problem - why isn't 'die' being called?

last week i started learning perl, so have limited skill and knowledge. why isn't 'die' being called and the script exiting before the 'directory created' line? if (! -d "$logdir") { system "mkdir -p $logdir" || die print "\nERROR: release log directory creation failed - $logdir: $!\n";... (4 Replies)
Discussion started by: mjays
4 Replies

7. Shell Programming and Scripting

How to determine if a script (perl) was called from a CRON job or commandline

Hi, Is there a way to determine if a Script is called from a CRON job or from a commandline Gerry. (2 Replies)
Discussion started by: jerryMcguire
2 Replies

8. Shell Programming and Scripting

Procedures are not called ?

My shell script is executing i am having no syntax errors or other errors. When i am testing the shell script i am having a problem that the procedure Prompt, Environment,List are not found. I defined all these procedures in the shell script. Environment() { FULL=N export FULL LOGON=cat... (2 Replies)
Discussion started by: dreams5617
2 Replies
Login or Register to Ask a Question