RE: [PHP] mssql_* overhead

2007-01-10 Thread bruce
hey chris.. you're confirming what i had seen/experienced.. just wanted to better understand what phillip was saying. thanks -bruce -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 5:37 PM To: [EMAIL PROTECTED] Cc: 'php General List' Subject: R

Re: [PHP] Imap certificate error?

2007-01-10 Thread Chris
MIKE YRABEDRA wrote: When using imap_open to access my email server, I keep getting a invalid certificate error. The cert on the email server is issued from Geotrust and is quite common (Rapidssl). The error comes from it not being listed in the root certificates list (bundle). My question

Re: [PHP] Extending 'include' behavior in a function

2007-01-10 Thread Eli
Jochem Maas wrote: short of playing around with the global keyword (which won't work when you call includeIt() from another function)) your pretty much stuck. basically imho you need to rethink what it is your trying to do. function have their own scope for a reason; maybe consider using an arr

Re: [PHP] mssql_* overhead

2007-01-10 Thread Chris
bruce wrote: hi phillip... just to clarify regarding having the mysql resource ID in a session var. are you saying that you're able to more or less, do a mysql_connect and store the resourceID in a session var, which can then be used on any given page within your site, without having to recall t

RE: [PHP] 5.2 installer not working and iis looking for password

2007-01-10 Thread Dick Jiang
You should give the anonymous access to the directory, you can configure it in the IIS management. Regards, Dick -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 4:27 AM To: php-general@lists.php.net Subject: [PHP] 5.2 installer not working and iis

Re: [PHP] Extending 'include' behavior in a function

2007-01-10 Thread Jochem Maas
short of playing around with the global keyword (which won't work when you call includeIt() from another function)) your pretty much stuck. basically imho you need to rethink what it is your trying to do. function have their own scope for a reason; maybe consider using an array argument like so:

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Chris wrote: Ryan Fielding wrote: Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option t

Re: [PHP] Extending 'include' behavior in a function

2007-01-10 Thread Chris
Eli wrote: Hi, I want to create a function that does some stuff, and then includes another file in the place from where it was called. The idea is to run the included file not in the function, but in the place of the caller in the caller's environment (not in the function environment). For e

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Chris
Ryan Fielding wrote: Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 dif

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Jochem Maas
Ryan Fielding wrote: > Ryan Fielding wrote: >> Chris wrote: >>> Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the optio

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Ryan Fielding wrote: Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
Chris wrote: Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that these items will be de

[PHP] Extending 'include' behavior in a function

2007-01-10 Thread Eli
Hi, I want to create a function that does some stuff, and then includes another file in the place from where it was called. The idea is to run the included file not in the function, but in the place of the caller in the caller's environment (not in the function environment). For example: -

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-10 Thread Jochem Maas
Richard Luckhurst wrote: > Hi Jochem, > > Thanks for your reply > >>> >>> > > JM> I'm fairly certain that this 'ypsilon' tag is going to cause a > JM> problem - although that's just a guess, it's based on the 'knowledge' > JM> that a valid XML document *must* have only 1 root element > JM> (wh

Re: [PHP] Extending session timeouts manually

2007-01-10 Thread Chris
Ryan Fielding wrote: I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that these items will be delivered to. I'

Re: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-10 Thread Chris
Philip Thompson wrote: Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction that rolls back on failure and commits on success (of course). If it commits, I get the proper return value (int)

Re: [PHP] given up of iis now trying apache

2007-01-10 Thread Chris
Ross wrote: Everything seems to be working but when I try and run a php file. It offer the download dialogue box. I remeber doing something where you tick a box to enable scripts and execute them or something in the manager. Can anyone help? AFAIK apache doesn't have a manager that has a bun

[PHP] Extending session timeouts manually

2007-01-10 Thread Ryan Fielding
I'm using a session to save cart contents within a store, and this session follows the user as they proceed through the checkout. My problem is, if a customer orders say 10 items, they have the option to input 10 different addresses that these items will be delivered to. I've noticed that some

Re: [PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-10 Thread Frank M. Kromann
Hi, --with-mssql=/usr or --with-mssql=shared,/user should work with your configuration. It's looking for /usr/include/tds.h or /usr/include/freetds/tds.h. If the file was not found in any of those locations you will get the error you are describing here. - Frank > Hi, > > I am trying to compile

Re[2]: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-10 Thread Richard Luckhurst
Hi Jochem, Thanks for your reply >> >> >> JM> I'm fairly certain that this 'ypsilon' tag is going to cause a JM> problem - although that's just a guess, it's based on the 'knowledge' JM> that a valid XML document *must* have only 1 root element JM> (which would be 'fareResponse' in this case)

[PHP] Unable to compile php with MSSQL support / configure: error: Directory /usr is not a FreeTDS installation directory

2007-01-10 Thread mbneto
Hi, I am trying to compile php 5.0.6 with mssql support with no luck. I have freetds, freetds-devel but no luck so far. I've tried the simplest form and some variations variations ./configure --with-mssql ./configure --with-mssql=/usr ./configure --with-mssql=shared,/usr ./configure --with-mssq

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Jochem Maas
Satyam wrote: > > - Original Message - From: "Otto Wyss" <[EMAIL PROTECTED]> > >> What is the usual save way to store/use DB access info in a script. I >> currently just use some PHP variables in a file which I include in all >> other scripts. >> >> config.php >> > if (!defined ("config

[PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-10 Thread Philip Thompson
Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction that rolls back on failure and commits on success (of course). If it commits, I get the proper return value (int) and the appropriate

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Satyam
- Original Message - From: "Otto Wyss" <[EMAIL PROTECTED]> What is the usual save way to store/use DB access info in a script. I currently just use some PHP variables in a file which I include in all other scripts. config.php Is this save enough or are there better ways? Where sh

Re: [PHP] Javascript detection , working version

2007-01-10 Thread Jürgen Wind
>index.php, jstest110.php) , make it one. no, it was just a proof of concept >It would be cool if I could send js value via a >POST instead of GET-- can that be done? should be possible with some onload/xhtmlrequest >tedd >PS: I read somewhere that using is not recommended. hmm, any links or

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Jochem Maas
I think what your doing now is reasonably safe, but it assumes that apache will actually pass all .php files to php for processing. if the php module doesn't load for some reason then the contents of the file will be output in it's entirety - this is why it's much better to store this file outside

[PHP] Re: PHP/Apache configuration failure

2007-01-10 Thread zerof
Bruce A. Julseth escreveu: I can't get Apache to restart after I've configured for PHP. I've upgraded my installation to 5.2. ... ... My mailbox is spam-free with ChoiceMail, the leader in pers

[PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Otto Wyss
What is the usual save way to store/use DB access info in a script. I currently just use some PHP variables in a file which I include in all other scripts. config.php Is this save enough or are there better ways? Where should I store this file so it isn't accessible via the net but inside sc

Re: [PHP] 5.2 installer not working and iis looking for password

2007-01-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 20:26:44 -: > > I am trying to install 5.2 via the installer but the when I try and open a > page IIS asks for a password and the page is not found. > > Any ideas? Umm, configure the webserver manually? -- How many Vietnam vets does it take to screw in a l

Re: [PHP] mssql_* overhead

2007-01-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 10:49:35 -0600: > On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: > >Philip Thompson wrote: > >>Does anyone know if the mssql_connect/_init/_bind/etc require a > >>lot of overhead? You can quite easily find out what effect those function have on the performance

[PHP] 5.2 installer not working and iis looking for password

2007-01-10 Thread Ross
I am trying to install 5.2 via the installer but the when I try and open a page IIS asks for a password and the page is not found. Any ideas? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mssql_* overhead

2007-01-10 Thread bruce
hi phillip... just to clarify regarding having the mysql resource ID in a session var. are you saying that you're able to more or less, do a mysql_connect and store the resourceID in a session var, which can then be used on any given page within your site, without having to recall the mysql_connec

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
Ok, just kidding. Thank you Jim and Jochem. You answered my question in your previous posts! Thanks to all! ~Phil On Jan 10, 2007, at 11:27 AM, Philip Thompson wrote: I just wanted to make sure that there is no speed decrease if I change from $_SESSION to $GLOBALS to hold my connection (ev

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
I just wanted to make sure that there is no speed decrease if I change from $_SESSION to $GLOBALS to hold my connection (even with lots of people). I guess that's my question? Thanks, ~Philip On Jan 10, 2007, at 11:01 AM, [EMAIL PROTECTED] wrote: I thought the same thing as Jochem... that

Re: [PHP] mssql_* overhead

2007-01-10 Thread Jochem Maas
Philip Thompson wrote: > On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: > >> Philip Thompson wrote: >>> Hi. >>> >>> Does anyone know if the mssql_connect/_init/_bind/etc require a lot of >>> overhead? >>> >>> I have a page that requires multiple function calls and each of those >>> opens a new c

Re: [PHP] mssql_* overhead

2007-01-10 Thread Jim Lucas
Philip Thompson wrote: On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Philip Thompson wrote: Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens a new connection to the database, pe

Re: [PHP] mssql_* overhead

2007-01-10 Thread tg-php
I thought the same thing as Jochem... that resources like database connections, couldn't be stored in $_SESSION. You say that's how you have (had?) it set up and it was working, but still sounds wrong to me. As for connections.. definitely don't open a new connection every time you run a functi

Re: [PHP] mssql_* overhead

2007-01-10 Thread Eric Butera
On 1/10/07, Philip Thompson <[EMAIL PROTECTED]> wrote: On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: > Philip Thompson wrote: >> Hi. >> >> Does anyone know if the mssql_connect/_init/_bind/etc require a >> lot of >> overhead? >> >> I have a page that requires multiple function calls and each

[PHP] PHP/Apache configuration failure

2007-01-10 Thread Bruce A. Julseth
I can't get Apache to restart after I've configured for PHP. I've upgraded my installation to 5.2. Now, Apache 2.2.3 runs fine without any PHP additions. 1) I added my PHP directory, C:/PHP5, to my PATH 2) I copied php.ini-recommended to my C:/windows directory and renamed it php.ini 3) I made

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Philip Thompson wrote: Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens a new connection to the database, performs the necessary

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

2007-01-10 Thread Atpic
Hi Jochem, 1) yes, the milter could do some action based on the subject of the mail, the sender's address, the recipient's address, etc... Note that it is sometimes difficult to compile several SAPIs at the same time. I could get the Apache module and CLI (command line interface) SAPI in one compi

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

2007-01-10 Thread Jochem Maas
Atpic wrote: > Hi Jochem, > > Well, the best known spam filtering solution is PERL based > (mimedefang/spamassassin). spamassassin at least I (a little) familiar with (I usually leave the intricacies to someone with much more knowledge about this kind of stuff - what are sys admins for? :-) >

Re: [PHP] mssql_* overhead

2007-01-10 Thread Jochem Maas
Philip Thompson wrote: > Hi. > > Does anyone know if the mssql_connect/_init/_bind/etc require a lot of > overhead? > > I have a page that requires multiple function calls and each of those > opens a new connection to the database, performs the necessary actions > in stored procedure(s), and then

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

2007-01-10 Thread Atpic
Hi Jochem, Well, the best known spam filtering solution is PERL based (mimedefang/spamassassin). In theory, you could do this using the PHP milter SAPI: the SAPI provides you with a way to catch the STMP commands sent by mail server to you mail server and tell your mail server want to tell to the

[PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens a new connection to the database, performs the necessary actions in stored procedure(s), and then closes the connection. Howev

Re: [PHP] Javascript detection , working version

2007-01-10 Thread tedd
At 4:54 AM -0800 1/10/07, Jürgen Wind wrote: 8< [source of index] Nice -- now instead of two different pages (i.e., index.php, jstest110.php) , make it one. Here's my solution: echo("type='text/javascript'>location.href='index.ph

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

Atpic wrote: > Hi, > > I did not get a reply to my question on this list, most likely because nobody here had much of a clue as to how to help, I for one got my brain in a twist trying to figure what you were going on about, I didn't succeed :-) > so I raised a bug. The > bug was confirmed and

Re: [PHP] PHP milter SAPI: problem with smfi_getsymval

Hi, I did not get a reply to my question on this list, so I raised a bug. The bug was confirmed and fixed within 24 hours. Thank you the PHP team! FYI the bug number is 40083 http://bugs.php.net/40083 You can now start filtering spam using your favorite programming language! Thanks Alex, Atpic.co

Re: [PHP] Javascript detection , working version

; as i already said elsewhere in the thread: it was just a quick&dirty hack, as tedds link didn't work. But Roman made a good point: >Out of curiosity, can you guarantee the Javascript redirect will always >occur before the meta redirect when Javascript is enabled? Otherwise y

[PHP] Imap certificate error?

When using imap_open to access my email server, I keep getting a invalid certificate error. The cert on the email server is issued from Geotrust and is quite common (Rapidssl). The error comes from it not being listed in the root certificates list (bundle). My question is, is this a problem

RE: [PHP] Problems with mysql_connect()

You're missing a closing parenthesis at the end of: while ($row = mysql_fetch_row($result) This should be while ($row = mysql_fetch_row($result)) > -Original Message- > From: Delta Storm [mailto:[EMAIL PROTECTED] > Sent: 10 January 2007 10:45 > To: php-general@lists.php.net > Subject: [

Re: [PHP] Problems with mysql_connect()

Delta Storm wrote: > Hi, > > I'm having problems with this code (a simple exercise where i wanto to > connect to sql server and get data from it and write that data in html) > > //Prolazi kroz skup zapisa > //ispisuje svako polje > while ($row = mysql_fetch_row($result)

Re: [PHP] Problems with mysql_connect()

There is a closing parenthesis missing, see below: - Original Message - From: "Delta Storm" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 10, 2007 11:45 AM Subject: [PHP] Problems with mysql_connect() Hi, I'm having problems with this code (a simple exercise where i wanto to con

[PHP] Problems with mysql_connect()

Hi, I'm having problems with this code (a simple exercise where i wanto to connect to sql server and get data from it and write that data in html) : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Exercise 23 - Using PHP with MySQL $connec

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

# [EMAIL PROTECTED] / 2007-01-10 09:52:34 +: > That ypsilon is a *preprocessing instruction* AFAICT. s/pre// -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mai

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

# [EMAIL PROTECTED] / 2007-01-10 09:38:30 +0100: > Richard Luckhurst wrote: > > Hi Jochem, > > > > Thanks for your reply. Here is a short sample of the XML I have to parse. I > > need > > the data in the attributes as well as the data in the character fields. > > > > > > > > I'm fairly certai

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

Richard Luckhurst wrote: > Hi Jochem, > > Thanks for your reply. Here is a short sample of the XML I have to parse. I > need > the data in the attributes as well as the data in the character fields. > > > I'm fairly certain that this 'ypsilon' tag is going to cause a problem - although that's