Re: [PHP] SMS questions

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 7:07 pm, Brian Dunning wrote: Here's another thing that would be nice: A web service to look up the carrier for a cell number. That way you could simply send an email to [EMAIL PROTECTED], though this would still be only a partial solution. This is a lot harder now that

Re: [PHP] SMS questions

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 6:39 pm, Brian Dunning wrote: Hi all - I've been looking at a number of the commercial service providers for bulk SMS messaging, most of whom have PHP APIs. But since they are selling something they don't answer my question Is there any (legal, legitimate) way to

Re: [PHP] text field truncation with sql server

2007-07-13 Thread Richard Lynch
What is the 3981st character? Does your database driver, whatever it is, which you've told us is not PDO, have any kind of limit in the buffer size of query data back/forth? What driver ARE you using? I see mssql in the code, so assume that's it, right?... Does it happen on every record at

Re: [PHP] PHP short tags: Questions

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 6:42 pm, Micky Hulse wrote: I am trying to describe why php short tags failed to work on a server... here is my simplified explanation: it had to do with the server settings... The short_open_tag directive in php.ini was set to 0. Do you think that is an ok way to

Re: [PHP] SMS questions

2007-07-13 Thread Richard Lynch
It's annoying as crap to work with them. But if they were not so vigilant and picuyane, you know what we'd have? A zillion spam phone messages ringing your cell day and night from all kinds of idiots. Do you really want that? I sure don't. Give them at least some credit for trying to be

Re: [PHP] PHP short tags: Questions

2007-07-13 Thread Micky Hulse
Hey Richard, thanks for the reply. I appreciate it. :) Richard Lynch wrote: http://php.net/ Yikes! I guess it was one of those RTFM question/answers! Lol. :D #2 sounds awfully bogus to me... Yeah... Hmm, now I am starting to wonder where I heard/read that. Maybe it was a co-worker. I am

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 6:33 pm, Tanner Postert wrote: I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'body'; $headers = 'From: [EMAIL PROTECTED]' . \r\n .

Re: [PHP] About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 4:15 pm, Kelvin Park wrote: I'm trying to setup a XSLT based web site. I wasn't exactly sure about the flow of the whole system when data from relational database is transferred to XML and in turn the data inputted from the user is relayed back to the database through

Re: [PHP] About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 12:19 am, Nathan Nobbe wrote: thing as i mentioned before is i cannot see a reason to create xml data while processing a GET or POST request from a client; it would just be an extra step with no apparent benefit as far as i can tell. You DEFINITELY are not being nearly

Re: [PHP] Displaying HTML characters in real format

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 12:37 pm, Don Don wrote: Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. quot; but will like it to be displayed as htmlspecialchars or htmlentities or page character set ? htmlspecialchars

Re: [PHP] need a form for connecting to paypal payment pro.

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 7:33 am, Ross wrote: I need a secure form. I have one here http://www.edinburghnights.co.uk/pay/php/curl_https.html but it has no algorithm check on the CC number. Also I need to make the form secure. Can someone point me to an example or tutorial. To make the form

Re: [PHP] can't open file

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 11:10 am, Anugrah Widya wrote: dear php developer, i have weird situation here, i can't create a file in 777 mode directory and stay in same server, is this a bug ?? fyi. i'm using fc6, and php 5.1.6 Show us code. It's almost for sure not a PHP bug, whatever it is

Re: [PHP] can't open file

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 11:30 am, Anugrah Widya wrote: Stut wrote: Anugrah Widya wrote: dear php developer, i have weird situation here, i can't create a file in 777 mode directory and stay in same server, is this a bug ?? fyi. i'm using fc6, and php 5.1.6 I'm not sure I understand what

Re: [PHP] Re: Displaying HTML characters in real format

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 6:08 pm, Dan wrote: string htmlentities ( string $string [, int $quote_style [, string $charset [, bool $double_encode]]] ) This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Chris
Richard Lynch wrote: On Thu, July 12, 2007 6:33 pm, Tanner Postert wrote: I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'body'; $headers = 'From: [EMAIL PROTECTED]' .

Re: [PHP] Help setting up php

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 8:25 am, Karl Schmitt wrote: Can someone please help me? I am new to installing and working with php and webservers. I am using IIS 6. I can not get php to load the ini file. This line: Configuration File (php.ini) Path C:\WINDOWS tells you that PHP *looked*

