php-general Digest 28 Dec 2001 12:45:30 -0000 Issue 1078
Topics (messages 78882 through 78928):
generalized environment for pages
78882 by: Dennis Gearon
oracle 8i stored procedures + php access
78883 by: Robert Mena
Re: Exec as user
78884 by: charlesk
78890 by: Mike Eheler
crack lib
78885 by: Dennis Gearon
78886 by: Billy Harvey
78887 by: David Piasecki
78892 by: Bogdan Stancescu
78893 by: Michael A. Peters
php code beautifier
78888 by: George Nicolae
78889 by: Mike Eheler
78922 by: Jerry Verhoef (UGBI)
MySql and /var/lib/mysql/mysql.sock Problem !!!
78891 by: ger
hotmail settings POP and SMTP under Mozilla
78894 by: ger
78897 by: Bogdan Stancescu
78899 by: Rambo Amadeus
78905 by: James Cox
78911 by: James Cox
78920 by: Jerry
Can you fake a onClick?
78895 by: Douglas Harter
78896 by: Bogdan Stancescu
78900 by: Douglas Harter
78902 by: Matt Friedman
78903 by: Bogdan Stancescu
Re: Metabse and ODBC Blobs, was [Re: Store Image in Access Database]
78898 by: Manuel Lemos
Modify someone else's session register
78901 by: Alex Vargas
78919 by: Dave Brotherstone
78924 by: Jerry Verhoef (UGBI)
78926 by: Jerry Verhoef (UGBI)
FOLLOW UP:[PHP] Warning: Cannot send session cookie
78904 by: David Jackson
RESOLVED(maybe):Warning: Cannot send session cookie
78906 by: David Jackson
78921 by: Jerry Verhoef (UGBI)
78925 by: Daniel Grace
--enable-trans-sid
78907 by: phantom
78909 by: phantom
Question about using libraries without ./compile --with-library
78908 by: Joelmon2001.aol.com
PHP-4.1.1 released
78910 by: Pumar
Not PHP but MYSQL
78912 by: Steve Maroney
78913 by: Alex Vargas
Call another page after the menu had been selected
78914 by: Jack
Re: Generate Alphabet
78915 by: Philip Olson
Re: Sending out mass mail without having timeout problems ..
78916 by: Paul Roberts
Re: session class
78917 by: Chris Hall
Re: Translating email to (real) plain text...
78918 by: David Bouw
Re: MsSQL from FreeBSD
78923 by: Valentin V. Petruchek
Persistent connection to Oracle with OCI
78927 by: Berlina
is_uploaded_file
78928 by: Paul Roberts
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 ---
Would all you experts please advise me on additions to this list? It's a list of
resources a page may need to do its job.
----------------------------------------------------------------------------------
Attributes:
URL - implicit from server
Referring page - implicit from server
Target Template page(s)
Page_Security_Level
Security Object
Authentication_Server/DataBase
Name
Password
Secure_Submit (y/n)
Secure_Required(y/n)
User
Name
Secure_Submit (y/n)
Secure_Required(y/n)
Password
Name
Secure_Submit (y/n)
Secure_Required(y/n)
CreditCardServer
User
Name
Secure_Submit (y/n)
Secure_Required(y/n)
Password
Name
Secure_Submit (y/n)
Secure_Required(y/n)
MainDataBase
Authentication_Server/DataBase
Name
Password
Secure_Submit (y/n)
Secure_Required(y/n)
User
Name
Secure_Submit (y/n)
Secure_Required(y/n)
Password
Name
Secure_Submit (y/n)
Secure_Required(y/n)
GraphicsDirectory
ScriptIncludeDirectory - implict from server
EmailServer
Authentication_Server/DataBase
Name
Password
Secure_Submit (y/n)
Secure_Required(y/n)
User
Name
Secure_Submit (y/n)
Secure_Required(y/n)
Password
Name
Secure_Submit (y/n)
Secure_Required(y/n)
--- End Message ---
--- Begin Message ---
Hi, I have a delphi application that uses oracle as db
server with stored procedures (running ok).
I've been trying to make a php version of such
application with no luck so far.
I've created a user to access such thing and I keep
getting the following error
Warning: OCIStmtExecute: ORA-06550: line 3, column 3:
PLS-00905: object
SYSTEM.CAD013_PSQ_RSV is invalid ORA-06550: line 3,
column 3: PL/SQL:
Statement ignored in
/somewhere/test.php on line 20
Warning: OCIFetchInto: ORA-24338: statement handle not
executed in
/somewhere/test.php on line 31
If I try with user system the messages are diferent
Warning: OCIStmtExecute: ORA-06550: line 3, column 3:
PLS-00905: object SYSTEM.CAD013_PSQ_RSV is invalid
ORA-06550: line 3, column 3: PL/SQL:
Statement ignored in
/somewhere/test.php on line 20
Warning: OCIFetchInto: ORA-24338: statement handle not
executed in /somewhere/test.php on line 31
The script follows
putenv("ORACLE_BASE=/u01/app/oracle") ;
putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.7");
putenv("ORACLE_SID=oracle") ;
$usernameOracle=dbuser;
$passwordOracle=dbpassword;
$hostOracle=dbhost;
$tsA = time() ;
$con =
OCIPLogon($usernameOracle,$passwordOracle,$hostOracle);
$tsD = time() ;
$res = OCINewCursor($con);
$stm = OCIParse ( $con, "
BEGIN
CAD013_PSQ_RSV(:pkey, :Option, :RES);
END;
");
$name = "foo";
$option = "0";
OCIBindByName ( $stm, ":pkey", $nome, -1);
OCIBindByName ( $stm, ":Option", $option, -1);
OCIBindByName ( $stm, ":RES", &$res, -1, OCI_B_CURSOR
);
@OCIExecute ( $stm );
OCIExecute ($res);
$arrError = OCIError($res);
if ($arrError['code'])
{
echo
$arrError['code']."-".$arrError['message']."<br>";
exit;
}
while (OCIFetchInto($res,&$data))
var_dump($data);
}
OCIFreeCursor($stm);
OCIFreeStatement($res);
The stored procedure has one code bellow
IF (vmINT_QtdLines <= 0) THEN
-- PHP
raise_application_error(
-20005,
'NAME NOT FOUND'
);
-- DELPHI
-- DBMS_OUTPUT.PUT_LINE('NOTHING
FOUND:'||pkey);
-- RAISE Erro;
END IF;
I am not quite sure where the problem is located. Any
help (if directly related to oracle emails directly)
wl be appreciated.
Thanks.
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--- End Message ---
--- Begin Message ---
I can access the username system var when the script is run from a command prompt.
The problem lies when iis tells php to run it. I have the directory security turned
on so IIS authenticates me before any scripts are run. So it should be running as me.
Charles Killmer
---------- Original Message ----------------------------------
From: "Jim Lucas [php]" <[EMAIL PROTECTED]>
Date: Thu, 27 Dec 2001 13:50:17 -0800
I don't believe that the system variables are available to php. I work on
*nix mostly, but I have a windows machine at home running php and I can't
access any of my system var's.
----- Original Message -----
From: "charlesk " <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 11:33 AM
Subject: [PHP] Exec as user
> I have been looking through the docs and found no help on either finding
which user the EXEC'ed commands run as, or how to specify which user they
should run as. I tried exec, system, and passthru running a batch file that
would write %USERNAME% to a file. And all three functions wrote nothing.
They would however write "hello world". Has anybody else run into this.
>
> I tried exec("test.bat");
> test.bat:
> echo %USERNAME% > test.txt
>
> when run from a command line it resulting in "Charles"
> when run from a webpage it resulted in "ECHO is on."
> if I added a line "echo off" above the echo username it resulted in "ECHO
is off." again only from the webpage.
>
> In essense I need to update a DNS server through a web page. It works if
the script is local but not if it has to update a different server.
>
> Charles Killmer
> Windows 2000 Server, IIS 5.0, PHP 4.1.0
>
> --
> 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]
>
>
--
Charles Killmer
Netgain Technology
251-4700
--
--- End Message ---
--- Begin Message ---
Try doing this
<?
echo '<pre>';
print_r(array($HTTP_SERVER_VARS,$HTTP_ENV_VARS));
echo '</pre>';
?>
And see if the information you want is in there anywhere.
Mike
> I don't believe that the system variables are available to php. I work on
> *nix mostly, but I have a windows machine at home running php and I can't
> access any of my system var's.
> ----- Original Message -----
> From: "charlesk " <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 27, 2001 11:33 AM
> Subject: [PHP] Exec as user
>
>
>
>>I have been looking through the docs and found no help on either finding
>>
> which user the EXEC'ed commands run as, or how to specify which user they
> should run as. I tried exec, system, and passthru running a batch file that
> would write %USERNAME% to a file. And all three functions wrote nothing.
> They would however write "hello world". Has anybody else run into this.
>
>>I tried exec("test.bat");
>>test.bat:
>>echo %USERNAME% > test.txt
>>
>>when run from a command line it resulting in "Charles"
>>when run from a webpage it resulted in "ECHO is on."
>>if I added a line "echo off" above the echo username it resulted in "ECHO
>>
> is off." again only from the webpage.
>
>>In essense I need to update a DNS server through a web page. It works if
>>
> the script is local but not if it has to update a different server.
>
>>Charles Killmer
>>Windows 2000 Server, IIS 5.0, PHP 4.1.0
>>
>>--
>>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]
>>
>>
>>
>
--- End Message ---
--- Begin Message ---
If the crack lib functions are for cracking passwords or other non
commerce/offensive/hacker efforts, I strongly object to their inclusion in the
functions of PHP. The PHP/Apache community does not need to give the
gates/microsoft/.net community any ammunition for bad publicity.
--- End Message ---
--- Begin Message ---
On Thu, 2001-12-27 at 19:12, Dennis Gearon wrote:
> If the crack lib functions are for cracking passwords or other non
> commerce/offensive/hacker efforts, I strongly object to their inclusion in the
> functions of PHP. The PHP/Apache community does not need to give the
> gates/microsoft/.net community any ammunition for bad publicity.
Object away. They exist because they exist and are useful. The
concepts have been around for years and are easily implemntable in any
programming language.
That's the value and risk of freedom - it cuts both ways.
Billy
--- End Message ---
--- Begin Message ---
This could easily and quickly lead to a philosophical argument about the
merits of such software/libraries/etc. Is the best way to secure
software and hardware to take away the resources to try to break them?
This only leads to more and more poor programming. As long as these
tools are out there, it should keep all of us on our toes, and
programming with security constantly on our minds.
Removing those functions give the gates/Microsoft/.net community an
excuse to keep programming the way they have always been.
-----Original Message-----
From: Billy Harvey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 27, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] crack lib
On Thu, 2001-12-27 at 19:12, Dennis Gearon wrote:
> If the crack lib functions are for cracking passwords or other non
> commerce/offensive/hacker efforts, I strongly object to their
inclusion in the
> functions of PHP. The PHP/Apache community does not need to give the
> gates/microsoft/.net community any ammunition for bad publicity.
Object away. They exist because they exist and are useful. The
concepts have been around for years and are easily implemntable in any
programming language.
That's the value and risk of freedom - it cuts both ways.
Billy
--
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]
--- End Message ---
--- Begin Message ---
I also subscribe to the opinions against your objection. David has a very good
point I would've made hadn't he beat me to it: "As long as these tools are out
there, it should keep all of us on our toes, and programming with security
constantly on our minds."
Bogdan
Dennis Gearon wrote:
> If the crack lib functions are for cracking passwords or other non
> commerce/offensive/hacker efforts, I strongly object to their inclusion in the
> functions of PHP. The PHP/Apache community does not need to give the
> gates/microsoft/.net community any ammunition for bad publicity.
--- End Message ---
--- Begin Message ---
On Thu, 27 Dec 2001 16:12:06 -0800
Dennis Gearon <[EMAIL PROTECTED]> mentioned:
> If the crack lib functions are for cracking passwords or other non
> commerce/offensive/hacker efforts, I strongly object to their inclusion
in the
> functions of PHP. The PHP/Apache community does not need to give the
> gates/microsoft/.net community any ammunition for bad publicity.
Crackers won't be using php to crack passwords.
What cracklib can do in php is allow web applications to be developed for
ensuring the security of your password files.
When you have a system with over 500 passwords on it, I guarantee that
many of them will be easily crackable.
Good system administrators run their password files through crackers from
time to time for the purpose of ensuring that if the root account is
compromised, that it would extremely difficult for the cracker to get
passwords that belong to users (passwords that the users will very likely
use on other machines- and very likely use again on the compromised
system).
There is nothing wrong with php being used for this purpose.
There is nothing wrong with a php wrapper to cracklib.
That's what php is, btw. primarily-
A wrapper language.
They don't develop cracklib- php just can be used as a wrapper to it.
I don't like politics and coding mixing.
And I don't think something should be left out due to politics.
--- End Message ---
--- Begin Message ---
do you know if exist a php code beautifier for win32? pls tell me the
address.
--
Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com
--- End Message ---
--- Begin Message ---
I'm working php script that would perform such a feat. I'll post news on
php.general when/if it's finished.
Mike
George Nicolae wrote:
> do you know if exist a php code beautifier for win32? pls tell me the
> address.
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
What is a code beautifier?????
-----Original Message-----
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 1:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php code beautifier
do you know if exist a php code beautifier for win32? pls tell me the
address.
--
Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.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]
The information contained in this email is confidential and
may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any
form of disclosure, production, distribution or any action
taken or refrained from in reliance on it, is prohibited and
may be unlawful. Please notify the sender immediately.
The content of the email is not legally binding unless
confirmed by letter bearing two authorized signatures.
--- End Message ---
--- Begin Message ---
hy guys ,
Does anybody know what is my problem ?
I try to access to my mysql database and I get the next errror :
" Can't connect trough /var/lib/mysql/mysql.sock "
I' ve seen that this is problem related to permissions in the directory
I think ???!!!
Could you suggest me some directions and advices about this problem ?
thanks
Ricardo
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
hi guys ,
Does anybody know how to set up my mail reader (Mozilla ) to
be able to read and
send mail with my HOTMAIL account ?
What should I put in POP ? and SMTP servers ?
I wasn't be able to find this information ......
Thanks in advance
Ricardo
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
You most probably
1. Have to ask about this somewhere else;
2. Won't be able to set it up -- Hotmail is M$ and, as such, it implements
its own protocols.
Bogdan
ger wrote:
> Does anybody know how to set up my mail reader (Mozilla ) to
> be able to read and
> send mail with my HOTMAIL account ?
--- End Message ---
--- Begin Message ---
you cant use mozilla to read and send hotmail messages. Onli outlook
ekspress
----- Original Message -----
From: ger <[EMAIL PROTECTED]>
To: php-general <[EMAIL PROTECTED]>
Sent: 03. prosinac 2001 19:44
Subject: [PHP] hotmail settings POP and SMTP under Mozilla
> hi guys ,
>
> Does anybody know how to set up my mail reader (Mozilla ) to
> be able to read and
> send mail with my HOTMAIL account ?
>
> What should I put in POP ? and SMTP servers ?
>
> I wasn't be able to find this information ......
>
> Thanks in advance
>
> Ricardo
>
>
>
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.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]
>
--- End Message ---
--- Begin Message ---
I think your best bet is to add a bookmark to www.hotmail.com .
James Cox
> -----Original Message-----
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 28, 2001 2:11 AM
> To: ger
> Cc: php-general
> Subject: Re: [PHP] hotmail settings POP and SMTP under Mozilla
>
>
> You most probably
> 1. Have to ask about this somewhere else;
> 2. Won't be able to set it up -- Hotmail is M$ and, as such, it implements
> its own protocols.
>
> Bogdan
>
> ger wrote:
>
> > Does anybody know how to set up my mail reader (Mozilla ) to
> > be able to read and
> > send mail with my HOTMAIL account ?
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
I think your best bet is to add a bookmark to www.hotmail.com .
James Cox
> -----Original Message-----
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 28, 2001 2:11 AM
> To: ger
> Cc: php-general
> Subject: Re: [PHP] hotmail settings POP and SMTP under Mozilla
>
>
> You most probably
> 1. Have to ask about this somewhere else;
> 2. Won't be able to set it up -- Hotmail is M$ and, as such, it implements
> its own protocols.
>
> Bogdan
>
> ger wrote:
>
> > Does anybody know how to set up my mail reader (Mozilla ) to
> > be able to read and
> > send mail with my HOTMAIL account ?
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
It's not a PHP question, is it ?
I didn't test it with Mozilla, but with MSIE it works:
Go to your Hotmail Inbox, and bookmark it.
For me it was working only with M$ Windows XP not previous versions...
Jerry
Ger wrote:
> hi guys ,
> Does anybody know how to set up my mail reader (Mozilla ) to
> be able to read and send mail with my HOTMAIL account ?
> What should I put in POP ? and SMTP servers ?
> I wasn't be able to find this information ......
> Thanks in advance
> Ricardo
--- End Message ---
--- Begin Message ---
I have checked the archives and not really found an answer, so here goes.
My form contains a function called CountIt which increments a counter file on the
site. I mainly use it to count the hits on the page. I also have multiple <a> links to
.zip & .txt files which can be accessed or downloaded. Is it possible somehow to
fake an onclick event so that when the user clicks on the link I can use the CountIt
function to increment a counter for that link?
--- End Message ---
--- Begin Message ---
Yes: <a href="javascript:CountIt('actual link here')">Text</a>
And in ClickIt you'll have to append
if (goto) {
window.location=goto;
}
Obviously, you'll have to redefine ClickIt() to ClickIt(goto)
I don't know if all the code is 100% accurate, but that's definitely the direction to
go. You may have to change the JavaScript code to "parent.window.location=goto" if you
use frames.
HTH
Bogdan
Douglas Harter wrote:
> My form contains a function called CountIt which increments a counter file on the
>site. I mainly use it to count the hits on the page. I also have multiple <a> links
>to .zip & .txt files which can be accessed or downloaded. Is it possible somehow to
>fake an onclick event so that when the user clicks on the link I can use the CountIt
>function to increment a counter for that link?
--- End Message ---
--- Begin Message ---
Maybe I should have mentioned that CountIt is a php function. Does that make
a difference? It is declared at function CountIt($filename) where $filename
is the file containing the count.
----- Original Message -----
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "Douglas Harter" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 9:09 PM
Subject: Re: [PHP] Can you fake a onClick?
> Yes: <a href="javascript:CountIt('actual link here')">Text</a>
>
> And in ClickIt you'll have to append
> if (goto) {
> window.location=goto;
> }
>
> Obviously, you'll have to redefine ClickIt() to ClickIt(goto)
>
> I don't know if all the code is 100% accurate, but that's definitely the
direction to go. You may have to change the JavaScript code to
"parent.window.location=goto" if you use frames.
>
> HTH
>
> Bogdan
>
> Douglas Harter wrote:
>
> > My form contains a function called CountIt which increments a counter
file on the site. I mainly use it to count the hits on the page. I also have
multiple <a> links to .zip & .txt files which can be accessed or
downloaded. Is it possible somehow to fake an onclick event so that when
the user clicks on the link I can use the CountIt function to increment a
counter for that link?
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
Please turn off your "read receipt" request in your email client. It's
very annoying.
Create a redirect page using php.
Something like
<?
// log your hits here. Then...
header("Location: $QUERY_STRING");
?>
Using a url such as:
http://www.domain.com/redirect.php?/someurl/somefile.ext
You should be able to track each file requested on your site this way.
Well, that's one way to do it anyway. Perhaps it will give you an
idea...
Matt Friedman
-----Original Message-----
From: Douglas Harter [mailto:[EMAIL PROTECTED]]
Sent: Thursday December 27, 2001 8:14 PM
To: Bogdan Stancescu
Cc: PHP Mailing List
Subject: Re: [PHP] Can you fake a onClick?
Maybe I should have mentioned that CountIt is a php function. Does that
make
a difference? It is declared at function CountIt($filename) where
$filename
is the file containing the count.
----- Original Message -----
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "Douglas Harter" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 9:09 PM
Subject: Re: [PHP] Can you fake a onClick?
> Yes: <a href="javascript:CountIt('actual link here')">Text</a>
>
> And in ClickIt you'll have to append
> if (goto) {
> window.location=goto;
> }
>
> Obviously, you'll have to redefine ClickIt() to ClickIt(goto)
>
> I don't know if all the code is 100% accurate, but that's definitely
the
direction to go. You may have to change the JavaScript code to
"parent.window.location=goto" if you use frames.
>
> HTH
>
> Bogdan
>
> Douglas Harter wrote:
>
> > My form contains a function called CountIt which increments a
counter
file on the site. I mainly use it to count the hits on the page. I also
have
multiple <a> links to .zip & .txt files which can be accessed or
downloaded. Is it possible somehow to fake an onclick event so that
when
the user clicks on the link I can use the CountIt function to increment
a
counter for that link?
>
>
> --
> 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]
--- End Message ---
--- Begin Message ---
Uh, ok. You said "my form contains a function", so...
Well, yes, you can do that too -- in the ugly way: http://www.clipart.com/ (take
a look at the links -- using "out.php?un=<location>", where out.php contains
CountIt().
Bogdan
Douglas Harter wrote:
> Maybe I should have mentioned that CountIt is a php function. Does that make
> a difference? It is declared at function CountIt($filename) where $filename
> is the file containing the count.
--- End Message ---
--- Begin Message ---
Hello,
Mike Baranski wrote:
>
> OK, first, that's right out of the metabase manual, with names changed to
> protect the innocent. Second, the example won't work, it gives syntax errors
> with the MS driver on creating the test db and tables, but I fixed the DB
> part, but the tables still won't create themselves, it still gives errors.
I suppose that is because Access SQL engine does not support standard
SQL clauses like specifying default values for table fields. That is a
known limitation of Access that Metabase supports by setting the
database setup option UseDefaultValues to 0 .
> I've hacked it up a little bit, but it doesen't look like the test stuff will
> work for access. Has anyone successfully done this, and how? I cannot
> believe that I'm the only person who's ever stored binary data in Access,
> regardless of how bad of an idea it is...
If you set UseDefaultValues option to 0 as mentioned above it will work
fine. Usually I run the conformance tests for all types of supported
databases before each Metabase release to make sure that nothing is
broken. In fact, I use Access .mdb databases to test Metabase ODBC
driver. I can assure you that LOBs work fine with Access using Metabase.
Just mail me back if you still have difficulties.
Regards,
Manuel Lemos
>
> > Hello,
> >
> > Mike Baranski wrote:
> > > Sorry about the previous one, that was a mistake.
> > >
> > > I have the following code to insert a blob into an access OLE object
> > > field:
> >
> > I am not sure if using SQL is the appropriate way to update such object
> > field.
> >
> > Anyway, to make this work, such object must be of ODBC type
> > ODBC_LONGVARBINARY .
> >
> > Metabase can create tables with BLOB fields properly declared. You may
> > want to try the driver test script to see what it does and how it shows
> > in access. Look in lob_test.schema to see how you can define a schema
> > with LOB fields so Metabase manager class can create one for your needs.
> >
> > > if(($prepared_query=MetabasePrepareQuery($database,"UPDATE incident_blob
> > > SET data_blob=?, description='new'")))
> > > {
> > >
> > > $binary_lob=array(
> > >
> > > "Type"=>"inputfile",
> > > "Database"=>$database,
> > > "Error"=>"",
> > > "FileName"=>"test.php"
> > >
> > > );
> > > if(($success=MetabaseCreateLOB($binary_lob,$blob)))
> > > {
> > >
> > > MetabaseQuerySetBLOB($database,$prepared_query,1,$blob,"data_blob");
> > > if(!MetabaseExecuteQuery($database,$prepared_query))
> > > $error=MetabaseError($database);
> > > MetabaseDestroyLOB($blob);
> > > }
> > > else
> > > {
> > > $error=$binary_lob["Error"];
> > > echo "Error 1 (CreateLOB): $error\n";
> > > }
> > > MetabaseFreePreparedQuery($database,$prepared_query);
> > >
> > > }
> > > else
> > > {
> > > $error=MetabaseError($database);
> > > echo "Error 2 (Prepare): $error\n";
> > > }
> > >
> > > I can connect and query the database otherwise, and it works fine. The
> > > problem is with the Blobs, that update statement is not getting run.
> > > There's only 1 row in the table, but the description and ole object do
> > > not get updated. If I switch the driver to use mysql as opposed to odbc,
> > > it works fine on an identical table (on linux, not windows). Any ideas?
> >
> > Did you verify that MetabaseExecuteQuery call above succeeds? If it does
> > not succeed, what is the error message that is returned?
> >
> > Regards,
> > Manuel Lemos
> >
> > > Mike B.
> > >
> > > On Wednesday 26 December 2001 02:49 pm, Manuel Lemos wrote:
> > > > Hello,
> > > >
> > > > Mike Baranski wrote:
> > > > > Hi, I'm trying to store a binary file in an access database, I'm
> > > > > using an ole type, and I think that it's getting inserted OK. My
> > > > > problem is that I don't know how to pull it out... How do you select
> > > > > the stuff that's in an ole object out of the database and display it,
> > > > > a jpg, for example. I can't even get the raw data. I've tried
> > > > > converting it to base 16 and inserting it, but I still can't pull it
> > > > > out. I know how to do this in mysql, so posting that won't help. I
> > > > > need to know how to do this with access.
> > > >
> > > > If you are using ODBC, you may want to try Metabase because it supports
> > > > BLOB fields with any ODBC driver. Metabase is Open Source and is freely
> > > > available here.
> > > >
> > > > http://phpclasses.UpperDesign.com/browse.html/package/20
> > > >
> > > > Regards,
> > > > Manuel Lemos
>
> --
> *********************************
> * Mike Baranski *
> * Security Managment Consulting *
> * 919-788-9200 Phone *
> * 919-510-0037 Fax *
> * [EMAIL PROTECTED] *
> *********************************
--- End Message ---
--- Begin Message ---
Hi.
Let's suppose I have 3 users in my site, each of them generating their
respective session variables. Assuming I have a session variable named
$variable, I'll end up in the server with 3 values: $variable_1, $variable_2
and $variable_3.
My question is: is there a way I can change let's say the variable of the
second user when the third user is running the php script? Can I access (and
change) the session registers generated by the users?
Thanks for your help,
Alex.
--- End Message ---
--- Begin Message ---
Not really, but you could...
You would somehow have to get the session id from user 2 to user 3 (this
would depend how your site worked). Then you could access the session
variables - it depends how your sessions are stored. If they were stored in
a database, then you could read them (by default they're in /tmp, in a
fairly easy to follow format). I probably wouldn't recommend changing the
variables in there (/tmp) though - but you could if they were held in a
database. I believe you can change the "session handler" in order to do
this, but I've never done it.
Dave.
> -----Original Message-----
> From: Alex Vargas [mailto:[EMAIL PROTECTED]]
> Sent: 28 December 2001 02:23
> To: [EMAIL PROTECTED]
> Subject: [PHP] Modify someone else's session register
>
>
> Hi.
>
> Let's suppose I have 3 users in my site, each of them generating their
> respective session variables. Assuming I have a session variable named
> $variable, I'll end up in the server with 3 values: $variable_1,
> $variable_2
> and $variable_3.
>
> My question is: is there a way I can change let's say the variable of the
> second user when the third user is running the php script? Can I
> access (and
> change) the session registers generated by the users?
>
> Thanks for your help,
>
> Alex.
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
No
Maybe you should consider database option or flat files to give info from
one user to the another?
Jerry Verhoef
-----Original Message-----
From: Alex Vargas [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 3:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Modify someone else's session register
Hi.
Let's suppose I have 3 users in my site, each of them generating their
respective session variables. Assuming I have a session variable named
$variable, I'll end up in the server with 3 values: $variable_1, $variable_2
and $variable_3.
My question is: is there a way I can change let's say the variable of the
second user when the third user is running the php script? Can I access (and
change) the session registers generated by the users?
Thanks for your help,
Alex.
--
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]
The information contained in this email is confidential and
may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any
form of disclosure, production, distribution or any action
taken or refrained from in reliance on it, is prohibited and
may be unlawful. Please notify the sender immediately.
The content of the email is not legally binding unless
confirmed by letter bearing two authorized signatures.
--- End Message ---
--- Begin Message ---
this is an option but it will surely break easily.
I am not completly sure, but i think that sessions variables are write to
the "session handler" at the end of the script. (maybe one of guru's can
clarify this?)
But if this is true consider this:
user 1: is running a script/requesting a page
user 2: is writing to the session variables of user 1
user 1: script is ending and writing the session variables to the session
handler. And writes over the modified session variables.
Jerry Verhoef
-----Original Message-----
From: Dave Brotherstone [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 9:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Modify someone else's session register
Not really, but you could...
You would somehow have to get the session id from user 2 to user 3 (this
would depend how your site worked). Then you could access the session
variables - it depends how your sessions are stored. If they were stored in
a database, then you could read them (by default they're in /tmp, in a
fairly easy to follow format). I probably wouldn't recommend changing the
variables in there (/tmp) though - but you could if they were held in a
database. I believe you can change the "session handler" in order to do
this, but I've never done it.
Dave.
> -----Original Message-----
> From: Alex Vargas [mailto:[EMAIL PROTECTED]]
> Sent: 28 December 2001 02:23
> To: [EMAIL PROTECTED]
> Subject: [PHP] Modify someone else's session register
>
>
> Hi.
>
> Let's suppose I have 3 users in my site, each of them generating their
> respective session variables. Assuming I have a session variable named
> $variable, I'll end up in the server with 3 values: $variable_1,
> $variable_2
> and $variable_3.
>
> My question is: is there a way I can change let's say the variable of the
> second user when the third user is running the php script? Can I
> access (and
> change) the session registers generated by the users?
>
> Thanks for your help,
>
> Alex.
>
>
> --
> 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]
The information contained in this email is confidential and
may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any
form of disclosure, production, distribution or any action
taken or refrained from in reliance on it, is prohibited and
may be unlawful. Please notify the sender immediately.
The content of the email is not legally binding unless
confirmed by letter bearing two authorized signatures.
--- End Message ---
--- Begin Message ---
Michael (and list) --
I've made the adjustment suggested the scripts are below.
What I'm trying todo is pass the "uid" and "mid" to the sales.php script.
It works the first time!! But if I reload sales.html the next record( w/
same uid) isn't added or if I login in as a different id the records aren't
added?
Scripts: login.php and sales.php.
Thanks for your time and knowledge,
David Jackson
----- login.php -----------
<?php
// start session
session_start();
session_register("Uid");
session_register("Umid");
// Connect to db
include("/home/sites/www.pickledbeans.com/web/connect.php");
// insert new user
$result = mysql_query("SELECT id,mid,name,perms FROM staff
WHERE name = '$frm_name'");
if (mysql_num_rows($result)!=1) {
echo "Dis ain't good !!\n";
echo "<html><body>";
echo "<meta http-equiv=\"refresh\" content=\"5;
url=http://backoffice.pickledbeans.com/index.html\">";
echo "</body></html>";
mysql_free_result ($result);
mysql_close($link);
} else {
echo "We have winner:\n";
// parse out query output and resign to session vars
list($id,$mid,$name) = mysql_fetch_row($result);
echo "<p>$id</p>";
echo "<p>$name</p>";
$Uid = $id;
$Umid = $mid;
$Uname = $name;
// redirect to main menu page
mysql_free_result ($result);
mysql_close($link);
echo "<html><body>";
echo "<meta http-equiv=\"refresh\" content=\"5;
url=http://backoffice.pickledbeans.com/sales.html\">";
echo "</body></html>";
}
?>
---------- sales.php ---------------
<?php
// If sesssion vars don't exist, goto login form
// else display sales data entry form
session_start();
// if(!session_is_registered("Uid")) {
// echo "<p>We need to goto login screen!!</p>";
// } else {
echo "<p>Session uid set to:$Uid</p>\n";
echo "<p>Session uid set to:$Umid</p>\n";
echo "<p>Session date: $frm_date</p>\n";
echo "<p>Session amount set to: $frm_amount</p>\n";
//
include("/home/sites/www.pickledbeans.com/web/connect.php");
// Insert Sales data into sales table
mysql_query("INSERT INTO sales(id,mid,date,amount)
VALUES('$Uid','$Umid','$frm_date','$frm_amount')") ;
mysql_close($link);
echo "<html><body>";
echo "<meta http-equiv=\"refresh\" content=\"5;
url=http://backoffice.pickledbeans.com/sales.html\">";
echo "</body></html>";
?>
--- End Message ---
--- Begin Message ---
All --
It appears that the problem was a table design problems,
my primary index wasn't set to auto-increment? So I was trying to
insert records with duplicate keys !!
This of course leads to another question, how do I return SQL error messages
to the browser?
Thanks,
David
--
--- End Message ---
--- Begin Message ---
mysql_query($query) or die(mysql_error($link_identifier));
die stops the script.
Or if you want a more subtile way you can try this
$result_identifier=@mysql_query($query);
if (!$result_identifier)
{
// Do some nice error handeling
}
Jerry Verhoef
-----Original Message-----
From: David Jackson [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 4:09 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] RESOLVED(maybe):Warning: Cannot send session cookie
All --
It appears that the problem was a table design problems,
my primary index wasn't set to auto-increment? So I was trying to
insert records with duplicate keys !!
This of course leads to another question, how do I return SQL error messages
to the browser?
Thanks,
David
--
--
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]
The information contained in this email is confidential and
may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any
form of disclosure, production, distribution or any action
taken or refrained from in reliance on it, is prohibited and
may be unlawful. Please notify the sender immediately.
The content of the email is not legally binding unless
confirmed by letter bearing two authorized signatures.
--- End Message ---
--- Begin Message ---
"David Jackson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> All --
> It appears that the problem was a table design problems,
> my primary index wasn't set to auto-increment? So I was trying to
> insert records with duplicate keys !!
> This of course leads to another question, how do I return SQL error
messages
> to the browser?
>
> Thanks,
> David
>
Out of habit, I abstract all of the MySQL functions to handle this. My
current setup for http://hosting.venura.net/ (still under construction).
outputs error messages like this:
function sqlQuery($query, $secure = 0) {
$result = mysql_query($query);
if(!$result) {
if($secure) {
$query = '*** hidden ***';
}
else {
/* This is just an oddity from how I construct some queries, primarily
INSERTs. If all of your queries are on a single line of text with no
leading/trailing whitespace or you don't care about appearance, you can
delete this section of the code */
$query = explode("\n", $query);
foreach($query as $line => $text) {
$query[$line] = trim($text);
}
$query = implode("\n", $query);
}
die('<h1>Oops...</h1><p><b>Sorry, but something seems to have gone
terribly wrong...</b></p>
<pre>
MySQL Error Number: ' . htmlspecialchars(mysql_errno()) . '
MySQL Error Description: ' . htmlspecialchars(mysql_error()) . '
Query Text:
' . htmlspecialchars($query) . '
</pre>
<p>(Yes, you probably have found a bug.)</p>
');
} else return ($result);
}
This will dump the query, error number and error description whenever a SQL
query fails. You can set the optional second parameter ($secure) to true if
your query involves anything that you don't want the end-user to see, such
as updating a password or something like that.
disclaimer: I didn't check to see what database engine you're using. If
you're using MySQL, this should work, otherwise use something similiar.
--- End Message ---
--- Begin Message ---
Hello to my php friends!
I am trying to compile PHP with: ---enable-trans-sid
But when i test out pages, the only time a real session is propagated
between pages is when i included the <?=SID?> in the URL's (AND THIS
WORKS GREAT!!!).
BUT, If I remove that PHP sniplet, the session restarts on every PHP
page I load. The PHP manuel specifically says that transparent ID
enabled eliminates the need to do that. Does anyone know what is going
on by chance?
Does anyone have some insight as to why my transparent ID is not being
passed between pages? Thank you.
my source files are:
(1) php-4.1.1.tar.gz (2) mysql_3.23.46.tar.gz and (3) apache_1.3.22.tar.Z
my whole compile command is:
./configure --with-mysql --with-apacher=../apache_1.3.24
--enable-track-vars --enable-trans-sid --with-imap --with-kerberos
--with-imap-ssl
in php.ini, i have:
session.use_trans_sid = 1
when i check my config logs, it says:
checking wether to enable transparent session id propagation . . . . yes
--- End Message ---
--- Begin Message ---
forgot to add, operating on Red Hat 7.1
Phantom wrote:
> Hello to my php friends!
>
> I am trying to compile PHP with: ---enable-trans-sid
>
> But when i test out pages, the only time a real session is propagated
> between pages is when i included the <?=SID?> in the URL's (AND THIS
> WORKS GREAT!!!).
>
> BUT, If I remove that PHP sniplet, the session restarts on every PHP
> page I load. The PHP manuel specifically says that transparent ID
> enabled eliminates the need to do that. Does anyone know what is
> going on by chance?
>
> Does anyone have some insight as to why my transparent ID is not being
> passed between pages? Thank you.
>
> my source files are:
>
> (1) php-4.1.1.tar.gz (2) mysql_3.23.46.tar.gz and (3) apache_1.3.22.tar.Z
>
> my whole compile command is:
>
> ./configure --with-mysql --with-apacher=../apache_1.3.24
> --enable-track-vars --enable-trans-sid --with-imap --with-kerberos
> --with-imap-ssl
>
> in php.ini, i have:
>
> session.use_trans_sid = 1
>
> when i check my config logs, it says:
>
> checking wether to enable transparent session id propagation . . . . yes
>
>
--- End Message ---
--- Begin Message ---
I know you can use ./configure --with-gd to compile gd with php
and same with ming, to make flash movies, for example
However, I noticed on source code one tutorial showed
the php script link straight to the ming .so file, which made me wonder *IF*
that was because they didn't use ./configure...is it possible to do that with
gd and others? To use php and that library *without* ./configure? I found
that odd, unless I misunderstood what they were doing in that ming flash
example by connecting to that .so file
Is that something you can do with ming, gd library or any other without
./configure option? If that is the case, what are the performance differences
in using such a method?
Is it such a bad idea, that I should avoid such practices?
If I need to elaborate and show a code example, I will. I just never really
knew of such a way to use a library.
Thanks for your time
Joel
--- End Message ---
--- Begin Message ---
Due to a few bugs in PHP 4.1.0. The PHP Group decided to release PHP 4.1.1.
The bugs that were fixed are not major ones but minor ones, which could be
annoying if you get bitten by them.
Their recommendation is that people who already upgraded to PHP 4.1.0 do not
need to upgrade to PHP 4.1.1 unless they're experiencing one of the
described bugs.
More information please go to www.php.net
--- End Message ---
--- Begin Message ---
Sorry for the OT, but im trying to figure out something with mysql and
need some help.
Does anyone know how set the auto_increment value to some other number
than 0. I have an order_number coloumn and I want to start it at 1000.
So the first record would 1001.
Thank you,
Steve Maroney
--- End Message ---
--- Begin Message ---
create table table_name
(
id int not null auto_increment,
primary key (id)
)
auto_increment = 1001
----- Original Message -----
From: "Steve Maroney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 6:59 AM
Subject: [PHP] Not PHP but MYSQL
>
>
> Sorry for the OT, but im trying to figure out something with mysql and
> need some help.
>
> Does anyone know how set the auto_increment value to some other number
> than 0. I have an order_number coloumn and I want to start it at 1000.
> So the first record would 1001.
>
>
>
>
>
>
>
>
> Thank you,
> Steve Maroney
>
>
>
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
Dear all
I'm using UltraDev which build a form containing a menu, there a two items
inside this menu for user to choose. This form is using Post Action to
$php_self which means it will pass back the variable to itself.
Then here is the question:
what should i do if i want to call a page prompt from a blank window when
the item A is selected?
and another page when Item B is selected!
thx a lot
jack
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
> I seriously doubt your code works -- have you tested it? I think the code
> you submitted will most probably output "1 2 3 4...24 25 26" (spaces are
> actually \n's). I never tested it though, so I may be mistaken.
Yes, it works. Test it before posting such doubts :)
Regards,
Philip Olson
> However, with just a few changes we get
> $letter='a';
> $i=0;
> while ($letter<'z') {
> $letter=Chr(ord($letter)+$i);
> $i++;
> print("$letter<br>\n");
> }
> which should work.
>
> Bogdan
>
> Philip Olson wrote:
>
> > Consider this example:
> >
> > $letter = 'a';
> > $i = 0;
> > while ($i++ < 26) {
> > print "Letter: ". $letter++ ."\n";
> > }
>
>
>
--- End Message ---
--- Begin Message ---
can this be set in the php file or htaccess with
sendmail_path ="pathtosendmail/sendmail -oi -t -odq";
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
----- Original Message -----
From: "Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 6:02 PM
Subject: Re: [PHP] Sending out mass mail without having timeout problems ..
> > > >Subject: [PHP] Sending out mass mail without having timeout problems
> ..
>
> Hi,
>
> Too much trouble to write who wrote what when. Someone suggested using an
> alias but that's not always doable.
>
> I had an app that read from a live rdbms and sent out emails. I sent each
> email to sendmail and waited fo it to send the email before going on to
the
> next one. My cohort determined that this was way, way too slow. He did
some
> research and added some new parameters to sendmail so that the email was
put
> in a queue and so the script ran MUCH faster. I believe these were the
> parameters. You should look them up on the sendmail site:
>
> sendmail -oi -t -odq
>
> Hope this helps.
>
> Peter
>
>
>
> --
> 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]
>
>
>
--- End Message ---
--- Begin Message ---
session variables are accessible the same as when you set them : <eg>
session_register('temp');
$temp = 1;
on another page:
session_start(); /* so that you can access your session variables...
echo "$temp"; /* this will echo "1"
and so you know you cannot define a variable for your class inside a
function (method)
"Christian Haines" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> (sorry if this has been posted a thousand times..i am having problems
> posting)
>
> hi all,
>
> how does one access and manipulate session variables from within a class?
> i have hunted the net high and low but received no relief.
>
> i have tried (where error is a session variable)
>
> class test
> {
> var $global['error'];
> }
>
> class test
> {
> var $HTTP_SESSION_VARS['error'];
> }
>
> class test
> {
> session_register("error");
> var $error;
> }
>
> all to no avail.
>
> please help!
>
> many thanks in advance,
> christian
>
--- End Message ---
--- Begin Message ---
Hi Richard,
> > So far so good! Only problem which I have is that some (=most)
> > people create email with clients that output email with HTML
> > codes (Internet Explorer for example)..
> Internet Explorer is a browser, it doesn't create email.
It was a bit late, I meant Outlook Express which comes/came with Internet Explorer..
> Does anyone khow how this is done..?
> Use either the imap extension, or the mimeDecode class available
> in PEAR, or here:
> http://www.phpguru.org
Thanks for the tip! I grabbed (your) code and tried to decode some messages..
This (almost) worked perfectly..!!!..... I only have the following problem: I (also)
use
your html.mime.mail class, for generating outgoing messages in php... :-)
All messages generated by this class I can't decode the body.. :-(
Because I am using your mime_mail.class quite some time I took a look at the version I
was
using.. I saw that I was still running 1.26.. I can remember that when I installed
it, I
had a
lot of trouble getting the HTML emails to display correctly.. Back then I fixed it by
removing all the
'\r' characters in the source.. (I think this is the reason the decode class won't
decode the
body..)
I grabbed version (2.0.3) with the hope that it would work out of the box.. But I still
(now) have the same problem
which I had with 1.26....
I saw that you could define the CRLF yourself, I fiddled with '\n', '\r\n' and a few
others.. But this doesn't seem to do anything for me... :-(
I have attached the -not-working- generated email.. This was done using PHP 4.0.6 and
the
internal mail function..
(Qmail delivered the email.)
I will give the smtp class a try tomorrow to see if that will work, but I still don't
really understands what it does.. (Does it inject the email
in mailer for the given IP number..?? Or does it try to deliver email himself to
different
hosts..?)
I will try to solve the html.mime.class problems, and I think that will then also solve
the decoding problem I have now..
Bye Bye
David
--- End Message ---
--- Begin Message ---
> OK, we're talking about Linux, right?
No ;) FreeBsd 4.x don't know exactly about x
> I'll bet `cat /proc/sys/fs/file-max` gives you 4096
>
> Try upping the file descriptor limit in /proc/sys/fs/file-max. That
> may or may not solve the problem; worth a try. How much memory does
> the client machine (the one you `configure'd) have?
--- End Message ---
--- Begin Message ---
Hi to everybody,
Im trying to use persistents connections to an Oracle Database through PHP,
for manageing transactions, and have some problems.
My Schema:
* Web Server: Apache 1.3.22 on a Linux RedHat 7.0
* PHP: 4.1.1 compiled with oracle module functions (OCI*)
* Data Base: Oracle 8.1.7 on a Windows NT Server
I need to manage transactions to database. For it i made a test pages like
this:
* 1 index page that generate some frames and open a persistent connection to
Oracle
* 1 frame that made an insert to one table of the database, and reopen the
persistent connection
* 1 frame that made an insert to another table of the same database, and
reopen the persistent connection
* 1 frame with 2 buttons, one for execute a Commit and another for execture
a Rollback
When i was using the ORA_* functions, some times works well, but other
times not work correctly...
Now using the OCI* functions dont work.
What im doing wrong?
Can somebody help me?
Avanced thanks
--- End Message ---
--- Begin Message ---
I'm on PHP/4.0.2
i'm getting
Fatal error: Call to undefined function: is_uploaded_file()
how can i emulate the function
will also nag my host but...
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--- End Message ---