php-general Digest 4 Mar 2007 12:38:20 -0000 Issue 4658
Topics (messages 249785 through 249792):
Re: PHP running as CGI? How to set x.php as index page?
249785 by: Micky Hulse
249786 by: Michael Weaver
Re: Combining sound files
249787 by: Manuel Lemos
Re: pictures stored in PostgreSQL DB
249788 by: Fergus Gibson
Re: Matching logins to an old htpasswd file
249789 by: Fergus Gibson
Re: how to display images stored in DB
249790 by: Roman Neuhauser
failed to open stream: Resource temporarily unavailable
249791 by: Tijnema !
249792 by: Fahad Pervaiz
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 ---
Micky Hulse wrote:
PHP gurus!!!! I need your help!
Hmm, looking on the web it appears as though CGI will not help me with
my .htaccess probs... Sorry to bother you all with my silly questions. :)
I will contact the host on Monday to see if they offer any work-arounds.
Have a great day all.
Cheers,
Micky
--
Wishlist: <http://snipurl.com/vrs9>
Switch: <http://browsehappy.com/>
BCC?: <http://snipurl.com/w6f8>
My: <http://del.icio.us/mhulse>
--- End Message ---
--- Begin Message ---
Hi Micky,
You could get around this using the HTML meta tag in the index.html
page:
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://www.yourdomain.com/
x.php"/>
</head>
</html>
It's not a PHP trick, but it should work for you, even with
restrictions.
Best regards,
Mike Weaver
--
Michael Weaver
Founder/Chief Facilitator
Dynamic Insight
Enhancing Professional Awareness & Communication
Tel: 1.814.574.4871
Email: [EMAIL PROTECTED]
The information in this email and subsequent attachments may contain
confidential information that is intended solely for the attention
and use of
the named addressee(s). This message or any part thereof must not be
disclosed,
copied, distributed or retained by any person without authorization
from the
addressee. If you are not the intended recipient, please contact the
sender by
reply email and destroy all copies of the original message.
--- End Message ---
--- Begin Message ---
Hello,
on 02/25/2007 12:22 PM tedd said the following:
> However, I can't do the same with .WAV files. Does anyone know a way to
> combine .WAV files similar to the way shown above?
This class can do exactly what you want and more:
http://www.phpclasses.org/wavedit
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Alain Roger wrote:
> I know how to do that for 1 picture. But i want to display the pictures as
> thumbnail... so several pictures on the same PHP pages, with some texts.
Seems to me that Matt's suggestion is perfectly applicable. You could
simple add <img> tags as necessary, each with the call to the other
script with the correct parameter.
--- End Message ---
--- Begin Message ---
Ryan A wrote:
> Hey, I have a old htpasswd file with a lot of logins in this format:
>
> test:dGRkPurkuWmW2 (test:test) test1:dGlAW3zdxeAG2 (test1:test1)
>
> now I have a login form what takes a POST "user" and a POST "pw"...
> but if you look at my above first example login.. the username and
> pass are "test:test" but it gets encoded into "test:dGRkPurkuWmW2" so
> how do I try to match the data I get from the POST "pw" field when
> that will come in as normal text?
Hi, Ryan. I did some research on this. As I recollected, the .htpasswd
entries are saved using the hashing performed by PHP's crypt() function.
The function requires a salt, which appears to be the string 'dG' in
the .htpasswd data you provided.
Here's some example code to use this.
<?php
// represents the data saved in your .htpasswd file
$htpasswordData = array('test' => 'dGRkPurkuWmW2', 'test1' =>
'dGlAW3zdxeAG2');
// represents logins as they would be supplied by users
$logins = array(array('name' => 'test', 'password' => 'test'),
array('name' => 'test1', 'password' => 'test1'));
foreach ($logins as $login) {
if (isset($htpasswordData[$login['name']])) {
$salt = substr($htpasswordData[$login['name']], 0, 2);
$suppliedPasswordHash = crypt($login['password'], $salt);
if ($suppliedPasswordHash == $htpasswordData[$login['name']]) {
echo "<p>User {$login['name']} logged in.</p>";
} else {
echo "<p>Wrong password. Access denied.</p>";
}
} else {
echo "<p>No such user.</p>";
}
}
?>
--- End Message ---
--- Begin Message ---
# [email protected] / 2007-03-03 09:18:08 -0300:
> We have a system (I didn't work on it, just maintaining it) that has
> about 1100 images in a directory. I think we aren't seen any problems
> just because it's on a 64bit system.
You should test that assumption.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
Hi,
I have just finished installing Apache with PHP, and now i'm trying to open
a file and gives me this error:
failed to open stream: Resource temporarily unavailable
What can i do? i searched the error_log, but it doesn't show anything about
this i believe, but the log is very big because of a lot of errors of
apache.
TIA
Tijnema
--- End Message ---
--- Begin Message ---
##### ORIGINAL ######
I have just finished installing Apache with PHP, and now i'm trying to open
a file and gives me this error:
failed to open stream: Resource temporarily unavailable
What can i do? i searched the error_log, but it doesn't show anything about
this i believe, but the log is very big because of a lot of errors of
apache.
##### END ORIGINAL####
Checkout the following link...it might be helpful to u
http://bugs.php.net/bug.php?id=36925&edit=1
--
Regards
Fahad Pervaiz
www.ecommerce-xperts.com
(Shopping Cart Applications, Framework
for Multilingual Web Sites, Web Designs)
--- End Message ---