Re: [PHP] Single Quote in String functions

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 7:02 am, Sancar Saran wrote: I cannot do any operation wiht single quote like explode(',$strContent); Did I miss someting ? Works for me, so you've definitely missed something somewhere. Like telling us what's in $strContent and whatever else is before the code that

Re: [PHP] Array Push question

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 3:45 am, John Comerford wrote: Is there a better way of doing the following: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = this is a test; Specifically I am wonder if I can avoid having to use 'count'. count() is not slow, really...

Re: [PHP] Re: PHP Brain Teasers

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 10:20 am, Daniel Brown wrote: On 7/12/07, Robert Cummings [EMAIL PROTECTED] wrote: G... must be nice, some of us had to toil 18 hours a day sweeping chimneys! ;) Cheers, Rob. What do you mean us? Weren't you born before they invented the chimney? ?php

Re: [PHP] Re: PHP Brain Teasers

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 10:26 am, Robert Cummings wrote: On Thu, 2007-07-12 at 11:20 -0400, Daniel Brown wrote: On 7/12/07, Robert Cummings [EMAIL PROTECTED] wrote: G... must be nice, some of us had to toil 18 hours a day sweeping chimneys! ;) Cheers, Rob. What do you mean

Re: [PHP] Array Question

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: Hmmm, I thought using an explicit cast was very self explanatory -- especially when the name of the cast is array. Maybe I'm alone in that thought. I mean if you convert a scalar to an array what do you expect to get? An array with the

[PHP] Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread David Négrier
Hi list! A few month ago, I asked a question on this mailing list regarding the closing of a connexion between the PHP server and the browser. Thanks to the answers I was given, I have been able to complete the framework I was working on. Today, I'm proud to announce the first open source

Re: [PHP] getting the next element of an associative array

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 1:34 am, Chris wrote: Olav Mørkrid wrote: let's say we have the following associative array: $array = array( red = ferrari, yellow = volkswagen, green = mercedes, blue = volvo ); then we have a current index into the array: $index = yellow; $current =

[PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Colin Guthrie
David Négrier wrote: Regarding the way Xaja is pronounced well that's a good question. Actually, I'm French and my pronunciation is... well... French ;), so I won't give you any advice on how to pronounce it. However, I will present Xaja in San Francisco at the Ajax

Re: [PHP] Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Mario Guenterberg
On Fri, Jul 13, 2007 at 12:44:35PM +0200, David Négrier wrote: Hi Mario, hi Stuart, I fixed the SVN repository. You can try it now, it works better. Regarding the way Xaja is pronounced well that's a good question. Actually, I'm French and my pronunciation is...

Re: [PHP] Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread David Négrier
Hi Mario, hi Stuart, I fixed the SVN repository. You can try it now, it works better. Regarding the way Xaja is pronounced well that's a good question. Actually, I'm French and my pronunciation is... well... French ;), so I won't give you any advice on how to pronounce it.

[PHP] Re: what trick is this? How to do it?

2007-07-13 Thread Man-wai Chang
http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... I just found that linux.com is using the same trick. :) -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\

Re: [PHP] Social Networking Sites OT

2007-07-13 Thread Robert Cummings
On Thu, 2007-07-12 at 23:51 -0500, Richard Lynch wrote: It's gotten to the point where I pretty much view social networking sites as just another form of spammers... I blogged about it, and would like feedback from members of this lists, for various reasons I would hope would be obvious.

Re: [PHP] Array Question

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 02:15 -0500, Richard Lynch wrote: On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: Hmmm, I thought using an explicit cast was very self explanatory -- especially when the name of the cast is array. Maybe I'm alone in that thought. I mean if you convert a scalar

Re: [PHP] Re: PHP Brain Teasers

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 01:59 -0500, Richard Lynch wrote: On Thu, July 12, 2007 10:20 am, Daniel Brown wrote: On 7/12/07, Robert Cummings [EMAIL PROTECTED] wrote: G... must be nice, some of us had to toil 18 hours a day sweeping chimneys! ;) Cheers, Rob. What do you

Re: [PHP] Social Networking Sites OT

