php-general Digest 24 Sep 2004 09:18:33 -0000 Issue 3014
Topics (messages 197733 through 197761):
Re: Any idea how this is done?
197733 by: Marek Kilimajer
197742 by: Mag
197743 by: Curt Zirzow
Wrong php.ini being read at my hosting account
197734 by: missshus
197738 by: Jason Wong
197760 by: Chris Dowell
Re: PDF from PHP generated HTML, possible?
197735 by: Graham Cossey
197736 by: Brad Pauly
Re: converting from name - id and PHP not seeing it?
197737 by: Jason Giangrande
Disappearing POST variables with large values
197739 by: AdamsHC
Re: Apache 2 and php 5 compatibility
197740 by: Jordi Canals
Re: PHP 4.3.8 and Turck MMCache compatibility
197741 by: raditha dissanayake
197749 by: Binay
197752 by: Bostjan Skufca . domenca.com
197753 by: Binay
197754 by: raditha dissanayake
197757 by: Bostjan Skufca . domenca.si
197759 by: Binay
197761 by: Bostjan Skufca . domenca.com
Missing $_POST data from a Outlook Express email form
197744 by: Eric Wood
197745 by: Curt Zirzow
opensource php compiler
197746 by: C.F. Scheidecker Antunes
Can you help ?
197747 by: Dave Carrera
Re: configure --with-xsl & getting error
197748 by: Christian Stocker
197750 by: Gerrit P. Haase
PHP as CGI or Module
197751 by: Binay
197755 by: raditha dissanayake
197758 by: Binay
Re: Thumbnails and access denied.
197756 by: James Smith
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 ---
Marek Kilimajer wrote:
He also has an option to thumb an image, where you
click on the image and a rectangle appears, then when
you accept it, it cuts the image exactly according to
the rectangle....I am not too familier with
imagemagik..is this easy to do?
DHTML should be able to do this.
I just checked it, it's DHTML, but it's crapy in Mozilla
--- End Message ---
--- Begin Message ---
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> Mag wrote:
> > Hi,
> > I was just looking at the demo of Comus Thumbs at
> >
> > http://nibbi.net/scripts/comus_thumbs.php
> >
> > and I see he has an option there to
> > lighted/darken/sharpen/resize/thumb images
> dynamically
> > on the page (the image gets lightened etc without
> > reloading the page....) any idea how? its listed
> that
> > he is using imagemagik.
>
> Without reloading? It must be IE's filter extension
> to css.
>
> >
> > He also has an option to thumb an image, where you
> > click on the image and a rectangle appears, then
> when
> > you accept it, it cuts the image exactly according
> to
> > the rectangle....I am not too familier with
> > imagemagik..is this easy to do?
>
> DHTML should be able to do this.
>
Hey,
You are right, sucks badly in Mozalla.
Also, can you tell me which IE filter to css you are
talking about? googleing tells me there are quite a
few of them :-(
Thanks,
Mag
=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
--- End Message ---
--- Begin Message ---
* Thus wrote Mag:
>
> --- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
>
> > Mag wrote:
> > > Hi,
> > > I was just looking at the demo of Comus Thumbs at
> > >
> > > http://nibbi.net/scripts/comus_thumbs.php
> > >
> > > and I see he has an option there to
> > > lighted/darken/sharpen/resize/thumb images
> > dynamically
> > > on the page (the image gets lightened etc without
> > > reloading the page....) any idea how? its listed
> > that
> > > he is using imagemagik.
> >
> > Without reloading? It must be IE's filter extension
> > to css.
> >
> Hey,
>
> Also, can you tell me which IE filter to css you are
> talking about? googleing tells me there are quite a
> few of them :-(
I'm not sure what is meant by filter extension to css, but all this
app does is: img.onClick, opens a new window (arghh) to apply a
brightness on file located on the remote server. The main
img.onMouseOver and img.onMouseOout re-loads the modified image
via img.src.
Curt
--
The above comments may offend you. flame at will.
--- End Message ---
--- Begin Message ---
When I log into my hosting account I have access to the official phpinfo()
script and it shows certain extensions (like mbstring for example) as
available, but they are not available to my scripts. Every time I try to
use them I get "Call to undefined function" errors. At first I just avoided
those extensions but now I really need the mbstring extension so I started
looking for solutions to this problem. I realized that my phpinfo() script
gives a different output than the official one, and I think it's because
it's showing a different path to php.ini. My script shows /usr/local/lib as
its php.ini path and the official one shows /etc/php4/apache. So, after
reading some of the older messages on this list I tried putting "SetEnv
PHPRC /etc/php4/apache" in my .htaccess file. Then, my script was showing
that as its php.ini path but it was obvious it was still giving the same
output.
I also remember (from the archives) someone else said his phpinfo() was
showing the same path, but he said there was no php.ini file at
/usr/local/lib on his system. And all I remember from his thread is that
php is probably just using the default settings and showing /usr/local/lib
as its path. I don't know if there is a php.ini on their system at that
path or not, all I want to do is use the extension the hosting company is
showing as available in it's phpinfo() script. I've tried contacting them,
but they have given me some really stupid answers (free hosting, that's
kind of what I expected).
I think it's also important to point out that this it the first time I've
opened a hosting account so I'm not really sure if this is their problem or
mine. Shouldn't both phpinfo() scripts give the same results?
Any help would be really appreciated.
--- End Message ---
--- Begin Message ---
On Thursday 23 September 2004 02:20, missshus wrote:
[snip]
> I think it's also important to point out that this it the first time I've
> opened a hosting account so I'm not really sure if this is their problem or
> mine. Shouldn't both phpinfo() scripts give the same results?
The output from the phpinfo() that you run on _your_ website/webspace is the
definitive reference to what functions/modules you have access to.
Not sure what you can do about it seeing it's free hosting.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Immutability, Three Rules of:
(1) If a tarpaulin can flap, it will.
(2) If a small boy can get dirty, he will.
(3) If a teenager can go out, he will.
*/
--- End Message ---
--- Begin Message ---
I think you really need to contact your hosting company and berate them
for lying to you.
Like Jason says, the definitive list is from *your* php_info(), not the
hosting companies - you might like to send them copies of both and ask
them to explain the differences.
Cheers
Chris
missshus wrote:
When I log into my hosting account I have access to the official phpinfo()
script and it shows certain extensions (like mbstring for example) as
available, but they are not available to my scripts. Every time I try to
use them I get "Call to undefined function" errors. At first I just avoided
those extensions but now I really need the mbstring extension so I started
looking for solutions to this problem. I realized that my phpinfo() script
gives a different output than the official one, and I think it's because
it's showing a different path to php.ini. My script shows /usr/local/lib as
its php.ini path and the official one shows /etc/php4/apache. So, after
reading some of the older messages on this list I tried putting "SetEnv
PHPRC /etc/php4/apache" in my .htaccess file. Then, my script was showing
that as its php.ini path but it was obvious it was still giving the same
output.
I also remember (from the archives) someone else said his phpinfo() was
showing the same path, but he said there was no php.ini file at
/usr/local/lib on his system. And all I remember from his thread is that
php is probably just using the default settings and showing /usr/local/lib
as its path. I don't know if there is a php.ini on their system at that
path or not, all I want to do is use the extension the hosting company is
showing as available in it's phpinfo() script. I've tried contacting them,
but they have given me some really stupid answers (free hosting, that's
kind of what I expected).
I think it's also important to point out that this it the first time I've
opened a hosting account so I'm not really sure if this is their problem or
mine. Shouldn't both phpinfo() scripts give the same results?
Any help would be really appreciated.
--- End Message ---
--- Begin Message ---
Thanks to all, this is indeed most enlightening for me as I've only been
using PHP for about 6 months. The output buffering and saving of generated
HTML pages (using a hashed name) could be very beneficial, saving hundreds
of quite lengthy MySQL queries each day.
Brad: When you say "a hash of the query string" do you mean passing the
variable part of the URL thru mhash to obtain a hash/key/digest or whatever
you wish to call it? If so, do you recommend any particular hash, ie MD5,
GOST or TIGER? Not knowing much about these things, I imagine passing the
same text thru a given hash algorithm multiple times will always return the
same result.
So:
Requested URL
http://server/app/page1.php?cust=12345&t=3
Variable part hashed
page1.php?cust=12345&t=3 > hash > mdg4789gnvh095n
If the following URL exists use it, otherwise do processing, get buffer and
write to this file.
http://server/app/static/mdg4789gnvh095n.html
If PDF of page requested:
Send the current URL (http://server/app/static/mdg4789gnvh095n.html) through
pdf-o-matic or similar.
Is that about right?
Many thanks
Great list !!
Graham
-----Original Message-----
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: 23 September 2004 17:17
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: PDF from PHP generated HTML, possible?
On Thu, 23 Sep 2004 16:25:27 +0100, Graham Cossey
<[EMAIL PROTECTED]> wrote:
> That's fine for static pages, my question was regarding dynamic pages that
I
> did not wish to pass through the database querying again.
>
> I understand that if my dynamic page is
> http://server/app/page1.php?cust=12345&t=3 I can supply that URL which
will
> result in HTML that can be processed by (for example) pdf-o-matic.
However,
> as I've already run all the queries necessary I would like to not have to
> run them all again when requesting the PDF.
At the beginning of your page1.php script (and any others that you
want to cache as html and pdf) you could check to see if you have
created cached version of the page, if so, redirect to that page. If
not, use output buffering and save the generated content to a file.
Run that file through the pdf-o-matic to create the pdf version. You
could name the file by creating a hash of the query string and any
other variable that affects the dynamic content of that page (for
example, session variables). So the original request might look like
your example.
http://server/app/page1.php?cust=12345&t=3
Which, if it has a cached html version would redirect to a different
URL before any of your queries are executed.
http://server/html/<hash-of-your-variables>.html
Or, for the pdf version.
http://server/pdf/<hash-of-your-variables>.pdf
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Thu, 23 Sep 2004 22:39:06 +0100, Graham Cossey
<[EMAIL PROTECTED]> wrote:
>
> Brad: When you say "a hash of the query string" do you mean passing the
> variable part of the URL thru mhash to obtain a hash/key/digest or whatever
> you wish to call it? If so, do you recommend any particular hash, ie MD5,
> GOST or TIGER? Not knowing much about these things, I imagine passing the
> same text thru a given hash algorithm multiple times will always return the
> same result.
I tend to use md5, but the other hash functions ought to work too. I
don't know about GOST and TIGER, but I know php has support for SHA1
and another that I don't remember at the moment.
> So:
>
> Requested URL
> http://server/app/page1.php?cust=12345&t=3
>
> Variable part hashed
> page1.php?cust=12345&t=3 > hash > mdg4789gnvh095n
>
> If the following URL exists use it, otherwise do processing, get buffer and
> write to this file.
> http://server/app/static/mdg4789gnvh095n.html
Yep. I would check for the file (or whatever mechanism you use to
store the cache) instead of the URL. You could write a class or a few
functions that could do this check for you based on the hash.
> If PDF of page requested:
> Send the current URL (http://server/app/static/mdg4789gnvh095n.html) through
> pdf-o-matic or similar.
You might consider creating the pdf version at the same time you
create the html. I depends on how your app works. Can you request a
pdf before you reque
> Is that about right?
Yep. I think you've got it.
> Many thanks
No problem =)
- Brad
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
I jsut finished converting my pages to be W3C compliant...
One of the recuring 'errors' I had was my form elements were all using the
'name' atrtribute...
apparently, this is bad, and I was suggested to switch them ti use the
'id' attribute...
all good, I did that, but for some reason, when I post that info to
another page, it's not carried over...
name works fine, id does not...
Am I being a tool?
What am I supposed to use...?
I use $_POST[variable] in my code..., so I tried just $variable... that
failed too...?
Thoughts?
Tris...
The name attribute on forms is not usually needed, and I have used the
id attribute before and they work fine. Do you have names on each
input, select, or any of the other form elements you may have? Use
these to extract the form information, and it should work just fine.
--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com
--- End Message ---
--- Begin Message ---
As I had found lots of people having problems with disappearing POST
variables I believe this note will be usefull for part of them.
If you get a situation, that larger POST variables disappear from $_POST
array, but everything is OK with small ones; and you had compiled PHP with
hardened flag on. Do not forget to change the value of
"varfilter.max_value_length" in php.ini (default 1000) to fit your needs!
As I never had used hardened earlier it took 2 days to find out such simple
thing!!
--- End Message ---
--- Begin Message ---
On Thu, 23 Sep 2004 10:33:54 +0200, Bostjan Skufca @ domenca.com
> We use php4 and php5 with apache2 on production servers without any problem
> (prefork MPM).
I also have PHP 5 and Apache 2 running on some servers, as I need some
Apache Modules that are only available for Apache 2 ... Also, I ran
before PHP 4.3.5 and upper with Apache 2 and never got any problem.
This is some notes found in the PHP readme file found in the Windows
binaries for PHP 5.0.1:
PHP and Apache 2.0.x compatibility notes: The following versions of
PHP are known to work with the most recent version of Apache 2.0.x:
* PHP 4.3.0 or later available at http://www.php.net/downloads.php.
* the latest stable development version. Get the source code
http://snaps.php.net/php4-latest.tar.gz or download binaries for
Windows http://snaps.php.net/win32/php4-win32-latest.zip.
* a prerelease version downloadable from http://qa.php.net/.
* you have always the option to obtain PHP through anonymous CVS.
These versions of PHP are compatible to Apache 2.0.40 and later.
Apache 2.0 SAPI-support started with PHP 4.2.0. PHP 4.2.3 works
with Apache 2.0.39, don't use any other version of Apache with PHP
4.2.3. However, the recommended setup is to use PHP 4.3.0 or later
with the most recent version of Apache2.
All mentioned versions of PHP will work still with Apache 1.3.x.
--- End Message ---
--- Begin Message ---
Binay wrote:
Hi
Does any one have idea about the compatibility of Turck MMcache with PHP 4.3.8. It was
working well with 4.3.3 and ever since i have upgraded to 4.3.8 it stopped. I
recompiled Turck MMcache for new version of PHP also but no luck.
They work together. Make sure the mmcache.so goes to the right location.
I will bet that make install didn't copy it
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--- End Message ---
--- Begin Message ---
Hi
I don't need everything i.e encoder, optimizer, accelerator etc. What i need
is Loader which can decode the encoded files .
I followed the instruction for installing the Turck loader but its not
working on 4.3.8 . It was working on 4.3.3.
I don know where m i doing wrong .
Please help me out.
Thanks
Binay
----- Original Message -----
From: "raditha dissanayake" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 6:41 AM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> Binay wrote:
>
> >Hi
> >
> >Does any one have idea about the compatibility of Turck MMcache with PHP
4.3.8. It was working well with 4.3.3 and ever since i have upgraded to
4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP also but
no luck.
> >
> >
> >
> They work together. Make sure the mmcache.so goes to the right location.
> I will bet that make install didn't copy it
>
>
> --
> Raditha Dissanayake.
> ------------------------------------------------------------------------
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress bar.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does not
work as cgi though - as page states)
lp,
Bostjan
On Friday 24 of September 2004 08:29, Binay wrote:
> Hi
>
> I don't need everything i.e encoder, optimizer, accelerator etc. What i
> need is Loader which can decode the encoded files .
>
> I followed the instruction for installing the Turck loader but its not
> working on 4.3.8 . It was working on 4.3.3.
>
> I don know where m i doing wrong .
>
> Please help me out.
>
> Thanks
> Binay
> ----- Original Message -----
> From: "raditha dissanayake" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, September 24, 2004 6:41 AM
> Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
>
> > Binay wrote:
> > >Hi
> > >
> > >Does any one have idea about the compatibility of Turck MMcache with PHP
>
> 4.3.8. It was working well with 4.3.3 and ever since i have upgraded to
> 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP also
> but no luck.
>
> > They work together. Make sure the mmcache.so goes to the right location.
> > I will bet that make install didn't copy it
> >
> >
> > --
> > Raditha Dissanayake.
> > ------------------------------------------------------------------------
> > http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> > Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> > Graphical User Inteface. Just 128 KB | with progress bar.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
So how to check whether php is installled as Apache module or CGI mode?
Thanks
----- Original Message -----
From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 12:30 PM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does
not
> work as cgi though - as page states)
>
> lp,
> Bostjan
>
>
> On Friday 24 of September 2004 08:29, Binay wrote:
> > Hi
> >
> > I don't need everything i.e encoder, optimizer, accelerator etc. What i
> > need is Loader which can decode the encoded files .
> >
> > I followed the instruction for installing the Turck loader but its not
> > working on 4.3.8 . It was working on 4.3.3.
> >
> > I don know where m i doing wrong .
> >
> > Please help me out.
> >
> > Thanks
> > Binay
> > ----- Original Message -----
> > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, September 24, 2004 6:41 AM
> > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> >
> > > Binay wrote:
> > > >Hi
> > > >
> > > >Does any one have idea about the compatibility of Turck MMcache with
PHP
> >
> > 4.3.8. It was working well with 4.3.3 and ever since i have upgraded to
> > 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP also
> > but no luck.
> >
> > > They work together. Make sure the mmcache.so goes to the right
location.
> > > I will bet that make install didn't copy it
> > >
> > >
> > > --
> > > Raditha Dissanayake.
> >
> ------------------------------------------------------------------------
> > > http://www.radinks.com/sftp/ |
http://www.raditha.com/megaupload
> > > Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> > > Graphical User Inteface. Just 128 KB | with progress bar.
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Binay wrote:
So how to check whether php is installled as Apache module or CGI mode?
phpinfo();
Did you try out what I said in my reply to your Original Post?
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--- End Message ---
--- Begin Message ---
Look at phpinfo() output.
Search for
Server API Apache 2.0 Handler
or
Server API Apache 2.0 Filter
or something about apachehook(s)
All above means it is installed as module
If you find something refering to CGI then it is installed as CGI (and not
$_SERVER, Apache environment and loaded modules)
lp,
B
On Friday 24 of September 2004 09:01, Binay wrote:
> So how to check whether php is installled as Apache module or CGI mode?
>
> Thanks
> ----- Original Message -----
> From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 24, 2004 12:30 PM
> Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
>
> > It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does
>
> not
>
> > work as cgi though - as page states)
> >
> > lp,
> > Bostjan
> >
> > On Friday 24 of September 2004 08:29, Binay wrote:
> > > Hi
> > >
> > > I don't need everything i.e encoder, optimizer, accelerator etc. What i
> > > need is Loader which can decode the encoded files .
> > >
> > > I followed the instruction for installing the Turck loader but its not
> > > working on 4.3.8 . It was working on 4.3.3.
> > >
> > > I don know where m i doing wrong .
> > >
> > > Please help me out.
> > >
> > > Thanks
> > > Binay
> > > ----- Original Message -----
> > > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Friday, September 24, 2004 6:41 AM
> > > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> > >
> > > > Binay wrote:
> > > > >Hi
> > > > >
> > > > >Does any one have idea about the compatibility of Turck MMcache with
>
> PHP
>
> > > 4.3.8. It was working well with 4.3.3 and ever since i have upgraded to
> > > 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP
> > > also but no luck.
> > >
> > > > They work together. Make sure the mmcache.so goes to the right
>
> location.
>
> > > > I will bet that make install didn't copy it
> > > >
> > > >
> > > > --
> > > > Raditha Dissanayake.
> >
> > ------------------------------------------------------------------------
> >
> > > > http://www.radinks.com/sftp/ |
>
> http://www.raditha.com/megaupload
>
> > > > Lean and mean Secure FTP applet with | Mega Upload - PHP file
> > > > uploader Graphical User Inteface. Just 128 KB | with progress bar.
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
correct....
It show Server API CGI.
So does it mean PHP is installed as CGI and not the apache module?
Thanks
Binay
----- Original Message -----
From: "Bostjan Skufca @ domenca.si" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 1:21 PM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> Look at phpinfo() output.
>
> Search for
> Server API Apache 2.0 Handler
>
> or
> Server API Apache 2.0 Filter
>
> or something about apachehook(s)
> All above means it is installed as module
>
> If you find something refering to CGI then it is installed as CGI (and not
> $_SERVER, Apache environment and loaded modules)
>
> lp,
> B
>
> On Friday 24 of September 2004 09:01, Binay wrote:
> > So how to check whether php is installled as Apache module or CGI mode?
> >
> > Thanks
> > ----- Original Message -----
> > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, September 24, 2004 12:30 PM
> > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> >
> > > It works on php 4.3.8 and 4.3.9 fine (as server module it does, it
does
> >
> > not
> >
> > > work as cgi though - as page states)
> > >
> > > lp,
> > > Bostjan
> > >
> > > On Friday 24 of September 2004 08:29, Binay wrote:
> > > > Hi
> > > >
> > > > I don't need everything i.e encoder, optimizer, accelerator etc.
What i
> > > > need is Loader which can decode the encoded files .
> > > >
> > > > I followed the instruction for installing the Turck loader but its
not
> > > > working on 4.3.8 . It was working on 4.3.3.
> > > >
> > > > I don know where m i doing wrong .
> > > >
> > > > Please help me out.
> > > >
> > > > Thanks
> > > > Binay
> > > > ----- Original Message -----
> > > > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Friday, September 24, 2004 6:41 AM
> > > > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> > > >
> > > > > Binay wrote:
> > > > > >Hi
> > > > > >
> > > > > >Does any one have idea about the compatibility of Turck MMcache
with
> >
> > PHP
> >
> > > > 4.3.8. It was working well with 4.3.3 and ever since i have upgraded
to
> > > > 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP
> > > > also but no luck.
> > > >
> > > > > They work together. Make sure the mmcache.so goes to the right
> >
> > location.
> >
> > > > > I will bet that make install didn't copy it
> > > > >
> > > > >
> > > > > --
> > > > > Raditha Dissanayake.
> > >
> >
> ------------------------------------------------------------------------
> > >
> > > > > http://www.radinks.com/sftp/ |
> >
> > http://www.raditha.com/megaupload
> >
> > > > > Lean and mean Secure FTP applet with | Mega Upload - PHP file
> > > > > uploader Graphical User Inteface. Just 128 KB | with progress bar.
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Well,
it could hardly mean that it is installed as sapi wouldn't it?
On Friday 24 of September 2004 10:19, Binay wrote:
> correct....
>
> It show Server API CGI.
>
> So does it mean PHP is installed as CGI and not the apache module?
>
> Thanks
> Binay
> ----- Original Message -----
> From: "Bostjan Skufca @ domenca.si" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 24, 2004 1:21 PM
> Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
>
> > Look at phpinfo() output.
> >
> > Search for
> > Server API Apache 2.0 Handler
> >
> > or
> > Server API Apache 2.0 Filter
> >
> > or something about apachehook(s)
> > All above means it is installed as module
> >
> > If you find something refering to CGI then it is installed as CGI (and
> > not $_SERVER, Apache environment and loaded modules)
> >
> > lp,
> > B
> >
> > On Friday 24 of September 2004 09:01, Binay wrote:
> > > So how to check whether php is installled as Apache module or CGI
> > > mode?
> > >
> > > Thanks
> > > ----- Original Message -----
> > > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, September 24, 2004 12:30 PM
> > > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> > >
> > > > It works on php 4.3.8 and 4.3.9 fine (as server module it does, it
>
> does
>
> > > not
> > >
> > > > work as cgi though - as page states)
> > > >
> > > > lp,
> > > > Bostjan
> > > >
> > > > On Friday 24 of September 2004 08:29, Binay wrote:
> > > > > Hi
> > > > >
> > > > > I don't need everything i.e encoder, optimizer, accelerator etc.
>
> What i
>
> > > > > need is Loader which can decode the encoded files .
> > > > >
> > > > > I followed the instruction for installing the Turck loader but its
>
> not
>
> > > > > working on 4.3.8 . It was working on 4.3.3.
> > > > >
> > > > > I don know where m i doing wrong .
> > > > >
> > > > > Please help me out.
> > > > >
> > > > > Thanks
> > > > > Binay
> > > > > ----- Original Message -----
> > > > > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > > > > Cc: <[EMAIL PROTECTED]>
> > > > > Sent: Friday, September 24, 2004 6:41 AM
> > > > > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> > > > >
> > > > > > Binay wrote:
> > > > > > >Hi
> > > > > > >
> > > > > > >Does any one have idea about the compatibility of Turck MMcache
>
> with
>
> > > PHP
> > >
> > > > > 4.3.8. It was working well with 4.3.3 and ever since i have
> > > > > upgraded
>
> to
>
> > > > > 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP
> > > > > also but no luck.
> > > > >
> > > > > > They work together. Make sure the mmcache.so goes to the right
> > >
> > > location.
> > >
> > > > > > I will bet that make install didn't copy it
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Raditha Dissanayake.
> >
> > ------------------------------------------------------------------------
> >
> > > > > > http://www.radinks.com/sftp/ |
> > >
> > > http://www.raditha.com/megaupload
> > >
> > > > > > Lean and mean Secure FTP applet with | Mega Upload - PHP file
> > > > > > uploader Graphical User Inteface. Just 128 KB | with progress
> > > > > > bar.
> > > > > >
> > > > > > --
> > > > > > PHP General Mailing List (http://www.php.net/)
> > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
--
Best regards,
Bostjan Skufca
system administrator
Domenca d.o.o.
Phone: +386 4 5835444
Fax: +386 4 5831999
http://www.domenca.com
--- End Message ---
--- Begin Message ---
This is bizarre. I send html forms (web orders) to my email client. From
there I plug in extra info and submit it to a php script which launches IE
or Firefox to see the results of the submit (writing data back to the
ecommerce site).
This used to work all the time and now nothing is POSTed.
if(trim($_POST["order_id"])=="") {
echo "<html><head></head><body>Error Modifying Order - Incomplete POST
in formation from Email Client - Something is Broken!"
phpinfo();
echo "</body></html>";
die;
}
Nothing posts. This happens on all both my Windows machines - patched and
unpatched. It's like some security setting is filtering posted data that
originates in email rather than a true web browser. Uggh! But if I pull up
the same form in browser - the POST happens fine. Just not from email
anymore.
Did something cripple Outlook Express? I even tried Thunderbird with same
missing data problem.
I'm at my wits end on this one.
-eric wood
--- End Message ---
--- Begin Message ---
* Thus wrote Eric Wood:
> This is bizarre. I send html forms (web orders) to my email client. From
> there I plug in extra info and submit it to a php script which launches IE
> or Firefox to see the results of the submit (writing data back to the
> ecommerce site).
>
>...
>
> Did something cripple Outlook Express? I even tried Thunderbird with same
> missing data problem.
Email clients are not web browsers.. simply provide a link like:
http://server.com/showorder?id=1234
Curt
--
The above comments may offend you. flame at will.
--- End Message ---
--- Begin Message ---
Hello all,
There's a compiler called Roadsend which gives you the ability to
compile php scripts into binaries executables.
That is nice but I wonder if there would be any other compiler that
would do the job and be opensource.
Does anyone know anything about it or could point me to resources about it?
Thanks,
C.F.
--- End Message ---
--- Begin Message ---
Hi List,
Apologies First:
I am sorry if this post is in any way or perceived as a spam post, it is NOT
my intention.
Message:
I am a lone developer based in West London, UK, who is looking for like
minded Php / MySql developers based in West London, UK.
Why? Well currently I am involved with a National Expansion of a local
company I have been working with for the last 12 years and my main role is
to source a suitable software solution for their needs.
Because of time constraints I will not be able to finish my Php / MySql web
app in time to be used with this company but I genuinely believe that the
project I am developing has large appeal in a niche marketplace.
What I am looking for is 1 or 2 developers who would like to partner with me
to speed up the development of this project and share in any fiscal rewards
gained.
What you need.
1) Some spare time to commit to this project
2) A good and provable grasp of Php / MySql / css /
3) be prepared to sign a confidentiality contract
4) a good sense of humour and a liking for beer :-)
What I offer.
1) an equal and legally binding share in the partnership
2) upto 3 hosting accounts for upto 3 domains you may have for free
3) a good sense of humour and a liking for beer :-)
So if your from West London, UK, and are curious or would like to meet up to
discuss this further please reply to me off list and lets talk.
Once again I apologise to the list if this is spam but it was the best way I
could think off to look for people for this project.
Yours Truly
Dave Carrera
--
UK Web Hosting @ http://www.ephgroup.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.768 / Virus Database: 515 - Release Date: 22/09/2004
--- End Message ---
--- Begin Message ---
Ever thought of reporting a bug to http://bugs.php.net instead of
trolling around here?
But I don't think, it's a bug, because --with-dom is enabled by
default, so there must something else wrong with your configuration.
There's actually no --with-dom option at all, just --without-dom..
Check the configure output, what it reports about libxml, dom etc.
chregu
On Thu, 23 Sep 2004 20:12:39 +0200, Gerrit P. Haase <[EMAIL PROTECTED]> wrote:
> Hello Mikey,
>
> > Have you tried doing "make clean" first?
>
> That is not the point.
>
> The point is that it is a bug that configure is exiting because
> I define --enable-xyz when the xyz dependency is not available instead
> of to disable the extension and continue the configury. And it is a
> bug that configure is doing nothing about wrong definitions as in my
> case, where xsl requires dom to be build and there is no warning if
> you define with-xsl but not enable-dom, nor does it define enable-dom
> by itself for the average dummy user that I am proud to be.
>
> The configury of this package is buggy but they state that they are
> proud to have abandoned automake, I don't wonder that it was
> neccessary to do so because there seems to care nobody about improving
> this system.
>
> I need to define a hundred flags to configure instead of saying
> --enable-all=shared or s.th. similar to get all possible shared
> modules to be compiled.
>
>
>
>
> Gerrit
> --
> =^..^=
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB
--- End Message ---
--- Begin Message ---
Christian Stocker wrote:
Ever thought of reporting a bug to http://bugs.php.net instead of
trolling around here?
But I don't think, it's a bug, because --with-dom is enabled by
default, so there must something else wrong with your configuration.
There's actually no --with-dom option at all, just --without-dom..
Check the configure output, what it reports about libxml, dom etc.
It works well if I define
--with-dom=shared \
--enable-dom=shared \
and if you don't believe me, then try it yourself instead of starting to
flame.
And please keep this on the list *only* and send no personal replies to
my private mail account.
Gerrit
--- End Message ---
--- Begin Message ---
Hi
How to check whether PHP is installed as CGI or Apache module?
Thanks
Binay
--- End Message ---
--- Begin Message ---
Binay wrote:
Hi
How to check whether PHP is installed as CGI or Apache module?
Thanks
Binay
I assume this is a spin of from your thread on turck mmcache. I am
pretty sure you have not read the mmcache docs or searched for google
on this. Because there are countless articles on installing turck. To
cut a long story short you should compile php with --disbable-cgi to use
turck. Please google next time before posting.
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--- End Message ---
--- Begin Message ---
Hi,
I knew that Turck does not work in CGI mode. But didn't find it worth
checking cuz earlier it was working and my administrator said he only
upgraded the php and did nothing. So i presumed that PHP is still running as
apache module only.
But when after lotttsss of hair pulling couldn't make turck run with 4.3.8 ,
finally decided to check type (mode) of PHP installation. I m sorry for
convience caused.
Thanks
Binay
----- Original Message -----
From: "raditha dissanayake" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 1:40 PM
Subject: Re: [PHP] PHP as CGI or Module
> Binay wrote:
>
> >Hi
> >
> >How to check whether PHP is installed as CGI or Apache module?
> >
> >Thanks
> >Binay
> >
> >
> I assume this is a spin of from your thread on turck mmcache. I am
> pretty sure you have not read the mmcache docs or searched for google
> on this. Because there are countless articles on installing turck. To
> cut a long story short you should compile php with --disbable-cgi to use
> turck. Please google next time before posting.
>
>
>
> --
> Raditha Dissanayake.
> ------------------------------------------------------------------------
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress bar.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
James Smith wrote:
Hi,
I'm having a problem with loading a page full of thumbnails.
I'm useing this to load each thumbnail.
header("Content-type: image/jpeg");
readfile ($dir."/thumbs/".$filename);
but, if your connection to the server is too fast (eg, your on a lan
or the same ISP with broadband) the server will display a hand full of
them and then the rest won't display, and then if you try to load
another page within a couple of seconds, the server gives you the 403
page "Access Denied".
But, when I load a page full of thumbnails that are direct links to
the files it's fine. but when useing this script to read it seems to
make the server pass-out momentarily. give it half a minute and it
will server pages again.
I have watched the server's CPU useage and memory (as it loads) and
all seems fine.
I have noticed that the problem goes if you run a squid proxy on the
same box and it doesn't have trouble for people with slower connection
eg. dial up modem.
Anyone have any ideas what could be set wrong? buffer size maybe? do I
have to close this function off at all?
Any help much appriciated, I've been scraching my head on this for a
couple of months now.
J.
btw - I have asked on the apache conf newsgroup with no luck.
Ok, I've noticed that this happens with other Broadband ISP's, but only
when they are not using a proxy. Install a proxy and it works. Anyone
have any idea on where I might be able to find a setting or something...
the site is http://www.digitalsnapper.net
J.
--- End Message ---