Re: [PHP] Single Quote in String functions

2007-07-12 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

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

2007-07-12 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] Help setting up php

2007-07-12 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 *loo

Re: [PHP] can't open file

2007-07-12 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

Re: [PHP] can't open file

2007-07-12 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 s

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

2007-07-12 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. You really ought to be getting the return value from mail() and checking it for success... Error-checking is good. :-)

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

2007-07-12 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] Displaying HTML characters in real format

2007-07-12 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. " but > will like it to be displayed as " > > htmlspecialchars or htmlentities or page character set ? htmlspecialchars

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

2007-07-12 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 nearl

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

2007-07-12 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 thro

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

2007-07-12 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. > > $to = '[EMAIL PROTECTED]'; > $subject = 'the subject'; > $message = 'body'; > $headers = 'From: [EMAIL PROTECTED]' . "\r\n" . >

Re: [PHP] PHP short tags: Questions

2007-07-12 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 g

Re: [PHP] SMS questions

2007-07-12 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 tha

Re: [PHP] SMS questions

2007-07-12 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 respon

Re: [PHP] SMS questions

2007-07-12 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] PHP short tags: Questions

2007-07-12 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 w

Re: [PHP] text field truncation with sql server

2007-07-12 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 3980?

RE: [PHP] SMS questions

2007-07-12 Thread Jay Blanchard
[snip] ...schtuff [/snip] Please, do not cast aspersions upon the telcos, for those of us who work in the industry cannot even get some of what you are talking about. We have a vendor that provides the SMS part and they will not expose the SMS API to us (not all SMS platforms are equal either)

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

2007-07-12 Thread Nathan Nobbe
kelvin, attached is a very simple diagram i put together when i got home illustrating a possible relationship between the main components in an xsl templated php application w/ a database back-end. as ive mentioned there are other configurations as well. primarily the main options in the overal

[PHP] Social Networking Sites OT

2007-07-12 Thread Richard Lynch
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. PLEASE put responses in my blog, or your blog, or whatever, but

[PHP] text field truncation with sql server

2007-07-12 Thread Bruce Cowin
I have a simple page that displays a record from the sql server database. One of the fields is a text field and keeps getting truncated at 3980 characters. I searched and saw someone had reported this as a PDO bug so I'm not using PDO anymore, but I'm still getting the truncation. Anyone know

Re: [PHP] PHP short tags: Questions

2007-07-12 Thread Chris
Micky Hulse wrote: Hi Chris, thanks for the quick reply. I appreciate your help. Chris wrote: Sure. Thanks. :) 1 & 3 definitely. No idea how it's a security risk. Ah, great. Thanks for clarification. I probably mis-read the info about it being a security risk. I should have said I'm no

Re: [PHP] PHP short tags: Questions

2007-07-12 Thread Micky Hulse
Hi Chris, thanks for the quick reply. I appreciate your help. Chris wrote: Sure. Thanks. :) 1 & 3 definitely. No idea how it's a security risk. Ah, great. Thanks for clarification. I probably mis-read the info about it being a security risk. Have a great day, Cheers, Micky -- Wishlists:

Re: [PHP] PHP short tags: Questions

2007-07-12 Thread Chris
"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 describe the problem to a technically literate non php coder? Sure. Additionally, is there a good reference on the net that explains the differences between s

Re: [PHP] SMS questions

2007-07-12 Thread Nathan Nobbe
Brian, 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 numbers are transportable between carriers. fr

Re: [PHP] Array Push question

2007-07-12 Thread John Comerford
As you guys can probably guess from the question I'm still getting to grips with some parts of php. I had stripped down the code for my original post, maybe this will clear things up a bit: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = "this is a test"; $Rows

Re: [PHP] SMS questions

2007-07-12 Thread Brian Dunning
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 numbers are transportable between carriers. I wa

Re: [PHP] SMS questions

2007-07-12 Thread Nathan Nobbe
Brian, I was experimenting late last year using PHP to send SMS messages. I think there is a lot of potential in the marketplace around SMS. But most of the phone companies wouldnt even talk to me and all i was trying to do was hit a development API to test some code out. im almost certain you

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

2007-07-12 Thread Steve Perkins
Sounds more like the mail server than PHP. Although weird anyway ! What mail server are you using : local/remote, smtp/sendmail/qmail ? Try using whatever method and send a mail through this server from outside of PHP with the same problem parameters ? Does that work ? It should either eliminate

[PHP] PHP short tags: Questions

2007-07-12 Thread Micky Hulse
Hi, 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 describe the problem to a technically literate

