[PHP-DB] disable right-click in all frames.

2003-02-22 Thread Matt
hey everyone.  i have a php script that opens up a new window with multiple
frames.  i am using javascript to disable the right-click mouse button on
the frames.  the problem is that on of the frames uses and external source,
which i can't change or modifiy at all.  is there a way for me to disable
the right-click mouse button in that frame?  is there just some way to
disable the right-click in all frames (no matter what the source) on a given
page?  please let me know if you have any ideas.  thanks.

matt



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



[PHP-DB] ftp indexer

2003-02-22 Thread Matt
does anyone know where i can find a simple FTP indexer script?



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



Re: [PHP-DB] disable right-click in all frames.

2003-02-22 Thread David T-G
Matt --

...and then Matt said...
% 
% hey everyone.  i have a php script that opens up a new window with multiple
% frames.  i am using javascript to disable the right-click mouse button on
...

To answer your question, you might instead of calling the other content
directly just have your script spit out the leading javascript and then
passthru the actual file.

Note that those of us who have javascript turned off can use the right
mouse button all we want :-)  It may not be worth your effort.


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP-DB] disable right-click in all frames.

2003-02-22 Thread Leif K-Brooks
1. Not a PHP question.
2. Definitley not a PHP database question.
3. No, I don't think so.
Matt wrote:

hey everyone.  i have a php script that opens up a new window with multiple
frames.  i am using javascript to disable the right-click mouse button on
the frames.  the problem is that on of the frames uses and external source,
which i can't change or modifiy at all.  is there a way for me to disable
the right-click mouse button in that frame?  is there just some way to
disable the right-click in all frames (no matter what the source) on a given
page?  please let me know if you have any ideas.  thanks.
matt



 

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


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


Re: [PHP-DB] disable right-click in all frames.

2003-02-22 Thread Micah Stevens
Sure there is, 

just fopen the remote page, get it, and then parse it until you know
you're in the body tag, where you can insert your Javascript. Then
just output the rest. 

-Micah



On Sat, 2003-02-22 at 05:22, Matt wrote:

 hey everyone.  i have a php script that opens up a new window with multiple
 frames.  i am using javascript to disable the right-click mouse button on
 the frames.  the problem is that on of the frames uses and external source,
 which i can't change or modifiy at all.  is there a way for me to disable
 the right-click mouse button in that frame?  is there just some way to
 disable the right-click in all frames (no matter what the source) on a given
 page?  please let me know if you have any ideas.  thanks.
 
 matt
 
 


[PHP-DB] Differences between php3 and php4

2003-02-22 Thread Y Al Hinai

Hi everyone..

I am new to php.  I have PHP4.2.3 installed with Apache on my computer.  I was 
practicing on the language from a book called PHP essentials by Julie C Meloni.  I 
am facing many problems as many functions from php3 are not working anymore in PHP4!  
For example, header(), include(mydata.txt); and mail().  Also, to recieve variables 
from an HTML form, i had to add HTTP_POST_VARS()!! how would I know that i have to 
add that?!.  I have many similar problems due to the differences between the two 
version.  I have 2 questions:

1. Is there any source (book or URL or whatever)  that shows what have been changed 
between php3 and php4 and what are the new functions or values are? Something like a 
table or differences in functions.

2. How do u get the mail() and include() to work?  
Also, who do u get header() to header() function to work in PHP4??  This is the code i 
am using for the header() followed by the error message:
===CODE
if (!isset($PHP_AUTH_USER)) {
  // If empty, send header causing dialog box to appear
  header('WWW-Authenticate: Basic realm=My_Private_Stuff');
  header('HTTP/1.0 401 Unauthorized');  
  echo 'Authorization Required.';
  exit;
 }
 // If not empty, display values for variables
else {
   echo 
  PYou have entered this username: $PHP_AUTH_USERbr
  You have entered this password: $PHP_AUTH_PWbr
  The authorization type is: $PHP_AUTH_TYPE/p; }
===ERROR
Warning: Cannot add header information - headers already sent by (output started at 
C:\Program Files\Apache Group\Apache2\htdocs\auth.php:9) in C:\Program Files\Apache 
Group\Apache2\htdocs\auth.php on line 17

Warning: Cannot add header information - headers already sent by (output started at 
C:\Program Files\Apache Group\Apache2\htdocs\auth.php:9) in C:\Program Files\Apache 
Group\Apache2\htdocs\auth.php on line 18
Authorization Required.

