[PHP] Weirdness With Header Function

2001-03-29 Thread Grimes, Dean

?php
function auth_user() {

exec("");
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
}

// Header("WWW-Authenticate: Basic realm=\"My Realm\"");

if (!isset($PHP_AUTH_USER)) {
//  echo "USER: $PHP_AUTH_USER";
auth_user();
} else
echo "else";

?

Most likely I just don't understand how headers work. But let me explain the
problem I am having.


1. Close all instances of your browser (I am using IE-5.01 and I have not
tried any other browsers). However I don't believe it is a browser issue.

2. Run the script shown above.

3. Enter some user ID and password... Everything so far works fine.

4. Look in the directory where the script is stored. There should be a file
called . This indicates that auth_user has run.

5. Remove the file .

6. Refresh the browser. Look for the file . Notice that  is present
which indicates that the  auth_user function was executed; which should only
happen if $PHP_AUTH_USER is NOT setYET "else" was printed on screen
which indicates that $PHP_AUTH_USER IS set.

7. Uncomment the commented "header" line and notice that a user ID and
password prompt is always issued in this case.


My questions are:

1. Why are both sides of the conditional "If (!isset($PHP_AUTH_USER))" being
executed?

2. Why, when auth_user is being executed on subsequent refreshes, no prompt
for a new user ID and password is issued?

3. Why, if a authenticate header is sent before testing, a user ID and
password prompt is issued?

-- 
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] Compiling GD with freetype2

2001-03-29 Thread Grimes, Dean

Yup...That's what happened to me too. I got around it by installing Freetype
as a shared library and compiling GD without Freetype. Then I linked on both
Freetype and GD during PHP compile and this seems to work. I have had no
problems creating images with TTF.

Dean

-Original Message-
From: Ashley T. Howes Ph.D. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 10:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Compiling GD with freetype2


Hi,
I've installed freetype2 from source into the default locations, and 
modified the Makefile for GD to include TTF support. Added 
/usr/local/include/freetype2/ to the INCLUDE var.
When I try to make, lots of files compile fine but gdttf.c complains 
it can't find freetype.h.
If I add /usr/local/include/freetype2/freetype/ to the INCLUDE var (so it
can
find freetype.h), it produces lots of compile errors. The first of 
these complains of a missing semicolon on a line which declares a 
TT_ENGINE struct in font_t.
If I do `grep -r TT_ENGINE /usr/local/include/freetype2/`, it doesn't 
find a thing.

Help!


Alexis Lee
-- 



Dr Ashley T. Howes Ph.D. [EMAIL PROTECTED]
Internet Developer   http://www.turton.com
Turton Creative Marketing Solutions
23-27 St. Andrews Street, Norwich, Norfolk, NR2 4TP, UK
Tel:+44 (0)1603 766888  Fax:+44 (0)1603 767070 

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




RE: [PHP] Case?

2001-03-29 Thread Grimes, Dean

Yes...

switch ($my_variable_to_case) {

case "value_1":
php-code-here;
break;

case "value_2":
php-code-here;
break;

default:
php-code-here;
}


It works exactly like c.