[PHP] SMS questions

2007-07-12 Thread Brian Dunning
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 send an SMS message that can be replied to the desire

[PHP] mail function from and reply to address problem

2007-07-12 Thread Tanner Postert
I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. i have about 10 or so different virtual hosts running on this machine, and if i use any of them for the from & reply-to addresses, it works fine, or even if i use domains I don't control like aol.

[PHP] Re: Displaying HTML characters in real format

2007-07-12 Thread Dan
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 equivalents are translated into these entities. Th

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

2007-07-12 Thread Kelvin Park
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 XML (or directly to the database with PHP DB connectio

Re: [PHP] Displaying HTML characters in real format

2007-07-12 Thread Jim Lucas
Don Don wrote: Hi all, Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. " but will like it to be displayed as " htmlspecialchars or htmlentities or page character set ? Cheers ---

[PHP] Re: Displaying HTML characters in real format

2007-07-12 Thread Al
Best way to learn, and remember, things like this is to make a simple test page and see for yourself. Don Don wrote: Hi all, Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. " but will like it to be displayed as

[PHP] Re: Help setting up php

2007-07-12 Thread Joker7
In news: [EMAIL PROTECTED] - "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. > > > > I have followed multiple guides including those listed on the install >

[PHP] Displaying HTML characters in real format

2007-07-12 Thread Don Don
Hi all, Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. " but will like it to be displayed as " htmlspecialchars or htmlentities or page character set ? Cheers - Take the I

Re: [PHP] can't open file

2007-07-12 Thread Stut
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 the problem is. Please post the cod

Re: [PHP] can't open file

2007-07-12 Thread Anugrah Widya
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 the problem is. Please post the code you're using and a

Re: [PHP] can't open file

2007-07-12 Thread Daniel Brown
On 7/12/07, Anugrah Widya <[EMAIL PROTECTED]> 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 ?? How are you attempting to create the file? What do your PHP settings allow and disallow? Do you m

Re: [PHP] can't open file

2007-07-12 Thread Stut
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 the problem is. Please post the code you're using and a more detailed

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Tijnema
On 7/12/07, Jon Anderson <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Did you come before or after the chicken egg? > Relevant to the above: $a = array('Chicken','Egg'); echo "The " . $a[array_rand($a)] . " comes first."; I appologize if this one's already been done...I've only glanced a

[PHP] can't open file

2007-07-12 Thread Anugrah Widya
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
On 7/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > I wasn't born silly-ass, I was hatched. >:) > > Did you come before or after the chicken egg? After the first one, but I fried it up and so earth had to wait another couple of million years for a chicken to evolve again. Ah, so t

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Jon Anderson
Daniel Brown wrote: Did you come before or after the chicken egg? Relevant to the above: $a = array('Chicken','Egg'); echo "The " . $a[array_rand($a)] . " comes first."; I appologize if this one's already been done...I've only glanced at a few entries in this thread, entertaining though i

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Robert Cummings
On Thu, 2007-07-12 at 17:06 +0200, Tijnema wrote: > On 7/12/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On 7/12/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > > Thijs Lensselink wrote: > > > >> > > >> $evil[] = "6"; > > > >> $evil[] = "6"; > > > >> $evil[] = "6"; > > > >> for($i=0;$i > > >>

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/12/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: > > You can probably remember the good old time of being a child and > > having holiday ;) > > > > Tijnema > > -- > > Vote for PHP Color Coding in Gm

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Tijnema
On 7/12/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: > You can probably remember the good old time of being a child and > having holiday ;) > > Tijnema > -- > Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info > Don't rub it in, Tijne

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: You can probably remember the good old time of being a child and having holiday ;) Tijnema -- Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info Don't rub it in, Matijn ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Stut
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 "us"? Weren't you born before they invent

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Robert Cummings
On Thu, 2007-07-12 at 11:27 -0400, Daniel Brown wrote: > On 7/12/07, Robert Cummings <[EMAIL PROTECTED]> 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 da

Re: [PHP] URLs

2007-07-12 Thread Richard Heyes
This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the URL with no file extension? Is this done through PHP or is

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
On 7/12/07, Robert Cummings <[EMAIL PROTECTED]> 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. > >

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Robert Cummings
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 "us"? Weren't you born before they i

Re: [PHP] Bandwidth and Mail statistics

2007-07-12 Thread Stut
Fernando Cosso wrote: Hi guys I have been asked to create a php script. It has to create a pdf with the qmail and the bandwidth statistics. My first approach was to parse the html output of the isoqlog for the mail and copy the mrtg's images But it is a really nasty job. I wonder if someone has d

