[PHP] str_replace oddity

2007-09-21 Thread Kevin Waterson
I am using str_replace to strip double quotes. $string = 'This string has "quotes" in it'; $string = str_replace('"', '', $string); this seems to work, yet when I put the $string into mysql, it uses backslashes to escape where the quotes were. The double-quotes are gone, yet it still escapes the

Re: [PHP] Page Numbering (To The Unsubscribe Guy)

2007-09-21 Thread Jim Lucas
Instruct ICC wrote: Just for grins, tell us the steps you took to unsubscribe. There is a link at the bottom of every email inviting you to unsubscribe. So I'm sure you began there. Tell us where it failed. _ Kick back and relax

Re: [PHP] Working with sessions

2007-09-21 Thread tedd
At 2:35 PM -0400 9/21/07, Jason Pruim wrote: e... Never mind. Soon as I sent the e-mail I tried moving the $_SESSION['search'] = $_GET['search']; to the top just below the includes and it worked just fine! :) Ahh, the old sequence bug. Funny how variables have to be set before they contai

RE: [PHP] Page Numbering (To The Unsubscribe Guy)

2007-09-21 Thread Instruct ICC
Just for grins, tell us the steps you took to unsubscribe. There is a link at the bottom of every email inviting you to unsubscribe. So I'm sure you began there. Tell us where it failed. _ Kick back and relax with hot games and co

RE: [PHP] Page Numbering

2007-09-21 Thread tedd
At 9:15 AM +1000 9/20/07, Andrew Wilson wrote: What do I have to do to get off this list. Murder someone? Please take me off the list as I have already tried to unsubscribe several times. Andrew: Just for my own amusement, who do you think you are talking to? Figuring out how to unsubscribe s

Re: [PHP] Access name of variable in $_POST array

2007-09-21 Thread Daniel Brown
On 9/21/07, Stut <[EMAIL PROTECTED]> wrote: > Please include the list when replying. > > Eric Lommatsch wrote: > > -Original Message- > > From: Stut [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 21, 2007 3:09 PM > > To: Eric Lommatsch > > Cc: php-general@lists.php.net > > Subject: R

Re: [PHP] back-button question

2007-09-21 Thread Πρεκατές Αλέξανδρος
Στις 17-09-2007, ημέρα Δευ, και ώρα 23:33 -0400, ο/η Eric Butera έγραψε: > On 9/17/07, Πρεκατές Αλέξανδρος <[EMAIL PROTECTED]> wrote: > > I'a writing first time so sorry if i reapeat but > > i wanted to say this in my own words and angle. > > > > My question is : > > > > Lets assume that we'r going

Re: [PHP] Access name of variable in $_POST array

2007-09-21 Thread Stut
Please include the list when replying. Eric Lommatsch wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 3:09 PM To: Eric Lommatsch Cc: php-general@lists.php.net Subject: Re: [PHP] Access name of variable in $_POST array Eric Lommatsch wrot

Re: [PHP] Access name of variable in $_POST array

2007-09-21 Thread Stut
Eric Lommatsch wrote: I am writing a PHP script that is going to accept variables that are passed from a PDF form and should write both the name of the variable and its value to a text file. I can get the value that I want to retrieve with out problem. However, even though I have searched t

[PHP] Access name of variable in $_POST array

2007-09-21 Thread Eric Lommatsch
Hello, I am writing a PHP script that is going to accept variables that are passed from a PDF form and should write both the name of the variable and its value to a text file. I can get the value that I want to retrieve with out problem. However, even though I have searched through the PHP.n

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-21 Thread Stut
Stefano Esposito wrote: i'm in need to limit the numbers of conection to the database, whithout loose of functionality. There is a general strategy to achieve this? 1) Caching 2) Caching 3) Caching And if all that fails... 4) Caching Why do you need to reduce database connections? Is the si

Re: [PHP] List Help - Email Change

2007-09-21 Thread Per Jessen
Andrew Prostko wrote: > I would like to change the email address this list is sending to, > > I sent mail to '[EMAIL PROTECTED]' but I haven't received > anything back. > > Can anyone tell me how to do this real quick? 1. unsubscribe old address. 2. subscribe new address. Really quick. /Per

[PHP] List Help - Email Change

2007-09-21 Thread Andrew Prostko
I would like to change the email address this list is sending to, I sent mail to '[EMAIL PROTECTED]' but I haven't received anything back. Can anyone tell me how to do this real quick? Having this email account on my Treo is kind of overwhelming. Andrew Prostko 1445 Washington Lane We

Re: [PHP] Working with sessions

2007-09-21 Thread Jason Pruim
e... Never mind. Soon as I sent the e-mail I tried moving the $_SESSION['search'] = $_GET['search']; to the top just below the includes and it worked just fine! :) I think my problem was the session variable was being displayed at the top of the page, and then stored after the form... p

RE: [PHP] Working with sessions

2007-09-21 Thread Jay Blanchard
[snip] Wouldn't that be what this code does: $search."; $qrow[]= mysql_query($qstring) or die(mysql_error()); $qresult = $qrow[0]; $num_rows = mysql_num_rows($qresult); //display search form echo " Sea

Re: [PHP] Working with sessions

2007-09-21 Thread Jason Pruim
On Sep 21, 2007, at 2:26 PM, Jay Blanchard wrote: [snip] I have a question about sessions, I am attempting to store a search term in a session variable to that when it finds the set of records from the database it can export it to excel. The problem I have is that the session variable is 1 sear

