[PHP] Issue with curl and ssl

2005-11-02 Thread Dan Rossi
Hi there, I am trying to test out the new installed curl extension to connect to a site via ssl and auth basic. However everytime i try to connect with the browser , in ie it says cannot find server and in mac safari is says could not load any data etc. If i run the same script via php cli it w

Re: [PHP] Re: Reset STDIN pointer

2005-11-02 Thread Curt Zirzow
On Thu, 03 Nov 2005 19:51:05 +1300, Jasper Bryant-Greene wrote: > On Wed, 2005-11-02 at 21:58 +, Curt Zirzow wrote: >> On Wed, 02 Nov 2005 15:20:46 -0500, John Nichel wrote: >> >> > There has to be a way to do thisreset the internal STDIN pointer >> > to the begining but I'll be damned if

Re: [PHP] Re: Reset STDIN pointer

2005-11-02 Thread Jasper Bryant-Greene
On Wed, 2005-11-02 at 21:58 +, Curt Zirzow wrote: > On Wed, 02 Nov 2005 15:20:46 -0500, John Nichel wrote: > > > There has to be a way to do thisreset the internal STDIN pointer to > > the begining but I'll be damned if I can find it. > > > > reset ( STDIN ); > > > > returns an error. >

Re: [PHP] Re: Reset STDIN pointer

2005-11-02 Thread Curt Zirzow
On Wed, 02 Nov 2005 23:22:24 -0600, Greg Donald wrote: > On Wed, 2005-11-02 at 21:58 +, Curt Zirzow wrote: >> The internal STDIN pointer? there is no such thing by the name of STDIN >> in php. > > Sure there is, php://stdin. > http://php.net/manual/en/wrappers.php.php My point in context was

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread Curt Zirzow
On Thu, 03 Nov 2005 13:42:34 +1000, Ligaya Turmelle wrote: > >>There already is: >> http://php.net/imap_rfc822_parse_adrlist >> >> > quote from user contributed notes: > > "| This function does NOT test the syntax of either the local part, or the > host part, it will permit illegal characte

Re: [PHP] Re: Reset STDIN pointer

2005-11-02 Thread Greg Donald
On Wed, 2005-11-02 at 21:58 +, Curt Zirzow wrote: > The internal STDIN pointer? there is no such thing by the name of STDIN in > php. Sure there is, php://stdin. http://php.net/manual/en/wrappers.php.php > According to http://php.net/reset it epxects an array not a file handle, > so the error

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread Greg Donald
On Thu, 2005-11-03 at 10:32 +0600, viraj wrote: > second point is, different organizations have different policies on > validating email addresses RFC822 Section 6.1 provides the standard (policy). -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP Gen

[PHP] Re: Reset STDIN pointer

2005-11-02 Thread Curt Zirzow
On Wed, 02 Nov 2005 15:20:46 -0500, John Nichel wrote: > There has to be a way to do thisreset the internal STDIN pointer to > the begining but I'll be damned if I can find it. > > reset ( STDIN ); > > returns an error. The internal STDIN pointer? there is no such thing by the name of STDIN

Re: [PHP] Re: proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread Curt Zirzow
On Wed, 02 Nov 2005 10:38:15 +0100, max wrote: >> In this case are you sure that the file is being sent via proc_open()? >> can you provide a simplified script that does this? > > Sure, here's a test script, the output from it, and a few words on the > email I receive: >$descriptorspec = arra

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread viraj
dear all, does PHP really needs a function to validate an email address!! i doubt. because PHP is a language which provides number of string functions with regex capabilities to develop what ever pattern matching you want. second point is, different organizations have different policies on validat

Re: [PHP] Classes and Functions

2005-11-02 Thread Robert Cummings
On Thu, 2005-11-03 at 12:15, Jasper Bryant-Greene wrote: > On Wed, 2005-11-02 at 19:05 -0500, Unknown Unknown wrote: > > Oh thanks again > > and what does RTFM mean? > > Read The [insert your favourite word beginning with F here] Manual. "Fondu"?? *licks lips* Cheers, Rob. -- .

Re: [PHP] Re: question regarding Reflection