-Original Message-
From: acleave [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 11:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Case?


I have tried the online documentation and it either errors out on me or
cannot 
find anything when I search on case.  Can someone tell me if PHP supports
case 
statements (or do I just need to do a series of ifs?) and if so where I can 
find them detailed in the online docs?

Thnaks,
Allan


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




RE: [PHP] Better way (if...elseif...else)

2001-03-30 Thread Grimes, Dean

$fcol = ($priority == "000") ? "high" : (($prioridy == "050") ? "med" :
"low");
$pstr .= sprintf(   "option value=\"000\" %sHigh\n".
"option value=\"050\" %sMedium\n".
"option value=\"100\" %sLow\n",
($priority == "000") ? "selected" : "",
($priority == "050") ? "selected" : "",
($priority == "100") ? "selected" : "");



That should do the trick!!

Dean

-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 3:56 PM
To: PHP-General List
Subject: [PHP] Better way (if...elseif...else)



Is there a better way to write the following snippet:

if ($priority == "000") {
  $fcol="high";
  $pstr .= "option value=\"000\" selectedHigh\n";
  $pstr .= "option value=\"050\"Medium\n";
  $pstr .= "option value=\"100\"Low\n";
} elseif ($priority == "050") {
  $fcol="med";
  $pstr .= "option value=\"000\"High\n";
  $pstr .= "option value=\"050\" selectedMedium\n";
  $pstr .= "option value=\"100\"Low\n";
} else {
  $fcol="low";
  $pstr .= "option value=\"000\"High\n";
  $pstr .= "option value=\"050\"Medium\n";
  $pstr .= "option value=\"100\" selectedLow\n";
}

I just hate having to repeat pieces of code.  This piece here just
generates a drop down list of items, with the current one being the
selected one.

AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |
  ~
  Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
  SysAdmin / Websmith   . 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  . 3550 Arapahoe Ave #6
  .. .  .  . .   Boulder, CO 80303, USA



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




RE: [PHP] freetype info required

2001-04-03 Thread Grimes, Dean

http://freetype.sourceforge.net/old_index.html

Freetype is a freeware font engine. It works great for adding ttf to graphic
images generated on the fly and such. Do you absolutely have to have ttf to
create graphic images? No...but it sure makes things a lot prettier to look
at. I think you will find most of the information you want through the link
above.

Dean



-Original Message-
From: Robert Vetter [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 12:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] freetype info required


Could someone please supply me with a little information about freetype
fonts concerning the following points of interest:
1/ A good description of what it actually is.
2/ How to actually use it in a practical sense hopefully in conjunction
with php.
3/ Supply of some small code snippets showing real world examples.
4/ Any freetype library functions.

I thank you all in advance for any help that you can grtant to me.

Joe :)

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




RE: [PHP] Safety with PHP.

2001-04-03 Thread Grimes, Dean

Marthe,

How was the script executed and under what user privileges? Was it executed
by a client from a browser or was it executed directly from the command
line?

PHP is a server-side scripting language (that can also be configured to
execute as a standalone language). Your clients should not be able to create
PHP scripts and execute them. Only programmers of the system should be able
to create scripts. PHPs ability to access existing files and create new
files on the system is a good thing; but you, as the programmer, must ensure
that file permissions are set correct and that passwords to privileged
accounts are protected.

One of the biggest "pitfalls" or "gotchas" are misconfigured systems and
applications. For example, what user/group is your web server running as?
The web page creation and presentation are only one aspect of designing a
secure site. Even some of the "Big" sites can have problems...Apache.org
comes to mind, which was compromised not by bugs in any system, but by a
simple misconfiguration of MySQL.

Learn your OS and all of the applications on your system to the extent that
you understand what security issues each bring to the mix.

As always...Have Fun!


Dean




 Well, since I'm a newbie and also Norwegian it ain't that easy to explain
 very simple.
 What he did was that he entered a file that showed all the users of the
 server, as I said, and he told me this was kindof insecure.
 To prevent it he showed me a code that would help a bit.

 $filename=str_replace("..","",$filename);
 $filename=str_replace("/","",$filename);
 $filename=str_replace("%20","",$filename);

 He used /, .. and %20 to reach this file on my server.

 /Marthe



-- 
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] Problem With ora_do

2002-07-03 Thread Grimes, Dean

I'm having a weird problem with ora_do. It works fine as long as I don't
have a WHERE clause in the query. For example:

select * from table_name

works just fine but 

select * from table_name where col_name = value

returns nothing.

However, if I use ora_open, ora_parse and ora_exec everything works fine.
I'm running on Compaq Tru64 ver 5.1. I compiled PHP with gcc 3.1. I'm not
getting any errors or warnings and nothing is being logged in the Apache
logs. I guess it's not a big deal since I have been able to work around it,
but it would be nice to know what the problem is.

Thanks,

Dean

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




RE: [PHP] Re: Problem With ora_do

2002-07-05 Thread Grimes, Dean

Here is a little test program.



?php

/*
SQL select emp_id, emp_name from employee;

dgrimes  Dean Grimes

35 rows selected.

This is a select using SQLPLUS to select all of the employees. There were a
lot of other names, I just removed them from the list.


SQL select emp_id, emp_name from employee where emp_id = 'dgrimes';

dgrimes  Dean Grimes

This is a select using SQLPLUS that specifies the WHERE clause. It too works
properly.



I did not include the code to process using ora_open, ora_pars and ora_exec.
But it does work just fine with or without a WHERE clause.

*/

error_reporting(15);
$dbconnect = ora_logon('ops$dgrimes','changemenow');

// Select with WHERE clause
// $sql = SELECT * FROM employee WHERE emp_id = 'dgrimes';

// Select without WHERE clause
$sql = SELECT * FROM employee;

