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. 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. ?xml version=1.0 encoding=UTF-8? ?ypsilon RNGSchema=fareResponse.rnc type=compact? I'm fairly

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

2007-01-10 Thread Roman Neuhauser
# [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. ?xml version=1.0 encoding=UTF-8?

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

2007-01-10 Thread Roman Neuhauser
# [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

[PHP] Problems with mysql_connect()

2007-01-10 Thread Delta Storm
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) : !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

Re: [PHP] Problems with mysql_connect()

2007-01-10 Thread Satyam
There is a closing parenthesis missing, see below: - Original Message - From: Delta Storm [EMAIL PROTECTED] To: php-general@lists.php.net 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

Re: [PHP] Problems with mysql_connect()

2007-01-10 Thread Jochem Maas
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()

2007-01-10 Thread Edward Kay
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: [PHP]

[PHP] Imap certificate error?

2007-01-10 Thread MIKE YRABEDRA
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] Javascript detection , working version

2007-01-10 Thread Jürgen Wind
://149.222.235.16/public/index.php (20070110) : 8 noscript meta http-equiv='refresh' content='0;url=jstest110.php?js=no' ?php /*** or put here your complete page for browsers with js disabled ***/ ? /noscript -- View this message in context: http://www.nabble.com/Javascript-detection

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

2007-01-10 Thread Atpic
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,

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

2007-01-10 Thread Jochem Maas
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] 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] noscript meta http-equiv='refresh' content='0;url=jstest110.php?js=no' ?php /*** or put here your complete page for browsers with js disabled ***/ ? /noscript Nice -- now instead of two different pages (i.e.,

[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.

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

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 closes

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? :-) In

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

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

[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 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 of those opens

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

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,

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 connection to the

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 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

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

[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 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 profile

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 light

[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 ?PHP if (!defined (config_include)) die (Error...); $dbhost = localhost; $dbuser = name; $dbpass = password; $dbname

[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

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

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 noscript is not recommended. hmm, any links

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 ?PHP if (!defined (config_include)) die (Error...);

[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

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 ?PHP if (!defined (config_include)) die

[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

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 ?xml version=1.0 encoding=UTF-8? ?ypsilon RNGSchema=fareResponse.rnc type=compact? 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*

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

[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] 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

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] 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.

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 ?xml version=1.0 encoding=UTF-8? ?ypsilon RNGSchema=fareResponse.rnc type=compact? 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

[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] 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

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 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 option to input 10

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

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

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

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] 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] 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

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

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] 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: