php-general Digest 16 Sep 2010 08:20:33 -0000 Issue 6943

2010-09-16 Thread php-general-digest-help
php-general Digest 16 Sep 2010 08:20:33 - Issue 6943 Topics (messages 308102 through 308112): Install library 308102 by: Jordan Jovanov 308103 by: Ashley Sheridan bcompiler: compile in a diferent directory 308104 by: Ramiro Gonzalez Sending Encrypted Email

Re: [PHP] Re: Xpath arguments in variable

2010-09-16 Thread Pete Ford
On 15/09/10 18:00, David Harkness wrote: And let's not forget $v = $row-xpath(//membernumber[. = \$MemberId\]); The \ inside the string turns into a double-quote and using to delimit the string allows for variable substitution. Oooh, I hate using backslashes - they always seem so untidy...

[PHP] The session problems with a citrix terminal

2010-09-16 Thread Carlos Medina
Hi all, i am looking for a solution (approaching) for the following problem: My Application (PHP 5+, MySQL, Zend Framework) works fine. But unter the citrix terminal server allow to all user to see the informations (session data) of the last user. I think this is because all user of the

Re: [PHP] The session problems with a citrix terminal

2010-09-16 Thread Ashley Sheridan
On Thu, 2010-09-16 at 14:08 +0200, Carlos Medina wrote: Hi all, i am looking for a solution (approaching) for the following problem: My Application (PHP 5+, MySQL, Zend Framework) works fine. But unter the citrix terminal server allow to all user to see the informations (session data) of

[PHP] Re: libmcrypt usage

2010-09-16 Thread Nathan Rixham
Gary wrote: Can anyone tell me what the equivalent to the following command line usage of openssl is, in php using the mcrypt_* functions, please: , | openssl enc -e -aes-256-cbc -k some key ... ` TIA. I tried , | $iv =

[PHP] Re: Sending Encrypted Email

2010-09-16 Thread Nathan Rixham
Floyd Resler wrote: I need to send encrypted email. Can I use our server's signed certificate we use for Apache? Yes you can use the servers certificate, you can use any x509 certificate you like - however, I'd recommend checking out startssl.org who will give you a free smime certificate.

[PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
Hi there – I’m new to this news group. Any help with this is appreciated – When I populate session vars from a MYSQL query, they are still there when I change pages. If I populate them from an MSSQL query, they drop. It doesn't matter if I get to the next page using a header redirect or a

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Ashley Sheridan
On Thu, 2010-09-16 at 10:11 -0400, Cheryl Sullivan wrote: Hi there – I’m new to this news group. Any help with this is appreciated – When I populate session vars from a MYSQL query, they are still there when I change pages. If I populate them from an MSSQL query, they drop. It

[PHP] Valid Xml not validate with xsd

2010-09-16 Thread Alejandro Michelin Salomon
Hi: I am working with a xml document that is validate with a schema. Within php the xml does not validate, but if i use a external validator the same xml validates with no problems. My Php is now 5.2.14, but i test with 5.3.1 and the same problem. I create a small program as example:

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
Absolutely - This is from the first page ?php $_SESSION['UserLastName'] = strtolower(trim($_POST['txtLastName'])); $_SESSION['BadgeID'] = trim($_POST['txtBadgeID']); //access MS SQL Server database $q1 = select * from emps where emp_last = '.$_SESSION['UserLastName'].' and

[PHP] Duplicate session ids

2010-09-16 Thread Vertebrac
Hi all!! I have a server running: Debian Lenny Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch Clients connect to the system using firefox browser (all of them), and some of them have cloned machines (win 7 - Norton Ghost). I mention this in case that the session id

Re: [PHP] How to store data that doesn't change?

2010-09-16 Thread tedd
At 8:46 AM -0400 9/15/10, Peter van der Does wrote: Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see there are several options to

[PHP] timezone math problem.

2010-09-16 Thread Paul Halliday
I have the following: #!/usr/local/bin/php ?php $offset = date(Z); $sDate = '2010-09-16'; $sTime = '00:00:00'; $eDate = '2010-09-17'; $eTime = '00:00:00'; $tmpStart0 = date($sDate $sTime); $tmpEnd0 = date($eDate $eTime); $startDate = date(Y-m-d H:i:s,strtotime($tmpStart0 . - . $offset seconds));

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Tommy Pham
-Original Message- From: Cheryl Sullivan [mailto:csull...@shh.org] Sent: Thursday, September 16, 2010 7:12 AM To: php-general@lists.php.net Subject: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick Hi there – I’m new to this news group. Any

[PHP] Re: libmcrypt usage

2010-09-16 Thread Nathan Rixham
Gary wrote: Nathan Rixham wrote: Gary wrote: Can anyone tell me what the equivalent to the following command line usage of openssl is, in php using the mcrypt_* functions, please: , | openssl enc -e -aes-256-cbc -k some key ... ` TIA. I tried , | $iv =

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Andrew Ballard
On Thu, Sep 16, 2010 at 10:26 AM, Cheryl Sullivan csull...@shh.org wrote: Absolutely - This is from the first page ?php $_SESSION['UserLastName'] = strtolower(trim($_POST['txtLastName'])); $_SESSION['BadgeID'] = trim($_POST['txtBadgeID']); //access MS SQL Server database $q1 = select

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
SQL Server 8.00.818 - SP3 (Enterprise Edition) Unfortunately I am fairly new to PHP and my boss just went home sick for the day, so I don't know how to answer the question about the extension. Can you tell me where I can find that? -Original Message- From: Tommy Pham

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Tommy Pham
-Original Message- From: Cheryl Sullivan [mailto:csull...@shh.org] Sent: Thursday, September 16, 2010 8:33 AM To: Tommy Pham; php-general@lists.php.net Subject: RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick SQL Server 8.00.818 - SP3

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Peter Lind
On 16 September 2010 16:26, Cheryl Sullivan csull...@shh.org wrote: Absolutely - This is from the first page ?php $_SESSION['UserLastName'] = strtolower(trim($_POST['txtLastName'])); $_SESSION['BadgeID'] = trim($_POST['txtBadgeID']); //access MS SQL Server database $q1 = select