2007-07-13 Thread Nathan Nobbe
is anyone a member of linkedinhttp://www.google.com/url?sa=Lai=BUABgKX6XRvLdJ4zgggT8v52lC8ucgBebzIqWAemVpt4CsOoBCAAQARgBIL_gsAM4AVCU65jV_f8BYMmW2oj8o8gQqgEHZW4rMkdNTMgBAYACAdkD8zMUsRH52XIq=https://www.LinkedIn.com%253Ftrk%253Dlinkedin1usg=AFQjCNGT5ZjLeO1TTdxtZaChKbuUv0imhA ? ive had a few

[PHP] The end of PHP4 is nigh!

2007-07-13 Thread Stut
In case anyone hasn't seen it there is an announcement regarding the future support for PHP4 on the PHP website. If you're running PHP4 you *need* to read it. http://php.net/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP short tags: Questions

2007-07-13 Thread Daniel Brown
On 7/13/07, Micky Hulse [EMAIL PROTECTED] wrote: Hey Richard, thanks for the reply. I appreciate it. :) Richard Lynch wrote: http://php.net/ Yikes! I guess it was one of those RTFM question/answers! Lol. :D #2 sounds awfully bogus to me... Yeah... Hmm, now I am starting to wonder where I

Re: [PHP] Re: what trick is this? How to do it?

2007-07-13 Thread tg-php
View the source and trace through the javascript. Looks like it has to do with: function openLogin() Which calls: dojo.require(dojo.widget.Dialog); and.. floatingWindow = dojo.widget.createWidget(Dialog, properties, node); and.. floatingWindow.setContent(iframe (bunch of stuff)/iframe);

Re: [PHP] SMS questions

2007-07-13 Thread Crayon Shin Chan
On Friday 13 July 2007 14:07, Richard Lynch wrote: I'd give a lot of money to be able to teleport back in time and yell at the email designer folks to tell them just how horrible a mess they were making... :-) But you have to give them credit for designing something so scaleable that even

Re: [PHP] Help setting up php

2007-07-13 Thread Joker7
In news: [EMAIL PROTECTED] - Richard Lynch wrote : On Thu, July 12, 2007 8:25 am, Karl Schmitt wrote: Can someone please help me? I am new to installing and working with php and webservers. I am using IIS 6. I can not get php to load the ini file. This line: Configuration File

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Daniel Brown
On 7/13/07, Colin Guthrie [EMAIL PROTECTED] wrote: I reckon it should be pronounced zah-jah in English. (the same Z sound as in Xavier) I wouldn't listen to the Americans in San Fran. Americans always pronounce English in a weird and colourful way (and yes, colourful has a U in

Re: [PHP] Re: what trick is this? How to do it?

2007-07-13 Thread Daniel Brown
On 7/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: View the source and trace through the javascript. Looks like it has to do with: function openLogin() Which calls: dojo.require(dojo.widget.Dialog); and.. floatingWindow = dojo.widget.createWidget(Dialog, properties, node); and..

Re: [PHP] SMS questions

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 22:30 +0800, Crayon Shin Chan wrote: On Friday 13 July 2007 14:07, Richard Lynch wrote: I'd give a lot of money to be able to teleport back in time and yell at the email designer folks to tell them just how horrible a mess they were making... :-) But you have to

Re: [PHP] Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Mario Guenterberg
On Fri, Jul 13, 2007 at 10:10:15AM +0200, David Négrier wrote: Xaja is still in an early stage of development, but it is time for us to get some feedback (or some help, since it is released in GPL). You can download an alpha version of Xaja from

FW: [PHP] SMS questions

2007-07-13 Thread Steve Perkins
Richard makes some good points. Further to the original posting though, I have a friend who works with this SMS stuff, and out of interest asked him about it. Here is his (slightly scary) response, might be of some use ... His website is www.textit,biz -Original Message- From: Shaun

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Jason Pruim
On Jul 13, 2007, at 10:31 AM, Daniel Brown wrote: And to you, yes, colourful has a U in it. Well, guess what it does for us, too! Just not in the color part, but rather the ful part. So there! It's all about U isn't it? ;) -- Jason Pruim Raoset Inc. Technology Manager MQC

Re: [PHP] Re: PHP Brain Teasers

2007-07-13 Thread Daniel Brown
On 7/13/07, Robert Cummings [EMAIL PROTECTED] wrote: But more importantly there's an omission of the concept of both ways ;) Ha! I was thinking exactly the same thing! -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 10:40 -0400, Jason Pruim wrote: On Jul 13, 2007, at 10:31 AM, Daniel Brown wrote: And to you, yes, colourful has a U in it. Well, guess what it does for us, too! Just not in the color part, but rather the ful part. So there! It's all about U isn't

