Re: [PHP] maintaining session information

2007-08-16 Thread Chris
Vic Agnews wrote: is there a way we can maintain session information across two sub-domains (on two different servers though) ... kinda like how google does it? Might have to use a 3rd party cookie & possibly a custom session handler. A cookie created on 'domain.com' cannot be read by any sub

[PHP] Web Service with PHP4 suggestions wanted.

2007-08-16 Thread Mattias Hakansson
Hello fellow PHP developers, I have recently fell upon the task of creating a Web Service. I have a web based application which also needs to be able to handle exchanging the result of the application back to the client, using a web service. Problem here is that I am currently still tied into P

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-16 Thread ecc
Ok, yesterday i´ve tried this... the command freezese. No chance to get an error from the archive. Am i stupid? The original zip tool give me an error on bad crc in a file, php quits with an freeze. I´ve tried also the crc error. No chance. The $zip->open always give me and TRUE as return value.

Re: [PHP] Web Service with PHP4 suggestions wanted.

2007-08-16 Thread Paul Scott
On Thu, 2007-08-16 at 09:55 +0200, Mattias Hakansson wrote: > So I request some suggestions from any one that has experience with this > on what web service library/extension you would chose with PHP 4 ? > I read about nuSOAP but it seems they are not any longer maintaining the > source ? since

[PHP] pecl in php5?

2007-08-16 Thread Per Jessen
I'm trying to install the pecl mailparse extension, but I'm not getting very far: pecl install mailparse pecl/mailparse requires PHP extension "mbstring" No valid packages found install failed "mbstring" does not seem to be a php extension, and in any case I built php with "--enable-mbstring".

[PHP] Re: pecl in php5?

2007-08-16 Thread Per Jessen
Per Jessen wrote: > I'm trying to install the pecl mailparse extension, but I'm not > getting very far: > > pecl install mailparse > pecl/mailparse requires PHP extension "mbstring" > No valid packages found > install failed > > "mbstring" does not seem to be a php extension, and in any case I >

RE: [PHP] pecl in php5?

2007-08-16 Thread Edward Kay
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: 16 August 2007 10:25 > To: php-general@lists.php.net > Subject: [PHP] pecl in php5? > > > I'm trying to install the pecl mailparse extension, but I'm not getting > very far: > > pecl install mailparse > pecl/mailp

[PHP] for loop inside a switch

2007-08-16 Thread Hulf
Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] pecl in php5?

2007-08-16 Thread Per Jessen
Edward Kay wrote: > > Does mbstring show up in phpinfo()? Good tip - no, it doesn't - which I'll have to have a look at. /Per -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] for loop inside a switch

2007-08-16 Thread Mohamed Yusuf
I don't think it is going to work. IMO On 8/16/07, Hulf <[EMAIL PROTECTED]> wrote: > > Hi, > > switch ($q) { > > for ($i=0; $i <21; $i++) { > case 'faq$i': > echo $faq1; > break; > } > } > > > I just want to loop out a big long list of cases. > > -- > PHP General Mailing List (http://www.p

[PHP] Re: for loop inside a switch