RE: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Jay Blanchard
[snip] > >> >> $evil[] = "6"; > >> $evil[] = "6"; > >> $evil[] = "6"; > >> for($i=0;$i >> $_ = sqrt($evil); > >> } > >> ?> It was supposed to be "money is the root of all evil," but the code above wouldn't work correctly anyway, as each time through the for() loop it'll try to get the squ

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
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? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Tijnema
On 7/12/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/12/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Thijs Lensselink wrote: > >> >> $evil[] = "6"; > >> $evil[] = "6"; > >> $evil[] = "6"; > >> for($i=0;$i >> $_ = sqrt($evil); > >> } > >> ?> It was supposed to be "money is the root

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
On 7/12/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: Thijs Lensselink wrote: >> > $evil[] = "6"; >> $evil[] = "6"; >> $evil[] = "6"; >> for($i=0;$i> $_ = sqrt($evil); >> } >> ?> It was supposed to be "money is the root of all evil," but the code above wouldn't work correctly anyway, as e

Re: [PHP] Array Push question

2007-07-12 Thread Jim Lucas
John Comerford wrote: Hi Folks, Is there a better way of doing the following: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = "this is a test"; I imagine that you are doing other actions between the above three lines? Correct? Really, the simplest way of doin

[PHP] Re: PHP Brain Teasers