2005-11-02 Thread Curt Zirzow
On Wed, 02 Nov 2005 10:29:25 -0800, Manish Marathe wrote: > ... > My current problem is this: Below is some chunk of the scrip I am writing > to generate test code. > > include_once "Company.php"; > > class TestGenerator { > > public function TestGenerator() { > > > } > public function catchRe

Re: [PHP] Classes and Functions

2005-11-02 Thread Jasper Bryant-Greene
On Wed, 2005-11-02 at 19:05 -0500, Unknown Unknown wrote: > Oh thanks again > and what does RTFM mean? Read The [insert your favourite word beginning with F here] Manual. -- Jasper Bryant-Greene General Manager Album Limited e: [EMAIL PROTECTED] w: http://www.album.co.nz/ b: http://jbg.name/ p:

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread Ligaya Turmelle
There already is: http://php.net/imap_rfc822_parse_adrlist quote from user contributed notes: "| This function does NOT test the syntax of either the local part, or the host part, it will permit illegal characters on either side."| -- Respectfully, Ligaya Turmelle "Life is a game s

[PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread Curt Zirzow
On Wed, 02 Nov 2005 21:19:24 +0100, Jochem Maas wrote: > I totally agree with Richard. about the need for a php func for checking a > correct email addr. > > given that php 'is all about the web', idealogically (still?) pragmatic > and dynamically typed: > > is_email_addr() or is_email() There

Re: [PHP] whitch class can I read EXCEL .xls file

2005-11-02 Thread Manish Marathe
On 11/2/05, bala chandar <[EMAIL PROTECTED]> wrote: > > Hi, > > On 11/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Dear all: > > > > whitch class can I read EXCEL .xls file > > I want to read data from a excel's .xls file on Linux use php,please > tell > > me way. > > There is a phpexcelr

Re: [PHP] Re: ampersand in dom with utf-8

2005-11-02 Thread jonathan
so I decided it would be best just to convert back to the original format so for this string: $string="braised beef shortribs with sautéed greens, pearl onions and horseradish cream" I do an html_entity_decode($string); but this still gives me an error when I add it via the DOM functions b

Re: [PHP] whitch class can I read EXCEL .xls file

2005-11-02 Thread bala chandar
Hi, On 11/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Dear all: > > whitch class can I read EXCEL .xls file > I want to read data from a excel's .xls file on Linux use php,please tell > me way. There is a phpexcelreader project going on sf.net. check out there it works fine -- balacha

[PHP] whitch class can I read EXCEL .xls file

2005-11-02 Thread shimuqiiheb
Dear all: whitch class can I read EXCEL .xls file I want to read data from a excel's .xls file on Linux use php,please tell me way. Thank you ≡∞∝∷∷� �↓��⊙ [EMAIL PROTECTED] Tel:)[EMAIL PROTECTED]

Re: [PHP] Classes and Functions

2005-11-02 Thread Unknown Unknown
Oh thanks again and what does RTFM mean?

Re: [PHP] Classes and Functions

2005-11-02 Thread Unknown Unknown
A thanks, i tried that before didn't seem to work, now it works Thanks again!

Re: [PHP] Classes and Functions

2005-11-02 Thread Manish Marathe
On 11/2/05, Unknown Unknown <[EMAIL PROTECTED]> wrote: > > Hi everybody i have a class that i reference with: > $DB= new DBInterface; > outside a function it works fine, but using $DB inside a function changes > the data type i think... i get an error saying i'm using a method on a > non-object...

Re: [PHP] Classes and Functions

2005-11-02 Thread Jasper Bryant-Greene
On Wed, 2005-11-02 at 18:56 -0500, Unknown Unknown wrote: > Hi everybody i have a class that i reference with: > $DB= new DBInterface; > outside a function it works fine, but using $DB inside a function changes > the data type i think... i get an error saying i'm using a method on a > non-object...

[PHP] Classes and Functions

2005-11-02 Thread Unknown Unknown
Hi everybody i have a class that i reference with: $DB= new DBInterface; outside a function it works fine, but using $DB inside a function changes the data type i think... i get an error saying i'm using a method on a non-object... any help appreciatted

Re: [PHP] Looking for a string function

2005-11-02 Thread Jochem Maas
Jay Blanchard wrote: [snip] I seem to remember a built in php function that will take a huge block of text. Then just spit out X number of characters from it and follow it with an additional string value. But I cannot remember what it is. I seem to remember it being something other than the subs

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread Jochem Maas
James Benson wrote: Would it not be better something like valid_email() sounds fine. call it what you like. :-) Reason: The is_* family check for a variable type so dont think that it really fits into the same catagory. twas a long shot ;-) James Jochem Maas wrote: I totally agr