2007-08-16 Thread Per Jessen
Hulf wrote: > Hi, > > switch ($q) { > > for ($i=0; $i <21; $i++) { > case 'faq$i': > echo $faq1; > break; > } > } > > > I just want to loop out a big long list of cases. You should look up "self-modifying code" - maybe in wikipedia. /Per Jessen -- PHP General Mailing List (http:

RE: [PHP] pecl in php5?

2007-08-16 Thread Per Jessen
Per Jessen wrote: > Edward Kay wrote: > >> >> Does mbstring show up in phpinfo()? OK, yes, mbstring is installed: (from php5 -r 'phpinfo();' : mbstring Multibyte Support => enabled Multibyte string engine => libmbfl Multibyte (japanese) regex support => enabled Multibyte regex (oniguruma) ve

Re: [PHP] XML editors

2007-08-16 Thread Frank Arensmeier
Although I am not able to give you any helping advice, I would like to know if there are any PHP based XML "online" - editors out there (that would allow me to edit XML files online so to say). One thing that poped up in my mind was Tiny MCE. Sure, it could be possible to customise Tiny MCE

Re: [PHP] for loop inside a switch

2007-08-16 Thread Stut
Hulf wrote: Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. That's not a valid construct, but if I understand what you're trying do, this should work... $faqs = array(); for ($i = 0; $i < 21; $i+

[PHP] php 5 and ms sql server express won't play nice !

2007-08-16 Thread Gregory Machin
Hi I have tried most of the configuration options in the php manual / examples http://www.php.net/function.mssql-connect and I just can't get it to connect I'm running WAMP5 and have enables php_mssql.dll extentions etc .. sql server 2005 express has both named pipes and tcp/ip conections enabled,

[PHP] Re: for loop inside a switch

2007-08-16 Thread Colin Guthrie
Stut wrote: > Hulf wrote: >> Hi, >> >> switch ($q) { >> >> for ($i=0; $i <21; $i++) { >> case 'faq$i': >> echo $faq1; >> break; >> } >> } >> >> >> I just want to loop out a big long list of cases. > > That's not a valid construct, but if I understand what you're trying do, > this should w

[PHP] Re: XML editors

2007-08-16 Thread Colin Guthrie
Frank Arensmeier wrote: > Although I am not able to give you any helping advice, I would like to > know if there are any PHP based XML "online" - editors out there (that > would allow me to edit XML files online so to say). One thing that poped > up in my mind was Tiny MCE. Sure, it could be possib

Re: [PHP] for loop inside a switch

2007-08-16 Thread Dimiter Ivanov
On 8/16/07, Hulf <[EMAIL PROTECTED]> wrote: > Hi, > > switch ($q) { > > for ($i=0; $i <21; $i++) { > case 'faq$i': > echo $faq1; > break; > } > } > > > I just want to loop out a big long list of cases. Maybe you want this kind of functionality : http://www.php.net/manual/en/language.varia

[PHP] Re: XML editors

2007-08-16 Thread Al
Since posting this, I found what appears to be an excellent choice. http://xml-copy-editor.sourceforge.net/ Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... -- PHP General Mailing List (

Re: [PHP] convert (windows-1250) to (utf-8)

2007-08-16 Thread Martin Marques
Alain Roger wrote: Hi, I import a csv file (which includes characters from "windows-1250" charset) to postgreSQL database which is in UTF-8. How can i convert windows-1250 to utf-8 charset ? This is a PostgreSQL question. Check client_encoding and server_encoding. -- 21:50:04 up 2 days, 9:

Re: [PHP] PostgreSQL and select nextval

2007-08-16 Thread Martin Marques
Alain Roger wrote: Hi, I'm getting an error message when i run the following SQL request : $sql = "INSERT INTO tmp_importedxls (rec_id, publisher) VALUES (SELECT nextval('tmp_importedxls_rec_id_seq'),'$pb')"; Error in SQL query: ERROR: syntax error at or near "SELECT" LINE 2: VALUES (SELECT nex

[PHP] XMLRPC and file_get_contents

2007-08-16 Thread Andreas Schlicker
Hi all, I'm writing an XML-REC client in PHP, based on the following example: array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request ))); $file = file_get_contents("http://www.example.com/xmlrpc";, false, $context); $response = xmlrpc_decode($file); i

[PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
Hey Everyone, Is it possible to have variables affect the database results of an included php page in a shtml page? Let me try and clear that up... index.shtml?order=a < that does not resort the database results index.php?order=a <- That DOES resort the database results... Can I just

Re: [PHP] XMLRPC and file_get_contents

2007-08-16 Thread Stut
Andreas Schlicker wrote: Hi all, I'm writing an XML-REC client in PHP, based on the following example: array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request ))); $file = file_get_contents("http://www.example.com/xmlrpc";, false, $context); $respon

Re: [PHP] XMLRPC and file_get_contents

2007-08-16 Thread Andreas Schlicker
Stut wrote: Andreas Schlicker wrote: Hi all, I'm writing an XML-REC client in PHP, based on the following example: array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request ))); $file = file_get_contents("http://www.example.com/xmlrpc";, false, $conte

Re: [PHP] PostgreSQL and select nextval

2007-08-16 Thread Martin Marques
Richard Lynch wrote: On Sun, August 12, 2007 2:35 am, Alain Roger wrote: I'm getting an error message when i run the following SQL request : $sql = "INSERT INTO tmp_importedxls (rec_id, publisher) VALUES (SELECT nextval('tmp_importedxls_rec_id_seq'),'$pb')"; Error in SQL query: ERROR: syntax er

[PHP] Is it possible to disable eval()?

2007-08-16 Thread hshh
Hi, I try to disable eval() function in php script, but failed. In php.ini disable_functions=eval is not work, but other functions. So, is it possible to disable eval()? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] STDIN Stream Query

2007-08-16 Thread Jason Freeman
Hi All I am having a problem getting stream_set_blocking to work the way I expect on STDIN. Please could someone tell me why while blocking is set to false fread does not get anything. Sampe code follows: Code: ".$pos."\r\n"); sleep(1); } stream_set_blocking(STDIN, true); $pos = fread(ST

Re: [PHP] Is it possible to disable eval()?

2007-08-16 Thread Steffen Ebermann
On Thu, Aug 16, 2007 at 09:50:30PM +0800, hshh wrote: > I try to disable eval() function in php script, but > failed. In php.ini disable_functions=eval is not work, > but other functions. > So, is it possible to disable eval()? Thanks. It don't work because eval() isn't a function. The Suhosin p

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hey Everyone, > > Is it possible to have variables affect the database results of an > included php page in a shtml page? Let me try and clear that up... > > index.shtml?order=a < that does not resort the database results > index.php?order=a

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: Hey Everyone, Is it possible to have variables affect the database results of an included php page in a shtml page? Let me try and clear that up... index.shtml?order=a < that does not res

Re: [PHP] php 5 and ms sql server express won't play nice !

2007-08-16 Thread Kirk Friggstad
SQL Server Express defaults to installing as a named instance - assuming that you're running Apache/PHP on the same machine as SQL Server Express, I believe you'll want to use "(local)\SQLEXPRESS" as the host to connect to. If it's on a different machine, you'll want to use "MACHINENAME\SQLEXPRESS"

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote: > > > On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > >> Hey Everyone, > >> > >> Is it possible to have variables affect the database results of an > >> included php page in a shtml page? L

Re: [PHP] adding "Back to Search results" link

2007-08-16 Thread Derek
Lets just say that option wouldn't be a great moment in design history "Bastien Koert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] what about hadding the search form elements to the results page and letting the users search right from there bastien> To: php-general@lists.php.ne

[PHP] Re: STDIN Stream Query

2007-08-16 Thread Per Jessen
Jason Freeman wrote: > Hi All > > I am having a problem getting stream_set_blocking to work the way I > expect on STDIN. Please could someone tell me why while blocking is > set to false fread does not get anything. When a file descriptor (stdin) is non-blocking, any read() will not block and w

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand what sessions are used for? :) You could definitely do it with sessions if you wanted, but you won

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: > > >> > >> Unless I use sessions maybe? Could I write the sort order into a > >> session variable and have that change? Or did I completely > >> misunderstand what sessions are used for? :) > >

[PHP] test for multi-dim array

2007-08-16 Thread John Pillion
I'm trying to recursively loop through a multi dimensional array with unknown keys and unknown values, and echo the keys/values to a sql statement, where the key is the field, and the value is the. value. What I want to do is test an array index to see if it has any children indices (which then

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand w

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: > > > On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > >> > >> On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: > >> > > Unless I use sessions maybe? Could I write the sort order

[PHP] Re: pecl in php5?

2007-08-16 Thread Gregory Beaver
Per Jessen wrote: > I'm trying to install the pecl mailparse extension, but I'm not getting > very far: > > pecl install mailparse > pecl/mailparse requires PHP extension "mbstring" > No valid packages found > install failed > > "mbstring" does not seem to be a php extension, and in any case I b

Re: [PHP] test for multi-dim array

2007-08-16 Thread Stut
John Pillion wrote: I'm trying to recursively loop through a multi dimensional array with unknown keys and unknown values, and echo the keys/values to a sql statement, where the key is the field, and the value is the. value. What I want to do is test an array index to see if it has any children

[PHP] Re: pecl in php5?

2007-08-16 Thread Per Jessen
Gregory Beaver wrote: > Hi Per, > > use > > pear install pecl/mailparse Hi Greg I did try that too, but it never made it very far either. I think it had trouble finding phpize or something. As I posted earlier, I ended up using "pecl install --nodeps mailparse" which did the trick. cheers

Re: [PHP] for loop inside a switch

2007-08-16 Thread Jim Lucas
Hulf wrote: Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. are the case's that you want to create with the loop going to be the only case statements in the switch? -- Jim Lucas "Some men are

Re: [PHP] Re: pecl in php5?

2007-08-16 Thread Kirk Friggstad
On 8/16/07, Per Jessen <[EMAIL PROTECTED]> wrote: > I did try that too, but it never made it very far either. I think it > had trouble finding phpize or something. On my Ubuntu system, I had the same problem a couple days ago. I think I finally figured out that I was missing the php5-dev package

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread brian
Jason Pruim wrote: On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: Otherwise, is there any reason you're not just doing something like the following? Because I came as a HTML person into PHP and didn't even think about being able to include my headers, footers, nav etc in the php

Re: [PHP] adding "Back to Search results" link

2007-08-16 Thread Derek
Thanks for the help, Kirk. The form 2 uses a _GET to call the information from Form 1. So you select the serach criteria on Form 1, Form 2 returns the criteria, Form 3 is the result of a selection made on Form 2. And for some reason I can't pass that Query String from Form 1 into Form 3. I am

Re: [PHP] maintaining session information

2007-08-16 Thread Vic Agnews
Thanks for the suggestions guys I appreciate the help! I guess I'll look into creating a custom session handler. Any good references? How my current setup works is, there's session information for sub-domain1.domain.com stored in a cookie and I want sub-domain2.domain.com(which currently does

Re: [PHP] maintaining session information

2007-08-16 Thread Chris
Vic Agnews wrote: Thanks for the suggestions guys I appreciate the help! I guess I'll look into creating a custom session handler. Any good references? http://php.net/session_set_save_handler shows an example. How my current setup works is, there's session information for sub-domain1.dom

[PHP] Which CAPTCHA is the besta?

2007-08-16 Thread Tony Di Croce
I need a CAPTCHA script Which one is the best? (I dont mind if its somewhat difficult).

Re[2]: [PHP] adding "Back to Search results" link

2007-08-16 Thread Tom Rogers
Hi, Thursday, August 16, 2007, 6:44:46 AM, you wrote: D> Jim and Brad. D> Thanks for the feedback. I was thinking it was something simple like a back D> button. But the problem that arises when I use this method is on Form 3. D> If I go through the steps, and make a change to an item on Form 3.

[PHP] Re: Which CAPTCHA is the besta?

2007-08-16 Thread Hamza Saglam
Not a script you can install/hack but why don't you have a look at: http://recaptcha.net/ ? Regards, Hamza. ""Tony Di Croce"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need a CAPTCHA script Which one is the best? (I dont mind if its > somewhat difficult). > -- PHP

Re: [PHP] maintaining session information

2007-08-16 Thread Vic Agnews
Thanks again for the reply ... i will look into session_set_save_handler. I also did some research on SSO and OpenID (phpMyID) ... sounds like an interesting concept! - Vic On 8/16/07, Chris <[EMAIL PROTECTED]> wrote: > > Vic Agnews wrote: > > Thanks for the suggestions guys I appreciate the

Re: [PHP] Is it possible to disable eval()?

2007-08-16 Thread hshh
Thank you. It is already enough for me. It works. On 8/16/07, Steffen Ebermann <[EMAIL PROTECTED]> wrote: > On Thu, Aug 16, 2007 at 09:50:30PM +0800, hshh wrote: > > I try to disable eval() function in php script, but failed. > > In php.ini disable_functions=eval is not work, but other functions.