php-general Digest 3 Jan 2009 09:28:31 -0000 Issue 5880

Topics (messages 285375 through 285392):

Re: Sending files via POST
        285375 by: Anders Norrbring
        285376 by: Daniel Brown
        285377 by: Daniel Brown

Posting Data?
        285378 by: Stephen Alistoun
        285379 by: Stephen Alistoun
        285380 by: Jim Lucas

Re: IE Problem Detecting Post Variables
        285381 by: Andrew Ballard
        285384 by: Ashley Sheridan

How to count transfered kBytes in File-Download
        285382 by: Michelle Konzack
        285386 by: Jim Lucas

Re: Webhotel structure
        285383 by: Michael Leung

Please point me in the right direction
        285385 by: David Knapp
        285388 by: Jim Lucas

Re: Thank you everyone, What a wonderful world
        285387 by: shahrzad khorrami
        285389 by: Robert Cummings

Searching in a long text
        285390 by: Vicente
        285391 by: Robert Cummings
        285392 by: Yeti

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
> On Fri, Jan 2, 2009 at 14:14, Anders Norrbring <[email protected]>
> wrote:
> > *bump*
> 
>     Please don't "bump" threads, Anders.  This is not a traditional
> web-based user forum.  You've provided no additional data, so there is
> no need to bring this thread up again.  If you want to get more
> attention to it, you will need to send a reply to the list with
> updated information.  The last response in this thread was from Nathan
> Rixham.  If you didn't receive that message, you can find it in the
> archives, or I'll be glad to forward it to you.  If it didn't solve
> your problem, you can say so and folks here will be happy to help you
> further.


I provided some additional data at 2009-01-01 09:33.. (That would be GMT+1
hour)
But after that.. I didn't get *anything* at all, not from Nathan, not from
anybody else.