[PHP] Re: Looking for a string function

2005-11-02 Thread James Benson
How about substr_replace() http://php.net/substr_replace Phillip S. Baker wrote: Greetigns Gents, I seem to remember a built in php function that will take a huge block of text. Then just spit out X number of characters from it and follow it with an additional string value. But I cannot re

[PHP] Re: DOM namespace prefix troubles

2005-11-02 Thread Ace McKool
Thanks Rob! That solved my probem. Thanks again! On 11/2/05, Rob <[EMAIL PROTECTED]> wrote: > > Ace McKool wrote: > > > What I'm trying to create is something like the following: > > > > > > > > > > I am unable to create the "" element with the "cac:" > namespace > > prefix. Any suggestions wo

RE: [PHP] Looking for a string function

2005-11-02 Thread Jay Blanchard
[snip] I seem to remember a built in php function that will take a huge block of text. Then just spit out X number of characters from it and follow it with an additional string value. But I cannot remember what it is. I seem to remember it being something other than the substr(). I am looking to

Re: [PHP] Looking for a string function

2005-11-02 Thread Paul Waring
On Wed, Nov 02, 2005 at 02:35:47PM -0700, Phillip S. Baker wrote: > I seem to remember a built in php function that will take a huge block of > text. > Then just spit out X number of characters from it and follow it with an > additional string value. > But I cannot remember what it is. I don't kno

[PHP] Looking for a string function

2005-11-02 Thread Phillip S. Baker
Greetigns Gents, I seem to remember a built in php function that will take a huge block of text. Then just spit out X number of characters from it and follow it with an additional string value. But I cannot remember what it is. I seem to remember it being something other than the substr(). I am

Re: Fwd: [PHP] question regarding Reflection

2005-11-02 Thread Manish Marathe
On 11/2/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Manish Marathe wrote: > > Sorry for spamming but I didn't mean to reply you privately :( > > I did it myself by accident 2 minutes ago :-) > no probs. Thanks > I am sorry if I have hurted anyone's feelings here but by foolish simply > > au c

[PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread James Benson
Would it not be better something like valid_email() Reason: The is_* family check for a variable type so dont think that it really fits into the same catagory. James Jochem Maas wrote: I totally agree with Richard. about the need for a php func for checking a correct email addr. given t

Re: [PHP] Reset STDIN pointer

2005-11-02 Thread Greg Donald
On Wed, 2 Nov 2005, John Nichel wrote: There has to be a way to do thisreset the internal STDIN pointer to the begining but I'll be damned if I can find it. reset ( STDIN ); returns an error. You can use rewind() on an fopen()'d php://stdin. -- Greg Donald Zend Certified Engineer MyS

[PHP] Re: PHP] Richard Lynch's Email Address ...

2005-11-02 Thread Greg Donald
On Wed, 2 Nov 2005, Jochem Maas wrote: is_email_addr() or is_email() just 'belongs' with: is_array() is_bool() is_callable() is_double() is_float() is_int() is_integer() is_long() is_null() is_numeric() is_object() is_real() is_resource() is_scalar() is_string() Until they add it, just use

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread Greg Donald
On Wed, 2 Nov 2005, John Nichel wrote: Hmare you saying that it would be good to have an active moderator on this list? ;) :0 * [EMAIL PROTECTED] /dev/null -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php

Re: Fwd: [PHP] question regarding Reflection

2005-11-02 Thread Jochem Maas
Manish Marathe wrote: Sorry for spamming but I didn't mean to reply you privately :( I did it myself by accident 2 minutes ago :-) no probs. ... Well, its not me who is going to run the unit tests but it the user who is going to. As I said I am developing an automatic unit test "generator

Re: [PHP] Re: PHP web based administrator... Pyrite

2005-11-02 Thread Zac Barton
Hi James Thanks for you comments, its a fair call. All I could add at this stage is that you have to login to Pyrite to be able to do any editing of the php.ini files and you can configure Pyrite to only work via Locahost and not remote connections. It is also true that you do need write permissi

[PHP] Reset STDIN pointer

2005-11-02 Thread John Nichel
There has to be a way to do thisreset the internal STDIN pointer to the begining but I'll be damned if I can find it. reset ( STDIN ); returns an error. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailin

[PHP] Richard Lynch's Email Address ...

