[PHP] Disable Soap Client and Soap Server in php5

2007-05-09 Thread Don Don
How can i disable soap client and server for php5, reason is that i've got 
NuSOAP (which i must use) and its classes clash with that of PHP5.  My php 
configuration (when using phpinfo() displays soap client and server enabled 
for php5.  I need to disable if ..amd looking into the configs..to see how

cheers

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

RE: [PHP] Disable Soap Client and Soap Server in php5

2007-05-09 Thread Brad Fuller
Don Don wrote:
 How can i disable soap client and server for php5, reason is
 that i've got NuSOAP (which i must use) and its classes clash
 with that of PHP5.  My php configuration (when using
 phpinfo() displays soap client and server enabled for php5.
  I need to disable if ..amd looking into the configs..to see how
 
 cheers

I also use NuSOAP with PHP5, all I did is edit nusoap.php and rename the
class soapclient to soap_client.

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



RE: [PHP] Disable Soap Client and Soap Server in php5

2007-05-09 Thread Richard Lynch


On Wed, May 9, 2007 8:27 am, Brad Fuller wrote:
 Don Don wrote:
 How can i disable soap client and server for php5, reason is
 that i've got NuSOAP (which i must use) and its classes clash
 with that of PHP5.  My php configuration (when using
 phpinfo() displays soap client and server enabled for php5.
  I need to disable if ..amd looking into the configs..to see how

 cheers

 I also use NuSOAP with PHP5, all I did is edit nusoap.php and rename
 the
 class soapclient to soap_client.

It depends how smart apt-get is gonna be, but you might try:
uninstall soap
uninstall php
re-install php FIRST
re-install SOAP

Since PHP will think SOAP was not there, it won't add in the PHP SOAP
stuff.

If apt-get is smart and figures out that you wanted SOAP + PHP
because you already have PHP, you have no choice but to compile from
source and choose what you want, instead of taking whatever apt-get
feels like giving you.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] Disable all caching

2006-10-11 Thread tedd

At 11:17 AM -0400 10/10/06, Benjamin Adams wrote:

I have a php (ver 4.x) script that is being cached.
I have placed:
META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
but the page is still being cached.  I'm not sure if its apache or 
the php.  How can I disable all caching?

is there something I can set in php.ini?

(Mac OS X Server)

Thanks

Ben


Ben:

I use this:

?php # nocache.php
// this script prevents all caching

// expires on any past date
header (Expires: Mon, 26 Jul 1997 05:00: GMT);

// last modified at current date and time
header (Last-Modified:  . gmdate(D, d M Y H:i:s) . GMT);

// for HTTP 1.1:
header (Cache-Control: no-store, no-cache, must-revalidate);
header (Cache-Control: post-check=0, pre-check=0, false);

// for HTTP 1.0
header (Pragma: no-cache);
?

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



[PHP] Disable all caching

2006-10-10 Thread Benjamin Adams

I have a php (ver 4.x) script that is being cached.
I have placed:
META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
but the page is still being cached.  I'm not sure if its apache or  
the php.  How can I disable all caching?

is there something I can set in php.ini?

(Mac OS X Server)

Thanks

Ben

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



Re: [PHP] Disable all caching

2006-10-10 Thread Andrew Brampton
Caching occurs client side (ie in the webbrowser) not by apache or php 
unless you have setup something especially to do so...

How are you testing that something stays cached?

There is also a HTTP header you can make your PHP send to ask the page not 
to be cached.
Looking at this page: http://uk2.php.net/header and googling for no cache 
will help.


Andrew

- Original Message - 
From: Benjamin Adams [EMAIL PROTECTED]

To: php php php-general@lists.php.net
Sent: Tuesday, October 10, 2006 4:17 PM
Subject: [PHP] Disable all caching



I have a php (ver 4.x) script that is being cached.
I have placed:
META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
but the page is still being cached.  I'm not sure if its apache or  the 
php.  How can I disable all caching?

is there something I can set in php.ini?

(Mac OS X Server)

Thanks

Ben

--
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



RE: [PHP] Disable all caching

2006-10-10 Thread Brad Fuller
 I have a php (ver 4.x) script that is being cached.
 I have placed:
 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
 but the page is still being cached.  I'm not sure if its apache or  the 
 php.  How can I disable all caching?
 is there something I can set in php.ini?

 (Mac OS X Server)

 Thanks

 Ben

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

 

Try adding this to your php page

code

if(!strpos(strtolower($_SERVER[HTTP_USER_AGENT]), msie) === FALSE) {
   header(HTTP/1.x 205 OK);
} else {
   header(HTTP/1.x 200 OK);
}   
header(Pragma: no-cache);
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-cache, cachehack=.time());
header(Cache-Control: no-store, must-revalidate);
header(Cache-Control: post-check=-1, pre-check=-1, false);

/code

Hope that helps,

Brad

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



Re: [PHP] Disable all caching

2006-10-10 Thread Richard Lynch
On Tue, October 10, 2006 10:17 am, Benjamin Adams wrote:
 I have a php (ver 4.x) script that is being cached.
 I have placed:
 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
 but the page is still being cached.  I'm not sure if its apache or
 the php.  How can I disable all caching?
 is there something I can set in php.ini?

All the headers and all the META tags in the world won't get EVERY
browser and EVERY caching / proxy server (AOHell) to stop caching.

If you really truly absolutely MUST have no caching at all, generate
random/unique URLs for your content.

img src=/images/phpscript/nocache=?php echo
mt_rand()?/whatever.jpg /

phpscript can be ForceType'd to readfile whatever.jpg (or to
fopen/fread/echo if your JPGs are large) and the nocache will
guarantee the browser won't cache it.