2007-07-12 Thread Colin Guthrie
Thijs Lensselink wrote: >> > $evil[] = "6"; >> $evil[] = "6"; >> $evil[] = "6"; >> for($i=0;$i> $_ = sqrt($evil); >> } >> ?> >> That also illustrates to newbies the allowance of using an >> underscore as a variable. (Thank God it's almost Friday) Thank _God_ it's Friday??? Covering all

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Thijs Lensselink
On Thu, 12 Jul 2007 09:56:18 -0400, "Daniel Brown" <[EMAIL PROTECTED]> wrote: > On 7/12/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: >> [snip] >> Mine was trying to go for an old funk song that starts: >> >> What goes up, must come down. >> Spinning wheel got to go 'round >> Drop all the painted po

Re: [PHP] URLs

2007-07-12 Thread Daniel Brown
On 7/12/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Hi. This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the

Re: [PHP] URLs

2007-07-12 Thread Stut
Philip Thompson wrote: This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the URL with no file extension? Is this

[PHP] Re: URLs

2007-07-12 Thread Mikey
Philip Thompson wrote: Hi. This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the URL with no file extension? I

[PHP] URLs

2007-07-12 Thread Philip Thompson
Hi. This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the URL with no file extension? Is this done through P

Re: [PHP] Single Quote in String functions

2007-07-12 Thread Robert Cummings
On Thu, 2007-07-12 at 15:47 +0300, Sancar Saran wrote: > On Thursday 12 July 2007 15:11:28 Stut wrote: > > Sancar Saran wrote: > > > I cannot do any operation wiht single quote like > > > > > > explode("'",$strContent); > > > > > > Did I miss someting ? > > > > In what way "can't"? What happens / d

Re: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Daniel Brown
On 7/12/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Mine was trying to go for an old funk song that starts: What goes up, must come down. Spinning wheel got to go 'round Drop all the painted ponies by the riverside. [mumble] let the spinning wheel slide. Only later did I realize I broke

Re: [PHP] Help setting up php

2007-07-12 Thread Robert Cummings
On Thu, 2007-07-12 at 09:25 -0400, 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. Your webserver is looking for it here: C:\WINDOWS\php.ini Is it there? Chee

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

2007-07-12 Thread Daniel Brown
On 7/12/07, Ross <[EMAIL PROTECTED]> wrote: Hi, 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. Many thanks, R.

[PHP] Help setting up php

2007-07-12 Thread Karl Schmitt
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. I have followed multiple guides including those listed on the install pages and even went back and let the installer run, which changed no

RE: [PHP] PHP 5.0.1 Date

2007-07-12 Thread Shafer, Philip
Yes, TZ env var helps and it works when I use putenv(). However if I set TZ in the server, and restart apache/php, TZ is getting wiped out. I think my server admin and I have to do some poking around to figure out why. Thanks for the help. -phil -Original Message- From: Richard Lynch [

Re: [PHP] Single Quote in String functions

2007-07-12 Thread Sancar Saran
On Thursday 12 July 2007 15:11:28 Stut wrote: > Sancar Saran wrote: > > I cannot do any operation wiht single quote like > > > > explode("'",$strContent); > > > > Did I miss someting ? > Omg, It's my bad, sorry for lameness. Before the exploding text I do some encoding decodings. So? I do mis s

Re: [PHP] Array Question

2007-07-12 Thread Robert Cummings
On Thu, 2007-07-12 at 09:58 +0100, Stut wrote: > Richard Lynch wrote: > > On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: > >>> But I'd have to say that the intent is not all that clear, really, > >>> and > >>> I'd be leery of this feature, personally. > >> I wouldn't be leery at all. It's be

Re: [PHP] Array Push question

2007-07-12 Thread Stut
M. Sokolewicz wrote: Stut wrote: Zoltán Németh wrote: 2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: John Comerford wrote: Hi Folks, Is there a better way of doing the following: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = "this is a test";

Re: [PHP] Single Quote in String functions

2007-07-12 Thread Sancar Saran
On Thursday 12 July 2007 15:11:28 Stut wrote: > Sancar Saran wrote: > > I cannot do any operation wiht single quote like > > > > explode("'",$strContent); > > > > Did I miss someting ? > > In what way "can't"? What happens / doesn't happen? > > -Stut > > -- > http://stut.net/ Hi, Problem was $st

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

2007-07-12 Thread Ross
Hi, 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. Many thanks, R. -- PHP General Mailing List (http://www.

Re: [PHP] Single Quote in String functions

2007-07-12 Thread Stut
Sancar Saran wrote: I cannot do any operation wiht single quote like explode("'",$strContent); Did I miss someting ? In what way "can't"? What happens / doesn't happen? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Re: Single Quote in String functions

2007-07-12 Thread M. Sokolewicz
Sancar Saran wrote: Hi, I cannot do any operation wiht single quote like explode("'",$strContent); Did I miss someting ? Regards Sancar what do you mean by 'cannot do' ? If I do: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Single Quote in String functions

2007-07-12 Thread Sancar Saran
Hi, I cannot do any operation wiht single quote like explode("'",$strContent); Did I miss someting ? Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Push question

2007-07-12 Thread M. Sokolewicz
Stut wrote: Zoltán Németh wrote: 2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: John Comerford wrote: Hi Folks, 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 won

RE: [PHP] Re: PHP Brain Teasers

2007-07-12 Thread Jay Blanchard
[snip] Mine was trying to go for an old funk song that starts: What goes up, must come down. Spinning wheel got to go 'round Drop all the painted ponies by the riverside. [mumble] let the spinning wheel slide. Only later did I realize I broke the cardinal rule of Name That Tune and have NO IDEA w

Re: [PHP] Array Push question

2007-07-12 Thread Stut
Zoltán Németh wrote: 2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: John Comerford wrote: Hi Folks, 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

Re: [PHP] Array Push question

2007-07-12 Thread Zoltán Németh
2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: > John Comerford wrote: > > Hi Folks, > > > > 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 won

Re: [PHP] Array Push question

2007-07-12 Thread Thijs Lensselink
On Thu, 12 Jul 2007 18:45:36 +1000, John Comerford <[EMAIL PROTECTED]> wrote: > Hi Folks, > > 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

Re: [PHP] Array Push question

2007-07-12 Thread Stut
John Comerford wrote: Hi Folks, 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'. 1) The code above will produce a $currentRow of -1 wh

Re: [PHP] Array Question

2007-07-12 Thread Stut
Richard Lynch wrote: On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I'd have to say that the intent is not all that clear, really, and I'd be leery of this feature, personally. I wouldn't be leery at all. It's been around for a very long time and it's documented: http://www.php.net

Re: [PHP] Array Push question

2007-07-12 Thread dev
On Thu, 12 Jul 2007 18:45:36 +1000, John Comerford <[EMAIL PROTECTED]> wrote: > Hi Folks, > > 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

[PHP] Array Push question

2007-07-12 Thread John Comerford
Hi Folks, 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'. TIA, JC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

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

2007-07-12 Thread Olav Mørkrid
yep, a for loop is the fallback i use now. any reason why there isn't a built-in function for this? any plans for it in future versions of php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-07-12 Thread Chris
Olav Mørkrid wrote: chris for your suggestion to work, the internal array pointer of $array would first have to be set to point to the current element ($index). but how do you do this? this may seem like childs play, but i actually can't find any documented php function for this. it would be s

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

2007-07-12 Thread Olav Mørkrid
chris for your suggestion to work, the internal array pointer of $array would first have to be set to point to the current element ($index). but how do you do this? this may seem like childs play, but i actually can't find any documented php function for this. it would be something like: array