$cur = ora_do($dbconnect,$sql);


// Uncomment this block to see results of WHERE CLAUSE. It gets No Data
Found
/*
ora_fetch_into($cur,$results,ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC);
echo ora_errorcode($cur);
echo ora_error($cur);
exit;
*/
// Comment the above block to see results of select without WHERE CLAUSE

while
(ora_fetch_into($cur,$results,ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC)) {
//  print_r($results);
//  echo br\n;
while (list($k,$v) = each($results))
echo Key=.$k. Val=.$v.br\n;
}

?









-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Problem With ora_do


I'm having a weird problem with ora_do. It works fine as long as I don't
have a WHERE clause in the query. For example:

select * from table_name

works just fine but 

select * from table_name where col_name = value

returns nothing.

However, if I use ora_open, ora_parse and ora_exec everything works fine.
I'm running on Compaq Tru64 ver 5.1. I compiled PHP with gcc 3.1. I'm not
getting any errors or warnings and nothing is being logged in the Apache
logs. I guess it's not a big deal since I have been able to work around it,
but it would be nice to know what the problem is.

Show us real source code...

Nothing in what you say seems 'wrong', but who knows?

Wild Guesses:

You're not seeing any errors because you're not *ASKING* to see any errors.
You have to specifically request error messages to be displayed or logged
somewhere.

You are doing something like:
$x = 2;
$query = select * from table_name where col_name = x;
And, oddly enough, there are none with 'x' even though there are lots with
2...
So, there's no problem with the query, it's just not the query you intended.
Try printing out your query, and paste it into the Oracle command-line
thingie (sql-dba?)

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
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] javascript to php ????

2001-11-14 Thread Grimes, Dean

One way I do this is with the following:

?php
if ($submit) {
// Create a php array.
$t_array = explode(,,$x_array);
print_r($t_array);
exit;
}
?

html
head
script language=javascript
var x = new Array();
x[0] = zero;
x[1] = one;
x[2] = two;
/script
/head

body
form name=f method=post
input type=submit name=submit
input type=hidden name=x_array
/form

!--
Use an onSubmit clause in the form tag to execute a function that
sets any hidden form values you need. This little test just falls
through but it doesn't have to.
--

script language=javascript
// set the hidden input to a comma delimited string
document.f.x_array.value = x.toString();

// alert(document.f.x_array.value);
/script
/body
/html


Hope this helps.

Dean


-Original Message-
From: fitiux [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 4:54 PM
To: PHP General
Subject: [PHP] javascript to php 


Hi  =)

is it possible to pass a javascript array to php ???


thanks.


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

2001-11-27 Thread Grimes, Dean

I do this a lot. If you want to use just the browser and server abilities
without introducing the complexities of PDF/XML/XSLT and such, it is not too
hard. I have done PDF, Standard Text and HTML to the browser and I have
printed directly to a printer from the server using PHP.

First, is the site a Corporate intranet where the server knows about all of
the shared printers connected to the network? Or, is the site accessed over
the internet? If it's a Corporate intranet then you can create reports and
submit them to the appropriate spooler. On Unix this is easy. I'm not sure
about Windows. You can gather a list of available printers and create a
little form that allows the user to select which printer to send the report
to.

If the site is over the internet then create the report in a separate window
that is divided into two frames. The top frame will consist of close and
print buttons. The second will contain the report and a JavaScript function
that performs the printing. The print button in the top frame, when pushed,
will execute the print function in the bottom frame.

The print function sets focus on the report and then executes this.print().
The print dialogue box will automatically pop up and the user can select
their own printer along with number of copies, etc. If you use HTML you can
even set page breaks (in IE5 anyway).

Have fun,


Dean