More precisely, the browser WILL cache it, but you send the browser a
new URL every time, so it renders the cached item useless.

Maybe if the browser-makers actually honored the no-cache headers they
keep making up out of thin air, I would feel bad about wasting their
cache like this.  But they don't, so I don't.

You need the .jpg at the end for IE to do the right thing.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



RE: [PHP] Disable all caching

2006-10-10 Thread Kristen G. Thorson
 -Original Message-
 From: Brad Fuller [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 10, 2006 12:55 PM
 To: php-general@lists.php.net
 Subject: RE: [PHP] Disable all caching
 
  I have a php (ver 4.x) script that is being cached.
  I have placed:
  META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE
  but the page is still being cached.  I'm not sure if its apache or
the
  php.  How can I disable all caching?
  is there something I can set in php.ini?
 
  (Mac OS X Server)
 
  Thanks
 
  Ben
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 Try adding this to your php page
 
 code
 
 if(!strpos(strtolower($_SERVER[HTTP_USER_AGENT]), msie) === FALSE) {
header(HTTP/1.x 205 OK);
 } else {
header(HTTP/1.x 200 OK);
 }
 header(Pragma: no-cache);
 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
 header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
 header(Cache-Control: no-cache, cachehack=.time());
 header(Cache-Control: no-store, must-revalidate);
 header(Cache-Control: post-check=-1, pre-check=-1, false);


I've seen a lot of people do this, so I have to comment.  The last
Cache-Control header REPLACES any other Cache-Control headers set
previously unless you specify not to.

http://us2.php.net/manual/en/function.header.php

The header 

Cache-Control: no-cache, cachehack=time()

will never be sent because the second one replaces it.  The third one
uses the second argument to specify that it should not replace the
existing one.  Of those three Cache-Control lines, only two will even be
sent to the browser.

Cache-Control: no-store, must-revalidate
Cache-Control: post-check=-1, pre-check=-1


kgt

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



[PHP] disable safe_mode with .htaccess ?

2005-09-05 Thread Wong HoWang
Hello everyone,

I have a special question and want to ask here, hope anyone can answer me.

My server is Apache/1.3.33 with PHP/4.3.10
I have AllowOverride All in my httpd.conf and safe_mode = On in php.ini , I 
want to turn off safe_mode in one folder by .htaccess , is it possiable? I 
don't want to make changes to my httpd.conf or php.ini because that is a 
productive server and shouldn't restart it.

Please help, thank you!

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



Re: [PHP] disable safe_mode with .htaccess ?

2005-09-05 Thread Rory Browne
By the looks of things you can't. 

safe_mode changability is set to PHP_INI_SYSTEM

You may be able to put a Directory ... type setting into the
httpd.conf file, and have apache re-read its config file by sending it
a USR1 signal.

As it is a production server you may want to test this on a dev server first:

On 9/5/05, Wong HoWang [EMAIL PROTECTED] wrote:
 Hello everyone,
 
 I have a special question and want to ask here, hope anyone can answer me.
 
 My server is Apache/1.3.33 with PHP/4.3.10
 I have AllowOverride All in my httpd.conf and safe_mode = On in php.ini , I
 want to turn off safe_mode in one folder by .htaccess , is it possiable? I
 don't want to make changes to my httpd.conf or php.ini because that is a
 productive server and shouldn't restart it.
 
 Please help, thank you!
 
 --
 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



Re: [PHP] --disable-url-fopen-wrapper gone?

2004-10-06 Thread Paul Fierro
On 10/05/2004 12:03 PM, Marten Lehmann [EMAIL PROTECTED] wrote:

 Hello,
 
 one account of a user on our webserver was compromised using a feature
 of fopen to load external sources. As of the documentation, there shall
 be a configure option called --disable-url-fopen-wrapper.
 Unfortunately, this option doesn't seem to exist in 4.3.9. How can I set
 a default for allow_url_fopen during the compilation? Or is the only way
 to set
 
 allow_url_fopen=0
 
 in the master php.ini?

As of PHP 4.3.5, I believe the only way to change allow_url_fopen is via
php.ini or httpd.conf. AFAICT, --disable-url-fopen-wrapper disappeared in
PHP 4.0.4.

Paul

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



[PHP] --disable-url-fopen-wrapper gone?

2004-10-05 Thread Marten Lehmann
Hello,
one account of a user on our webserver was compromised using a feature 
of fopen to load external sources. As of the documentation, there shall 
be a configure option called --disable-url-fopen-wrapper. 
Unfortunately, this option doesn't seem to exist in 4.3.9. How can I set 
a default for allow_url_fopen during the compilation? Or is the only way 
to set

allow_url_fopen=0
in the master php.ini?
Regards
Marten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] disable notice errors