Please help me here ...



-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

RE: [PHP-DB] disable right-click in all frames.

2003-02-22 Thread Matt Palermo
I don't really know how to go about doing that.  Could you go into a
more in depth explanation please?  Thank you.

Matt
 
-Original Message-
From: Micah Stevens [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 22, 2003 2:07 PM
To: Matt
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] disable right-click in all frames.
 
Sure there is, 

just fopen the remote page, get it, and then parse it until you know
you're in the body tag, where you can insert your Javascript. Then
just output the rest. 

-Micah



On Sat, 2003-02-22 at 05:22, Matt wrote: 
hey everyone.  i have a php script that opens up a new window with
multiple
frames.  i am using javascript to disable the right-click mouse button
on
the frames.  the problem is that on of the frames uses and external
source,
which i can't change or modifiy at all.  is there a way for me to
disable
the right-click mouse button in that frame?  is there just some way to
disable the right-click in all frames (no matter what the source) on a
given
page?  please let me know if you have any ideas.  thanks.
 
matt
 


Re: [PHP-DB] Differences between php3 and php4

2003-02-22 Thread Leif K-Brooks


Y Al Hinai wrote:

include(mydata.txt);

Should be:
include('mydata.txt');
1. Is there any source (book or URL or whatever)  that shows what have been changed between php3 and php4 and what are the new functions or values are? Something like a table or differences in functions.

http://www.php.net/manual/en/

2. How do u get the mail() and include() to work?  
Also, who do u get header() to header() function to work in PHP4??  This is the code i am using for the header() followed by the error message:

There can't be ANY output before a call to header().  That includes 
spaces and new lines before ?php.

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


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


RE: [PHP-DB] disable right-click in all frames.

2003-02-22 Thread Micah Stevens
Sure, uhm.. say your java script belongs in the body tag so that it's
run when the page loads. example.com/included.html is the page you want
to include in your site with the javascript.
the file() function would probably work better than fopen, so I'll use
that: 

 So:

?php

$javascript = onLoad='something blah blah; // This is your javascript
to insert.

$page = file (http://www.example.com/included.html;); // This is the
page you wish to display with your javascript.

foreach ($page as $line) {  // Go through the file line by line.

if (stristr($line, body)) {  // if the line contains the body
tag

$pos = strpos(strtolower($line), body); // Get the
position within the line 
$first_half = substr($line, 0, $pos+6); // split the line
into two parts right after body
$second_half = substr($line,$pos, strlen($line)-($pos+6))
echo $first_half . $javascript .   . $second_half ; //
echo the line with your javascript inserted.
} else { // if the line doesn't contain body just echo it. 
echo $line;
}

?

That's the idea anyway. I didn't test this, but I'm guessing it's pretty
close. I know stristr() may not be the best routine to use, and there's
a couple places I'm seeing already where you could optimize things, but
you get the idea. 

Anyone have a better way to do that? 

-Micah


On Sat, 2003-02-22 at 11:54, Matt Palermo wrote:

 I dont really know how to go about doing that.  Could you go into a
 more in depth explanation please? Thank you.
 
 
 Matt
 
  
 
 -Original Message-
 From: Micah Stevens [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, February 22, 2003 2:07 PM
 To: Matt
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] disable right-click in all frames.
 
  
 
 Sure there is, 
 
 just fopen the remote page, get it, and then parse it until you know
 you're in the body tag, where you can insert your Javascript. Then
 just output the rest. 
 
 -Micah
 
 
 
 On Sat, 2003-02-22 at 05:22, Matt wrote: 
 
 
 
 hey everyone.  i have a php script that opens up a new window with multiple
 frames.  i am using javascript to disable the right-click mouse button on
 the frames.  the problem is that on of the frames uses and external source,
 which i can't change or modifiy at all.  is there a way for me to disable
 the right-click mouse button in that frame?  is there just some way to
 disable the right-click in all frames (no matter what the source) on a given
 page?  please let me know if you have any ideas.  thanks.
  
 matt
  


[PHP-DB] DNS entry

2003-02-22 Thread Ryan Holowaychuk
I have a site that the web page and the FTP are on different servers,
but I can not figure how to enter that in the zone file.  And not sure
if I have this right:

 IN  A   111.111.111.11
www IN  CNAME   website.ca.
ftp IN  A   222.222.222.222  
ftp IN  CNAME   ftpsite.ca.

thanks
Ryan



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



[PHP-DB] sorry I sent the last

2003-02-22 Thread Ryan Holowaychuk
Sorry I sent the last message to the wrong list - so sorry
 
But if anybody can help that would be great
 
 


[PHP-DB] Making a text wrapper

2003-02-22 Thread Lars Rasmussen
Hi All,
 
I'm relly sorry to interrupt you, but i need a little help.
 
I'm had to make a text wrapper that can take a string, and count the
letters in words (and spaces) and exaple make a br each time 64
caracters has passed (BUT it may NOT split words into two...)
 
I hope you understand me, it's the same system that is used for
email
 
i tried to look after it at www.phpbuilder.com  www.google.com but did
not find anything!
 
Thanks a LOT!


[PHP-DB] Delete duplications from a mysql-resultset

2003-02-22 Thread André Sannerholt
I know the SELECT DISTINCT function. But I need to delete duplications from
the finished resultset. Is that in any way possible? The result-set is not
like an usual array, is it? I've tried the unique_array function, but it
didn't work.

André Sannerholt



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



[PHP-DB] Using Snoopy

2003-02-22 Thread darryl porter
Does anyone know of any sites that explains how to use the Snoopy class?



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



Re: [PHP-DB] Preserving form field values between pages/tags

2003-02-22 Thread Nelson C
Thanks for the code!... But its not exacly what I'm looking for...

I want to move from page to bage (And back again) using links and not
actually submit the sub-form...

Is that even possible without using JavaScript onFocus etc??

-Nelson

Nick Clarkson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 Here's an example to get you started - created 2 files as below, 1.html
and
 2.php

 The important bit is value=?php echo $_POST['username'];?


 Nick


 FILE : 1.html

 html
 form action=2.php method=post
 input type=text name=username size=40 maxlength=256
 input type=submit value=submit

 /form

 /html


 FILE : 2.php

 html
 form action=2.php method=post
 Name : input type=text name=username value=?php echo
 $_POST['username'];?size=40 maxlength=256
 Address : input type=text name=test size=40 maxlength=256
 input type=submit value=submit

 /form

 /html

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED]
 Sent: 18 February 2003 11:15
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] Preserving form field values between pages/tags


 Hi,

 I'm building a form page that has 3 tags for different types of fields