-Original Message-
From: Dan Koken [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 5:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Printing Reports 


As a Newbe to PHP, I need to print reports. I'd like to stay away from 
PDF but will use it if necessary.

In general, what seems to be the best way to print reports??

It would be nice when they ask for a report it would brint in the report 
window that allows them to select the printer, number of copies, print 
quality etc.

Thanks for your help...
Dan.


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




RE: [PHP] Printing Reports

2001-11-28 Thread Grimes, Dean



-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 5:03 PM
To: Grimes, Dean
Cc: 'Dan Koken'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Printing Reports 
Have you been able to bypass the dialog box? That is, send the file
directly to the printer, without the user's interaction?

Actually, I have never tried to bypass the dialog box. Around here, for
reports that first come to the screen in the browser, the user decides
whether or not they want to print. If they do, they click the print button
and then select their printer.

However, I have other reports that print automatically and I just use PHP
along with KSH to send them to the appropriate printers. Of course these
reports contain no HTML. The user selects which reports they want to print,
what printers they want them to go to and then submit the report selection
form. The system takes it from there.

Dean








Grimes,

 I do this a lot. If you want to use just the browser and server abilities
 without introducing the complexities of PDF/XML/XSLT and such, it is not
too
 hard. I have done PDF, Standard Text and HTML to the browser and I have
 printed directly to a printer from the server using PHP.

Have you been able to bypass the dialog box? That is, send the file
directly to the printer, without the user's interaction?

If so, then I would love to learn how you did it. I was trying to do that
with one of my projects, but couldn't. As far as I know, the browsers do
not allow that. But, I've been told you could do it via sockets...

Were you able to bypass the dialog box?

-john


 First, is the site a Corporate intranet where the server knows about all
of
 the shared printers connected to the network? Or, is the site accessed
over
 the internet? If it's a Corporate intranet then you can create reports and
 submit them to the appropriate spooler. On Unix this is easy. I'm not sure
 about Windows. You can gather a list of available printers and create a
 little form that allows the user to select which printer to send the
report
 to.

 If the site is over the internet then create the report in a separate
window
 that is divided into two frames. The top frame will consist of close and
 print buttons. The second will contain the report and a JavaScript
function
 that performs the printing. The print button in the top frame, when
pushed,
 will execute the print function in the bottom frame.

 The print function sets focus on the report and then executes
this.print().
 The print dialogue box will automatically pop up and the user can select
 their own printer along with number of copies, etc. If you use HTML you
can
 even set page breaks (in IE5 anyway).

 Have fun,


 Dean





 -Original Message-
 From: Dan Koken [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 27, 2001 5:00 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Printing Reports


 As a Newbe to PHP, I need to print reports. I'd like to stay away from
 PDF but will use it if necessary.

 In general, what seems to be the best way to print reports??

 It would be nice when they ask for a report it would brint in the report
 window that allows them to select the printer, number of copies, print
 quality etc.

 Thanks for your help...
 Dan.


 --
 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 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] bad form...

2001-06-20 Thread Grimes, Dean

hello everyone, is it 'bad form' (no pun intended) to have a form point to
itself for processing, rather than forward the form variables to another
page?  Anybody have any input on this?  I try to have 1 page that is the
form and handles all the processing as well in order to keep the page count
on my site low and for easier editing, blah blah blah


I hope not! This is how all of my forms work. Why maintain two separate
programs?




-Original Message-
From: motorpsychkill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 2:13 AM
To: Php General List
Subject: [PHP] bad form...


hello everyone, is it 'bad form' (no pun intended) to have a form point to
itself for processing, rather than forward the form variables to another
page?  Anybody have any input on this?  I try to have 1 page that is the
form and handles all the processing as well in order to keep the page count
on my site low and for easier editing, blah blah blah

thank you for you help!



RE: [PHP] setcookie() woes

2001-06-21 Thread Grimes, Dean

This is a problem with IE5.0. However, not all versions of 5.0 have the
problem. I had to upgrade all of my users to IE5.5 to fix the problem. What
is really strange is that the problem manifests itself as a PHP
problemBut it's not. Actually, I don't think the problem is the
setcookie function, it's headers in general. Anyway, I assume you are having
the problem in 5.0 and 5.5 works OK.

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 6:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] setcookie() woes


Hi all,

I have a login script that works on one of my machines but not
another, and I've determined the problem has to do with setcookie().
One machine is using IE 5.50 and another is using 5.00, and I assume
therein lies the problem.

I've tried to plow through the dozens (hundreds?) of followups on the
manual page for setcookie(). Most of the interesting ones seem to
involve using header(SetCookie  . . .) instead of the setcookie()
function. I tried a few, including the 
pass-every-parameter-to-setcookie-even-if-you're-not-really-using-them 
workaround, to no avail.

Is this a well known problem, with a well known solution?

Thanks,
Chris 


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




RE: [PHP] cookies

2001-04-17 Thread Grimes, Dean

Are you using IE 5.01 by chance? I was having very strange problems with
cookies and headers. 5.00 and 5.5 both worked without problems, however 5.01
has some real bugs. Some of the problems I was having included: cookies not
deleting, executing headers caused PHP to behave abnormally and other
unexplainable random problems. I had these problems on both Win9x and NT but
after upgrading to 5.5 all of the problems went away. Just for the heck of
it I tested 5.00 as well and had no problems.