2003-08-29 Thread fatih olcer
how to disable notice error output 


i have set error_reporting = 2039 (in PHP.ini);
but it doesnt work.i still get notice :Undefined index..

RH9,PHP4
thanks for help.

fatih.

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



Re: [PHP] disable notice errors

2003-08-29 Thread Pete James
You have two solutions, one of which is better.

A. Fix the problem, and define your indexes.
B. Set error_reporting  =  E_ALL  ~E_NOTICE
I'd strongly recommend doing A before B, as PHP doesn't carp for the 
sake of carping.

fatih olcer wrote:
how to disable notice error output 

i have set error_reporting = 2039 (in PHP.ini);
but it doesnt work.i still get notice :Undefined index..
RH9,PHP4
thanks for help.
fatih.

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


Re: [PHP] disable notice errors

2003-08-29 Thread Ernest E Vogelsinger
At 20:56 29.08.2002, fatih olcer said:
[snip]
how to disable notice error output 


i have set error_reporting = 2039 (in PHP.ini);
but it doesnt work.i still get notice :Undefined index..
[snip] 

as a third method, you can explicitly disable warnings and errors for a
single command using the '@' modifier. 

This is widely unknown but a very handy feature: having excessive
error_reporting turned on [error_reporting(E_ALL)] helps a lot in spotting
down possible problems in your code, but again there are numerous locations
where e.g. array keys might be there, or not. You could either use
array_key_exists(), or the @ modifier to suppress the warning.

Example:
// this will raise a warning
$test = $array['nonexisting_key'];

// this avoids array access if the key is not set,
// OTOH the receiving variable might be undefined
if (array_key_exists('nonexisting_key', $array))
$test = $array['nonexisting_key'];

// this is a simple, elegant, and even self-documenting solution
$test = @$array['nonexisting_key'];


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/

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



[PHP] Disable pic copy/save?

2003-01-23 Thread Anthony Rodriguez
Hi!

