Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Embedding CGI and PHP in a page
Old 12-05-2002, 09:05 PM Embedding CGI and PHP in a page
Average Talker

Posts: 15
Trades: 0
How is this done so that the scripts runs in a specifc area of the page?
__________________
http://tranquilhost.net "The Natural Choice!"
Tranquil is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-05-2002, 09:55 PM
xtravel's Avatar
Super Talker

Posts: 125
Location: Maldives
Trades: 0
i know one method you can use to achive that using perl scripting. below is an example script;

$file = "MyFile.html"; # The location of your html file

open(TEMPLATE,"$file");
&template;
print $template;

$template = '';


sub template {
while (<TEMPLATE>){
$template .= $_;
}
close(TEMPLATE);

$template =~ s/\%%%MyResult%%%/$MyData/g;

}

in your html file you can put this "%%%MyResult%%%" anywhere you want the result of the variable "$MyData" to be printed.

hope this helps!

chao, xtravel
__________________
See the unique beauty of Maldives, Visit
Please login or register to view this content. Registration is FREE
xtravel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Embedding CGI and PHP in a page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35082 seconds with 12 queries