(i.e.
 Personal details, location details, other).  I want to preserve the values
 of the filled in fields as the user moves from section/tag to section/tag.
 I've tried making each tag a separate page and use the URL to pass values,
 as well as put it all on one page and hide fields (which became more
trouble
 than it was worth!).

 Does anyone have a more practical/useful way of preserving field values
from
 page-to-page... or hiding fields as a user clicks on each tag?

 Thanks,

 -Nelson



 --
 PHP Database 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 Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Delete duplications from a mysql-resultset

2003-02-22 Thread John W. Holmes
 I know the SELECT DISTINCT function. But I need to delete duplications
 from
 the finished resultset. Is that in any way possible? The result-set is
not
 like an usual array, is it? I've tried the unique_array function, but
it
 didn't work.

You have to add the result set into an array, first. 

Loop through your result and add each element into an array. Then you
should be able to use array_unique on the resulting array. 

It's a huge waste of time, though, just do it in your query. If you need
both result sets, then just issue two queries. Benchmark, though, to
make sure whatever you're using is the fastest. 

---John W. Holmes...

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



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



RE: [PHP-DB] Making a text wrapper

2003-02-22 Thread John W. Holmes
 I'm had to make a text wrapper that can take a string, and count the
 letters in words (and spaces) and exaple make a br each time 64
 caracters has passed (BUT it may NOT split words into two...)

www.php.net/wordwrap

---John W. Holmes...

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



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



Re: [PHP-DB] Making a text wrapper

2003-02-22 Thread Paul Chvostek
On Sun, Feb 23, 2003 at 01:53:55AM +0100, Lars Rasmussen wrote:

 I'm had to make a text wrapper that can take a string, and count the
 letters in words (and spaces) and exaple make a br each time 64
 caracters has passed (BUT it may NOT split words into two...)

If http://www.php.net/wordwrap doesn't do what you need, and the extra
comments on that page don't provide additional resources that are useful
for you, then perhaps you can provide more details on the php-general
list, where this will be a little more on topic.

-- 
  Paul Chvostek [EMAIL PROTECTED]
  Operations / Abuse / Whatever
  it.canada, hosting and development   http://www.it.ca/


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