RE: [PHP] Working with sessions

2007-09-21 Thread Jay Blanchard
[snip] I have a question about sessions, I am attempting to store a search term in a session variable to that when it finds the set of records from the database it can export it to excel. The problem I have is that the session variable is 1 search behind... [/snip] When you do the search sto

[PHP] Working with sessions

2007-09-21 Thread Jason Pruim
Hi Everyone, I have a question about sessions, I am attempting to store a search term in a session variable to that when it finds the set of records from the database it can export it to excel. The problem I have is that the session variable is 1 search behind... IE: Search 1: Harry Resul

Re: [PHP] Upgrade

2007-09-21 Thread Nathan Nobbe
On 9/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Ps. I used references so PHP4 wouldn't create copies at every > function call :) i noticed the previously posted php4 code was doing a lot of copy operations. perhaps thats the only reason the code is actually working under 4 and the

[PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-21 Thread Stefano Esposito
Hi all, i'm in need to limit the numbers of conection to the database, whithout loose of functionality. There is a general strategy to achieve this? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Insoddisfatto del tuo lavoro? Sco

Re: [PHP] Upgrade

2007-09-21 Thread Robert Cummings
On Fri, 2007-09-21 at 16:18 +0100, Ben wrote: > It really depends on your situation. > We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of > sites will have trouble. > Personally I have some problem of upgrading from 4 to 5. > > The below codes work on 4: > > include("

Re: [PHP] Upgrade

2007-09-21 Thread Ed Curtis
Ben wrote: It really depends on your situation. We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of sites will have trouble. Personally I have some problem of upgrading from 4 to 5. The below codes work on 4: include("DB/DataObjects.php"); $pro = DB_DataObject::facto

Re: [PHP] Upgrade

2007-09-21 Thread Ben
It really depends on your situation. We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of sites will have trouble. Personally I have some problem of upgrading from 4 to 5. The below codes work on 4: include("DB/DataObjects.php"); $pro = DB_DataObject::factory('Product')

Re: [PHP] php personal project

2007-09-21 Thread Philip Thompson
On 9/21/07, Karl james <[EMAIL PROTECTED]> wrote: > > Team, > > > I am in need of some help. > > I would love to get some assistance on this. > > I need to start creating a database for my website. > > This will be for a fantasy football league website. > > To store stats on the database for archiv

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Colin Guthrie
Rob wrote: > It had to have been for some other reason as the return type for the > above example is a DOMDocument. A raw DOMNode is *NEVER* returned from > the DOM extension. It is simply a base class for most of the DOM > classes, such as DOMDocument. I think I just didn't do the ->ownerDocument

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Rob
Colin Guthrie wrote: Rob wrote: if ($xml instanceof SimpleXMLElement) { /* No copying, just use the existing XML tree directly */ $node = dom_import_simplexml($xml); return $node->ownerDocument; } Yeah I had that initially too but that did not produce a DOMDocument Object but a DOMN

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Colin Guthrie
Rob wrote: > Fairly unknown tidbit: you can pass SimpleXML objects to the XSL > extension. XSL will use the document from it. Nice to know... /me will have to experiment! >> if ($xml instanceof SimpleXMLElement) >> { >> $rv = new DOMDocument('1.0', 'utf-8'); >> $node = dom_imp

Re: [PHP] Upgrade

2007-09-21 Thread Zoltán Németh
2007. 09. 21, péntek keltezéssel 08.16-kor Ed Curtis ezt írta: > I'm currently running Debian Woody with PHP 4.1.2 installed by default. > It's really stable and I like it alot. Would I run into any problems > upgrading it to say 4.3.0. There are some functions I need in it that > 4.1.2 doesn't

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Rob
Colin Guthrie wrote: I know I definitely want to do XSLT stuff and for that I need to use DomDocument (I'm sure there are other ways but this works fine for me so far!). Fairly unknown tidbit: you can pass SimpleXML objects to the XSL extension. XSL will use the document from it. I'll

[PHP] Upgrade

2007-09-21 Thread Ed Curtis
I'm currently running Debian Woody with PHP 4.1.2 installed by default. It's really stable and I like it alot. Would I run into any problems upgrading it to say 4.3.0. There are some functions I need in it that 4.1.2 doesn't have. I'm not ready to make the jump to PHP5 yet. I've tried it on a t

[PHP] Font size of text that will be written using php pack function

2007-09-21 Thread rdpweb
Hi All I am just converting the data from database to excel format.For that i am using pack function of php . But i want some data to be in bold like Employee Name = ABC How to do that .Will anybody help me -- View this message in context: http://www.nabble.com/Font-size-of-text-that-will-be-wri

[PHP] [SOLVED] Re: [PHP] disappearing array?

2007-09-21 Thread Jas
Found the problem. I had a typo on my conditional statement. if( $fix->ValArray( $_POST['add_order_items'] === -1 ) ) { $errors['add_order_array'] = $erlink; } Should have been: if( $fix->ValArray( $_POST['add_order_items'] ) === -1 ) { $errors['add_order_array'] = $erlink; } My eyes need to b

Re: [PHP] Very Large text file parsing

2007-09-21 Thread Paul Scott
On Fri, 2007-09-21 at 08:42 +0200, Per Jessen wrote: > Isn't that just an ALTER ? Its a little more complex than that, as I have to actually create WKB from the data, so no, not just an ALTER unfortunately. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/