php-general Digest 11 Jul 2006 12:47:27 -0000 Issue 4233
Topics (messages 239280 through 239307):
Re: php_mysql.dll
239280 by: Chris
239282 by: João Cândido de Souza Neto
Re: GD to database directly
239281 by: Larry Garfield
239292 by: Kevin Waterson
239293 by: Kevin Waterson
239294 by: Kevin Waterson
Re: possible IE problem
239283 by: Larry Garfield
Is anyone using DBG Debugger on OS X ?
239284 by: Graham Anderson
Re: Randomly rotate image on page load? File under: Image Manipulation
239285 by: tedd
239286 by: tedd
239288 by: Micky Hulse
239290 by: tedd
Re: arrays
239287 by: tedd
Zend Platform, is it good?
239289 by: Chris
Re: string problem
239291 by: Rafael
Re: Startinga shell process with a life of its own
239295 by: Daevid Vincent
$previous variable ?
239296 by: Roman Rumisek
Problems with caching and headers.
239297 by: Mathijs
239299 by: Jochem Maas
239302 by: Mathijs
239305 by: Jochem Maas
239307 by: Mathijs
Re: I cannot forget you!
239298 by: Barry
Problem installing php
239300 by: Ruben Rubio Rey
printing special characters in PHP
239301 by: Antonio Bassinger
239303 by: Jochem Maas
239304 by: nicolas figaro
Re: Randomly rotate image on page load? File under: Image Manipulation WOT
239306 by: Jay Blanchard
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 ---
João Cândido de Souza Neto wrote:
I add c:\php and c:\php\ext in path but nothing work.
That wasn't the suggestion.
Where is the libmysql.dll file located?
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
It's in c:\php\ext
"Chris" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> João Cândido de Souza Neto wrote:
>> I add c:\php and c:\php\ext in path but nothing work.
>
>
> That wasn't the suggestion.
>
> Where is the libmysql.dll file located?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
On Monday 10 July 2006 09:31, Peter Lauri wrote:
> [snip]
> 1. Do not store images in a database, it is just a bad idea from a
> performance perspective (as has been covered many times heretofore).
> [/snip]
>
> Is that really the case? Is this not depending on the application? :) My
> application will never grow, and I can easily just change the file storage
> procedure by changing in my file storage class if a change will be
> necessary.
>
> /Peter
The process of loading a script that then loads a database driver and makes an
SQL call to retrieve a bitstream and set the correct header and then print
the bitstream is slower than the process of sending a URL to the browser
which can then make a simple HTTP request against a static file. Always.
There may be other reasons you'd want to store binary data in an SQL database,
but it will always be a performance hit over just passing a normal file that
can be streamed right off the disk to the server's NIC.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
This one time, at band camp, "Jay Blanchard" <[EMAIL PROTECTED]> wrote:
> 1. Do not store images in a database, it is just a bad idea from a
> performance perspective (as has been covered many times heretofore).
rubbish, has been proven other wise, you are quoting old wives tales
Please provide benchmarks to back this.
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
This one time, at band camp, Austin Denyer <[EMAIL PROTECTED]> wrote:
> It is generally accepted that storing things like that in a database is
> a Bad Thing. Much better to store the images as files and store the
> path in the database.
Storing paths and databases in slower than just storing images in the db
or simnply storing them on the server. You are making a db request and a
file system request. Rather than a single request to the db.
What is a file system if not a database?
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]> wrote:
> There may be other reasons you'd want to store binary data in an SQL
> database,
> but it will always be a performance hit over just passing a normal file that
> can be streamed right off the disk to the server's NIC.
How much of a performance hit?
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
This is an issue with the session not being closed properly on a redirect. IE
seems to be more bothered by this than Firefox, for reasons I don't quite
understand. The solution is to explicitly close the session yourself.
See:
http://www.php.net/manual/en/function.session-start.php#57875
http://www.php.net/session_write_close
And various other user comments.
On Monday 10 July 2006 10:55, Schalk wrote:
> Greetings All,
>
> Now that the parse error is fixed the login script works fine in FF but
> in IE it does not do the redirect. Is there a reason why this code may
> not work in IE? Is there a better way to do this?
>
> $_SESSION['email'] = $email;
> $_SESSION['memberpassword'] = md5($memberpassword);
> header("Location:
> http://demo.bdiverse.com/accessible/admin/listmypages.php");
> exit;
>
> Thanks!
>
> --
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.President
> Volume4.Business.Solution.Developers
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
Has anyone successfully compiled/used DBG debugger with OS X and
PHPEclipse ?
I am getting pretty cryptic compile errors as I am not a unix guru.
many thanks to the brighter folks who have been down this road.....
I have:
OS X 10.4.7
PHP 5.1.4 www.entropy.ch Release 5 (Universal Binary)
Eclipse 3.1
PHPEclipse [newest update from within Eclipse]
I downloaded dbg-cli-2.13.1-src and.....
./configure appears to finish without errors
'make' produces the below erros
make all-recursive
Making all in pcre
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLINK_SIZE=2 -
DPOSIX_MALLOC_THRESHOLD=10 -g -O2 -c chartables.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLINK_SIZE=2 -
DPOSIX_MALLOC_THRESHOLD=10 -g -O2 -c pcre.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLINK_SIZE=2 -
DPOSIX_MALLOC_THRESHOLD=10 -g -O2 -c pcreposix.c
rm -f libpcre_1.a
ar cru libpcre_1.a chartables.o pcre.o pcreposix.o
ranlib libpcre_1.a
Making all in dbgbase
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../pcre -I../ -DDBG_USE_STDALLOCA -
g -O2 -c dbg_net.c
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../pcre -I../ -DDBG_USE_STDALLOCA -
g -O2 -c DbgSess.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../pcre -I../ -DDBG_USE_STDALLOCA -
g -O2 -c DbgSpawn.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../pcre -I../ -DDBG_USE_STDALLOCA -
g -O2 -c ListenerBase.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../pcre -I../ -DDBG_USE_STDALLOCA -
g -O2 -c dbgbase_globals.cpp
dbgbase_globals.cpp: In function 'int dbh_check_new_client_connect
(int, sockaddr*, int)':
dbgbase_globals.cpp:709: error: invalid conversion from 'int*' to
'socklen_t*'
dbgbase_globals.cpp:709: error: initializing argument 3 of 'int accept
(int, sockaddr*, socklen_t*)'
make[2]: *** [dbgbase_globals.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
Some have suggested that you are supposed to roll your own PHP from
source.
As I am using Marc Lyniages Entropy PHP package 5.1.4, does anyone
recommend the correct PHP tar to download for DBG
any help is appreciated
--- End Message ---
--- Begin Message ---
At 11:28 AM -0700 7/10/06, Micky Hulse wrote:
>tedd wrote:
>>Not as I see it. The first definition in the dictionary is seldom the only
>>"correct" definition.
>
>Good point...
>
>Not to be contrary, but:
>
>What about when you are speaking in terms of computers, and specifically
>images? Seems like if the subject is "images on the computer", "rotation"
>falls more closely to "rotating on an axis" and not "changing of images".
In other words, "in context" -- which is based upon your own experience and
perspective of the topic.
Nothing wrong with that as long as you realize that others have different
equally founded perspectives and opinions, even when talking about the same
topic.
For example, when someone is talking to me about computers, the web, and
images, then I think about images being placed somewhere on a web page. If
someone mentions rotation, I think of banners, slide-shows, rollovers, and
other such image manipulations. I don't think of cw or ccw rotations per angle.
On my web site, in the top left corner you will see a tree. The tree image
changes as per my local seasons (summer, fall, winter, spring, which
incidentally was the name of the Indian Princes in the Howdy Doody Show, but
that dates me). I wrote code to rotate the images as per the season, thus my
perspective of image rotation. My diction of the term "rotation" in this sense
is perfectly proper.
However, if someone mentions transformations, then I immediately think of
matrices and image rotation. Different keywords illicit different perspectives.
That's what makes all of this interesting.
>Now, in terms of a slide-show, rotation makes some sense, but IMHO I think
>word is improperly used.
As the old lady said, as she kissed the cow "To each their own." :-)
tedd
--
------------------------------------------------------------------------------------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
At 1:36 PM -0500 7/10/06, Jay Blanchard wrote:
>The other day I saw a temporary road construction sign that said "Slow
>Men Working" and it gave me pause....
I had the same pause when I read "Slow Children Playing". I wondered if this
was due to the fact that over 60 percent of our children are overweight.
>The word 'rotation' is being improperly used, because when one swaps
>images he or she does not turn them on their sides,...
I don't think its use is as improper as is your definition -- rotation does not
mean "turn them on their sides" -- that would limit rotations to 90 degrees. :-)
An image rotation of one degree (or even less) would still be an image rotation.
>Image swapping is a much better term, but not really....as swapping
>would indicate a trade of some sort
Image swapping sounds like something that many neighborhoods tried in the 70's
-- but, that lead to numerous divorces.
>Replacement is about as good as swap.
Hmmmm... I wonder how the term "Replacement Meet" would catch on? Oh, but wait,
we're talking about the net -- so how would "Image Replacement" fit with:
http://mezzoblue.com/tests/revised-image-replacement/
I wonder if the css group would look at this solution from the same perspective?
>Do you pre-heat your oven?
George Carlin -- I love his quotes.
Of course, one of my favorites -- As Oscar Wilde once said when confronted by a
challenge for duel. "Sir, considering that you made the challenge, I get the
choice of weapon -- and I choose grammar."
>This is exactly why one should always comment their code.
On this we agree. :-)
Forgive me for being argumentative, but the term "rotation" does have a double
meaning in this context and both meanings are correct.
tedd
--
------------------------------------------------------------------------------------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
tedd wrote:
You make a great points.
As the old lady said, as she kissed the cow "To each their own." :-)
Sounds good to me. Like you said, things like this are very interesting.
Nice site btw. I really like the simplicity of the logo, and very cool
idea to make the tree change with the seasons. :)
Thanks for your input.
Thanks all for shedding some light on the topic. I am excited to try
some unique and different things with PHP image manipulation capabilities.
Cheers,
Micky
--- End Message ---
--- Begin Message ---
At 7:29 PM -0700 7/10/06, Micky Hulse wrote:
>tedd wrote:
>
>You make a great points.
>
>>As the old lady said, as she kissed the cow "To each their own." :-)
>
>Sounds good to me. Like you said, things like this are very interesting.
>
>Nice site btw. I really like the simplicity of the logo, and very cool idea to
>make the tree change with the seasons. :)
>
>Thanks for your input.
>
>Thanks all for shedding some light on the topic. I am excited to try some
>unique and different things with PHP image manipulation capabilities.
>
>Cheers,
>Micky
Mickey:
Thank you very much for the kind words -- they are sparse around these parts.
In any event, if you have any more questions, please feel free to post them.
The people who attend this list really do know what they're talking about (when
it comes to php) and they will spend the time to help. All in all, a good group.
Contact me off-list -- what kinds of image manipulations are you trying?
tedd
--
------------------------------------------------------------------------------------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
At 3:38 PM -0400 7/10/06, Dallas Cahker wrote:
>Banging my head against a wall with arrays, maybe someone can help me with
>the answer.
>
>I have a db query that returns results from 1-100 or more.
>I want to put the results into an array and pull them out elsewhere.
>I want them to be pulled out in an orderly and expected fashion.
Dallas:
Place the sorting on MySQL -- it has great ways of providing data for you.
Perhaps this link might help:
http://www.weberdev.com/get_example-4270.html
tedd
--
------------------------------------------------------------------------------------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
Hi,
Have any of you used Zend Platform? Did/Do you like it?
I'm trying to evaluate it for my company, and it definitely does the
things I need (Session Clustering and caching) and alot of what I want
(Error management, mass configuration changes), but I was hoping someone
may be able to relate some experiences with it (good or bad).
Any help would be appreciated.
Chris
--- End Message ---
--- Begin Message ---
Well, if that's the pattern, you can search for >'%< and return
anything between this and >%'<; if you can use PCRE try something like
if ( preg_match('/'%(.+?)%'/X', $str, $matches) ) {
echo $matches[1];
}
Now, if the expression can only have: upper-case letters, numbers & "-",
then use "/'%([-A-Z0-9]+)%'/X" instead of "/'%(.+?)%'/X"
weetat wrote:
Hi all ,
I am using PHP 4.3.2 , MYSQL database and Red Hat Entreprise OS.
I have the SQL statement which store in $str variable as shown below :
How to get the '%WS-X5225R%' from $str variable ?
$str = " SELECT DISTINCT(tbl_chassis.serial_no),tbl_card.card_model, ";
"tbl_chassis.host_name,tbl_chassis.chasis_model,tbl_chassis.country,";
"tbl_chassis.city,tbl_chassis.building,
"tbl_chassis.other,tbl_chassis.status,tbl_chassis.chasis_eos,tbl_chassis.chasis_eol,tbl_chassis.chasis_user_field_1,tbl_chassis.chasis_user_field_2,tbl_chassis.chasis_user_field_3"
"from tbl_chassis tbl_chassis,tbl_card tbl_card "
"WHERE tbl_chassis.serial_no = tbl_card.serial_no AND
tbl_card.card_model LIKE'%WS-X5225R%'";
thanks
--
Atentamente / Sincerely,
J. Rafael Salazar Magaña
--- End Message ---
--- Begin Message ---
> On some machines, on some OSes, in some configurations, with some
> commands, tacking "&" onto the end of what you exec, will sometimes
> "work"...
Sadly, in even Linux, this will not work. PHP blocks on the call.
I've even tried to call out to a shell script which in turn uses & to call a
command.
Nope.
I wish PHP would add threading. We write enterprise level products with PHP,
and we end up using DBUS and letting Ruby do all the "real work".
--- End Message ---
--- Begin Message ---
I am using apache 2.0.50 and php 4.4.3RC2 as mod (on Mandrake 10.1).
When I run this script:
<? echo "$previous"; ?>
in cli php, i give 'Undefined variable' error message - OK.
But under apache, this variable has value 'N'. Is it error ?
I found nothing about $previous variable in php.ini and php config
directories.
Thanks
Roman
--- End Message ---
--- Begin Message ---
Hello there,
I can't figure out why there are some headers set while i don't set them myself.
The following headers are sent to the browser.
-Expires: Thu, 19 Nov 1981 08:52:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
-Pragma: no-cache
All those i didn't set my self.
Does PHP set these or something?
Thx in advanced.
--- End Message ---
--- Begin Message ---
Mathijs wrote:
> Hello there,
>
> I can't figure out why there are some headers set while i don't set them
> myself.
>
> The following headers are sent to the browser.
> -Expires: Thu, 19 Nov 1981 08:52:00 GMT
> -Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> -Pragma: no-cache
>
> All those i didn't set my self.
>
> Does PHP set these or something?
maybe it was php (check your session settings and read the relevant parts of
the manual
regarding session related headers)
maybe it was a piece of 3rd party code.
may it was 'something' ;-)
most likely it's the session extension doing this.
>
> Thx in advanced.
>
--- End Message ---
--- Begin Message ---
Jochem Maas wrote:
Mathijs wrote:
Hello there,
I can't figure out why there are some headers set while i don't set them
myself.
The following headers are sent to the browser.
-Expires: Thu, 19 Nov 1981 08:52:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
-Pragma: no-cache
All those i didn't set my self.
Does PHP set these or something?
maybe it was php (check your session settings and read the relevant parts of
the manual
regarding session related headers)
maybe it was a piece of 3rd party code.
may it was 'something' ;-)
most likely it's the session extension doing this.
And you are right again :).
Thanks again.
This was a real pain in the ass.
Because IE didn't sent the If-Last-Modified and/or if-none-match if one of
those headers are sent.
Thank you.
Thx in advanced.
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0628-1, 07-10-2006
Tested on: 07-11-2006 11:53:48
avast! - copyright (c) 1988-2006 ALWIL Software.
http://www.avast.com
--- End Message ---
--- Begin Message ---
Mathijs wrote:
> Mathijs wrote:
>> Jochem Maas wrote:
>>> Mathijs wrote:
>>>> Hello there,
>>>>
>>>> I can't figure out why there are some headers set while i don't set
>>>> them
>>>> myself.
>>>>
>>>> The following headers are sent to the browser.
>>>> -Expires: Thu, 19 Nov 1981 08:52:00 GMT
>>>> -Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
>>>> pre-check=0
>>>> -Pragma: no-cache
>>>>
>>>> All those i didn't set my self.
>>>>
>>>> Does PHP set these or something?
>>>
>>> maybe it was php (check your session settings and read the relevant
>>> parts of the manual
>>> regarding session related headers)
>>>
>>> maybe it was a piece of 3rd party code.
>>>
>>> may it was 'something' ;-)
>>>
>>> most likely it's the session extension doing this.
>>>
>>
>> And you are right again :).
>> Thanks again.
>>
>> This was a real pain in the ass.
>> Because IE didn't sent the If-Last-Modified and/or if-none-match if
>> one of those headers are sent.
>>
>> Thank you.
>>
>>
>>>> Thx in advanced.
>>>>
>>
>
> Well it seems its working kinda.
>
> Now i have a problem with the ETag.
what are you using this header for?
> Internet Explorer seems to forget this when the content is compressed.
> This because of the Vary header apparently.
>
> Is there a fix for this?
> Or a workaround?
yes. but your no longer in the realm of php (I believe)
this is something you should tackle at the webserver configuration level...
on one of the machines I run the (main) site has this in the config (its
apache):
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \/image\.php no-gzip dont-vary
# Also don't compress PDF and Flash-files 17-01-2004 MM
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.swf$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
now I'm not saying these settings will work for you - the site in question
runs behind an instance of Squid configured as a reverse caching proxy - which
complicates matters somewhat - but it might give you an idea.
>
> Thx.
>
>
>
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 0628-1, 07-10-2006
> Tested on: 07-11-2006 13:33:12
> avast! - copyright (c) 1988-2006 ALWIL Software.
> http://www.avast.com
>
>
>
--- End Message ---
--- Begin Message ---
Jochem Maas wrote:
Mathijs wrote:
Mathijs wrote:
Jochem Maas wrote:
Mathijs wrote:
Hello there,
I can't figure out why there are some headers set while i don't set
them
myself.
The following headers are sent to the browser.
-Expires: Thu, 19 Nov 1981 08:52:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
-Pragma: no-cache
All those i didn't set my self.
Does PHP set these or something?
maybe it was php (check your session settings and read the relevant
parts of the manual
regarding session related headers)
maybe it was a piece of 3rd party code.
may it was 'something' ;-)
most likely it's the session extension doing this.
And you are right again :).
Thanks again.
This was a real pain in the ass.
Because IE didn't sent the If-Last-Modified and/or if-none-match if
one of those headers are sent.
Thank you.
Thx in advanced.
Well it seems its working kinda.
Now i have a problem with the ETag.
what are you using this header for?
I Use this header to check if the content of a file has changed.
This because the content can be variable. But is static most of the time.
I Compute an MD5 of the content, and add this to the ETag.
Normally a browser sends an HTTP_IF_NONE_MATCH back if it has an ETag.
If this gets send back, i compare them and if they are the same, they get en
304 Not Modified back.
Now Internet Explorer doesn't send this back when the content has been
compressed (gz_handler).
This because the Vary header has been set or something.
This is a bug in IE, and probably fixed in IE7.
Internet Explorer seems to forget this when the content is compressed.
This because of the Vary header apparently.
Is there a fix for this?
Or a workaround?
yes. but your no longer in the realm of php (I believe)
this is something you should tackle at the webserver configuration level...
on one of the machines I run the (main) site has this in the config (its
apache):
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \/image\.php no-gzip dont-vary
# Also don't compress PDF and Flash-files 17-01-2004 MM
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.swf$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
now I'm not saying these settings will work for you - the site in question
runs behind an instance of Squid configured as a reverse caching proxy - which
complicates matters somewhat - but it might give you an idea.
I have checked this also, and it came up with nothing. :(.
It now seems that i have to check if i am dealing with Internet Explorer or not
within PHP.
And then if it is IE i don't compress the content.
Anyway,
Thank you very much for your help :).
If you have any idea's left :D.
Kind Regards,
Mathijs.
Thx.
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0628-1, 07-10-2006
Tested on: 07-11-2006 13:33:12
avast! - copyright (c) 1988-2006 ALWIL Software.
http://www.avast.com
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] schrieb:
your big love, ;-)
Well PHP is good .... but is it that good?
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
I have a problem when installing php. I have tried with different
versions of apache (2.0.55 and 2.0.58) and php (5.1.4 and 5.1.2).
The problem still there (Same error in different versions)!!!
Note that I had installed apache 2.0.58 and php 5.1.4 before on this
server. Problems began when tried to add -with-pspell --with-openssl at
configure. ( I installed aspell). When I tried it, i was no able to
install php again.
Any ideas or workarrounds will be appreciated.
Complete Information:
Configure:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gettext
--with-pgsql --enable-trac k-vars --enable-force-cgi-redirect
--with-mime-magic -with-pspell --with-openssl
Server: CentOS release 4.3 (Final)
2.6.9-34.0.1.ELsmp
/usr/local/src/php-5.1.2$ make install
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la
/usr/local/apache2/modules/
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a
ranlib /usr/local/apache2/modules/libphp5.a
chmod 644 /usr/local/apache2/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/usr/local/src/php-5.1.2/libs'
Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: no se puede acceder a «/usr/local/apache2/modules/libphp5.so»: No
existe el fichero o el directorio
apxs:Error: Command failed with rc=65536
Thanks in advance,
Ruben Rubio
--- End Message ---
--- Begin Message ---
Dear ALL,
I've an binary file with special (non-printable) characters including '<'
'/' & '>'. I retrieve this file from the database, into a variable
$binaryFILE.
I then copy the content to a temporary file, opened with handle $handle :
if (!fwrite($handle, $binaryFILE)) {
echo "Failed to copy $bname...";
}
else
{
echo "Success";
}
The file copies to a file on the filesystem correctly. However, if I try to
print out the characters of this file on a browser, using
echo $binaryFILE;
the output isn't the same. The characters '<' and '>' and anything included
within is not printed.
I tried printing line by line, using:
$binaryMS = explode("",$binaryMMS);
foreach ($binaryFILE as $ii)
{
echo $ii;
}
However, no change in result.
Do I print character by character? I shall appreciate any pointers on this
problem.
Many Thanks
Antonio
--- End Message ---
--- Begin Message ---
Antonio Bassinger wrote:
> Dear ALL,
>
> I've an binary file with special (non-printable) characters including '<'
> '/' & '>'. I retrieve this file from the database, into a variable
those 3 chars are not non-printable (the fact that I see them in this email is
proof enough.
> $binaryFILE.
>
> I then copy the content to a temporary file, opened with handle $handle :
>
>
> if (!fwrite($handle, $binaryFILE)) {
> echo "Failed to copy $bname...";
> }
> else
> {
> echo "Success";
> }
>
> The file copies to a file on the filesystem correctly. However, if I try to
> print out the characters of this file on a browser, using
>
> echo $binaryFILE;
>
> the output isn't the same. The characters '<' and '>' and anything included
> within is not printed.
>
> I tried printing line by line, using:
>
> $binaryMS = explode("",$binaryMMS);
> foreach ($binaryFILE as $ii)
> {
> echo $ii;
> }
>
> However, no change in result.
>
> Do I print character by character? I shall appreciate any pointers on this
> problem.
either do 'view source' in your browser or pass the string through the
htmlentities()
function - the reason you don't see stuff in between the LT and GT chars has to
do
with the markup used for HTML tags .... think about it for a second :-)
>
> Many Thanks
> Antonio
>
--- End Message ---
--- Begin Message ---
Antonio Bassinger a écrit :
Dear ALL,
I've an binary file with special (non-printable) characters including '<'
'/' & '>'. I retrieve this file from the database, into a variable
$binaryFILE.
$binaryMS = explode("",$binaryMMS);
foreach ($binaryFILE as $ii)
{
echo $ii;
try this :
echo htmlspecialchars($ii);
N F
}
However, no change in result.
Do I print character by character? I shall appreciate any pointers on
this
problem.
Many Thanks
Antonio
--- End Message ---
--- Begin Message ---
[snip]
One could even say that the slides were rotated. :-)
[/snip]
LOL at the Carousel reference.....but if we are still splitting hairs I
owned a Bell & Howell Slide Cube projector. Slides were stacked into
cubes and dropped into place. And anyway, the Carousel rotated, not the
slides. The slides were merely passengers and IIRC had to be placed into
said carousel upside down and backwards.
Wow.
--- End Message ---