2005-11-02 Thread Jochem Maas
I totally agree with Richard. about the need for a php func for checking a correct email addr. given that php 'is all about the web', idealogically (still?) pragmatic and dynamically typed: is_email_addr() or is_email() just 'belongs' with: is_array() is_bool() is_callable() is_double() is_flo

[PHP] Re: DOM namespace prefix troubles

2005-11-02 Thread Rob
Ace McKool wrote: What I'm trying to create is something like the following: I am unable to create the "" element with the "cac:" namespace prefix. Any suggestions would be appreciated! $dom = new DOMDocument("1.0", "UTF-8"); $root = $dom->createElement('Notes'); $dom->appendChild($

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Ben
[EMAIL PROTECTED] said the following on 11/02/2005 10:30 AM: An interesting development. I found some reference to running my PHP script from the command line to take Apache out of the picture. Lo and behold, the script worked. I was able to connect to the server. So the issue seems to be rel

RE: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Nathan Tobik
Are you running apache in a sandbox, I know on OpenBSD this is the default behavior for Apache. If this is the case then you need to copy the required libraries inside the sandbox. Nate Tobik (412)661-5700 x206 VigilantMinds -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread Jochem Maas
[EMAIL PROTECTED] wrote: That's not a sadist.. that's a masochist. :) too right you are (I had a dumbo moment), but indeed lets not let that get in the way of Jays promotion :-) I nominate Jay too. It's been a while since I've seen someone go totally insane and I think Jay is the man for t

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread php
An interesting development. I found some reference to running my PHP script from the command line to take Apache out of the picture. Lo and behold, the script worked. I was able to connect to the server. So the issue seems to be related with Apache. Any idea what I would need to do there to m

Re: [PHP] Re: question regarding Reflection

2005-11-02 Thread Manish Marathe
On 11/1/05, Curt Zirzow <[EMAIL PROTECTED]> wrote: > > On Tue, 01 Nov 2005 14:31:12 -0800, Manish Marathe wrote: > > > ... > > My question is to use the Reflection API, I need to import the original > > class for which I am generating tests. For example to generate a tests > for > > class Company w

Fwd: [PHP] question regarding Reflection

2005-11-02 Thread Manish Marathe
Sorry for spamming but I didn't mean to reply you privately :( On 11/1/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Manish Marathe wrote: > > Hello All, > > > > I am developing a unit test generator for PHP. The generated tests would > be > > PHPUnit2 compatible and I will be using the Reflectio

[PHP] DOM namespace prefix troubles

2005-11-02 Thread Ace McKool
Howdy folks, I'm using PHP 5.0.5 with the DOM enabled and I'm trying to create an XML doc with PHP. The problem I'm having is attaching a namespace prefix to a tag. What I'm trying to create is something like the following: I am unable to create the "" element with the "cac:" namespace p

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list .

2005-11-02 Thread Manish Marathe
[snip] That's not a sadist.. that's a masochist. :) I nominate Jay too. It's been a while since I've seen someone go totally insane and I think Jay is the man for the job. Congrats on your promotion(??) Jay! Thank you. I think the last time you saw someone go totally insane it WAS me. Of course a

RE: [PHP] could someone remove [EMAIL PROTECTED] from the list .

2005-11-02 Thread Jay Blanchard
[snip] That's not a sadist.. that's a masochist. :) I nominate Jay too. It's been a while since I've seen someone go totally insane and I think Jay is the man for the job. Congrats on your promotion(??) Jay! [/snip] Thank you. I think the last time you saw someone go totally insane it WAS me.

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread tg-php
That's not a sadist.. that's a masochist. :) I nominate Jay too. It's been a while since I've seen someone go totally insane and I think Jay is the man for the job. Congrats on your promotion(??) Jay! -TG = = = Original message = = = John Nichel wrote: > Jochem Maas wrote: > >> getting pr

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread php
Thanks for your help. I'd love to hear if you have any success with the RPMs. Something I've seen over and over again in the documentation is the compilation of php adding "--with-mssql". My PHP info output does not include that marker. The output is as follows './configure' '--build=i386-redh

RE: [PHP] could someone remove [EMAIL PROTECTED] from the list .

2005-11-02 Thread Jay Blanchard
[snip] Jay Blanchard wrote: > [snip] > Hmare you saying that it would be good to have an active > moderator on this list? ;) > [/snip] > > Dons flame retardent suit with built in PHP manual. I nominate Jay! [/snip] Oh, that would so cut into my freecell playing time. -- PHP General Ma

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list .