And I'm fully aware of the distinctions between a mailing list and a web
based forum. After all, I've been in this business (computers and
communications) since 1979 (Yeah, I'm that old...). But I didn't get any
replies whatsoever, neither in private nor in the list, therefore I felt an
urge to do something to draw some attention to this matter.

And yes Daniel, I'm fully aware that my specific question isn't a PHP
general issue, but a PEAR related issue, more specific it's related to
PEAR:HTTP_Request, nevertheless I firmly believe it's of common interest.

If you don't share my view, I'll be happy to be flamed in private, not on
list.

Best regards, and wishes for a happy 2009,
Anders.


--- End Message ---
--- Begin Message ---
On Fri, Jan 2, 2009 at 16:32, Anders Norrbring <[email protected]> wrote:
>
> I provided some additional data at 2009-01-01 09:33.. (That would be GMT+1
> hour)
> But after that.. I didn't get *anything* at all, not from Nathan, not from
> anybody else.

    Which is why I asked.

> And I'm fully aware of the distinctions between a mailing list and a web
> based forum. After all, I've been in this business (computers and
> communications) since 1979 (Yeah, I'm that old...). But I didn't get any
> replies whatsoever, neither in private nor in the list, therefore I felt an
> urge to do something to draw some attention to this matter.

    That's understandable, though perhaps more than just "*bump*"
would've been helpful.

> And yes Daniel, I'm fully aware that my specific question isn't a PHP
> general issue, but a PEAR related issue, more specific it's related to
> PEAR:HTTP_Request, nevertheless I firmly believe it's of common interest.

    That's okay.  This "general" list is "general" as in broad terms.
You're by no means more off-topic than a good portion of things sent.

> If you don't share my view, I'll be happy to be flamed in private, not on
> list.

    Trust me, that was not a flame.  I'll forward the email from
Nathan directly to you now.  Hopefully it will be of some help to you.

-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!

--- End Message ---
--- Begin Message ---
    Nathan Rixham's original email.  Hope it helps!

On Thu, Jan 1, 2009 at 09:35, Nathan Rixham <[email protected]> wrote:
>
> after having a flick through the source it looks like a limitation of http
> request;
> http://pear.php.net/package/HTTP_Request/docs/latest/__filesource/fsource_HTTP_Request__HTTP_Request-1.4.4Request.php.html
> check lines around 600 and 900+
>
> you'd have to set the http request yourself i thinks! (setBody)
>
> may be worth contacting they who maintain the package
>



-- 
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!

--- End Message ---
--- Begin Message ---
Hi all,

I have my own register system and I want to Post my values from my register
system and post those
values into the punbb register form.

I do not want to register my values from the punbb form but rather from my
login system.

How would i be able to do this?

Below is the example of the punbb register form:


<form class="frm-form" id="afocus" method="post" accept-charset="utf-8"
action="http://www.punbb.co.za/Forums/register.php?action=register";>
                        <div class="hidden">
                                <input type="hidden" name="form_sent" value="1" 
/>
                                <input type="hidden" name="csrf_token"
value="ad31a4b11b12bbedcc3a4ad7963cd9e0bb96f430" />

                        </div>
                        <div class="frm-group group1">
                                <div class="sf-set set1">
                                        <div class="sf-box text required">
                                                <label for="fld1">Username 
<em>(Required)</em> <small>Between 2 and 25
characters.</small></label><br />
                                                <input type="text" id="fld1" 
name="req_username" value="" size="35"
maxlength="25" />
                                        </div>

                                </div>
                                <div class="sf-set set2">
                                        <div class="sf-box text required">
                                                <label for="fld2">Password 
<em>(Required)</em> <small>Minimum 4
characters. Case sensitive.</small></label><br />
                                                <input type="password" 
id="fld2" name="req_password1" size="35" />
                                        </div>
                                </div>

                                <div class="sf-set set3">
                                        <div class="sf-box text required">
                                                <label for="fld3">Confirm 
password <em>(Required)</em> <small>Re-enter
your password exactly as before.</small></label><br />
                                                <input type="password" 
id="fld3" name="req_password2" size="35" />
                                        </div>
                                </div>
                                <div class="sf-set set4">

                                        <div class="sf-box text required">
                                                <label for="fld4">E-mail 
<em>(Required)</em> <small>A current valid
e-mail address.</small></label><br />
                                                <input type="text" id="fld4" 
name="req_email1" value="" size="35"
maxlength="80" />
                                        </div>
                                </div>
                                <div class="sf-set set5">
                                        <div class="sf-box select">

                                                <label for="fld5">Your 
timezone</label><br />
                                                <select id="fld5" 
name="timezone">
                                                <option value="-12">(UTC-12:00) 
International Date Line West</option>
                                                <option value="-11">(UTC-11:00) 
Niue, Samoa</option>
                                                <option value="-10">(UTC-10:00) 
Hawaii-Aleutian, Cook Island</option>
                                                <option 
value="-9.5">(UTC-09:30) Marquesas Islands</option>

                                                <option value="-9">(UTC-09:00) 
Alaska, Gambier Island</option>
                                                <option value="-8">(UTC-08:00) 
Pacific</option>
                                                <option value="-7">(UTC-07:00) 
Mountain</option>
                                                <option value="-6">(UTC-06:00) 
Central</option>
                                                <option value="-5">(UTC-05:00) 
Eastern</option>
                                                <option value="-4">(UTC-04:00) 
Atlantic</option>

                                                <option 
value="-3.5">(UTC-03:30) Newfoundland</option>
                                                <option value="-3">(UTC-03:00) 
Amazon, Central Greenland</option>
                                                <option value="-2">(UTC-02:00) 
Mid-Atlantic</option>
                                                <option value="-1">(UTC-01:00) 
Azores, Cape Verde, Eastern
Greenland</option>
                                                <option value="0" 
selected="selected">(UTC) Western European,
Greenwich</option>
                                                <option value="1">(UTC+01:00) 
Central European, West African</option>

                                                <option value="2">(UTC+02:00) 
Eastern European, Central
African</option>
                                                <option value="3">(UTC+03:00) 
Moscow, Eastern African</option>
                                                <option value="3.5">(UTC+03:30) 
Iran</option>
                                                <option value="4">(UTC+04:00) 
Gulf, Samara</option>
                                                <option value="4.5">(UTC+04:30) 
Afghanistan</option>
                                                <option value="5">(UTC+05:00) 
Pakistan, Yekaterinburg</option>

                                                <option value="5.5">(UTC+05:30) 
India, Sri Lanka</option>
                                                <option 
value="5.75">(UTC+05:45) Nepal</option>
                                                <option value="6">(UTC+06:00) 
Bangladesh, Bhutan, Novosibirsk</option>
                                                <option value="6.5">(UTC+06:30) 
Cocos Islands, Myanmar</option>
                                                <option value="7">(UTC+07:00) 
Indochina, Krasnoyarsk</option>
                                                <option value="8">(UTC+08:00) 
Greater China, Australian Western,
Irkutsk</option>

                                                <option 
value="8.75">(UTC+08:45) Southeastern Western
Australia</option>
                                                <option value="9">(UTC+09:00) 
Japan, Korea, Chita</option>
                                                <option value="9.5">(UTC+09:30) 
Australian Central</option>
                                                <option value="10">(UTC+10:00) 
Australian Eastern,
Vladivostok</option>
                                                <option 
value="10.5">(UTC+10:30) Lord Howe</option>
                                                <option value="11">(UTC+11:00) 
Solomon Island, Magadan</option>

                                                <option 
value="11.5">(UTC+11:30) Norfolk Island</option>
                                                <option value="12">(UTC+12:00) 
New Zealand, Fiji, Kamchatka</option>
                                                <option 
value="12.75">(UTC+12:45) Chatham Islands</option>
                                                <option value="13">(UTC+13:00) 
Tonga, Phoenix Islands</option>
                                                <option value="14">(UTC+14:00) 
Line Islands</option>
                                                </select>

                                        </div>
                                </div>
                                <div class="sf-set set6">
                                        <div class="sf-box checkbox">
                                                <input type="checkbox" 
id="fld6" name="dst" />
                                                <label for="fld6">Adjust for 
DST Daylight savings is in effect
(advance times by 1 hour).</label>
                                        </div>

                                </div>
                        </div>
                        <div class="frm-buttons">
                                <input type="submit" name="register" 
value="Register" />
                        </div>
                </form>

-- 
View this message in context: 
http://www.nabble.com/Posting-Data--tp21259064p21259064.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
Hi all,

I have my own register system and I want to Post my values from my register
system and post those
values into the punbb register form.

I do not want to register my values from the punbb form but rather from my
login system.

How would i be able to do this?

Below is the example of the punbb register form:


<form class="frm-form" id="afocus" method="post" accept-charset="utf-8"
action="http://www.punbb.co.za/Forums/register.php?action=register";>
                        <div class="hidden">
                                <input type="hidden" name="form_sent" value="1" 
/>
                                <input type="hidden" name="csrf_token"
value="ad31a4b11b12bbedcc3a4ad7963cd9e0bb96f430" />

                        </div>
                        <div class="frm-group group1">
                                <div class="sf-set set1">
                                        <div class="sf-box text required">
                                                <label for="fld1">Username 
<em>(Required)</em> <small>Between 2 and 25
characters.</small></label><br />
                                                <input type="text" id="fld1" 
name="req_username" value="" size="35"
maxlength="25" />
                                        </div>

                                </div>
                                <div class="sf-set set2">
                                        <div class="sf-box text required">
                                                <label for="fld2">Password 
<em>(Required)</em> <small>Minimum 4
characters. Case sensitive.</small></label><br />
                                                <input type="password" 
id="fld2" name="req_password1" size="35" />
                                        </div>
                                </div>

                                <div class="sf-set set3">
                                        <div class="sf-box text required">
                                                <label for="fld3">Confirm 
password <em>(Required)</em> <small>Re-enter
your password exactly as before.</small></label><br />
                                                <input type="password" 
id="fld3" name="req_password2" size="35" />
                                        </div>
                                </div>
                                <div class="sf-set set4">

                                        <div class="sf-box text required">
                                                <label for="fld4">E-mail 
<em>(Required)</em> <small>A current valid
e-mail address.</small></label><br />
                                                <input type="text" id="fld4" 
name="req_email1" value="" size="35"
maxlength="80" />
                                        </div>
                                </div>
                                <div class="sf-set set5">
                                        <div class="sf-box select">

                                                <label for="fld5">Your 
timezone</label><br />
                                                <select id="fld5" 
name="timezone">
                                                <option value="-12">(UTC-12:00) 
International Date Line West</option>
                                                <option value="-11">(UTC-11:00) 
Niue, Samoa</option>
                                                <option value="-10">(UTC-10:00) 
Hawaii-Aleutian, Cook Island</option>
                                                <option 
value="-9.5">(UTC-09:30) Marquesas Islands</option>

                                                <option value="-9">(UTC-09:00) 
Alaska, Gambier Island</option>
                                                <option value="-8">(UTC-08:00) 
Pacific</option>
                                                <option value="-7">(UTC-07:00) 
Mountain</option>
                                                <option value="-6">(UTC-06:00) 
Central</option>
                                                <option value="-5">(UTC-05:00) 
Eastern</option>
                                                <option value="-4">(UTC-04:00) 
Atlantic</option>

                                                <option 
value="-3.5">(UTC-03:30) Newfoundland</option>
                                                <option value="-3">(UTC-03:00) 
Amazon, Central Greenland</option>
                                                <option value="-2">(UTC-02:00) 
Mid-Atlantic</option>
                                                <option value="-1">(UTC-01:00) 
Azores, Cape Verde, Eastern
Greenland</option>
                                                <option value="0" 
selected="selected">(UTC) Western European,
Greenwich</option>
                                                <option value="1">(UTC+01:00) 
Central European, West African</option>

                                                <option value="2">(UTC+02:00) 
Eastern European, Central
African</option>
                                                <option value="3">(UTC+03:00) 
Moscow, Eastern African</option>
                                                <option value="3.5">(UTC+03:30) 
Iran</option>
                                                <option value="4">(UTC+04:00) 
Gulf, Samara</option>
                                                <option value="4.5">(UTC+04:30) 
Afghanistan</option>
                                                <option value="5">(UTC+05:00) 
Pakistan, Yekaterinburg</option>

                                                <option value="5.5">(UTC+05:30) 
India, Sri Lanka</option>
                                                <option 
value="5.75">(UTC+05:45) Nepal</option>
                                                <option value="6">(UTC+06:00) 
Bangladesh, Bhutan, Novosibirsk</option>
                                                <option value="6.5">(UTC+06:30) 
Cocos Islands, Myanmar</option>
                                                <option value="7">(UTC+07:00) 
Indochina, Krasnoyarsk</option>
                                                <option value="8">(UTC+08:00) 
Greater China, Australian Western,
Irkutsk</option>

                                                <option 
value="8.75">(UTC+08:45) Southeastern Western
Australia</option>
                                                <option value="9">(UTC+09:00) 
Japan, Korea, Chita</option>
                                                <option value="9.5">(UTC+09:30) 
Australian Central</option>
                                                <option value="10">(UTC+10:00) 
Australian Eastern,
Vladivostok</option>
                                                <option 
value="10.5">(UTC+10:30) Lord Howe</option>
                                                <option value="11">(UTC+11:00) 
Solomon Island, Magadan</option>

                                                <option 
value="11.5">(UTC+11:30) Norfolk Island</option>
                                                <option value="12">(UTC+12:00) 
New Zealand, Fiji, Kamchatka</option>
                                                <option 
value="12.75">(UTC+12:45) Chatham Islands</option>
                                                <option value="13">(UTC+13:00) 
Tonga, Phoenix Islands</option>
                                                <option value="14">(UTC+14:00) 
Line Islands</option>
                                                </select>

                                        </div>
                                </div>
                                <div class="sf-set set6">
                                        <div class="sf-box checkbox">
                                                <input type="checkbox" 
id="fld6" name="dst" />
                                                <label for="fld6">Adjust for 
DST Daylight savings is in effect
(advance times by 1 hour).</label>
                                        </div>

                                </div>
                        </div>
                        <div class="frm-buttons">
                                <input type="submit" name="register" 
value="Register" />
                        </div>
                </form>

-- 
View this message in context: 
http://www.nabble.com/Posting-Data--tp21259080p21259080.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
Stephen Alistoun wrote:
> Hi all,
> 
> I have my own register system and I want to Post my values from my register
> system and post those
> values into the punbb register form.
> 
> I do not want to register my values from the punbb form but rather from my
> login system.
> 
> How would i be able to do this?
> 
> Below is the example of the punbb register form:
> 
> 

Well, since you are sending this to a PHP mailing list, I am guessing that you 
want the php/server to send the request.

If so, check out cURL,

if you are talking from your own browser, then you should look into the Firebug 
for FF.  It allows you to modify page content and then resubmit it.

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

--- End Message ---
--- Begin Message ---
On Fri, Jan 2, 2009 at 1:15 PM, Micah Gersten <[email protected]> wrote:
> You might want to consider the button element which allows you to
> display images, but doesn't send back coordinates.  Instead it sends a
> preset value.
> http://www.w3.org/TR/html401/interact/forms.html#h-17.5
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com

If you mean an INPUT element with the type="button", then yes.
(Although it will no longer be a submit button, so you'll have to
capture the click and perform the submit using Javascript which leads
back to accessibility issues, etc.)

If you mean a BUTTON element of the type="submit", then not exactly.
It *will* send a preset value for sure, but that preset value will
differ depending on the browser. I've found that while FF will send
the value you set in the value="..." attribute, IE will send the
actual text of the button. Thus,

<button name="test" value="blue">My Button Text</button>

will send 'test=blue' in FF, but 'test=My+Button+Text' in IE. I'm
assuming this is because for <INPUT type="submit"> buttons, the text
content of the button IS the value in the value="..." attribute.

Whatever the reason, that was a fun lesson to track down the first
time I had people tell me a page I wrote didn't work in IE.

Andrew

--- End Message ---
--- Begin Message ---
On Fri, 2009-01-02 at 18:06 -0500, Andrew Ballard wrote:
> On Fri, Jan 2, 2009 at 1:15 PM, Micah Gersten <[email protected]> wrote:
> > You might want to consider the button element which allows you to
> > display images, but doesn't send back coordinates.  Instead it sends a
> > preset value.
> > http://www.w3.org/TR/html401/interact/forms.html#h-17.5
> >
> > Thank you,
> > Micah Gersten
> > onShore Networks
> > Internal Developer
> > http://www.onshore.com
> 
> If you mean an INPUT element with the type="button", then yes.
> (Although it will no longer be a submit button, so you'll have to
> capture the click and perform the submit using Javascript which leads
> back to accessibility issues, etc.)
> 
> If you mean a BUTTON element of the type="submit", then not exactly.
> It *will* send a preset value for sure, but that preset value will
> differ depending on the browser. I've found that while FF will send
> the value you set in the value="..." attribute, IE will send the
> actual text of the button. Thus,
> 
> <button name="test" value="blue">My Button Text</button>
> 
> will send 'test=blue' in FF, but 'test=My+Button+Text' in IE. I'm
> assuming this is because for <INPUT type="submit"> buttons, the text
> content of the button IS the value in the value="..." attribute.
> 
> Whatever the reason, that was a fun lesson to track down the first
> time I had people tell me a page I wrote didn't work in IE.
> 
> Andrew
> 
Lets all march forward and renounce IE as a useful piece of software!


Ash
www.ashleysheridan.co.uk


--- End Message ---
--- Begin Message ---
Hello *,

currently I have a function:

----[ '/usr/share/tdphp-vserver/includes/02_functions.inc' ]------------
<snip>
function fncPushBinary($type='show', $file, $mime='') {
  if ( is_file("$file") ) {
    if ($mime == '') {
      $mime=exec("file -i -b $file");
    }
    $STRG="; filename=\"" . basename($file) . "\"";
    $FSIZE=filesize("$file");
    if ($type == 'show') {
      header("Content-Disposition: inline" . $STRG );
    } else {
      header("Content-Disposition: attachment" . $STRG);
    }
    header("Content-Type: " . $mime);
    $HANDLER=fopen("$file", r);
    echo fread($HANDLER, $FSIZE);
    fclose($HANDLER);
    exit();
  } else {
    $ERRNO=2;
    $ERRTX=sprintf( T_gettext("The requested binary file does not 
exist.<p>%s"), $file );
    fncError($ERRNO, $ERRTX, $ERRPAGE);
  }
}
<snip>
------------------------------------------------------------------------

which I want to modify it to count the kBytes a user download and  block
after a definde amount...

(there are too many peoples in the world which want to suck anything for
free and unlimited and no one cares who pay the stuff...  even if I have
100 TByte free traffic on one of my bigger servers)

My problem is now

1) how to count partial downloads
2) how to allow users to make partial downloads

any suggestions?

Oh, I should note, that the URL's looks like:

    /?what=music&where=h&section=foo&name=I_love_php5.ogg

and the input to the function is already sanitized.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>               <http://www.can4linux.org/>
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


--- End Message ---
--- Begin Message ---
Michelle Konzack wrote:
Hello *,

currently I have a function:

----[ '/usr/share/tdphp-vserver/includes/02_functions.inc' ]------------
<snip>
function fncPushBinary($type='show', $file, $mime='') {

Outside your function, or in, I don't care, define a variable/constant that will be used as a buffer size.

$buffer = 1024;

  if ( is_file("$file") ) {
    if ($mime == '') {
      $mime=exec("file -i -b $file");
    }
    $STRG="; filename=\"" . basename($file) . "\"";

Don't do the following...

XXXX>     $FSIZE=filesize("$file");



    if ($type == 'show') {
      header("Content-Disposition: inline" . $STRG );
    } else {
      header("Content-Disposition: attachment" . $STRG);
    }
    header("Content-Type: " . $mime);
    $HANDLER=fopen("$file", r);

Then here, do this...

$current_size = 0;
while ( !feof($HANDLER) ) {
        $current_size += $buffer;
        echo fread($HANDLE, $buffer);
}

Now, do what you want with $current_size

Maybe have a variable that you check it against that contains the users allow 
amount of transfer...

$current_size = 0;
while ( !feof($HANDLER) && $current_size < $allowed_limit ) {
        $current_size += $buffer;
        echo fread($HANDLE, $buffer);
}

Hope this gets you leading down the right path...

    echo fread($HANDLER, $FSIZE);
    fclose($HANDLER);
    exit();
  } else {
    $ERRNO=2;
    $ERRTX=sprintf( T_gettext("The requested binary file does not 
exist.<p>%s"), $file );
    fncError($ERRNO, $ERRTX, $ERRPAGE);
  }
}
<snip>
------------------------------------------------------------------------

which I want to modify it to count the kBytes a user download and  block
after a definde amount...

(there are too many peoples in the world which want to suck anything for
free and unlimited and no one cares who pay the stuff...  even if I have
100 TByte free traffic on one of my bigger servers)

My problem is now

1) how to count partial downloads
2) how to allow users to make partial downloads

any suggestions?

Oh, I should note, that the URL's looks like:

    /?what=music&where=h&section=foo&name=I_love_php5.ogg

and the input to the function is already sanitized.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant




--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
I don't think you need SSH and fixed IP address.
I think you only need to change some file permissions. Most of the shared
hosts will provide a control panel for your web account. You change the file
permissions. I have some PHP websites without a fixed IP address and SSH.

Regards,
Michael Leung
www.michaelleung.info
diary.skynovel.info



On Wed, Dec 31, 2008 at 10:11 PM, Peter Sorensen <
[email protected]> wrote:

>
>
> ""Dotan Cohen"" <[email protected]> wrote in message
> news:[email protected]...
>
> 2008/12/30 Nordstjernealle 10 <[email protected]>:
>>
>>> Hi Dotan
>>>
>>> I am glad I can at least be funny.
>>> I must admit I am a bit lazy when it comes to write perfect english in
>>> mails. I believe we can do better with our time.
>>> In this particulary case the result was below acceptable levels.
>>>
>>>
>> English is not my native language either, by the way.
>>
>> No I would not laugh if you where writing in Bokmal or Nynorsk.
>>> Because I would not know the first think about spelling in the Norwedian
>>> languages. I am Danish, we speak and write in Danish.
>>>
>>>
>> I apologize! I know little of Scandinavian culture (the letters in
>> your last name were a hint to Scandinavian) and your email address
>> just looked Norwegian to me.
>>
>> Yes it is a linux server, and I know the basic linux commands, but I do
>>> not
>>> know if and how I can get SSH access to my web host.
>>>
>>
>> If you can't, then switch hosts. SSH access is a necessity.
>>
>> It may not be supported or be too basic to be include in the help search
>>> at
>>> surftown, I simply do not know.
>>> My web do not have a fixed IP, so I guess it may not
>>>
>>>
>> No fixed IP for your web host?!? Change!
>>
>> It seems like surftown is an okay host, compared to my less than 2$ a
>>> month,
>>> but their help is a major candidate for winning the price of the most
>>> useless help ever.
>>>
>>> A google search found a blog where the guy say they do not support ssh on
>>> pivate hosting, so I guess not.
>>>
>>> /Peter
>>>
>>>
>> --
>> Dotan Cohen
>>
>>
> Hi again
>
> Sorry for cutting your name card short Dotan, but I get tired reading the
> entire alfabet every time.
>
> Yes ssh and fixed IP is properly a must for you guys who having php
> programming as a hobby, but I only want a webside up and running.
> The only other thing I would like would be a 100Gbyte remote backup.  Here
> I only got 10Gbyte.
> The price of getting these this is rather high compared to my 2$ a month,
> another detail is, that I payed 5 years in advance to get this price, so
> that would all be lost. In total I payed 100$ for 5 years including
> webhosting and  the domain name registration onbe year ago.
> Now I finally get some value for the money.
> Today the price for the same has doubled.
> I do not mind spending another 100$ if you can do better, but I will not
> spend 5 or 10$ a month for this.
>
> As php programming is not a hobby I properly will be away from this list
> for a long time, have fun everyone, before you know you have become too old
> for that.
>
> My retirement will also restore the average age of this list back to
> normal.
>
> Best regards
>
> Granpa
> Peter
>
> nb I can not show you my web, as login is restricted to familie only, but I
> guess you all know how coppermine look.
> but you are welcome to look at my work homepage www.protelevision.comwhere I 
> am a HW engineer.
>
>
>
>
>
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--- End Message ---
--- Begin Message ---
Greetings,

I need to create a secure customer section on my site. User name and login 
would take you to a secured page that displays information like a calendar, 
downloads, budgets. These sections would be the same but each customer would 
display custom content (over 100 customers).

I browsed php & mysql books, but need a jump start. Any ideas? Is php not the 
best solution? If you can't tell, I'm a newbie.

David


      

--- End Message ---
--- Begin Message ---
David Knapp wrote:
Greetings,

I need to create a secure customer section on my site. User name and login 
would take you to a secured page that displays information like a calendar, 
downloads, budgets. These sections would be the same but each customer would 
display custom content (over 100 customers).


The calendar and are a pretty common this in a CMS, but what do you mean by 
"budgets"?

I browsed php & mysql books, but need a jump start. Any ideas?

Well, here is a link to a few calendars

http://www.filetransit.com/files.php?name=Project_Calendar

Here is another

http://www.hotscripts.com/PHP/Scripts_and_Programs/Calendars/index.html

Here is a link to some dl managers

http://webscripts.softpedia.com/cat/File-Management-Perl/Download-Managers-Perl-list-213-1-1-0.html

Is php not the best solution? If you can't tell, I'm a newbie.

You come to php and ask if it isn't the best solution?


David



Hope the above helps.


--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
I'm sorry for there are no rules in the world  no real men to help them. May
*Allah* help them
as we see what happened in *Iraq* who started war with Iran and just he can!
I believe.... because I can't see any power in men to do that. America is
behind Israel and other countries really are too weak and timid to help.
just pray for them..
thanks behzad

--- End Message ---
--- Begin Message ---
I find the PHP site to be one of the best resources around. Maybe it can
help you with your problem.

Cheers,
Rob.



On Sat, 2009-01-03 at 08:56 +0330, shahrzad khorrami wrote:
> I'm sorry for there are no rules in the world  no real men to help them. May
> *Allah* help them
> as we see what happened in *Iraq* who started war with Iran and just he can!
> I believe.... because I can't see any power in men to do that. America is
> behind Israel and other countries really are too weak and timid to help.
> just pray for them..
> thanks behzad
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
Hi all,

I'm implementing a search tool to find phrases inside a book.
Users will search for some word, then the engine will returns
the 3 or 4 lines containing that word, and giving also the book page
number. 

I have the book in plain text and the doubt is about different
approaches in order to be speedy and saving memory and resources:

- adding every text page inside fields of one MySQL table.

- having the whole book as a unique text file, with some marks in
every page to delimit and parse the page number


Also, I want to know if there is some possibility to make the same
using PDF files.


thanks in advance






--- End Message ---
--- Begin Message ---
On Sat, 2009-01-03 at 09:26 +0100, Vicente wrote:
> Hi all,
> 
> I'm implementing a search tool to find phrases inside a book.
> Users will search for some word, then the engine will returns
> the 3 or 4 lines containing that word, and giving also the book page
> number. 
> 
> I have the book in plain text and the doubt is about different
> approaches in order to be speedy and saving memory and resources:
> 
> - adding every text page inside fields of one MySQL table.
> 
> - having the whole book as a unique text file, with some marks in
> every page to delimit and parse the page number
> 
> 
> Also, I want to know if there is some possibility to make the same
> using PDF files.

If it were me, I'd store each line of text in the database along with
the page and line number for indexing. Then using full text search I'd
retrieve appropriate lines that match the search query. Upon retrieving
the matching lines, I'd then proceed to pull the accompanying lines by
incrementing/decrementing the line number found and using an IN() clause
for matching the various IDs in a single query.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
What if the whole text has only 1 line?

--- End Message ---

Reply via email to