php-general Digest 31 Dec 2002 15:58:36 -0000 Issue 1795
Topics (messages 129728 through 129779):
Re: SQL Error
129728 by: John W. Holmes
Re: PHP Look Back 2002
129729 by: John W. Holmes
Making <tr> with $values!!!
129730 by: Alexander Guevara
129732 by: Maciek Ruckgaber Bielecki
129765 by: Marek Kilimajer
Eocene -- An OO Framework for Web Devlopment
129731 by: Eocene
printing documents on printer
129733 by: Larry Brown
129734 by: John W. Holmes
129735 by: Larry Brown
129736 by: Michael J. Pawlowsky
PLEASE HELP
129737 by: Dale
129756 by: gamin
FORM text formatting problem
129738 by: Pag
129739 by: John W. Holmes
129740 by: Pag
Getting short (DOS) name of file?
129741 by: Leif K-Brooks
129748 by: Leif K-Brooks
129749 by: Tom Rogers
129769 by: Michael Sims
chunking a blob field. adding a large object chunk by chunk
129742 by: Mike Brancato
129759 by: Marek Kilimajer
Function misfunction - 2
129743 by: Martin S
129758 by: Marek Kilimajer
129761 by: Martin S
129764 by: Jason Wong
129766 by: Martin S
129767 by: Jason Wong
129770 by: Martin S
129771 by: Jason Wong
129772 by: Martin S
129774 by: Marek Kilimajer
Re: PHP 4.3 JPG Support. Whats needed?
129744 by: Jason Wong
Re: PHP3 + session handling limitation
129745 by: electroteque
129750 by: Tom Rogers
Shopping Cart Credit Card Verification
129746 by: Josiah Peters
129747 by: Maciek Ruckgaber Bielecki
Date problem
129751 by: Denis L. Menezes
129757 by: Rick Widmer
129775 by: John W. Holmes
Arrays of strings from regex
129752 by: David Pratt
129762 by: Marek Kilimajer
Re: rtf....I knew it couldn't be this easy
129753 by: gamin
Re: Keeping script running, but returning control to user?
129754 by: gamin
PHP Error
129755 by: Dale
129760 by: Marek Kilimajer
Parameters and Access
129763 by: rblack.datavisibility.co.uk
Re: [PHP-DEV] PHP Look Back 2002
129768 by: Marcus Börger
mail()
129773 by: Edward Peloke
Problems getting PHP to work (IIS5/XP Pro)
129776 by: Jeff Lewis
Php 4.3.0 and Mail() function
129777 by: Carl Bélanger
Repeats of values
129778 by: Anthony Ritter
openssl_csr_sign issues
129779 by: Larry
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I don't think there's anything wrong with the queries themselves. Are
you trying to run them all at once? You're getting an error because
MySQL is reaching a semi-colon somewhere and that's causing a parse
error... Show how you're trying to run all of these queries. Bottom
line, you must do them one at a time with mysql_query, or run them
through the command line in a file.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
-----Original Message-----
From: Stephen [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 7:15 PM
To: PHP List
Subject: [PHP] SQL Error
I'm having some troubles. I have an install script which runs a lot of
SQL statements to create tables then insert info into them. One of them
is an emoticons table. Here's the error I'm getting:
You have an error in your SQL syntax near '; INSERT INTO c_emotes VALUES
\(':\)', 'emotes/smile.gif'\); INSERT INTO c_emo' at line 4
or, if I change my code a little, it's this:
You have an error in your SQL syntax near '; INSERT INTO c_emotes VALUES
\(':)', 'emotes/smile.gif'\); INSERT INTO c_emo' at line 4
Here's my code which inserts the information:
INSERT INTO c_emotes VALUES (':)', 'emotes/smile.gif'); // I also have
tried placing a \ infront of the )...no luck
INSERT INTO c_emotes VALUES (';)', 'emotes/wink.gif');
INSERT INTO c_emotes VALUES (':(', 'emotes/sad.gif');
INSERT INTO c_emotes VALUES (':P', 'emotes/tounge.gif');
INSERT INTO c_emotes VALUES (':|', 'emotes/blank.gif');
INSERT INTO c_emotes VALUES (':-|', 'emotes/blank.gif');
INSERT INTO c_emotes VALUES (':-)', 'emotes/smile.gif');
INSERT INTO c_emotes VALUES (';-)', 'emotes/wink.gif');
INSERT INTO c_emotes VALUES (':-P', 'emotes/tounge.gif');
INSERT INTO c_emotes VALUES (':-(', 'emotes/sad.gif');
Anyone see the problem??
Thanks,
Stephen Craton
http://www.melchior.us
"What is a dreamer that cannot persevere?" -- http://www.melchior.us
--- End Message ---
--- Begin Message ---
> We are almost at the end of 2002, and it seemed appropriate to look
back
> on the development issues of the past year. So starts the first PHP
Look
> Back! You can find it @ http://www.derickrethans.nl/20021230.php, and
if
> you have any comments,feel free to post them with the link at the
bottom
> of the page.
Awesome work. Very good reading...
Here's a summary of the PHP General list, if you want it, too. :)
January - December:
"How come when I have page.php?id=1, the $id variable is no longer
created"
"How do I store images in a database?"
"Try phpclasses.org"
That's pretty much it. :) Yeah, I know the register_globals thing hasn't
been the whole year, but it feels like it.
---John Holmes...
--- End Message ---
--- Begin Message ---
hi.. i have this and i cant get it work!!..
HERES THE CODE
----------------------------------------------------------------------------
-----------------------------------
for ($i=1;$i<11;$i++){
echo"<tr height='40px'>
<td class='contenido' width='40%'><b>TEXT</b>
<input type='text' name='nom$i' value='$nom$i'>
</td>
</tr>";
}
----------------------------------------------------------------------------
---------------
so what i need is that the output in HTML shows tha value as is.. for
example the output of the code above is like this (im going to show only
the input part thats the one i need to resolve!)
<input type='text' name 'nom1' value='1'>
Remember the number depends on the $i.. i only showing one...
thats what that code generates... what i need is like this:
<input type='text' name 'nom1' value='$nom1'>
So in conclusion what i need is the "$nom1" for retrieving the value of that
variable later if an error ocurrs during a trasanction: (when an error
occurs and i have to go back to thhis page)
Thanks in advance!
--- End Message ---
--- Begin Message ---
i dont finally understand mate what do need, load the values already
filled, when the form is not sent because of an error?
you can try something like this
for($i=0;$1<5;$i++)
{
<input type=\"text\" name=\"text[$i]\"
value="\".(isSet($_POST["text[$i]"]) ? $_POST["text[$i]"] : "")."\">
}
if that is what you need, if no, you can write to me in spanish, and
explain better in spanish ;)
regards
------------------------------------------------------------------
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-----------------------------------------------------------------
Maciek Ruckaber Bielecki
On Tue, 31 Dec 2002, Alexander Guevara wrote:
> hi.. i have this and i cant get it work!!..
>
>
> HERES THE CODE
> ----------------------------------------------------------------------------
> -----------------------------------
> for ($i=1;$i<11;$i++){
> echo"<tr height='40px'>
>
> <td class='contenido' width='40%'><b>TEXT</b>
> <input type='text' name='nom$i' value='$nom$i'>
> </td>
> </tr>";
> }
> ----------------------------------------------------------------------------
> ---------------
>
>
> so what i need is that the output in HTML shows tha value as is.. for
> example the output of the code above is like this (im going to show only
> the input part thats the one i need to resolve!)
>
> <input type='text' name 'nom1' value='1'>
>
> Remember the number depends on the $i.. i only showing one...
> thats what that code generates... what i need is like this:
>
> <input type='text' name 'nom1' value='$nom1'>
>
>
> So in conclusion what i need is the "$nom1" for retrieving the value of that
> variable later if an error ocurrs during a trasanction: (when an error
> occurs and i have to go back to thhis page)
>
>
> Thanks in advance!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
escape $ with \,
<input type='text' name='nom$i' value='\$nom$i'>
Alexander Guevara wrote:
hi.. i have this and i cant get it work!!..
HERES THE CODE
----------------------------------------------------------------------------
-----------------------------------
for ($i=1;$i<11;$i++){
echo"<tr height='40px'>
<td class='contenido' width='40%'><b>TEXT</b>
<input type='text' name='nom$i' value='$nom$i'>
</td>
</tr>";
}
----------------------------------------------------------------------------
---------------
so what i need is that the output in HTML shows tha value as is.. for
example the output of the code above is like this (im going to show only
the input part thats the one i need to resolve!)
<input type='text' name 'nom1' value='1'>
Remember the number depends on the $i.. i only showing one...
thats what that code generates... what i need is like this:
<input type='text' name 'nom1' value='$nom1'>
So in conclusion what i need is the "$nom1" for retrieving the value of that
variable later if an error ocurrs during a trasanction: (when an error
occurs and i have to go back to thhis page)
Thanks in advance!
--- End Message ---
--- Begin Message ---
Eocene is an OO (Object Oriented) Web development framework that
incorporates many proven software development practices to provide a
foundation for building Web applications. It uses PHP for foundation classes
and xml-based text files for application configurations. It is a simple and
easy to use framework that can be used to solve a large number of Web
development projects. Due to its flexible and modular design, it can also be
extended to solve complex projects. The framework
1.. uses pure Object Oriented methodology,
2.. eliminates global variables (uses only one global variable),
3.. eliminates the use of "freestanding" codes (codes that are outside any
classes or functions) and uses only classes (uses only six lines of
"freestanding code" to activate the framework),
4.. is capable of incorporating any open source classes,
5.. is based on html templates for separating the views from the rest of
the application (though the framework is based on templates for its view
components, it is flexible enough to include mixed html and code pages if a
complex view warrants such a design),
6.. uses a simple, flexible, fast, and powerful templating system,
7.. uses text-based application configurations, instead of, code-based
configurations where configuration variables are defined in setting files,
8.. provides flexibility in folder organizations depending on application
requirements, and
9.. leads to application development based on the Model-View-Controller
(MVC) architecture
The framework can be downloaded and used for application development for
free.
Please visit the site at
http://www.eocene.net
--- End Message ---
--- Begin Message ---
Does anyone know where I might find specific information on methods of
sending documents to a printer from the web server to an attached printer.
My PHP and Perl books don't even touch on the capability for some reason.
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
--- End Message ---
--- Begin Message ---
> Does anyone know where I might find specific information on methods of
> sending documents to a printer from the web server to an attached
printer.
> My PHP and Perl books don't even touch on the capability for some
reason.
On windows you can use the Printer Functions...
http://www.php.net/manual/en/ref.printer.php
On, *nix... I have no idea.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
My apologies, this is Linux RH8 to be exact.
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 31, 2002 12:05 AM
To: 'Larry Brown'; 'PHP List'
Subject: RE: [PHP] printing documents on printer
> Does anyone know where I might find specific information on methods of
> sending documents to a printer from the web server to an attached
printer.
> My PHP and Perl books don't even touch on the capability for some
reason.
On windows you can use the Printer Functions...
http://www.php.net/manual/en/ref.printer.php
On, *nix... I have no idea.
---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
--- End Message ---
--- Begin Message ---
Build a file on the disk and use a shell to send it with lpr.
*********** REPLY SEPARATOR ***********
On 30/12/2002 at 11:59 PM Larry Brown wrote:
>Does anyone know where I might find specific information on methods of
>sending documents to a printer from the web server to an attached printer.
>My PHP and Perl books don't even touch on the capability for some reason.
>
>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
--- End Message ---
--- Begin Message ---
I was able to successfully install the php on my win2k server. I am,
however, getting an error any time I try to initialize a variable. This is
the error I am getting:
Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132
I am not sure as to whether I forgot to do something when I installed php or
whether I need to somehow modify IIS so that variable initialization will
work.
Thank you.
Sincerely,
Dale
--- End Message ---
--- Begin Message ---
"Dale" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I was able to successfully install the php on my win2k server. I am,
> however, getting an error any time I try to initialize a variable. This is
> the error I am getting:
>
> Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132
>
> I am not sure as to whether I forgot to do something when I installed php
or
> whether I need to somehow modify IIS so that variable initialization will
> work.
>
> Thank you.
>
> Sincerely,
> Dale
>
Are u getting this, everytime you declare a variable ? Or only in this one
case, then you should post the relevant code.
gamin.
--- End Message ---
--- Begin Message ---
Hi,
When i retrieve the text i have on my database, which was taken from a
form textbox, i have line breaks ate the end of each line in the textbox.
Ah, hard to explain!
My textbox is small, and everytime, while writing a text in it, the line
ends and we continued writing on the next one, thats the formatting my text
on the database gets. It doesnt recognize the line breaks we want (by
pressing ENTER), but takes line breaks simply from reaching the end of the
textbox. How can that be?
Before i insert the text from the textbox into the database, i do this:
$texto = str_replace("\r\n", "\n", $texto);
$texto = str_replace("\r", "\n", $texto);
And when i want to retrieve the text from the database to display it on
the site, i do:
$texto = str_replace("\n", "<br>", $texto);
Some help, please?
Pag
--- End Message ---
--- Begin Message ---
> When i retrieve the text i have on my database, which was taken
from
> a
> form textbox, i have line breaks ate the end of each line in the
textbox.
> Ah, hard to explain!
> My textbox is small, and everytime, while writing a text in it,
the
> line
> ends and we continued writing on the next one, thats the formatting my
> text
> on the database gets. It doesnt recognize the line breaks we want (by
> pressing ENTER), but takes line breaks simply from reaching the end of
the
> textbox. How can that be?
>
> Before i insert the text from the textbox into the database, i
do
> this:
>
> $texto = str_replace("\r\n", "\n", $texto);
> $texto = str_replace("\r", "\n", $texto);
>
> And when i want to retrieve the text from the database to
display it
> on
> the site, i do:
>
> $texto = str_replace("\n", "<br>", $texto);
Are you using a WRAP attribute on your TEXTAREA? You'll want to set it
to OFF or NONE, probably. I can't remember the exact values, it can
take, but I think it's PHYSICAL, VIRTUAL, and NONE/OFF.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
Are you using a WRAP attribute on your TEXTAREA? You'll want to set it
to OFF or NONE, probably. I can't remember the exact values, it can
take, but I think it's PHYSICAL, VIRTUAL, and NONE/OFF.
Thank you. Problem solved.
Better put "thank you" on some sort of macro because it seems i
will be using it a lot. :-)
Pag
--- End Message ---
--- Begin Message ---
I'm trying to run some (often user-defined) files on my windows server.
Thing is, it seems to want short names (like
C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name
from a long name?
--
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.
--- End Message ---
--- Begin Message ---
Thanks... thing is, it can be anything from c:\whatever.exe to
c:\program files\program name\bin\program.exe. I'll write a function
that goes to each directory in a string and does a dir /x if I have to,
but isn't there a simpler way?
Michael Sims wrote:
On Tue, 31 Dec 2002 01:12:47 -0500, you wrote:
I'm trying to run some (often user-defined) files on my windows server.
Thing is, it seems to want short names (like
C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name
from a long name?
Take a look at this:
http://makeashorterlink.com/?V25A32BE2
--
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.
--- End Message ---
--- Begin Message ---
Hi,
Tuesday, December 31, 2002, 5:14:18 PM, you wrote:
LKB> Thanks... thing is, it can be anything from c:\whatever.exe to
LKB> c:\program files\program name\bin\program.exe. I'll write a function
LKB> that goes to each directory in a string and does a dir /x if I have to,
LKB> but isn't there a simpler way?
LKB> Michael Sims wrote:
>>On Tue, 31 Dec 2002 01:12:47 -0500, you wrote:
>>
>>
>>
>>>I'm trying to run some (often user-defined) files on my windows server.
>>>Thing is, it seems to want short names (like
>>>C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name
>>>
>>>
>>>from a long name?
>>
>>Take a look at this:
>>
>>http://makeashorterlink.com/?V25A32BE2
>>
>>
>>
Try putting the long file name in double quotes like "c:\program files\whatever"
--
regards,
Tom
--- End Message ---
--- Begin Message ---
On Tue, 31 Dec 2002 02:14:18 -0500, you wrote:
>Thanks... thing is, it can be anything from c:\whatever.exe to
>c:\program files\program name\bin\program.exe. I'll write a function
>that goes to each directory in a string and does a dir /x if I have to,
>but isn't there a simpler way?
I don't know of anything built into PHP. There is a Win32 API call
called GetShortPathName that would return the information. Maybe you
can search and find a small binary that makes that API call and
returns it's result. Another option is to use Perl. If you can
install ActivePerl on your server you can use the following script:
#!/usr/bin/perl
use strict;
use warnings;
use Win32;
use Getopt::Std;
use File::Basename;
our ($opt_p); getopts('p:'); my $path = $opt_p;
if (!defined($path) || $path eq '') {
print "Please specify a path with the -p option, for example: ".
basename($0)." -p \"c:\\my long path\"\n";
exit;
}
my $short_path = Win32::GetShortPathName($path);
print $short_path;
exit 0;
HTH...
--- End Message ---
--- Begin Message ---
if I wanted to read a very large object into a blob field, is there a way i
could do it in 1MB chunks. using and UPDATE statement "field = field+'$data'".
and just use fread to read 1MB at a time into $data.
--
Mike Brancato
--- End Message ---
--- Begin Message ---
You could do
UPDATE table SET blob_field = CONCAT(blob_field, '$next_chunk')
but I'm not sure if your sql server will not read the whole field into
memory anyway.
Mike Brancato wrote:
if I wanted to read a very large object into a blob field, is there a way i
could do it in 1MB chunks. using and UPDATE statement "field = field+'$data'".
and just use fread to read 1MB at a time into $data.
--
Mike Brancato
--- End Message ---
--- Begin Message ---
NOW what am I doing wrong??
function setCurrentDevGroup($devID)
{
$query = "SELECT dev_group FROM tracking WHERE (computer = $devID)";
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$resulttable = $sth->fetchrow_hash();
$lookuptable = $resulttable["dev_group"];
}
echo $lookuptable; // gives e.g. printers
return $lookuptable; // will not return the value to ....
}
.
.
.
setCurrentDevGroup($this->ComputerID); // calling function
$query = "SELECT name FROM $lookuptable WHERE (ID = $this->ComputerID)";
//debug line
echo $lookuptable; // gives an empty string.
--- End Message ---
--- Begin Message ---
You forgot global $adb; at the beginning of your function, or use
$sth = $GLOBALS['adb']->prepare($query);
Martin S wrote:
NOW what am I doing wrong??
function setCurrentDevGroup($devID)
{
$query = "SELECT dev_group FROM tracking WHERE (computer = $devID)";
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$resulttable = $sth->fetchrow_hash();
$lookuptable = $resulttable["dev_group"];
}
echo $lookuptable; // gives e.g. printers
return $lookuptable; // will not return the value to ....
}
.
.
.
setCurrentDevGroup($this->ComputerID); // calling function
$query = "SELECT name FROM $lookuptable WHERE (ID = $this->ComputerID)";
//debug line
echo $lookuptable; // gives an empty string.
--- End Message ---
--- Begin Message ---
Marek Kilimajer wrote:
> You forgot global $adb; at the beginning of your function, or use
>
> $sth = $GLOBALS['adb']->prepare($query);
Nope sorry, I've just edited it from my post here. It is in the function.
/Martin S.
--- End Message ---
--- Begin Message ---
On Tuesday 31 December 2002 20:02, Martin S wrote:
> Marek Kilimajer wrote:
> > You forgot global $adb; at the beginning of your function, or use
> >
> > $sth = $GLOBALS['adb']->prepare($query);
>
> Nope sorry, I've just edited it from my post here. It is in the function.
Hmm, whenever you post code to the list you should *always* (where possible)
copy and paste. If the code that you post is different to that which you are
actually running then it makes it difficult for people to help you.
So if you can, could you please post your complete unadulterated code?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
For I do not do the good I want, but the evil I do not want is what I do.
-- Paul of Tarsus, (Saint Paul)
*/
--- End Message ---
--- Begin Message ---
Jason Wong wrote:
> On Tuesday 31 December 2002 20:02, Martin S wrote:
>> Marek Kilimajer wrote:
>> > You forgot global $adb; at the beginning of your function, or use
>> >
>> > $sth = $GLOBALS['adb']->prepare($query);
>>
>> Nope sorry, I've just edited it from my post here. It is in the function.
>
> Hmm, whenever you post code to the list you should *always* (where
> possible) copy and paste. If the code that you post is different to that
> which you are actually running then it makes it difficult for people to
> help you.
>
> So if you can, could you please post your complete unadulterated code?
>
This is the function which should return e.g. "printers" for $lookuptable.
But doesn't.
function setCurrentDevGroup($devID)
{
global $adb;
$query = "SELECT dev_group FROM tracking WHERE (computer = $devID)";
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$resulttable = $sth->fetchrow_hash();
$lookuptable = $resulttable["dev_group"];
// DEBUG
echo $lookuptable; // this give the correct value
}
return $lookuptable;
}
--- End Message ---
--- Begin Message ---
On Tuesday 31 December 2002 20:48, Martin S wrote:
> This is the function which should return e.g. "printers" for $lookuptable.
> But doesn't.
>
> function setCurrentDevGroup($devID)
> {
> global $adb;
> $query = "SELECT dev_group FROM tracking WHERE (computer =
> $devID)"; $sth = $adb->prepare($query);
> if($sth)
> {
> $res = $sth->execute();
> $resulttable = $sth->fetchrow_hash();
> $lookuptable = $resulttable["dev_group"];
> // DEBUG
> echo $lookuptable; // this give the correct value
So here $lookuptable contains the correct value (eg "printers") ??
> }
> return $lookuptable;
> }
But something like:
echo setCurrentDevGroup($devID);
gives the wrong/no value? If so, could you show how you are using this
function in your code?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The whole world is a tuxedo and you are a pair of brown shoes.
-- George Gobel
*/
--- End Message ---
--- Begin Message ---
Jason Wong wrote:
> On Tuesday 31 December 2002 20:48, Martin S wrote:
>
>> This is the function which should return e.g. "printers" for
>> $lookuptable. But doesn't.
>>
>> function setCurrentDevGroup($devID)
>> {
>> global $adb;
>> $query = "SELECT dev_group FROM tracking WHERE (computer =
>> $devID)"; $sth = $adb->prepare($query);
>> if($sth)
>> {
>> $res = $sth->execute();
>> $resulttable = $sth->fetchrow_hash();
>> $lookuptable = $resulttable["dev_group"];
>> // DEBUG
>> echo $lookuptable; // this give the correct value
>
> So here $lookuptable contains the correct value (eg "printers") ??
Correct. At this point $lookuptable contains the value of dev_group.
>
>> }
>> return $lookuptable;
>> }
>
> But something like:
>
> echo setCurrentDevGroup($devID);
That gives the correct value as well. But I wanted it as a variable
($lookuptable) ...
What I am trying to do is:
setCurrentDevGroup($this->Computer); // call function and get a device group
switch ($lookuptable) {
case "computers":
bla bla bla
case "printers":
yada yada yada
}
However, getting the inspired moment from your post, I tried
switch (setCurrentDevGroup($this->Computer)) {
case "computers":
bla bla bla
case "printers":
yada yada yada
}
And now this part works at least.
My understanding was that the function would return a value for $lookuptable
which was useable in the code above. This is incorrect then?
/Martin S.
--- End Message ---
--- Begin Message ---
On Tuesday 31 December 2002 21:44, Martin S wrote:
> > But something like:
> >
> > echo setCurrentDevGroup($devID);
>
> That gives the correct value as well. But I wanted it as a variable
> ($lookuptable) ...
>
> What I am trying to do is:
>
> setCurrentDevGroup($this->Computer); // call function and get a device
> group switch ($lookuptable) {
> case "computers":
> bla bla bla
> case "printers":
> yada yada yada
> }
>
> However, getting the inspired moment from your post, I tried
>
> switch (setCurrentDevGroup($this->Computer)) {
> case "computers":
> bla bla bla
> case "printers":
> yada yada yada
> }
>
> And now this part works at least.
> My understanding was that the function would return a value for
> $lookuptable which was useable in the code above. This is incorrect then?
If you want it so that the value of $lookuptable (in the global scope) is
changed when you call your function then you have to do something like:
<?php
function doo($dah, $dee, $etc) {
global $lookuptable;
$lookuptable = "Hello world";
}
doo(1, 2, 3);
echo $lookuptable; // prints "Hello world"
?>
More examples in manual > Variables > Variable scope
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
It's faster horses,
Younger women,
Older whiskey and
More money.
-- Tom T. Hall, "The Secret of Life"
*/
--- End Message ---
--- Begin Message ---
Jason Wong wrote:
> If you want it so that the value of $lookuptable (in the global scope) is
> changed when you call your function then you have to do something like:
>
> <?php
> function doo($dah, $dee, $etc) {
> global $lookuptable;
> $lookuptable = "Hello world";
> }
>
> doo(1, 2, 3);
> echo $lookuptable; // prints "Hello world"
> ?>
>
> More examples in manual > Variables > Variable scope
Yes. I tried that (or rather global $adb, $lookuptable) at one point as that
seemed the most natural remedy. It didn't work so I abandoned it. Perhaps I
did something else stupid. I'll re-read the docs.
Thanks for your help, and Happy New Year!
Martin S.
--- End Message ---
--- Begin Message ---
so you want
$lookuptable=setCurrentDevGroup($devID);
switch($lookuptable) { ...
Martin S wrote:
Jason Wong wrote:
On Tuesday 31 December 2002 20:48, Martin S wrote:
This is the function which should return e.g. "printers" for
$lookuptable. But doesn't.
function setCurrentDevGroup($devID)
{
global $adb;
$query = "SELECT dev_group FROM tracking WHERE (computer =
$devID)"; $sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$resulttable = $sth->fetchrow_hash();
$lookuptable = $resulttable["dev_group"];
// DEBUG
echo $lookuptable; // this give the correct value
So here $lookuptable contains the correct value (eg "printers") ??
Correct. At this point $lookuptable contains the value of dev_group.
}
return $lookuptable;
}
But something like:
echo setCurrentDevGroup($devID);
That gives the correct value as well. But I wanted it as a variable
($lookuptable) ...
What I am trying to do is:
setCurrentDevGroup($this->Computer); // call function and get a device group
switch ($lookuptable) {
case "computers":
bla bla bla
case "printers":
yada yada yada
}
However, getting the inspired moment from your post, I tried
switch (setCurrentDevGroup($this->Computer)) {
case "computers":
bla bla bla
case "printers":
yada yada yada
}
And now this part works at least.
My understanding was that the function would return a value for $lookuptable
which was useable in the code above. This is incorrect then?
/Martin S.
--- End Message ---
--- Begin Message ---
On Tuesday 31 December 2002 03:52, Andras Kende wrote:
> Hello,
>
> I'm trying to upgrade to php4.3 on a cobalt raq4
> I have 4.1.2 with gd 1.6, but would like to use gd 2.0
>
> Compiled 4.3 from source, everything seems to be fine
> except the JPG Support.
>
> http://www.kende.com/phpinfo.php
>
> './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd'
> '--with-gettext=/usr' '--enable-safe-mode'
> '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin'
> '--with-zlib' '--with-mysql' '--enable-magic-quotes'
> '--with-regex=system' '--with-ttf' '--enable-mbstring'
> '--enable-mbstr-enc-trans' '--enable-track-vars' '--enable-wddx=shared'
> '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug'
> '--with-libdir=/usr/lib' '--with-ldap' '--with-imap-ssl'
> '--with-pdflib=shared'
>
> Can you tell me what's required for JPG Support?
>
> ./configure ??
--with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
My advice to you, my violent friend, is to seek out gold and sit on it.
-- The Dragon to Grendel, in John Gardner's "Grendel"
*/
--- End Message ---
--- Begin Message ---
hi i've just started a job and they are sadly using php3 , what is the work
around for the session handling limitation ? i have an authentication class
which will not work now beause it cant handles sessions :|
--- End Message ---
--- Begin Message ---
Hi,
Tuesday, December 31, 2002, 4:54:36 PM, you wrote:
e> hi i've just started a job and they are sadly using php3 , what is the work
e> around for the session handling limitation ? i have an authentication class
e> which will not work now beause it cant handles sessions :|
Have a look at phplib
http://www.sanisoft.com/phplib/manual/intro.php#intro.whatis.phplib
--
regards,
Tom
--- End Message ---
--- Begin Message ---
I sure hope this is the correct mailing list. I have been struggling with
this problem for quite some time.
Does anyone know a way to verify credit card information in real time with
your bank over the internet in say a shopping cart?
Joey Peters
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 3 months FREE*.
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU=
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf
--- End Message ---
--- Begin Message ---
see at http://verisign.com
two services are available:
payflo link & payflow pro
regards,
------------------------------------------------------------------
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-----------------------------------------------------------------
Maciek Ruckaber Bielecki
On Mon, 30 Dec 2002, Josiah Peters wrote:
> I sure hope this is the correct mailing list. I have been struggling with
> this problem for quite some time.
> Does anyone know a way to verify credit card information in real time with
> your bank over the internet in say a shopping cart?
>
> Joey Peters
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 3 months FREE*.
> http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU=
> http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hello friends.
Happy New Year to you all.
Our school holds many seminars of varying durations and dates. I want to make a page
which says "What's on today" which will show all the seminars that are on today.
However the entry in the database will show two fields "Commencing Date" and "Ending
date".
Is there a routine in PHP I can use to find if today's date fits between the
commencing date and the ending date?
Thanks
Denis
--- End Message ---
--- Begin Message ---
At 05:23 PM 12/31/02 +0800, Denis L. Menezes wrote:
Hello friends.
Is there a routine in PHP I can use to find if today's date fits between
the commencing date and the ending date?
SELECT * FROM Table WHERE NOW() >= StartDate AND NOW() <= EndDate
Rick
--- End Message ---
--- Begin Message ---
> Our school holds many seminars of varying durations and dates. I want
to
> make a page which says "What's on today" which will show all the
seminars
> that are on today. However the entry in the database will show two
fields
> "Commencing Date" and "Ending date".
>
> Is there a routine in PHP I can use to find if today's date fits
between
> the commencing date and the ending date?
SELECT * FROM table WHERE CURRENT_DATE BETWEEN commence_date AND
ending_date
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
Am working through document to collect pieces that match and then insert
them into an array so they can be used to construct another file.
Looking in my doc for lines like this:
{\*\cs43 \additive \sbasedon10 db_edition;}
{\*\cs44 \additive \sbasedon10 db_editor;}
{\*\cs45 \additive \sbasedon10 db_email;}
Wrote this regex to find them:
^\{\\\*\\?(cs[0-9]{1,3}) (.*)\\[a-z0-9]+ (.*);\}$
Now looking for best method for getting the parts in parenthesis () into an
array so it will contain these values by finding the above three lines:
$matches [0][0][0] = cs43 , \additive \sbasedon10, db_edition
$matches [1][1][1] = cs44 , \additive \sbasedon10, db_editor
$matches [2][2][2] = cs45 , \additive \sbasedon10, db_email
Thanks in advance for any pointers.
--- End Message ---
--- Begin Message ---
David Pratt wrote:
Am working through document to collect pieces that match and then insert
them into an array so they can be used to construct another file.
Looking in my doc for lines like this:
{\*\cs43 \additive \sbasedon10 db_edition;}
{\*\cs44 \additive \sbasedon10 db_editor;}
{\*\cs45 \additive \sbasedon10 db_email;}
Wrote this regex to find them:
^\{\\\*\\?(cs[0-9]{1,3}) (.*)\\[a-z0-9]+ (.*);\}$
^
I suppose this wants to eat the whole line, use ([^ ]*) - all except space,
or switch to perl expressions with its ungreedy match
Now looking for best method for getting the parts in parenthesis () into an
array so it will contain these values by finding the above three lines:
$matches [0][0][0] = cs43 , \additive \sbasedon10, db_edition
$matches [1][1][1] = cs44 , \additive \sbasedon10, db_editor
$matches [2][2][2] = cs45 , \additive \sbasedon10, db_email
Thanks in advance for any pointers.
--- End Message ---
--- Begin Message ---
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks,
>
> I tried it and don't get a blank line but it still shows all the code when
> opened in word. Forgive how lengthy it is but here is the actual code: I
> tried escaping the special characters in the string but that doesn't help
> either.
-- snip --
Eddie,
I do not know the rtf format, but i managed to get it to work. It is
better to use ' (single quote) instead of " (double) as single quotes will
take the special characters like \r, \n, \t.... literally whereas double
quotes will result in the special charater being ouputted. This is where you
messed up.
What i did was to create a blank document in Word, save it as rtf, open it
in notepad (Word wrap off) copy the source and paste it to your PHP variable
withing single quotes (luckily I dont have single or double quotes in my
rtf source, check the format details and escape them if they are present).
HTH, good luck
gamin.
(code tested with PHP 4.1.2 on WinXP running Apache 1.3.x)
<?
touch("off.rtf");
$fp=fopen("off.rtf", "wb");
$outputstring='{\rtf1\ansi\ansicpg1252\uc1
\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\pano
se 02020603050405020304}Times New Roman;}{\f28\froman\fcharset238\fprq2
Times New Roman CE;}{\f29\froman\fcharset204\fprq2 Times New Roman Cyr;}
{\f31\froman\fcharset161\fprq2 Times New Roman
Greek;}{\f32\froman\fcharset162\fprq2 Times New Roman
Tur;}{\f33\froman\fcharset177\fprq2 Times New Roman
(Hebrew);}{\f34\froman\fcharset178\fprq2 Times New Roman (Arabic);}
{\f35\froman\fcharset186\fprq2 Times New Roman
Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\b
lue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red
255\green255\blue0;\red255\green255\blue255;
\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\gre
en0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blu
e128;\red192\green192\blue192;}{\stylesheet{
\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0
\fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0
Normal;}{\*\cs10 \additive Default Paragraph Font;}}{\info{\title This is a
test}{\author kanav}{\operator kanav}
{\creatim\yr2002\mo12\dy31\hr15\min42}{\revtim\yr2002\mo12\dy31\hr15\min43}{
\version1}{\edmins1}{\nofpages1}{\nofwords0}{\nofchars0}{\*\company
saice}{\nofcharsws0}{\vern8247}}
\widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospacef
orul\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1800\dgvori
gin1440\dghshow1\dgvshow1
\jexpand\viewkind1\viewscale75\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\
htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule
\fet0\sectd \linex0\endnhere\sectlinegrid360\sectdefaultcl {\*\pnseclvl1
\pnucrm\pnstart1\pnindent720\pnhang{\pntxta
.}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta
.}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta
.}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl
5
\pndec\pnstart1\pnindent720\pnhang{\pntxtb
(}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb
(}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb
(}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang
{\pntxtb
(}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb
(}{\pntxta )}}\pard\plain \ql
\li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0
\fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {
This is a test. HAHAHAHA
\par
\par Have a look at this askfkas;f the quicj brown fox jumped over the lazy
dog.
\par }}';
fwrite($fp, $outputstring);
?>
--- End Message ---
--- Begin Message ---
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need a way to keep the script running on the server, but control to
> the user. I'm doing some lengthy processes on the server, and it seems
> stupid to keep the user waiting pointlessly. I'm trying to do something
> like:
> <?php
> if(array_key_exists('secondrun',$_GET)){
> print "Processing complete!";
> exit;
> }
> header("Location:
> http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?secondrun=1");
> //Do long processing here
> ?>
> but it waits till the long processing is done, and then redirects. Is
> there another way to do this?
As you are asking this question, i presume your processing does not return
anything that you would need on this page. Here is a simple solution for
linux/unix based systems.
You put your processing into a command line scirpt (passing it varibles that
u need with $argv ) and call the scirpt like this :
system("./yourscirpt.php &"); // & will cause the script to go in the
background, thus u will get control of your script immideately.
I dont know how one can put things in the background on a win machine, but
thats the idea.
HTH
gamin.
--- End Message ---
--- Begin Message ---
I was able to successfully install the php on my win2k server. I am,
however, getting an error any time I try to initialize a variable. This is
the error I am getting:
Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132
I am not sure as to whether I forgot to do something when I installed php or
whether I need to somehow modify IIS so that variable initialization will
work.
Thank you.
Sincerely,
Dale
--- End Message ---
--- Begin Message ---
This is just a notice, somewhere in the code is something like this
if($array['index']=='something') do_something();
but $array['index'] is undefined. Should be
if(is_array($array) && array_key_exists('index',$array) &&
$array['index']=='something') ...
(which is quite long). Another option is to set up error_reporting to
E_ALL & ~E_NOTICE in
your php.ini (you used php.ini-recomended, right?)
Dale wrote:
I was able to successfully install the php on my win2k server. I am,
however, getting an error any time I try to initialize a variable. This is
the error I am getting:
Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132
I am not sure as to whether I forgot to do something when I installed php or
whether I need to somehow modify IIS so that variable initialization will
work.
Thank you.
Sincerely,
Dale
--- End Message ---
--- Begin Message ---
Hi All,
I'm trying to run a parameterised query in MS Access using odbc_prepare and
odbc_execute but to no avail.
The error message I'm getting is:
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 1., SQL state 07001 in SQLExecute in c:
\inetpub\wwwroot\test\access_db.php on line 17
I've read conflicting messages saying that this paramaterised queries with
Access do or don't work. Any definitive answer?
Win XP
Apache 1.3.24
PHP 4.2.3
Access ODBC driver: 4.00.6019.00
Thanks
Richy
==========================================
Richard Black
Senior Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 3481
Email: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Have fun reading!
Indeed a funny reading!
The only thing i missed was the december diberauschendenscussion "Quoting
behaviour exposed".
Reference:
http://news.php.net/article.php?group=php.dev&article=%3CPine.LNX.4.50.0212281820140.1306-100000%40eco.foo%3E
Happy new year and hopefully an even better 2003 for all of us.
marcus
--- End Message ---
--- Begin Message ---
Hello all,
For some reason, I have one computer running php that I can't get the mail function to
work on. I get this error:
Warning: Failed to Receive in c:\program files\apache group\apache\htdocs\mailtest.php
on line 2
The machine is running windows and apache as the web server. In my php.ini file, I
have the smtp set to localhost.
Any suggestions?
Thanks,
Eddie
--- End Message ---
--- Begin Message ---
Now I tried this on the Windows list but didn't get any replies. I also found an old
thread on another site that Rasmus had replied to and I tried that suggestion but no
luck.
I just ran the PHP installer and it set it up as a cgi I guess. I'd do the other way
if I could find complete instructions. I tried the ones in the file included with the
zip but it gave another error.
I don't understand why I'm having issues, I installed PHP 4.1 and below just fine in
this very same set up.
However, I am receiving the following error:
No input file specified.
I have tried some of the suggested methods of fixing this but have not been able to
solve it. Does anyone have a link or some info on how to fix this?
Jeff
--- End Message ---
--- Begin Message ---
I just upgraded to php 4.3.0 and all by bulletin board are now returning
error about the mail function:
Fatal error: Call to undefined function: mail() in
/var/wwwx/htdocs/forum/private.php on line 687
I've checked in the pear list of installed packages and I have the
latest mail (1.0.2).
I'm running Apache 1.3.27 on linux.
My configure line is:
./configure --with-apxs=/usr/local/sbin/apxs --enable-magic-quotes
--with-zlib --with-mysql
What could be missing?
Thx for any help!
--- End Message ---
--- Begin Message ---
I'm running the following sql query which outputs a repeat value for each
field in the html cell box.
Like this:
......................
3.3 3.3 78 78 2002-06-11 2002-06-11
...................
which is not what I would like.
I was trying to get:
.............................
3.3 78 2002-06-11
........................
I thought that by dropping off the $key in the $key - $value pair
to:
while(list (,$value) = each ($line))
would accomplish that.
The SQL query is:
SELECT level, pm, date FROM daytime WHERE pm >=75
............................
The php script is:
<?php
$link = mysql_connect("", "", "")
or die ("Could not connect");
mysql_select_db ("water")
or die ("Could not select database");
$query = "SELECT level, pm, date FROM daytime WHERE pm >= 75";
$result = mysql_query ($query)
or die ("Query failed");
// printing HTML result
print ("<Font Face=\"arial\" size=3>Dates where water exceeded 75
degrees<BR> at Callicoon, New York - 2002</FONT>");
print("<P>");
print "<table border=1>\n";
while($line = mysql_fetch_array($result)){
print "\t<tr><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size =2>\n";
while(list (,$value) = each ($line)) {
print "<td bgcolor=\"CCCCFF\"><Font Face =\"arial\"
size=2>$value</td>\n";
}
print "\t</tr>\n";
}
print "</table>\n";
mysql_close($link);
?>
..........................................
Any help would be greatly appreciated.
Happy New Year!
Tony Ritter
--- End Message ---
--- Begin Message ---
Wondering if anyone else has run into the following problem (or if I'm missing
something totally obvious). I've got a program that basically generates a key
and certificate for a user who enters all the associated information (common
name, passphrase, etc). So I've created a dummy CA cert and key that I keep on
my server. Here's some example code:
$cacert = "file://caselfsigncert.pem";
$cakey = array("file://caselfsignkey.pem", "insecureselfsignkey");
if ($privkey = openssl_pkey_new()) {
openssl_pkey_export($privkey, $pkeyout, $passphrase);
print "<h2>priv key</h2><pre>$pkeyout</pre>";
}
if ($csr = openssl_csr_new($dn, $privkey)) {
openssl_csr_export($csr, $csrout);
print "<h2>CSR:</h2><pre>$csrout</pre>";
}
if ($cert = openssl_csr_sign($csr, $cacert, $cakey, 365)) {
openssl_x509_export($cert, $certout);
print "<h2>x509:</h2><pre>$certout</pre>";
}
My problem is that the last stanza ($cert = openssl_csr_sign...) doesn't work.
I know that the certificate and key file are loaded and that passphrase is
working (if I change either of the three variables I get openssl and/or PHP
errors complaing the files are not found or the passphrase is invalid).
When it does seemingly work, my program ceases all output and terminates. I
originally didn't have each step enclosed in _if_ statements and that resulted
in null output from the entriee program (even that parts that were working).
So it seems like either openssl_csr_sign is broken, or that I'm using it in
the wrong way (though the docs on php.net imply this is proper). One other
note, if I use NULL instead of $cacert as the signing certificate it works
fine (i.e. self signed certs).
Anyone have any ideas?
openssl0.9.6h
php4.2.3
Thanks
--- End Message ---