<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding File functionality to Apache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850087#M395098</link>
    <description>I'm putting this under sys-admin, as I may not be looking at this the right way.&lt;BR /&gt;&lt;BR /&gt;I have a HP 900/765 running Apache, Squid, and secure ftp (chrooted dirs with quotas), no write access to home but access to "incoming" and "outgoing" dirs in their home.&lt;BR /&gt;&lt;BR /&gt;I have several users that can not access the FTP server portion easily.&lt;BR /&gt;&lt;BR /&gt;I want to add file functionality to HTTPD for users, similar to how they use FTP.&lt;BR /&gt;&lt;BR /&gt;The only way I can see to accomplish this is with some CGI, which will look at the user name as they log in, and build dynamic pages on the fly.&lt;BR /&gt;&lt;BR /&gt;While the basic meat and potato part is easy.  Build a HTML doc with 2 links "incoming" and "outgoing", linked to a "incoming" and "outgoing" HTML doc which lists files, and links to the actual files in the dir.&lt;BR /&gt;&lt;BR /&gt;Also, I can build a FORM to post data, but have no idea where the data goes or what context it's in after uploading.&lt;BR /&gt;&lt;BR /&gt;What I can not seem to grasp, is how to get their login name from apache to build the pages.&lt;BR /&gt;&lt;BR /&gt;Lastly, looking at the other services running on the system, it seems like there would be a much easier way to accomplish this. &lt;BR /&gt;&lt;BR /&gt;Ideas on how to accomplish this easier and/or how to have Apache build dynamic pages based on login are both appreciated.&lt;BR /&gt;&lt;BR /&gt;I know that lots of people have a ton more experience with Apache and HTML than I.</description>
    <pubDate>Mon, 15 Sep 2003 17:31:47 GMT</pubDate>
    <dc:creator>Shannon Petry</dc:creator>
    <dc:date>2003-09-15T17:31:47Z</dc:date>
    <item>
      <title>Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850087#M395098</link>
      <description>I'm putting this under sys-admin, as I may not be looking at this the right way.&lt;BR /&gt;&lt;BR /&gt;I have a HP 900/765 running Apache, Squid, and secure ftp (chrooted dirs with quotas), no write access to home but access to "incoming" and "outgoing" dirs in their home.&lt;BR /&gt;&lt;BR /&gt;I have several users that can not access the FTP server portion easily.&lt;BR /&gt;&lt;BR /&gt;I want to add file functionality to HTTPD for users, similar to how they use FTP.&lt;BR /&gt;&lt;BR /&gt;The only way I can see to accomplish this is with some CGI, which will look at the user name as they log in, and build dynamic pages on the fly.&lt;BR /&gt;&lt;BR /&gt;While the basic meat and potato part is easy.  Build a HTML doc with 2 links "incoming" and "outgoing", linked to a "incoming" and "outgoing" HTML doc which lists files, and links to the actual files in the dir.&lt;BR /&gt;&lt;BR /&gt;Also, I can build a FORM to post data, but have no idea where the data goes or what context it's in after uploading.&lt;BR /&gt;&lt;BR /&gt;What I can not seem to grasp, is how to get their login name from apache to build the pages.&lt;BR /&gt;&lt;BR /&gt;Lastly, looking at the other services running on the system, it seems like there would be a much easier way to accomplish this. &lt;BR /&gt;&lt;BR /&gt;Ideas on how to accomplish this easier and/or how to have Apache build dynamic pages based on login are both appreciated.&lt;BR /&gt;&lt;BR /&gt;I know that lots of people have a ton more experience with Apache and HTML than I.</description>
      <pubDate>Mon, 15 Sep 2003 17:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850087#M395098</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-09-15T17:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850088#M395099</link>
      <description>Hi ,&lt;BR /&gt;For such a case, php is your friend !&lt;BR /&gt;I have one question :&lt;BR /&gt;the login is from a FORM or from a .htaccess,&lt;BR /&gt;from a form, then it's just a paramater you will get in your cgi script (or your php page if you select this option).&lt;BR /&gt;If it's from an apache authentication (.htaccess), then you should have a variable with the tool you are using to build your page.&lt;BR /&gt; &lt;BR /&gt;example for the form :&lt;BR /&gt;&lt;FORM action="https://community.hpe.com/cgi-bin/loginscrips.." method="post"&gt;&lt;BR /&gt;&lt;TABLE&gt;&lt;BR /&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;login:&lt;/TD&gt;&lt;BR /&gt;&lt;TD&gt;&lt;INPUT type="text" name="login" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;BR /&gt;&lt;TR&gt;&lt;TD&gt;password:&lt;/TD&gt;&lt;BR /&gt;&lt;TD&gt;&lt;INPUT type="text" name="password" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;BR /&gt;&lt;TR&gt;&lt;TD&gt;&lt;INPUT type="submit" name="login" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;BR /&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;&lt;BR /&gt; &lt;BR /&gt;And in your loginscript you receive the login+password, you just have to manipulate the values...&lt;BR /&gt; &lt;BR /&gt;hope that help&lt;BR /&gt;Benoit</description>
      <pubDate>Tue, 16 Sep 2003 08:46:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850088#M395099</guid>
      <dc:creator>benoit Bruckert</dc:creator>
      <dc:date>2003-09-16T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850089#M395100</link>
      <description>Well, the login is actually 2fold security.&lt;BR /&gt;&lt;BR /&gt;First, the user must access a secure zone, so standard username/password and httpd security&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;  AuthType Basic&lt;BR /&gt;  AuthName "Restricted for FTP Users"&lt;BR /&gt;  AuthUserFile /usr/local/apache2/etc/passwd&lt;BR /&gt;  Require valid-user&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;The secondary login file will be parsed from the FORM&lt;POST&gt;.&lt;BR /&gt;&lt;BR /&gt;Now I may (depending on how secure I feel with the CGI) remove the top auth and use exclusively CGI. &lt;BR /&gt;&lt;BR /&gt;I have jack squat experience with PHP.&lt;BR /&gt;&lt;BR /&gt;Any good DOC's for it?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Shannon&lt;/POST&gt;</description>
      <pubDate>Tue, 16 Sep 2003 11:33:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850089#M395100</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-09-16T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850090#M395101</link>
      <description>Well,&lt;BR /&gt;with PHP you don't have to use cgi script,&lt;BR /&gt;because it may be completly linked with apache, and a .php file will be interpreted by the php language. By this way, you build on the fly anything you want.&lt;BR /&gt; &lt;BR /&gt;HEre's a sample :&lt;BR /&gt;login.html&lt;BR /&gt;&amp;lt;...&amp;gt;&lt;BR /&gt;&lt;FORM action="https://community.hpe.com/login.php" method="post"&gt;&lt;BR /&gt;&lt;TABLE&gt;&lt;BR /&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;login:&lt;/TD&gt;&lt;BR /&gt;&lt;TD&gt;&lt;INPUT type="text" name="login" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;BR /&gt;&lt;TR&gt;&lt;TD&gt;password:&lt;/TD&gt;&lt;BR /&gt;&lt;TD&gt;&lt;INPUT type="text" name="password" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;BR /&gt;&lt;TR&gt;&lt;TD&gt;&lt;INPUT type="submit" name="login" /&gt;&lt;/TD&gt;&lt;/TR&gt;            &lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;&lt;BR /&gt;&amp;lt;...&amp;gt;&lt;BR /&gt; &lt;BR /&gt;And here's the login.php just a sample :&lt;BR /&gt;if $password=="&lt;WHAT you="" want=""&gt;"&lt;BR /&gt;{&lt;BR /&gt;   echo "OK your are authenticated..you can continue&lt;BR /&gt;";&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;   echo "Hey you type a wrong user/password !!! you cannot connect";&lt;BR /&gt;   exit;&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;BR /&gt; your place here your html stuff&lt;BR /&gt; if you want to add some login datas, just have to open a php part by :&lt;BR /&gt;if $login==....&lt;BR /&gt;{&lt;BR /&gt;   echo "all your specific html..."&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;BR /&gt; or&lt;BR /&gt; &lt;BR /&gt;this is some html datas, and you just want to print the login :&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;If you want to get the http authentication name (from your .htaccess file ) :&lt;BR /&gt;$PHP_AUTH_USER is the solution....&lt;BR /&gt; &lt;BR /&gt;YOu have many ways...&lt;BR /&gt;Concerning docs, the reference manual from php.net is what I'm using...&lt;BR /&gt; &lt;BR /&gt;hope that help&lt;BR /&gt;Benoit&lt;/WHAT&gt;</description>
      <pubDate>Wed, 17 Sep 2003 07:40:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850090#M395101</guid>
      <dc:creator>benoit Bruckert</dc:creator>
      <dc:date>2003-09-17T07:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850091#M395102</link>
      <description>Thanks for the advice!  Haha, not that I wanted to learn a new language, but what the helk ;)  Looks alot like C anyway.&lt;BR /&gt;&lt;BR /&gt;Time to get studying!&lt;BR /&gt;&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 17 Sep 2003 13:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850091#M395102</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-09-17T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850092#M395103</link>
      <description>On my side, i started to play PHP 2 years ago when my company gave me a software to maintain built in PHP. And I had absolutly no knowledge of it !!&lt;BR /&gt;I understood concept and syntax very quickly and now I'm playing with it very often (I never use pure html file) even for scripting (you can run it in a command line like an interpreter).&lt;BR /&gt;The best advantages of PHP is the ability to connect to many databases very easily.&lt;BR /&gt;&lt;BR /&gt;no points please, this is just an add for this product !&lt;BR /&gt;hope you will like it,&lt;BR /&gt;regards&lt;BR /&gt;Benoit</description>
      <pubDate>Thu, 18 Sep 2003 06:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850092#M395103</guid>
      <dc:creator>benoit Bruckert</dc:creator>
      <dc:date>2003-09-18T06:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding File functionality to Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850093#M395104</link>
      <description>PHP worked, was a long time ago (so it seems).&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Dec 2004 12:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-file-functionality-to-apache/m-p/4850093#M395104</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2004-12-01T12:43:18Z</dc:date>
    </item>
  </channel>
</rss>

