Re: [PHP] Very Large text file parsing
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/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [SOLVED] Re: [PHP] disappearing array?
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 be checked or start exercising my fat fingers. Instruct ICC wrote: > Wow this formatted badly. (new hotmail on Safari -- MS made FF not even > render well) > > Anyway, are you sure you are reaching the code you want to reach? > Perhaps !== is overkill and maybe even wrong when you should use ==. > > Same with the other === usage? > > Try some > echo "HERE1\n"; > echo "HERE2\n"; > to see if you are getting to the line you expect. Like after that "count(~) > !== ". > > _ > Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way > of saying thanks for using Windows Live™. > http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Font size of text that will be written using php pack function
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-written-using-php-pack-function-tf4493862.html#a12816141 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Upgrade
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 test server and have run into a couple of problems with the upgrade. Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Working with XML: DomDocument or SimpleXML?
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 phrase it better: one can easily convert a SimpleXML object to a DomDocument[1], but nothing is "free" (in terms of time taken and memory requirements etc.), so really I guess I want to ask if the trade off of the simplicity of working with SimpleXML is worth it considering the overhead of the conversion process to a DomDocument for subsequent XSLT transforms etc? Conversion is easy and the time/memory is negligible due to how the interoperability was designed. The whole purpose of it is so you can go back and forth to use whichever API suits you need at the time. if ($xml instanceof SimpleXMLElement) { $rv = new DOMDocument('1.0', 'utf-8'); $node = dom_import_simplexml($xml); $node = $rv->importNode($node, true); $rv->appendChild($node); return $rv; } Why??? If you really want a DOMDocument object why are you creating a new document, copying nodes and incurring all the additional overhead? if ($xml instanceof SimpleXMLElement) { /* No copying, just use the existing XML tree directly */ $node = dom_import_simplexml($xml); return $node->ownerDocument; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upgrade
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 have. I'm not ready to make the jump to PHP5 yet. I've > tried it on a test server and have run into a couple of problems with > the upgrade. I really don't think you should upgrade to 4.3.0 instead of going php5. All versions of php4 are discontinued from the end of this year, see php.net If you insist on 4.3.0, I don't know of any problems with upgrading to it, but pay attention to all the extensions - upgrade them also if needed, etc... greets Zoltán Németh > > Thanks, > > Ed > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Working with XML: DomDocument or SimpleXML?
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_import_simplexml($xml); >> $node = $rv->importNode($node, true); >> $rv->appendChild($node); >> return $rv; >> } > > Why??? If you really want a DOMDocument object why are you creating a > new document, copying nodes and incurring all the additional overhead? > > 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 DOMNode Object (or something like that will have to test again as memory is corrupted - there /was/ a reason, and stupid me didn't comment the code.). Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Working with XML: DomDocument or SimpleXML?
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 or something daft like that in the past. This is great (still need to test but I trust you!) as it means we can work happily with either model quite happily (for two reasons if you can just pass the SimpleXML object straight into the XSLT stuff!!) Cheers Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Working with XML: DomDocument or SimpleXML?
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 DOMNode Object (or something like that will have to test again as memory is corrupted - there /was/ a reason, and stupid me didn't comment the code.). 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. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php personal project
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 archive purposes, > > And be able to pull them out on html reports. Why reinvent the wheel when there are well-developed apps from Yahoo, ESPN and other places? Just want the experience?
Re: [PHP] Upgrade
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'); $pro->find(); while($pro->fetch()) $allPro[] = $pro; But on 5, it has to be modified to include("DB/DataObjects.php"); $pro = DB_DataObject::factory('Product'); $pro->find(); while($pro->fetch()) $allPro[] = clone $pro; The above is only an example. So upgrading to 5 is not an option for us. -- Ben Web Design Shropshire, Software programing http://www.sparkcomputing.co.uk On Friday 21 Sep 2007 13:43, Zoltán Németh wrote: > 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 have. I'm not ready to make the jump to PHP5 yet. I've > > tried it on a test server and have run into a couple of problems with > > the upgrade. > > I really don't think you should upgrade to 4.3.0 instead of going php5. > All versions of php4 are discontinued from the end of this year, see > php.net > If you insist on 4.3.0, I don't know of any problems with upgrading to > it, but pay attention to all the extensions - upgrade them also if > needed, etc... > > greets > Zoltán Németh > > > > > Thanks, > > > > Ed > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upgrade
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("DB/DataObjects.php"); > $pro = DB_DataObject::factory('Product'); > $pro->find(); > while($pro->fetch()) >$allPro[] = $pro; > > But on 5, it has to be modified to > include("DB/DataObjects.php"); > $pro = DB_DataObject::factory('Product'); > $pro->find(); > while($pro->fetch()) >$allPro[] = clone $pro; > > The above is only an example. So upgrading to 5 is not an option for us. You might want to start a migration path for your code in the near future. i would suggest something like the following: This way you can still use PHP4 while providing the necessary changes for PHP5 before fully switching over. Cheers, Rob. Ps. I used references so PHP4 wouldn't create copies at every function call :) -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upgrade
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::factory('Product'); $pro->find(); while($pro->fetch()) $allPro[] = $pro; But on 5, it has to be modified to include("DB/DataObjects.php"); $pro = DB_DataObject::factory('Product'); $pro->find(); while($pro->fetch()) $allPro[] = clone $pro; The above is only an example. So upgrading to 5 is not an option for us. -- Ben Web Design Shropshire, Software programing http://www.sparkcomputing.co.uk Thanks, I did find a way to do what I needed to do and not have to upgrade. There are more system calls but it won't be used often enough to worry about. Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Limiting connection to mysql using old mysql module (not mysqli)
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? Scopri come diventare Family Banker! * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7063&d=21-9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upgrade
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 clone keyword needed to be used in 5 (didnt look into it too much tho). i always use the =& construct when assigning object references in php4. this is another one of the sore spots i have for php4. the reason being php4 requires developers to use the =& construct so that a copy is not created. i like to think the people i work w/ are competent, but less face it, in large systems w/ lots of developers, its hard to ensure =& is always being used. in fact, in php4 singletons break if =& is not used. that makes singleton in php4 very delicate. -nathan
[PHP] Working with sessions
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 Result 1: Nothing Search 2: Bob Result 2: Harry Search 3: Larry Result 3: Bob Should I not be using a session variable to preform my search but instead use a local variable to do the actual search and then use the session variable to do the export? Ugg... Session's are driving me crazy so far... Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]
RE: [PHP] Working with sessions
[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 store the search term immediately to the session variable; Now in the code that generates the excel; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Working with sessions
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 search behind... [/snip] When you do the search store the search term immediately to the session variable; Now in the code that generates the excel; 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 " Search: "; $_SESSION['search'] = $_GET['search']; ?> It also displays the search results on the same page and that display works just fine. Just the session variable that's messed up. Thanks for looking though :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Working with sessions
[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 " Search: "; $_SESSION['search'] = $_GET['search']; ?> [/snip] Looks like it should if the form is referring to PHP_SELF (search.php). Do you have a seesion_start() at the top of the page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] List Help - Email Change
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 West Chester, PA 19382-6871 USA AProstko @ verizon.net
Re: [PHP] Working with sessions
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... providing the offset that it did. Now to make the export like it! :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] List Help - Email Change
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 Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Access name of variable in $_POST array
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.net site and googled this as well I have not yet been able to find the syntax that I need to get the names of the variables in the $_Post array. Can someone point me to the place in the PHP manual where I can find the syntax to get the name of a variable in the $_POST array? Thank you Eric H. Lommatsch Programmer 360 Business 2087 South Grant Street Denver, CO 80210 Tel 303-777-8939 Fax 303-778-0378 [EMAIL PROTECTED]
Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)
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 site really busy enough to be legitimately maxing it out? Have you optimised the crap out of the database usage? If the site really has reached the limit and you can't find any code optimisations then you need to look at adding more hardware. Assuming you've developed the site "properly" you shouldn't have any problems scaling it horizontally. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Access name of variable in $_POST array
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 through the PHP.net site and googled this as well I have not yet been able to find the syntax that I need to get the names of the variables in the $_Post array. Can someone point me to the place in the PHP manual where I can find the syntax to get the name of a variable in the $_POST array? http://php.net/array_keys As in... $varnames = array_keys($_POST); -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Access name of variable in $_POST array
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 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 through the PHP.net site and googled this as well I have not yet been able to find the syntax that I need to get the names of the variables in the $_Post array. Can someone point me to the place in the PHP manual where I can find the syntax to get the name of a variable in the $_POST array? http://php.net/array_keys As in... $varnames = array_keys($_POST); -Stut -- http://stut.net/ Hello Stut, That is not exactly what I am looking for. If I try using that in My PHP script what I get as a result of that is repeatedly the Phrase "Post Array" when I check the values there. The PDF form that is posting to the PHP script is passing variable names like "Employer_name" or "Employee_Name". I am hoping to get those variable names. Put this line at the top of the script that the form posts to... print ''.print_r($_POST, true).''; exit; That will display the contents of the $_POST array and you should be able to figure out where everything is. By the sounds of it the posted values are actually in $_POST['Post Array'] but use the above line to be sure. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] back-button question
Στις 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 throught php/html files > > > > a-> b --> c > > |<| > > . > > . > > > > > > Browsers will not store a page that contains a header redirect in the > history. In fact what you're talking about even has a name for it: > http://en.wikipedia.org/wiki/Post/Redirect/Get Thanks very much for your responses. The above link was very helpfull and the advice of Al. I have started studying PRG , model-view-control and web application frameworks, areas that i didnt know they exist!! Alexandros Prekates. Trikala Greece -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Access name of variable in $_POST array
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: Re: [PHP] Access name of variable in $_POST array > > > > 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 through the PHP.net site and googled this > >> as well I have not yet been able to find the syntax that I need to get > >> the names of the variables in the $_Post array. > >> > >> Can someone point me to the place in the PHP manual where I can find > >> the syntax to get the name of a variable in the $_POST array? > > > > http://php.net/array_keys > > > > As in... > > > > $varnames = array_keys($_POST); > > > > -Stut > > > > -- > > http://stut.net/ > > > > Hello Stut, > > > > That is not exactly what I am looking for. If I try using that in My PHP > > script what I get as a result of that is repeatedly the Phrase "Post Array" > > when I check the values there. The PDF form that is posting to the PHP > > script > > is passing variable names like "Employer_name" or "Employee_Name". I am > > hoping to get those variable names. > > Put this line at the top of the script that the form posts to... > > print ''.print_r($_POST, true).''; exit; > > That will display the contents of the $_POST array and you should be > able to figure out where everything is. > > By the sounds of it the posted values are actually in $_POST['Post > Array'] but use the above line to be sure. > > -Stut > > -- > http://stut.net/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Maybe this will get you started and give you some ideas. $v) { $$p = $v; echo $p." = ".$v."\n"; } ?> -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Page Numbering
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 shouldn't be much harder than subscribing, which you did by all by yourself. So, figure it out -- other's have without problems. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Page Numbering (To The Unsubscribe Guy)
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 cool activities at the Messenger Café. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Working with sessions
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 contain the values you want -- been there a few times. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Page Numbering (To The Unsubscribe Guy)
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 with hot games and cool activities at the Messenger Café. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline honestly, if he responded to either of the two un-subscribe submissions that I submitted for him, he is probably off the list already. -- Jim Lucas "Perseverance is not a long race; it is many short races one after the other" Walter Elliot "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] str_replace oddity
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 'ghost' where they were. I even tried str_replace(array("\x8c", "\x9c", "'", '"'), '', $string) but the ghost remains and mysql continues to escape them. I check the charsets, and the db is Latin-1 and the sting is ISO-8859-1 Any thoughts on this would be most graciously accepted. Kind regards kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php