A client wants to test market two versions of an advertising but wants to 
disable the users' ability to copy/save the ads (right click, copy/save).

How can this be done in PHP?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])




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



Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Jason Wong
On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:
 Hi!

 A client wants to test market two versions of an advertising but wants to
 disable the users' ability to copy/save the ads (right click, copy/save).

 How can this be done in PHP?

It can't be done, period. You need to get the data to the browser for it to be 
displayed. Once it's on the user's browser a determined user will be able to 
save whatever it is that's being displayed.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
It is wrong always, everywhere and for everyone to believe anything upon
insufficient evidence.
- W. K. Clifford, British philosopher, circa 1876
*/


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




RE: [PHP] Disable pic copy/save?

2003-01-23 Thread Clarkson, Nick

This cannt be done in PHP. You would have to use something like Flash or
Java - which is a lot of effort. The best you can do is disable right click
using javascript, but that's easy to circumvent. Because everything's
displayed client side, then a user could go into their Temporary Internet
Files folder and find it in their anyway. Even using Flash or Java, if
someone was determined to grab the individual images, then screenshots and
an app to rebuild gifs would be easy to do. Unless of course they are full
blown Flash ads, which would be harder to 'rip'. Why would a user want to
save an advert anyway ? I don't believe I've ever saved an advert graphic -
in fact I quite often resort to banner blocking, because some sites in
particular go OTT on their use.

Nick


-Original Message-
From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2003 09:52
To: [EMAIL PROTECTED]
Subject: [PHP] Disable pic copy/save?


Hi!

A client wants to test market two versions of an advertising but wants to 
disable the users' ability to copy/save the ads (right click, copy/save).

How can this be done in PHP?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])




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


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.


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




Re: [PHP] Disable pic copy/save?

2003-01-23 Thread af
Not true -- you can use JavaScript to catch right-click events and do something 
creative with them, or disable them entirely.

But that, of course, is a client-side scripting issue, which has nothing to do with 
server-side languages such as PHP.

Cheers,
Alex



 On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:

  Hi!
 
  A client wants to test market two versions of an advertising but wants to
  disable the users' ability to copy/save the ads (right click, copy/save).
 
  How can this be done in PHP?
 
 It can't be done, period. You need to get the data to the browser for it to be 
 displayed. Once it's on the user's browser a determined user will be able to 
 save whatever it is that's being displayed.
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 
 /*
 It is wrong always, everywhere and for everyone to believe anything upon
 insufficient evidence.
 - W. K. Clifford, British philosopher, circa 1876
 */

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




Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Martin Hudec
H it might be done by checking which mouse button is pressed using 
javascript :) but i think this works only in Iexplore ;)...i used such code 
on my webpageit shows only copyright etcanyway user does not need to 
rightclik and save if he knows where is his browser cache located.

Martin


On Thursday 23 January 2003 10:57 am, Jason Wong wrote:
 On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:
  Hi!
 
  A client wants to test market two versions of an advertising but wants to
  disable the users' ability to copy/save the ads (right click, copy/save).
 
  How can this be done in PHP?

 It can't be done, period. You need to get the data to the browser for it to
 be displayed. Once it's on the user's browser a determined user will be
 able to save whatever it is that's being displayed.


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




Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Negrea Mihai
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

There is no client side solution. The only one I see is serverside: to put a 
text on the image, a bit transparent so that it does not affect very much the 
image but it can't be used.


- -- 
Negrea Mihai
http://www.negrea.net

On Thursday 23 January 2003 12:17, Martin Hudec wrote:
 H it might be done by checking which mouse button is pressed using
 javascript :) but i think this works only in Iexplore ;)...i used such code
 on my webpageit shows only copyright etcanyway user does not need
 to rightclik and save if he knows where is his browser cache located.

 Martin

 On Thursday 23 January 2003 10:57 am, Jason Wong wrote:
  On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:
   Hi!
  
   A client wants to test market two versions of an advertising but wants
   to disable the users' ability to copy/save the ads (right click,
   copy/save).
  
   How can this be done in PHP?
 
  It can't be done, period. You need to get the data to the browser for it
  to be displayed. Once it's on the user's browser a determined user will
  be able to save whatever it is that's being displayed.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+L8M98hhhNOp8KlQRAgZ8AJsFU+rVYUep9IB/EDzG6XpSyyrsCwCgvE+Z