Re: [PHP] The end of PHP4 is nigh!

2007-07-13 Thread Daniel Brown
On 7/13/07, Stut [EMAIL PROTECTED] wrote: In case anyone hasn't seen it there is an announcement regarding the future support for PHP4 on the PHP website. If you're running PHP4 you *need* to read it. http://php.net/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] The end of PHP4 is nigh!

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 10:48 -0400, Daniel Brown wrote: On 7/13/07, Stut [EMAIL PROTECTED] wrote: In case anyone hasn't seen it there is an announcement regarding the future support for PHP4 on the PHP website. If you're running PHP4 you *need* to read it. http://php.net/ -Stut

[PHP] Re: Magis_qoutes + linux + smarty

2007-07-13 Thread Bogdan Ribic
This is wrong place for Smarty questions, try smarty mailing lists. That said, you probably have problem with file access rights, ie folder you're trying to write to or create has flags that don't allow that, or you've created it with ftp (and as ftp user) and your php script is running under

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 10:31 -0400, Daniel Brown wrote: On 7/13/07, Colin Guthrie [EMAIL PROTECTED] wrote: I reckon it should be pronounced zah-jah in English. (the same Z sound as in Xavier) I wouldn't listen to the Americans in San Fran. Americans always pronounce English in a

Re: [PHP] The end of PHP4 is nigh!

2007-07-13 Thread Jason Pruim
On Jul 13, 2007, at 10:55 AM, Robert Cummings wrote: On Fri, 2007-07-13 at 10:48 -0400, Daniel Brown wrote: On 7/13/07, Stut [EMAIL PROTECTED] wrote: In case anyone hasn't seen it there is an announcement regarding the future support for PHP4 on the PHP website. If you're running PHP4 you

Re: [PHP] The end of PHP4 is nigh!

2007-07-13 Thread Daniel Brown
On 7/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jul 13, 2007, at 10:55 AM, Robert Cummings wrote: On Fri, 2007-07-13 at 10:48 -0400, Daniel Brown wrote: Fork! Spoon! Knufe! :P Spuun works better :P I knew there had to be a cross-reference today somewhere. ;-P -- Daniel P.

Re: [PHP] Re: About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Nathan Nobbe
Although it is necessary to convert SQL data into XML before it can be processed in an XSL transformation, it is a waste of time converting user input into XML before it is added to the database as none of the SELECT/INSERT/UPDATE/DELETE commands can work with XML files. It is far easier to take

[PHP] Re: About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Tony Marston
Although it is necessary to convert SQL data into XML before it can be processed in an XSL transformation, it is a waste of time converting user input into XML before it is added to the database as none of the SELECT/INSERT/UPDATE/DELETE commands can work with XML files. It is far easier to

[PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Colin Guthrie
Daniel Brown wrote: And to you, yes, colourful has a U in it. Well, guess what it does for us, too! Just not in the color part, but rather the ful part. So there! D'oh! You got me there :p Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: The end of PHP4 is nigh!

2007-07-13 Thread Colin Guthrie
Jason Pruim wrote: Fork! Spoon! Knufe! :P Spuun works better :P Always about u. :D Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: The end of PHP4 is nigh!

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 16:39 +0100, Colin Guthrie wrote: Jason Pruim wrote: Fork! Spoon! Knufe! :P Spuun works better :P Always about u. :D *obligatory Cheers quote* Don't assume, when you do so it makes an ASS out of U and out of ME. :) Cheers, Rob. --

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
apache is definitely listed in the trusted users, as I mentioned, I can send from dozens of other domains, its just one specific domain that I can't. i'll let you know the results of sending the email from outside of php. On 7/12/07, Chris [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Thu,

[PHP] Re: SMS questions

2007-07-13 Thread Dan
What you're looking for is SMS Spoofing. Here's the first result from googling SMS Spoofing. It provides some services that let you spoof and talks about the legality of doing so http://www.answers.com/topic/sms-spoofing - Dan Brian Dunning [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] SMS questions

2007-07-13 Thread Dan
Might want to retry that link, it's broken. - Dan Steve Perkins [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Richard makes some good points. Further to the original posting though, I have a friend who works with this SMS stuff, and out of interest asked him about it. Here is

RE: [PHP] Social Networking Sites OT

2007-07-13 Thread Allan, David (ThomasTech)
is anyone a member of linkedin Yes. I've not been hounded. I've reconnected with a couple former co-workers, and been approached (professionally) by College Classmates, but that's been all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Nathan Nobbe
I have imagined being able to connect to a client browser and push changes to the client rather than have something sit on the client side and periodically wait for updates. or only update when the client refreshes the page manually. both of those antiquated options are ugly. the push technique

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 14:28 -0400, Nathan Nobbe wrote: I have imagined being able to connect to a client browser and push changes to the client rather than have something sit on the client side and periodically wait for updates. or only update when the client refreshes the page manually. both

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Nathan Nobbe
On 7/13/07, Robert Cummings [EMAIL PROTECTED] wrote: I haven't looked at the code for Xaja and in no way do I want to subtract from its potential, but I'm going to guess that in some way it holds the HTTP connection open and as such is an expensive feature. Also, I'm not entirely sure, but isn't

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 14:59 -0400, Nathan Nobbe wrote: On 7/13/07, Robert Cummings [EMAIL PROTECTED] wrote: I haven't looked at the code for Xaja and in no way do I want to subtract from its potential, but I'm going to guess that in some way it holds the HTTP connection open and as such

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
mail function returns 1(true) whether or not i'm sending to the new virtual host domain name or any random domain name. turns out sendmail function does the same thing, so it looks like it's a sendmail problem... but how is that possible if i've never configured anything for this new domain

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Nathan Nobbe
On 7/13/07, Robert Cummings [EMAIL PROTECTED] wrote: This isn't possible since you can't request a connection to the client's machine. Only the other way around. hmm... in that case perhaps the open connection could be employed and the feature used selectively; only on certain pages for

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
figured it out... the domain in question's dns is set to CNAME to the main domain on that server, whereas, the remaining domains are just using the A record with the IP. I changed one of the other domains to use the CNAME and it did the same thing. So looks like thats the culprit. I'll have to

[PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
Good afternoon list, My first post here and i'm having trouble with a form: it doesn't send the input to the given e-mail address: i get a blank mail without any of the fields. Here's how it should arrive in the mailbox: Empresa: field input Contato: field input Fone: field input Fax:

[PHP] Alter an Array Key

2007-07-13 Thread OD
Hello, Is there any easy way to alter a key's name? I would like to remove some underscores in the $_POST array keys. Thanks, OD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie seeks urgent help

2007-07-13 Thread Daniel Brown
On 7/13/07, Luc [EMAIL PROTECTED] wrote: Good afternoon list, My first post here and i'm having trouble with a form: it doesn't send the input to the given e-mail address: i get a blank mail without any of the fields. Here's how it should arrive in the mailbox: Empresa: field input

Re: [PHP] Alter an Array Key

2007-07-13 Thread Robert Cummings
On Fri, 2007-07-13 at 15:36 -0500, OD wrote: Hello, Is there any easy way to alter a key's name? I would like to remove some underscores in the $_POST array keys. ?php foreach( $_POST as $key = $value ) { if( strpos( $key, '_' ) !== false ) { $_POST[str_replace( '_', '',

[PHP] preg_replace() help

2007-07-13 Thread Rick Pasotto
I have quotes like the following: $txt = 'A promise is a debt. -- Irish Proverb'; I'd like to replace all the spaces afer the '--' with nbsp; This is what I've tried: $pat = '/( --.*)(\s|\n)/U'; $rpl = '$1$2nbsp;'; while (preg_match($pat,$txt,$matches) 0) { print

Re: [PHP] Alter an Array Key

2007-07-13 Thread Jim Lucas
OD wrote: Hello, Is there any easy way to alter a key's name? I would like to remove some underscores in the $_POST array keys. Thanks, OD sure use str_replace in the value of the key name string. But, that probably doesn't answer your question. Why don't you supply us with an example of

Re: [PHP] preg_replace() help

2007-07-13 Thread Jim Lucas
Rick Pasotto wrote: I have quotes like the following: $txt = 'A promise is a debt. -- Irish Proverb'; I'd like to replace all the spaces afer the '--' with nbsp; This is what I've tried: $pat = '/( --.*)(\s|\n)/U'; $rpl = '$1$2nbsp;'; while (preg_match($pat,$txt,$matches) 0)

Re: [PHP] preg_replace() help

2007-07-13 Thread Daniel Brown
On 7/13/07, Rick Pasotto [EMAIL PROTECTED] wrote: I have quotes like the following: $txt = 'A promise is a debt. -- Irish Proverb'; I'd like to replace all the spaces afer the '--' with nbsp; This is what I've tried: $pat = '/( --.*)(\s|\n)/U'; $rpl = '$1$2nbsp;'; while

Re: [PHP] preg_replace() help

2007-07-13 Thread Jim Lucas
Rick Pasotto wrote: I have quotes like the following: $txt = 'A promise is a debt. -- Irish Proverb'; I'd like to replace all the spaces afer the '--' with nbsp; This is what I've tried: $pat = '/( --.*)(\s|\n)/U'; $rpl = '$1$2nbsp;'; while (preg_match($pat,$txt,$matches) 0)

[PHP] Installation problem

2007-07-13 Thread William Sang Lee
Hi, I am trying to install a package using SSH because my Web-based PEAR is not working. So, I type in pear install Date. But, it only says Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Non-recoverable failure in name resolution in RPC.php on line 464 Warning:

Re: [PHP] Newbie seeks urgent help

2007-07-13 Thread Tijnema
On 7/13/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/13/07, Luc [EMAIL PROTECTED] wrote: Good afternoon list, My first post here and i'm having trouble with a form: it doesn't send the input to the given e-mail address: i get a blank mail without any of the fields. Here's how it

Re: [PHP] Installation problem

2007-07-13 Thread Tijnema
On 7/13/07, William Sang Lee [EMAIL PROTECTED] wrote: Hi, I am trying to install a package using SSH because my Web-based PEAR is not working. So, I type in pear install Date. But, it only says Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Non-recoverable failure in name

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Tijnema
On 7/13/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 7/13/07, Robert Cummings [EMAIL PROTECTED] wrote: This isn't possible since you can't request a connection to the client's machine. Only the other way around. hmm... in that case perhaps the open connection could be employed and the

Re: [PHP] Social Networking Sites OT

2007-07-13 Thread Tijnema
On 7/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-12 at 23:51 -0500, Richard Lynch wrote: It's gotten to the point where I pretty much view social networking sites as just another form of spammers... I blogged about it, and would like feedback from members of this lists,

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tijnema
On 7/13/07, Tanner Postert [EMAIL PROTECTED] wrote: figured it out... the domain in question's dns is set to CNAME to the main domain on that server, whereas, the remaining domains are just using the A record with the IP. I changed one of the other domains to use the CNAME and it did the same

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
thanks, thats exactly where I went. looks like i'm on the right track. On 7/13/07, Tijnema [EMAIL PROTECTED] wrote: On 7/13/07, Tanner Postert [EMAIL PROTECTED] wrote: figured it out... the domain in question's dns is set to CNAME to the main domain on that server, whereas, the remaining

[PHP] Multiple Session Buffers

2007-07-13 Thread Al
Is there a way to instigate 2 separate named session buffers? They will contain different data. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
Hello Daniel, Friday, July 13, 2007, 5:50:53 PM, you wrote: In your code, all you have is this: Unfortunately it doesn't work, probably because of my lack of php skills :-) I copied and paste your solution as follows: ? // Your email address $youremail = 'mail adres'; // Your web site

Re: Re[2]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Tijnema
On 7/14/07, Luc [EMAIL PROTECTED] wrote: Hello Daniel, Friday, July 13, 2007, 5:50:53 PM, you wrote: In your code, all you have is this: Unfortunately it doesn't work, probably because of my lack of php skills :-) I copied and paste your solution as follows: ? // Your email address

[PHP] PHP scripts with shebang line: Questions

2007-07-13 Thread sone gone
Hi, i want to question about shebang line on FreeBSD6. This script works on FreeBSD4, but doesn't work on FreeBSD6 #!/usr/local/bin/php -d open_basedir=/path ?php file('/path/sample.txt'); ? i understood the reason from this pages.

Re[4]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
Hello Tijnema, Friday, July 13, 2007, 10:09:05 PM, you wrote: You're using a ' here, which ends the string. Use one of these: $websitetitle = John Doe's Site; OR $websitetitle = 'John Doe\'s Site'; Just a matter of preference ;) Thanks Tijnema But still get: Parse error: syntax error,

Re: Re[4]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Tijnema
On 7/14/07, Luc [EMAIL PROTECTED] wrote: Hello Tijnema, Friday, July 13, 2007, 10:09:05 PM, you wrote: You're using a ' here, which ends the string. Use one of these: $websitetitle = John Doe's Site; OR $websitetitle = 'John Doe\'s Site'; Just a matter of preference ;) Thanks Tijnema

[PHP] Strange output using include()/require()

2007-07-13 Thread melz
Hello, I'm new to this newsgroup so I hope this is the right place to ask for help. I have a script that starts with the following lines: Line1: require_once 'config.php'; Line2: require_once 'common.php'; Line3: require_once 'HTTP/Request.php'; However, when I run it on the browser, where

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Nathan Nobbe
On 7/13/07, Tijnema [EMAIL PROTECTED] wrote: Well, that's why AJAX is there, you do a check to a server to see if there's any new data to parse, if so, then you update (and probably only one or two divs on your site, and not the whole page) I understand the use of AJAX to only update a subset

Re[6]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
Hello Tijnema, Friday, July 13, 2007, 10:45:48 PM, you wrote: You must have some unclosed single quote ( ' ) somewhere, on one of these lines probably: $youremail = $websitetitle = $thankyoupage = Found the problem :-) in the block: $body =EOB Empresa: $_POST[empresa_name] Contato:

Re: [PHP] Strange output using include()/require()

2007-07-13 Thread DJ Necrogami
That's UTF-8 Open it in a Unicode File Editor Change it from ANSI to UTF-8 and back to ANSI and then resave and it will go away On 7/13/07, melz [EMAIL PROTECTED] wrote: Hello, I'm new to this newsgroup so I hope this is the right place to ask for help. I have a script that starts with the

Re: Re[6]: [PHP] Newbie seeks urgent help

2007-07-13 Thread DJ Necrogami
On 7/14/07, Luc [EMAIL PROTECTED] wrote: Hello Tijnema, Friday, July 13, 2007, 10:45:48 PM, you wrote: You must have some unclosed single quote ( ' ) somewhere, on one of these lines probably: $youremail = $websitetitle = $thankyoupage = Found the problem :-) in the block: $body =EOB

Re: [PHP] Strange output using include()/require()

2007-07-13 Thread melz
DJ Necrogami wrote: That's UTF-8 Open it in a Unicode File Editor Change it from ANSI to UTF-8 and back to ANSI and then resave and it will go away Thanks! What a silly mistake I did. -m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP scripts with shebang line: Questions

2007-07-13 Thread Richard Lynch
AFAICS, this is a FreeBSD question... That said, you could have a work-around where you put your 2 -d settings into a single php.mini :-) file and then use one -c to pull that in... On Fri, July 13, 2007 8:23 pm, sone gone wrote: Hi, i want to question about shebang line on FreeBSD6. This

Re: [PHP] Multiple Session Buffers

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 6:20 pm, Al wrote: Is there a way to instigate 2 separate named session buffers? They will contain different data. I don't see how you could, since you'll be changing the contents of $_SESSION which doesn't let you specify which of the two you are messing with... You

Re: [PHP] preg_replace() help

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 3:52 pm, Rick Pasotto wrote: I have quotes like the following: $txt = 'A promise is a debt. -- Irish Proverb'; I'd like to replace all the spaces afer the '--' with nbsp; This is what I've tried: $pat = '/( --.*)(\s|\n)/U'; You might want to use \\s and \\n,

Re: [PHP] Alter an Array Key

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 3:36 pm, OD wrote: Hello, Is there any easy way to alter a key's name? I would like to remove some underscores in the $_POST array keys. Not directly, but: $post = array(); foreach($_POST as $k = $v){ $k = str_replace('_', ' ', $k); $post[$k] = $v; } You could dink

Re: [PHP] PHP short tags: Questions

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 8:54 am, Daniel Brown wrote: To my knowledge (and even a quick peek at http://www.php.net/ini.core), there is no indication that short_open_tags is deprecated, nor that it's been on the verge of removal at any point. I don't want to start a flame war, but it sounds

Re: [PHP] Strange output using include()/require()

2007-07-13 Thread melz
DJ Necrogami wrote: That's UTF-8 Open it in a Unicode File Editor Change it from ANSI to UTF-8 and back to ANSI and then resave and it will go away Incidently, is there no way that I could keep all my files as UTF-8 and not have that encoding problem? I just realized one of my config files

  1   2   >