2005-11-02 Thread John Nichel
Jay Blanchard wrote: [snip] Hmare you saying that it would be good to have an active moderator on this list? ;) [/snip] Dons flame retardent suit with built in PHP manual. I nominate Jay! -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] could someone remove [EMAIL PROTECTED] from the list .

2005-11-02 Thread Jay Blanchard
[snip] > Hmare you saying that it would be good to have an active > moderator on this list? ;) only if he is truely sadistic :-) anyone fancy giving John karma? ;-) oh hand on ...Jay Blanchard is the one with his hands deep inside IIS these days, sounds like a sadist if evcer I heard o

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: getting pretty tired of receiving 'Delivery Status Notification (Failure)' mails from: TORRE-MAIL-01.net.in.iantel.com.uy regarding the email addr: [EMAIL PROTECTED] could one of the gods please remove 'him' from the list? tia :-) PS - if t

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
still no info on what your version of php etc. but that output gives the impression it may not be the OS after all... are you able to recompile php? (using the --no-ipv6 flag or whatever it mentioned in the original php error message you posted). I have no idea how 'invalid' certificates are ha

RE: [PHP] could someone remove [EMAIL PROTECTED] from the list .

2005-11-02 Thread Jay Blanchard
[snip] Hmare you saying that it would be good to have an active moderator on this list? ;) [/snip] Dons flame retardent suit with built in PHP manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread John Nichel
Jochem Maas wrote: getting pretty tired of receiving 'Delivery Status Notification (Failure)' mails from: TORRE-MAIL-01.net.in.iantel.com.uy regarding the email addr: [EMAIL PROTECTED] could one of the gods please remove 'him' from the list? tia :-) PS - if the owner of [EMAIL PR

Re: [PHP] Expect extensions

2005-11-02 Thread Matthew Robinson
Ok, I've 'fixed' this. The OnUpdateLong isn't on my version of php so I've replaced it in the php_expect.c in the expect-1.0 tarball with OnUpdateReal, compiled, installed and it seems to work. Cheers Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread Jochem Maas
getting pretty tired of receiving 'Delivery Status Notification (Failure)' mails from: TORRE-MAIL-01.net.in.iantel.com.uy regarding the email addr: [EMAIL PROTECTED] could one of the gods please remove 'him' from the list? tia :-) PS - if the owner of [EMAIL PROTECTED] reads

Re: [PHP] Fsockopen error

2005-11-02 Thread Robert Prentice
I get this error: wget -d -v --delete-after https://www.safetrustprocessing.com Setting --verbose (verbose) to 1 Setting --delete-after (deleteafter) to 1 DEBUG output created by Wget 1.10.1 (Red Hat modified) on linux-gnu. --17:15:16-- https://www.safetrustprocessing.com/ => `index.

Re: Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting [EMAIL PROTECTED]: Yup, I thought that was the problem too but when I added my server to the conf file, there was no change. When you set up your MSSQL connection in fedora, did you install anything else other than MSSQL and PHP-MSSQL? Or did you have to set anything in your php.ini f

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
Robert Prentice wrote: Even if i change it back to 443 i still get the error. take another look at your initail error message... it indicates a problem related to the machines nameserver/dns setting (specifically IPv6). I'm willing to bet it's nothing to do with php - your OS seems to at fault

Re: Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread php
Yup, I thought that was the problem too but when I added my server to the conf file, there was no change. When you set up your MSSQL connection in fedora, did you install anything else other than MSSQL and PHP-MSSQL? Or did you have to set anything in your php.ini file to use the new extension?

Re: [PHP] Fsockopen error