S4pfbI10n0sqjf8buSZ3p9Y=
=ADeG
-END PGP SIGNATURE-


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




Re: [PHP] Disable pic copy/save?

2003-01-23 Thread MH
If someone wants your pic, he will take it, even if Alt+Print Screen is the
last resort.  The best way is to watermark it with text to make it unusable,
but even with some patients this can be edited out if they want it badly
enough.

Mh

Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:
  Hi!
 
  A client wants to test market two versions of an advertising but wants
to
  disable the users' ability to copy/save the ads (right click,
copy/save).
 
  How can this be done in PHP?

 It can't be done, period. You need to get the data to the browser for it
to be
 displayed. Once it's on the user's browser a determined user will be able
to
 save whatever it is that's being displayed.

 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 It is wrong always, everywhere and for everyone to believe anything upon
 insufficient evidence.
 - W. K. Clifford, British philosopher, circa 1876
 */




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




RE: [PHP] Disable pic copy/save?

2003-01-23 Thread Uttam
alternate to right click is Shift-F10 in IE which i think can not be handled
by javascript.

uttam
-Original Message-
From: Martin Hudec [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 15:47
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Disable pic copy/save?


H it might be done by checking which mouse button is pressed using
javascript :) but i think this works only in Iexplore ;)...i used such
code
on my webpageit shows only copyright etcanyway user does not
need to
rightclik and save if he knows where is his browser cache located.

Martin


On Thursday 23 January 2003 10:57 am, Jason Wong wrote:
 On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:
  Hi!
 
  A client wants to test market two versions of an advertising but
wants to
  disable the users' ability to copy/save the ads (right click,
copy/save).
 
  How can this be done in PHP?

 It can't be done, period. You need to get the data to the browser for
it to
 be displayed. Once it's on the user's browser a determined user will
be
 able to save whatever it is that's being displayed.



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




RE: [PHP] Disable session cookies

2002-12-21 Thread ed

 I'm guessing then that it's possible to use only server side sessions
and use trans_id then if you need to store values throughout a site? 

Ed


On Fri, 20 Dec 2002, John W. Holmes wrote:

  Is there any way to disable using cookies in sessions? I haven't found
 a
  good
  reason to do this, only my boss's predisposition against cookies ;).
 
 Yep, session.use_cookies setting in php.ini. Set it to zero to not use
 cookies. 
 
 ---John W. Holmes...
 
 PHP Architect - A monthly magazine for PHP Professionals. Get your copy
 today. http://www.phparch.com/
 
 
 
 -- 
 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




RE: [PHP] Disable session cookies

2002-12-21 Thread John W. Holmes
  I'm guessing then that it's possible to use only server side sessions
 and use trans_id then if you need to store values throughout a site?

Well, session are always server side, but, yes, basically. PHP must be
compiled correctly so you can enable trans_sid.

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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




[PHP] Disable session cookies

2002-12-20 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is there any way to disable using cookies in sessions? I haven't found a good 
reason to do this, only my boss's predisposition against cookies ;).

Thanks in advance,
Evan

- -- 
A leader is the wave pushed ahead by the ship.

- -Leo Nikolaevich Tolstoy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+A5nH/rncFku1MdIRAsc2AKCW7GNJo/h36g/sDuUf4RBgcd3uLQCeP1ET
OEoMuKLLQ42w2urky0wtGhU=
=kFkN
-END PGP SIGNATURE-


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




Re: [PHP] Disable session cookies

2002-12-20 Thread Evan Nemerson
Sorry about the double post- I got an error message (which i now realize was 
from a mirror), so i tried again.


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




RE: [PHP] Disable session cookies

2002-12-20 Thread John W. Holmes
 Is there any way to disable using cookies in sessions? I haven't found
a
 good
 reason to do this, only my boss's predisposition against cookies ;).

Yep, session.use_cookies setting in php.ini. Set it to zero to not use
cookies. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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




RE: [PHP] Disable refresh?