Good luck,

Dean




-Original Message-
From: Pat Hanna [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 5:13 PM
To: php help
Subject: [PHP] cookies


I'm setting cookies for a shopping cart and they are setting fine but they
will not delete. I've tried every way of deleting them and they just won't
go away. Someone please help.
--
Patrick Hanna
Database integration--E-commerce solutions
The Wentworth Company

-- 
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] PHP4.0.4pl1+PdfLib3.03+SCO

2001-04-17 Thread Grimes, Dean

I had the exact same problem Haven't had time to work it though.

-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 3:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO


Pdflib 3.03 compiles OK and builds a static library -
/usr/local/lib/libpdf.a.

PHP fails to configure - cannot find PDF_show_boxed in the library -
pdflib extension requires pdflib 3.x.

This command is in the library and the header file. Configure finds my
tiff  jpeg library (--with-tiff-dir=/usr/local
--with-jpeg-dir=/usr/local) but is either not finding the library
(--with-pdflib=/usr/local) or is not able to find PDF_show_boxed in the
library.

Can anyone help??

Chris

--
Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



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




RE: [PHP] Password Generator?

2001-04-19 Thread Grimes, Dean

Be carefull though, this password generator is not as random as it looks at
first glance:

Example:
Here is a list 100 seemingly random passords:

crastije 
cranocus 
frukaphe 
thogivot 
dricrope 
chevacot 
wrasipha 
staspofr 
spuphara 
prothidi 
prohopra 
clicafri 
besliruc 
catokipr 
gupaprus 
holofrec 
jodruwud 
kibreleb 
mewosliw 
masluwre 
puswewor 
rowrolum 
solugole 
uihestuh 
vedotrec 
wewusabo 
trategep 
brurosto 
frowrudr 
thidreto 
drebruha 
chedaclo 
wraclidr 
stuswuti 
sporanan 
swimicli 
slijudru 
clefracr 
batrinuc 
duuubesw 
dupraspu 
hosticre 
jichunot 
kekajebr 
lagiswow 
nubabrat 
puveuosi 
rosojano 
tinaswik 
tichepha 
jogucrod 
kibenabr 
liuihutr 
neruspau 
panecrir 
ruchiuap 
sofrujil 
uocreswu 
vibichid 
wepruuuc 
dricrope 
chevacot 
pheslepr 
staspofr 
spuphara 
swolekom 
prohopra 
clicafri 
bevewabo 
catokipr 
gupaprus 
guphewri 
jodruwud 
kibreleb 
lecidutr 
masluwre 
puswewor 
rupisepu 
solugole 
uihestuh 
uibritho 
wewusabo 
trategep 
cruswicl 
frowrudr 
thidreto 
drijomif 
chedaclo 
wraclidr 
wruuocru 
sporanan 
swimicli 
prichosp 
clefracr 
batrinuc 
cabohipr 
dupraspu 
hosticre 
jimouudr 
kekajebr


Here is the same list in sorted order:

batrinuc 
batrinuc 
besliruc 
bevewabo 
brurosto 
cabohipr 
catokipr 
catokipr 
chedaclo 
chedaclo 
chevacot 
chevacot 
clefracr 
clefracr 
clicafri 
clicafri 
cranocus 
crastije 
cruswicl 
drebruha 
dricrope 
dricrope 
drijomif 
dupraspu 
dupraspu 
duuubesw 
frowrudr 
frowrudr 
frukaphe 
gupaprus 
gupaprus 
guphewri 
holofrec 
hosticre 
hosticre 
jichunot 
jimouudr 
jodruwud 
jodruwud 
jogucrod 
kekajebr 
kekajebr 
kibenabr 
kibreleb 
kibreleb 
lagiswow 
lecidutr 
liuihutr 
masluwre 
masluwre 
mewosliw 
neruspau 
nubabrat 
panecrir 
pheslepr 
prichosp 
prohopra 
prohopra 
prothidi 
puswewor 
puswewor 
puveuosi 
rosojano 
rowrolum 
ruchiuap 
rupisepu 
slijudru 
sofrujil 
solugole 
solugole 
sporanan 
sporanan 
spuphara 
spuphara 
staspofr 
staspofr 
stuswuti 
swimicli 
swimicli 
swolekom 
thidreto 
thidreto 
thogivot 
tichepha 
tinaswik 
trategep 
trategep 
uibritho 
uihestuh 
uihestuh 
uocreswu 
vedotrec 
vibichid 
wepruuuc 
wewusabo 
wewusabo 
wraclidr 
wraclidr 
wrasipha 
wruuocru

