?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";
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-
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:
$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")
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
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
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
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,
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
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
-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
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
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
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
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 -
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
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
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
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.
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
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
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
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
23 matches
Mail list logo