2002-12-02 Thread Ernest E Vogelsinger
At 02:41 02.12.2002, Martin Towell said:
[snip]
no, no way to disable and no variable to say a refresh happened

one way to get around it is to submit to the page that does the update, then
get that page to do a header(location...) to another page. When the user
refreshes, they'll only refresh the last page, and not the updating page.
[snip] 

This will not stop the user from hitting the Back button and refreshing
the form... What I do (and it works flawlessly) is to have a serial number
stored in the session data. This serial number, mirrored in form data as a
hidden field, is incremented with each klick the script receives. Thus the
code handling script input is able to determine if the form it just
received is the last form it generated (serial number matches), or is
outdated (serial number mismatches), for what reason ever, be it a refresh
or the user stepping back and resubmitting.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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




Re: [PHP] Disable refresh?

2002-12-02 Thread phpnew_bocket
you can use a session :

- start the session when the form is first sent
- destroy the session upon the first valid insert
- subsequent upadates will be prevented since the
session is destroyed..

usually multiple updates happens when the user hits
the submit button several times or upon refreshing the
page ... hence the session method should work fine

good luck !

--- Larry Brown [EMAIL PROTECTED]
wrote:
 Anyone know of a method of preventing a user from
 refreshing a page.  I get
 multiple updates with the same information in my
 database...
 
 Larry S. Brown
 Dimension Networks, Inc.
 (727) 723-8388
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


=
+--+
|Wana Know what ISLAM is all about ? |
+--+

visit :   http://www.sultan.org/#int

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: [PHP] Disable refresh?

2002-12-02 Thread Marek Kilimajer


Ernest E Vogelsinger wrote:


This will not stop the user from hitting the Back button and refreshing
the form... 

If the user wants it he can do it even with your method. My point is he 
don't do it unintentionally, so I
use just the Location method

 



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




[PHP] Disable refresh?

2002-12-01 Thread Larry Brown
Anyone know of a method of preventing a user from refreshing a page.  I get
multiple updates with the same information in my database...

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




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




RE: [PHP] Disable refresh?

2002-12-01 Thread Larry Brown
If not, is there a variable that provides information that a refresh
occurred to load the page?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 01, 2002 8:23 PM
To: PHP List
Subject: [PHP] Disable refresh?

Anyone know of a method of preventing a user from refreshing a page.  I get
multiple updates with the same information in my database...

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




--
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




RE: [PHP] Disable refresh?

2002-12-01 Thread Martin Towell
no, no way to disable and no variable to say a refresh happened

one way to get around it is to submit to the page that does the update, then
get that page to do a header(location...) to another page. When the user
refreshes, they'll only refresh the last page, and not the updating page.

HTH
Martin

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 12:33 PM
To: PHP List
Subject: RE: [PHP] Disable refresh?


If not, is there a variable that provides information that a refresh
occurred to load the page?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 01, 2002 8:23 PM
To: PHP List
Subject: [PHP] Disable refresh?

Anyone know of a method of preventing a user from refreshing a page.  I get
multiple updates with the same information in my database...

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




--
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




RE: [PHP] Disable refresh?

2002-12-01 Thread Larry Brown
Thanks guys this forum is going to get me in trouble.  It is so convenient I
keep asking questions too soon.  After submitting the amendment to the
original question I thought of the solution of setting a session variable
and then clearing it before and after the submittal page.  I'll work the
gray matter a little harder next time before asking.  Thanks again.


Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 01, 2002 8:58 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Disable refresh?

 Anyone know of a method of preventing a user from refreshing a page.  I
 get multiple updates with the same information in my database...

Hello!

You can prevent it multiple ways. Two common solution:

 - When creating form, add a unique id to it in a hidden field.
   After succesful insert put that id into a container table,
   what stores used ids. Before inserting, check the presence of
   that id in that container. You can make unique ids with
   php's uniquid() function, or if mod_unique_id compiled into
   Apache, you can use $_SERVER['UNIQUE_ID'] too. Store expire
   dates too with that ids to be able delete old ids with a
   cronjob.

 - Another way: this is easier, but not too elegant. After
   inserting data, send a location header to browser to
   redirect it from that form-processor page to an another.
   After that, refreshing affects that page.