As you can see, almost every password is duplicated at least once.


-Original Message-
From: Nathan Cassano [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 5:04 PM
To: 'Ashley M. Kirchner'; [EMAIL PROTECTED]
Subject: RE: [PHP] Password Generator?


Random Pronounceable Password Generator
This function generates random pronounceable passwords. (ie jachudru,
cupheki)

http://www.zend.com/codex.php?id=215single=1

-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:20 PM
To: PHP-General List
Subject: [PHP] Password Generator?



Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

AMK4


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




RE: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO

2001-04-19 Thread Grimes, Dean

Chris  Paul,

Try using the new pdflib-4.0.0  It works great.
Here is what you have to do:

Goto: http://www.pdflib.com/pdflib/download/index.html

and download the source for unix.

Unzip and untar.

cd to pdflib-4.0.0/bind/php/ext/pdf

copy * php-4.0.4pl1/ext/pdf --- You may want to remove the current contents
of this directory first...

cd pdflib-4.0.0
configure --enable-php
make - you will get an error indicating that a makefile was not found ...
just ignore it.
make install

Link the newly created libraries to the /usr/lib directory:
ln -s /usr/local/lib/libpdf* /usr/lib

Next just rebuild PHP as normal only add --with-pdflib.

Have fun...


Dean





-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 7:01 PM
To: Paul Gardiner
Cc: Grimes, Dean; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO


Guys,

I've admitted defeat and set up a Redhat 6.0 box which runs the web site and
talks to the SCO server as a database server. I'm doing this for a large
client
who wants a "Business Card Generator" on his site and PDF seems to be the
best
way to go as the printer wants a PDF file with the info to print on his
shells
(pre-printed sheets).

Tried to make this work about a year ago, PHP on Redhat talking to an
Informix
database on SCO, and failed miserably. Took about 15 minutes this time - I
read
the error messages!

The secret was that, even though DBPATH was set on the SCO machine it wasn't
being read by the Linux box. I modified the connect statement to the db to
include the DBPATH - hey presto!

$dbh = ifx_connect("/dbpath/dbname@dbserver", "userid", "password");

Performance is pretty good as well.

For this client this is actually the optimum solution, the SCO box was
running a
National e-commerce solution and acting as a dbserver for his internal sales
organisation as well. This takes the load off the SCO box and probably
provides
some extra security as well.

If you would like more info let me know.

Chris

Paul Gardiner wrote:

 Hello again Dean, Chris,

 Snap I'm afraid. I didn't spend too much time on it but it's on the list
of
 things to do. If I manage to get any further I'll let you know.

 If this is urgent though Chris, let me know your exact configure/build
 procedure and which versions you're using of the tiff, jpeg etc and also
how
 you built these. As there's not as many of us on SCO it maybe better if we
 put our heads together to get it sorted - you know what they say :o)

 Best regards,
 - Paul -

 ----- Original Message -
 From: "Grimes, Dean" [EMAIL PROTECTED]
 To: "'Chris Fry'" [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, April 17, 2001 1:36 PM
 Subject: RE: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO

  I had the exact same problem Haven't had time to work it though.
 
  -Original Message-
  From: Chris Fry [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 16, 2001 3:26 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO
 
 
  Pdflib 3.03 compiles OK and builds a static library -
  /usr/local/lib/libpdf.a.
 
  PHP fails to configure - cannot find PDF_show_boxed in the library -
  pdflib extension requires pdflib 3.x.
 
  This command is in the library and the header file. Configure finds my
  tiff  jpeg library (--with-tiff-dir=/usr/local
  --with-jpeg-dir=/usr/local) but is either not finding the library
  (--with-pdflib=/usr/local) or is not able to find PDF_show_boxed in the
  library.
 
  Can anyone help??
 
  Chris
 
  --
  Chris Fry
  Quillsoft Pty Ltd
  Specialists in Secure Internet Services and E-Commerce Solutions
  10 Gray Street
  Kogarah
  NSW  2217
  Australia
 
  Phone: +61 2 9553 1691
  Fax: +61 2 9553 1692
  Mobile: 0419 414 323
  eMail: [EMAIL PROTECTED]
  http://www.quillsoft.com.au
 
  You can download our Public CA Certificate from:-
  https://ca.secureanywhere.com/htdocs/cacert.crt
 
  **
 
  This information contains confidential information intended only for
  the use of the authorised recipient.  If you are not an authorised
  recipient of this e-mail, please contact Quillsoft Pty Ltd by return
  e-mail.
  In this case, you should not read, print, re-transmit, store or act
  in reliance on this e-mail or any attachments, and should destroy all
  copies of them.
  This e-mail and any attachments may also contain copyright material
  belonging to Quillsoft Pty Ltd.
  The views expressed in this e-mail or attachments are the views of
  the author and not the views of Quillsoft Pty Ltd.
  You should only deal with the material contained in this e-mail if
  you are authorised to do so.
 
  This notice should not be removed.
 
 
 
  --
  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 PROT

RE: [PHP] PDFlib 4.0.0.... any experiences..

2001-04-20 Thread Grimes, Dean

I just sent a post yesterday on how to get this to work. I does work well.
Here is the post I sent yesterday:


Try using the new pdflib-4.0.0  It works great.
Here is what you have to do:

Goto: http://www.pdflib.com/pdflib/download/index.html

and download the source for unix.

Unzip and untar.

cd to pdflib-4.0.0/bind/php/ext/pdf

copy * php-4.0.4pl1/ext/pdf --- You may want to remove the current contents
of this directory first...

cd pdflib-4.0.0
configure --enable-php
make - you will get an error indicating that a makefile was not found ...
just ignore it.
make install

Link the newly created libraries to the /usr/lib directory:
ln -s /usr/local/lib/libpdf* /usr/lib

Next just rebuild PHP as normal only add --with-pdflib.

Have fun...


Dean



-Original Message-
From: David Bouw [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PDFlib 4.0.0 any experiences..


Hi there,

Months ago I had a bad time getting PDFlib 3.0.0 to compile with PHP.. After
I succeeded I was so glad I promised myself to never touch it again.. :-)

Well, I now have a barcode font which I need to embed into a PDF document..
I did this a long time ago, but have forgotten what the exact settings were
that I used to accomplish this...

With some searching I suddenly saw that PDFlib 4.0.0 was available.. !! When
I looked at the documentation I got a tinteling feeling in my stomach..
Finally the package comes with all the Tif/Png etc libraries which you first
had to download seperately and try to compile with PDFlib.. Further this
package has also been adapted to PHP (they even talk about it in the
manual!!!) and it seems that you can also load the pdf as some kind of
library when starting the script via the 'dl' function.. ( which I don't yet
have any experience with..)

My question: Who has got some experience with this..? I grabbed a tarball of
php-4.0.4pl1 and pdflib4.0.0..
Compiled both and tried to load the library via de dl option.. PHP can't
seem to find this..

I am now busy to try and do it the old way and compile PHP with the PDFlib
option enabled..
(did copy the /ext/pdf directory from pdflib to my php!)
But if possible I would rather use the option in which the library is loaded
into PHP as an library.. Speed isues aren't important, I want an easy and
flexible way the change PDFlib versions without needing to recompile
anything..
I also read that this was possible with the GD library..

I will be glad if I can hear anyone with some experiences with this new
PDFlib.. I look forward getting this to work!

Thanks in advance..
With kind regards
David Bouw


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




RE: [PHP] create bar chart

2001-04-24 Thread Grimes, Dean

I am using this class and it works very well. It is however, somewhat
confusing to understand. It took me about a weekend to fully understand and
use all of the functions. It does come with example PHP scripts that
demonstrate its capabilities. You will need TTF support - I am using
Freetype 2.0.

Have fun

Dean





Name: phpBarGraph

Author: thunter [EMAIL PROTECTED]

Description:
phpBarGraph is a bargraphing class for PHP. It allows one to have an
arbitrary number of bargraphs. phpBarGraph scales the bars to fit the area
you set. It is possible to cycle through colors for each bar. Each bar can
be its own color or they can all be the same color. Multiple bar graphs
can be placed on one image and the inter-bar spacing is configurable. 


URL: http://phpclasses.upperdesign.com/browse.html/package/181

-Original Message-
From: Ali [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:37 AM
To: 'Php-General (E-mail)'
Subject: [PHP] create bar chart


Hello,

how it is possible to create a bar chart in php? I appreciate any hint.

Ali


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




RE: [PHP] Creating Graphs

2001-05-01 Thread Grimes, Dean

phpBarGraph is a bargraphing class for PHP. It allows one to have an
arbitrary number of bargraphs. phpBarGraph scales the bars to fit the area
you set. It is possible to cycle through colors for each bar. Each bar can
be its own color or they can all be the same color. Multiple bar graphs
can be placed on one image and the inter-bar spacing is configurable. 


URL: http://phpclasses.upperdesign.com/browse.html/package/181


-Original Message-
From: Mike Mike [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Creating Graphs 


Hello,
I was wonder if anyone knows of a place where I can
get a good tutorial about making graphs for beginners
using php. 
If so please let me know.
Thank you
  --Mike

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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




RE: [PHP] Need to know this

2001-05-04 Thread Grimes, Dean

I believe PHP stands for: PHP Hypertext Preprocessor where the first P
actually stands for PHP. Just Like GNU: GNU Not Unix.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 10:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Need to know this


Parsed Hypertext Processing, AFAIK.

YoBro wrote:

 Hello,

 I need to find out what PHP stands for.

 Also what is better,
 ASP or PHP and who has the biggest market share.

 Any help would be really great.

 Thanks,

 Chris

 --
 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 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] ncurses woes...

2005-02-07 Thread Grimes, Dean
Hi,

Anybody out there doing any work with ncurses? I've been playing around with
ncurses trying to figure it all out. I have had pretty good luck but I am
finding a few issues and would like to know if other users are having the
same problems. One of the problems I'm having is with function keys and
arrow keys. I can trap on them OK but I haven't been able to keep the system
from displaying their escape sequences on the screen. When this happens it
corrupts the screen and skews the display. Also, I'm having some weirdness
with mvwaddstr, I logged a bug on bugs.php.net #31876. I have test programs
for anyone interested in taking a stab at some of the problems I've
encountered. I've read all the documentation I could get my handsthat
took about 10 minutes!

Thanks,

Dean

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



RE: [PHP] ncurses woes...

2005-02-08 Thread Grimes, Dean
Well I think I've got my handling of cursor movement keys working pretty
good. But I still have a couple of bugs with some of the video attribute
settings. The BLINK attribute works, but even after turning it off, it
leaves the area that you set to blink in an active blink mode. The blinking
thing won't turn for nothing. I actually have to log off and back on to get
it to reset. The BOLD is actually turning everthing in the screen DIM and
then leaving it that way. I've decided I don't need those attributes that
bad. I would like to get the reverse video problem fixed though.

That's an intersting point about glibc. I'll look into it.

Thanks,

Dean

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 12:58 PM
To: Grimes, Dean
Cc: 'php-general@lists.php.net'
Subject: Re: [PHP] ncurses woes...


Grimes, Dean wrote:
 Anybody out there doing any work with ncurses? I've been playing around
 with
 ncurses trying to figure it all out. I have had pretty good luck but I am
 finding a few issues and would like to know if other users are having the
 same problems. One of the problems I'm having is with function keys and
 arrow keys. I can trap on them OK but I haven't been able to keep the
 system
 from displaying their escape sequences on the screen. When this happens it
 corrupts the screen and skews the display.

I've got machines that do that even with vi, because I forced them to
upgrade that one thingie (readline?) you need for the arrow keys to work
for command history in MySQL/PostgreSQL, which means I had for force a
glibc upgrade.

G.

I think I'm lucky the damn thing works at all, from what I understand (or
don't) of glibc.

Anyway, I forget what it's called, but you might have a mis-match in the
glibc and that readline software versions...

 Also, I'm having some weirdness
 with mvwaddstr, I logged a bug on bugs.php.net #31876. I have test
 programs
 for anyone interested in taking a stab at some of the problems I've
 encountered. I've read all the documentation I could get my handsthat
 took about 10 minutes!

If ncurses is continues to give you trouble, you may want to consider PHP
GTK -- There is possibly a larger community of users working on that.

Or are you the guy needing to duplicate the green-on-black terminal
stuff?...

I was gonna say GTK wouldn't do so hot at that, but, actually, it MIGHT be
not that hard, now that I think about it.

http://gtk.php.net/

PS  If anybody knows how I can fix my glibc and readline issue on RedHat
9.x I'd surely welcome some input.  I use control-L a lot, but it's not
much fun.

-- 
Like Music?
http://l-i-e.com/artists.htm

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