[PHP] Strange behaviour of generated images

2002-12-17 Thread Victor V. Evtushenko
Hi, 

I'm trying to output a set of image thumbnails in HTML table. Everything
works fine, except that performance is very poor. If I put all the
thumbnails as regular files in some directory it has expected speed. But
if I'm trying to use script to retrieve thumbnails from their actual
location (which may be database for example) speed drops down
dramatically. And what is even more strange, from apache log I see that
script is terminating very fast, less than 0.5 second for each image
(they are relatively small, ~2K), but browser is spending huge amount of
time "downloading" images two at a time. 

Image retrieving script is very simple:

value('IMAGE_FILENAME'), -3);
header("Content-type: image/$content_type");
header("Content-length: ". strlen($packet->value('IMAGE_REGULAR')));
echo $packet->value('IMAGE_THUMBNAIL');
fclose($fp);
exit;
?>

and call for images is made like this:

echo "";

Does anyone has such a problem before and is there any solution?

Thank you,
Victor.
-- 
Infodesk S.A.
Gustavo Mejia Ricart #70
Santo Domingo, Dominican Republic

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: How do I keep a page from caching in I.E

2002-09-04 Thread Victor V. Evtushenko

Hi,

Donpro wrote:
> Hi,
> 
> Using I.E. 5.5. I can't seem to keep a page from caching.  When I click on

Have you read "HOWTO: Prevent Caching in Internet Explorer"?
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q234067

> the browser BACK button, I get the cached page so I have to click on Refresh
> to get the actual page content.  I've placed the following at the top of the
> HTML file but it doesn't seem to do anything. Any help would be appreciated.


Victor.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Getting LDAPS to work

2001-02-20 Thread Victor V . Evtushenko

* John Hallam <[EMAIL PROTECTED]> [010215 17:58]:
> I have got php 4.0.4p1 configured with openssl 0.9.6
> and ldap and I'm trying to get an ldap_connect to work
> over ldaps as described in the ldap_connect
> documentation.
> 
> I have no problem connecting using
> ldap_connect(hostname) format but I do have a problem
> with the URL format. This is what I am doing :-
> 
> $Host='ldaps://hostname/';
> $ds=ldap_connect($Host);
> 
> What is wrong ?? any ideas ??
> 
Why don't you try 
$ds = ldap_connect("hostname", 689);
where 689 is port number for SSL connection? If you use another port
number, you should change 689 to whatever you use.

Victor.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]