Heilig (Cece) Szabolcs
[EMAIL PROTECTED] - http://phphost.hu




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




[PHP] disable html ?

2002-08-19 Thread Hawk

is there some way to disable html.. if someone posts a msg with /table
my entire layout messes up :)
I have no idea how to solve this, but it's messing with my brain, I tried
the htmlspecialchars, but that didn't help :/

Håkan



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




Re: [PHP] disable html ?

2002-08-19 Thread Justin French

php.net/striptags

Justin French



on 20/08/02 11:07 AM, Hawk ([EMAIL PROTECTED]) wrote:

 is there some way to disable html.. if someone posts a msg with /table
 my entire layout messes up :)
 I have no idea how to solve this, but it's messing with my brain, I tried
 the htmlspecialchars, but that didn't help :/
 
 Håkan
 
 


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




[PHP] disable ability to download image?

2002-06-18 Thread Steph

Is there a way to disable the users ability to download images on public
pages. Or is this a Javascript capability?

~Steph


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




RE: [PHP] disable ability to download image?

2002-06-18 Thread Bruce Karstedt

I've generally seen this done in JavaScript, by disabling the right mouse
button.

Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474


-Original Message-
From: Steph [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 4:14 PM
To: Php-General
Subject: [PHP] disable ability to download image?


Is there a way to disable the users ability to download images on public
pages. Or is this a Javascript capability?

~Steph


--
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




Re: [PHP] disable ability to download image?

2002-06-18 Thread Kevin Stone

No, and no.  Once served to the browser the image resides on the user's
computer.  They can do whatever they want with it.  The only thing you can
do is use Javascript to disable the user's right mouse button.  However the
only effect this will have is to piss of your Windows clients, and your Mac
clients won't be effected at all.

Is the a legitimate reason why you need to do this?  Maybe there's another
way around your problem.

-Kevin

- Original Message -
From: Steph [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 3:13 PM
Subject: [PHP] disable ability to download image?


 Is there a way to disable the users ability to download images on public
 pages. Or is this a Javascript capability?

 ~Steph


 --
 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




RE: [PHP] disable ability to download image?

2002-06-18 Thread John Holmes

No. Once you show the user the image, they can get it. You can make it
harder by disabling right click or whatever, but it's not going to stop
most people. The easiest way around all of that is to just click on the
image and drag it to the address bar. It gets around almost all of the
javascript nonsense. And if all else fails, a screen shot will work.

If you read the archives over the past day, there are ways of regulating
who can view the image, though, through a .php script regulating the
file transfer. 

Or, if you're simply looking for a way to stop people from hotlinking to
the picture, there are ways to handle that in .htacess and PHP. 

---John Holmes...

 -Original Message-
 From: Steph [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 18, 2002 5:14 PM
 To: Php-General
 Subject: [PHP] disable ability to download image?
 
 Is there a way to disable the users ability to download images on
public
 pages. Or is this a Javascript capability?
 
 ~Steph
 
 
 --
 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




RE: [PHP] disable ability to download image?

2002-06-18 Thread César Aracena

The only way I've found of doing this, is using thumbnails. Obviously it
doesn't serve all kinds of purposes, but no matter what kind of
protection you use, a user can simply Save Web Page and open the image
as local in the machine. The things about thumbnails, is that you show
the image but in smaller size, but when that same image is shown in
normal size, the user find a nice a refreshing watermark on top of it...
don't think it's useful? Check then www.corbis.com for a
demonstration...

 -Original Message-
 From: Steph [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 18, 2002 6:14 PM
 To: Php-General
 Subject: [PHP] disable ability to download image?
 
 Is there a way to disable the users ability to download images on
public
 pages. Or is this a Javascript capability?
 
 ~Steph
 
 
 --
 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




Re: [PHP] Disable Back Button

2001-10-19 Thread Richard S. Crawford

Can you imagine the trouble you'd get into if you could?

At 09:47 PM 10/19/2001, Chip Landwehr wrote:
Is there any way to do this in PHP4?


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is 
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!


--
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]




Re: [PHP] Disable Back Button

2001-10-19 Thread Chip Landwehr

lol!

True, so true...

Richard S. Crawford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can you imagine the trouble you'd get into if you could?

At 09:47 PM 10/19/2001, Chip Landwehr wrote:
Is there any way to do this in PHP4?


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
It is only with the heart that we see rightly; what is essential is
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!




-- 
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]




[PHP] disable?

2001-07-31 Thread Jeremy Morano

Hi,
I was wondering if there was any way to dissable something from the mouse
right click?
ex: When a user visits my site, I don't want them to be able to use the copy
shortcut on the right mouse click.
How would I do this?


-- 
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]




Re: [PHP] disable?

2001-07-31 Thread Daniel Rezny

Hello Jeremy,

Tuesday, July 31, 2001, 4:29:22 PM, you wrote:

JM Hi,
JM I was wondering if there was any way to dissable something from the mouse
JM right click?
JM ex: When a user visits my site, I don't want them to be able to use the copy
JM shortcut on the right mouse click.
JM How would I do this?



Just search a list. This thread was here short time ago.

-- 
Best regards,
 Danielmailto:[EMAIL PROTECTED]



-- 
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]