[PHP] Re: Question about news.php.net

2010-09-16 Thread MikeB
MikeB wrote: Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
We are actually running the query through a function that removes single ticks, etc to avoid this, but I didn't think that was relevant to the question so I didn't include it. Thanks, though! -Original Message- From: Peter Lind [mailto:peter.e.l...@gmail.com] Sent: Thursday, September

[PHP] Downgrading HTML

2010-09-16 Thread Matt Neimeyer
I know I could possibly hack something together using the Tidy libraries... (maybe...) but are there any existing php libraries / projects that already have the ability to take some HTML and downgrade the version of HTML being used. One example: turn this... p style=font-weight: boldBlah/p

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
Tommy - I ran phpinfo() but I don't see anything in it referencing MSSQL or SQLSRV. I have included all the references to sql I see below, but the only references I see to databases are to mySQL and SQLLite. Unfortunately I don't have any control over how service-packed the database server is.

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Andrew Ballard
On Thu, Sep 16, 2010 at 10:26 AM, Cheryl Sullivan csull...@shh.org wrote: [snip] When I echo all five $_SESSION vars from here, they are all populated. Then I can either redirect or form post to the next page. In either case, the $_SESSION vars populated from SQL Server ( the SSN and Cost

Re: [PHP] Re: Xpath arguments in variable

2010-09-16 Thread David Harkness
On Thu, Sep 16, 2010 at 1:20 AM, Pete Ford p...@justcroft.com wrote: On 15/09/10 18:00, David Harkness wrote: $v = $row-xpath(//membernumber[. = \$MemberId\]); Oooh, I hate using backslashes - they always seem so untidy... I have a pathological fear of sed scripts, too. :( And yet I find

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Peter Lind
On 16 September 2010 20:03, Cheryl Sullivan csull...@shh.org wrote: We are actually running the query through a function that removes single ticks, etc to avoid this, but I didn't think that was relevant to the question so I didn't include it.  Thanks, though! You're the one with the problem

Re: [PHP] Downgrading HTML

2010-09-16 Thread Ashley Sheridan
On Thu, 2010-09-16 at 14:07 -0400, Matt Neimeyer wrote: I know I could possibly hack something together using the Tidy libraries... (maybe...) but are there any existing php libraries / projects that already have the ability to take some HTML and downgrade the version of HTML being used.