2005-11-02 Thread Robert Prentice
Even if i change it back to 443 i still get the error. Robert On Nov 2, 2005, at 9:54 AM, Jochem Maas wrote: Terence wrote: Robert Prentice wrote: snip $reply = http_post("https://www.safetrustprocessing.com";, 80, "/ Isnt https supposed to run on port 443? (or other than 80) Just a gue

Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting [EMAIL PROTECTED]: I get no output from mssql_get_last_message(). When I use the pear DB class, and use $db->getMessage(), I get "connect failed", very useful like usual with getMessage(). Even doing a print_r of the object reveals nothing. I'm pretty sure that PHP is not even tryin

Re: [PHP] Expect extensions

2005-11-02 Thread Matthew Robinson
Hi, It's a couple of functions that wrap around the unix expect program. http://uk.php.net/manual/en/ref.expect.php I've re-read the instructions and found that I hadn't added it to the php.ini which I have now done but I get this error now: php: relocation error: /usr/local/lib/php/extension

Re: [PHP] Expect extensions

2005-11-02 Thread Jochem Maas
Matthew Robinson wrote: Hi all, I'm sure that this is down to me not reading/following/understanding the instructions. I'm trying to add the expect extensions into php. I've run: pear install expect-beta I couldn't find an 'Expect' packAge on pear.php.net. what is it? and this reports su

Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Stephen Leaf
Last I checked XHTML *is* HTML only with my stricter rules applied. most notably the XML rules. "XHTML is a stricter and cleaner version of HTML." -- W3C XHTML tutorial. (http://www.w3schools.com/xhtml/default.asp) As for using PHP to transform the XSL. I've been doing this with a lot of succes

Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread php
I get no output from mssql_get_last_message(). When I use the pear DB class, and use $db->getMessage(), I get "connect failed", very useful like usual with getMessage(). Even doing a print_r of the object reveals nothing. I'm pretty sure that PHP is not even trying to connect to the database a

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting Robbert van Andel <[EMAIL PROTECTED]>: Obvsiously, since I'm posting to the list, you can guess that it's not working. The error message I get back is useless as I'm only told that the connection failed. Does anyone know anything else I need to check to get the connection working? Wh

Re: [PHP] Fsockopen error

2005-11-02 Thread Jochem Maas
Terence wrote: Robert Prentice wrote: snip $reply = http_post("https://www.safetrustprocessing.com";, 80, "/ Isnt https supposed to run on port 443? (or other than 80) Just a guess that is the default, but any port is allowed technically ... although putting port 80 under SSL is probabl

Re: [PHP] Re: Convert Feet to Metres

2005-11-02 Thread Jochem Maas
Jim Moseby wrote: Shaun wrote: I would say that requiring explicit use of the chars (') and (") to denote imperial measurement is probably the neatest way to go (and that you can assume that lack of these chars and or use of the (.) entails metric data. ... assuming you have/want a single text

RE: [PHP] Type of form element

2005-11-02 Thread Ford, Mike
-Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: 31 October 2005 17:19 > To: Marcus Bointon > > Marcus Bointon wrote: > > The thing I was wrong on is that PHP converts unset parameters (as > > opposed to nonexistent ones which it obviously can't do anything > >

RE: [PHP] Sessions and register_long_arrays

2005-11-02 Thread Ford, Mike
-Original Message- From: Marcus Bointon [mailto:[EMAIL PROTECTED] Sent: 29 October 2005 14:48 Strange behaviour that's taken me ages to track down. I have the situation where I can create a session, but any changes to it are not saved. session_write_close() didn't help. Eventually I t

[PHP] Expect extensions

2005-11-02 Thread Matthew Robinson
Hi all, I'm sure that this is down to me not reading/following/understanding the instructions. I'm trying to add the expect extensions into php. I've run: pear install expect-beta and this reports success and a pear list shows the package installed. However when I try to use the function I'm

RE: [PHP] Re: Convert Feet to Metres

2005-11-02 Thread Jim Moseby
> > Shaun wrote: > > Hi, > > > > I am trying to create a function that will convert metres > to feet and vice > > versa. After searching Google I have found that 1 meters = > 3.2808399 feet. > > However if someone enters 10.5 to mean 10 feet and 5 inches > this is not the > > same as 10 fee

Re: [PHP] Re: PHP web based administrator... Pyrite

2005-11-02 Thread John Nichel
James Benson wrote: It should be fine for windows but how are you gonna save the php.ini on any linux box that typically (when setup correctly) requires root access to save the file, your opening up a security hole with something like that unless you tackle this issue some other way! James

[PHP] Re: Convert Feet to Metres

2005-11-02 Thread Alan Lord
Shaun wrote: Hi, I am trying to create a function that will convert metres to feet and vice versa. After searching Google I have found that 1 meters = 3.2808399 feet. However if someone enters 10.5 to mean 10 feet and 5 inches this is not the same as 10 feet and half a foot as there are 12 in

[PHP] Re: PHP web based administrator... Pyrite

2005-11-02 Thread James Benson
It should be fine for windows but how are you gonna save the php.ini on any linux box that typically (when setup correctly) requires root access to save the file, your opening up a security hole with something like that unless you tackle this issue some other way! James Zac Barton wrote:

[PHP] Re: Convert Feet to Metres

2005-11-02 Thread Gustavo Lescano
converting feets to inches and after converting inches to cm. Sorry fo my english Gustavo Shaun escribió: Hi, I am trying to create a function that will convert metres to feet and vice versa. After searching Google I have found that 1 meters = 3.2808399 feet. However if someone enters 10.5 t

[PHP] Convert Feet to Metres

2005-11-02 Thread Shaun
Hi, I am trying to create a function that will convert metres to feet and vice versa. After searching Google I have found that 1 meters = 3.2808399 feet. However if someone enters 10.5 to mean 10 feet and 5 inches this is not the same as 10 feet and half a foot as there are 12 inches in a foot!

Re: [PHP] Re: Managing files on the client

2005-11-02 Thread James Benson
javascript CANNOT write to a clients machine (apart from cookies) Nothing from the server can do what you want, you need to install some software on each machine to achieve this. Unknown Unknown wrote: you could also use javascript and forms, and maybe open up an iframe with query strings

[PHP] creating images using php

2005-11-02 Thread bala chandar
Hi, i know there is a support for Imagemagick in php. I have a doubt. Please help me out. I have to create a image in which a text which should insert a texture withing it something like what we do with powerpoint word art. for eg. Rose is the text and i want to Rose picture withing the text usin

[PHP] PHP web based administrator... Pyrite

2005-11-02 Thread Zac Barton
Hi list I have been working on a free web based app that lets you update the php.inifrom your browser very much like Coldfusion has. You can find a demo off the app at http://pyrite.zacbarton.comand im looking to see if anyone thinks this might be useful or share an

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread Jochem Maas
max wrote: Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an error in the log file, which will perhaps help trace the issue: cat: stdout: Broken pipe no real help but: sounds like you might have hit a bug, check the bug DB and if you can't find anything report a

[PHP] Re: PHP web based administrator... Pyrite

2005-11-02 Thread Zac Barton
Sorry that embedded link should be http://pyrite.zacbarton.com/ :-( Z On 11/2/05, Zac Barton <[EMAIL PROTECTED]> wrote: > > Hi list > > I have been working on a free web based app that lets you update the > php.ini from your browser very much like Coldfusion has. > > You can find a demo off the

Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Jochem Maas
Torgny Bjers wrote: Quoting Andy Pieters <[EMAIL PROTECTED]>: Hi list I made an entire site in xhtml for a client but now complaints are comming from the m$ explorer front. Broken layouts, long loading times etc. good for them for complaining, getting paid to build websites and then not t

Re: [PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Torgny Bjers
Quoting Andy Pieters <[EMAIL PROTECTED]>: Hi list I made an entire site in xhtml for a client but now complaints are comming from the m$ explorer front. Broken layouts, long loading times etc. Would it be possible for php to do the xslt translation? All that is currently in my xslt is

[PHP] Simple CopyOf XSLT translation

2005-11-02 Thread Andy Pieters
Hi list I made an entire site in xhtml for a client but now complaints are comming from the m$ explorer front. Broken layouts, long loading times etc. Would it be possible for php to do the xslt translation? All that is currently in my xslt is And serve those pages as html 4.01 instea

Re: [PHP] Fsockopen error

2005-11-02 Thread Terence
Robert Prentice wrote: snip $reply = http_post("https://www.safetrustprocessing.com";, 80, "/ Isnt https supposed to run on port 443? (or other than 80) Just a guess xml_order_processing.php", array("myXml" => $xml)); function http_post ($server, $port, $url, $vars) { -- PHP General Mai

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread max
Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an error in the log file, which will perhaps help trace the issue: cat: stdout: Broken pipe > The output is: > 10240 > 6144 > which makes up exactly the magic 16384 bytes. So it's certainly not a > qmail issue. --

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread max
> can you proc_open() anything else and get it to accept more than 16KB ? > also 4.4.1 is out. No, I've just tried the same with /bin/cat, I get the same result, i.e.: array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $text = ""; for ($

Re: [PHP] Re: proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread max
> In this case are you sure that the file is being sent via proc_open()? can > you provide a simplified script that does this? Sure, here's a test script, the output from it, and a few words on the email I receive: array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/err