RE: [PHP] disable?

2001-07-31 Thread Jon Haworth

Don't bother.

Whatever you do (and it's usually a naff Javascript, search
javascript.internet.com or equivalents for examples), people can get round
it. You are wasting your time trying to stop this. If someone really wants
your content they can

- write it down
- take screenshots
- use a safe web browser such as the one at samspade.org
- use IE's view-source: feature
etc

If it's on the web, people can copy it. You have to live with that, I'm
afraid.

Cheers
Jon


-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: 31 July 2001 15:29
To: [EMAIL PROTECTED]
Subject: [PHP] disable?


Hi,
I was wondering if there was any way to dissable something from the mouse
right click?
ex: When a user visits my site, I don't want them to be able to use the copy
shortcut on the right mouse click.
How would I do this?

-- 
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]




Re: [PHP] disable compiler flag --enable-trans-sid at runtime

2001-05-14 Thread Holger Bhnke

 php_flag session.use_trans_sid off
 That may not be the correct syntax, but it should be close.

it is correct!
works perfectly

thanx Kirk


Johnson, Kirk [EMAIL PROTECTED] schrieb im Newsbeitrag 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have not done this, but this is what I would try. There is a setting in
php.ini, session.use_trans_sid, which controls whether PHP appends the
session ID. Set up an .htaccess file with something like this in it:

php_flag session.use_trans_sid off

That may not be the correct syntax, but it should be close.

Good luck!

Kirk

 -Original Message-
 From: Holger Böhnke [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 14, 2001 6:01 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] disable compiler flag --enable-trans-sid at runtime
 
 
 Hi All,
 
 is it possible to disable the compiler flag 
 
 --enable-trans-sid
 
 at runtime?

-- 
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]



--
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]




[PHP] Disable print button of client browser

2001-01-29 Thread Usman Ghani

Hello
Can anybody tell me how to disable the print button of the client browser? If there is 
any method please let me know.
Thanks in advance

Usman



Re: [PHP] Disable print button of client browser

2001-01-29 Thread Josh G

No, no damn way, and besides, I can alt-prtscn and paste it into
something else and print from there anyway.

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Usman Ghani" [EMAIL PROTECTED]
To: "PHP Email List" [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 3:38 PM
Subject: [PHP] Disable print button of client browser


Hello
Can anybody tell me how to disable the print button of the client browser?
If there is any method please let me know.
Thanks in advance

Usman



-- 
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]




RE: [PHP] Disable print button of client browser

2001-01-29 Thread Maxim Maletsky

There's NO METHOD~~!!!

any one can just hit print-screen and dump whatever your monitor was showing
into PhotoShop (which will print it on request)
:-))

Cheers,
Maxim Maletsky 

-Original Message-
From: Usman Ghani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:38 PM
To: PHP Email List
Subject: [PHP] Disable print button of client browser


Hello
Can anybody tell me how to disable the print button of the client browser?
If there is any method please let me know.
Thanks in advance

Usman

-- 
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]