Dear Wardk (and the other people helping):

I think the main problem is that I'm a novice in Perl, no matter if my script works and is 10,080 lines long (390 K). Your solution sounds good but I need to learn a lot about LWP.
Just in case you have nothing better to do (!!!), I will tray to explain "the thing" (and sorry for my english):

I have a domain (lets say "www.philbe.com")hosted in a Verio server and there is where my script resides.
Filling some forms the users can create a set of 5 web pages that can be created and edited at anytime by themselves without knowing nothing about HTML.

Here is a piece of the script:

#!/usr/local/bin/perl ............................... ............................... # Form : for user input to crate the Headline: <b>Top Of Page:</b>\n"; print "<p><b>Headline:</b>Big Page Title At The Top - required)<br>\n" +; print "<input type=text size=40 name=\"headline\" value=\"$head\"></p> +\n"; ............................... ............................... # writes te input into a flat file ............................... ............................... #Creates Dir and Page sub dirs mkdir ("$base_dir/$pagename", 0777) || die("Could not create user dire +ctory:"); mkdir ("$base_dir/$pagename/page1", 0777) || die("Could not create use +r directory:"); .............................. .............................. #Page 1 creation open(HTML, ">$page_dir$pagename/index.htm") || die "I can't create $pa +gename/index.htm\n"; if ($useflock) { flock (HTML, 2) or die "can't lock html file\n"; } print HTML "<html><head><title>$head</title>\n"; ................................ ................................ ................................

The problem is that this pages are created an accesed under:
www.philbe.com/anyusername
and some of them prefers, (due to commercial reasons), to have:
www.anyusername.com
So is mandatory to get his own server (and domain, of course).
The easy solution is to install a copy of the script in is server...but... I don't want to let the users put his hands on the script code.
So the other, looks like no easy, solution, is to have a "central script" in my server creating (or copying) the pages in his own servers. No matter if I need to keep a personalized copy of the script for each one.

One of the interesting features of this sort of scripts is that the users can see the changes done on the web pages, and on the Net,(think in new "Prices", "Offers of the day" ...)in the next five seconds after the "Editions" (or the first "Creation").

May be the answer to this problem, is this phrase:

"Dear Philbe, learn a "little bit" more of Perl".

Anyway thank you very much. !!!


In reply to Re: Re: perl script accesing another server by philbe
in thread perl script accesing another server by philbe

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.