[PHP] Re: PHP Extensions as Shared Objects?

2008-06-02 Thread Colin Guthrie
mike wrote: On 5/29/08, Weston C [EMAIL PROTECTED] wrote: Fortunately, I'll have full control of the hosting environment in the context this matters. :) dl is definitely interesting, but I'm worried that runtime invocation might mean performance hits. Is there a way to do load/startup time

[PHP] Re: APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-02 Thread Colin Guthrie
Scott McNaught [Synergy 8] wrote: Hello, I am running a production server with APC and php. We recently had a crash where APC bombed out. When it does this, the server serves empty, white pages. Here is what the error_log says. I have not yet found a resolution for this. There are no calls

[PHP] Avoid object twice

2008-06-02 Thread Yui Hiroaki
Please take a look at code. a.php $obj=new my(Hello); $obj-buff(); Class my{ private $word; function __construct($getword){ $this-word=$getword; } public function buff(){ echo $this-word.br /; } --

RE: [PHP] Avoid object twice

2008-06-02 Thread Scott McNaught [Synergy 8]
Try removing from a.php the lines: $obj=new my(Hello); $obj-buff(); I think this will achieve what you want. -Original Message- From: Yui Hiroaki [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2008 11:01 PM To: php-general@lists.php.net Subject: [PHP] Avoid object twice Please take

RE: [PHP] saving outside website content via php...

2008-06-02 Thread Boyd, Todd M.
-Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 9:26 PM To: Shawn McKenzie Cc: php-general@lists.php.net Subject: Re: [PHP] saving outside website content via php... Yes, but file_get_contents will get me the code which I could then

Re: [PHP] saving outside website content via php...

2008-06-02 Thread Shawn McKenzie
Boyd, Todd M. wrote: -Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 9:26 PM To: Shawn McKenzie Cc: php-general@lists.php.net Subject: Re: [PHP] saving outside website content via php... Yes, but file_get_contents will get me the code which

[PHP] strlower problem

2008-06-02 Thread Ed Curtis
I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = CL22; $strLow = strtolower($thisStr); echo $thisStr; Why does $strLow come up empty? Thanks, Ed -- PHP

Re: [PHP] Avoid object twice

2008-06-02 Thread Jim Lucas
Yui Hiroaki wrote: Please take a look at code. a.php $obj=new my(Hello); $obj-buff(); Class my{ private $word; function __construct($getword){ $this-word=$getword; } public function buff(){ echo $this-word.br /; } --

Re: [PHP] strlower problem

2008-06-02 Thread Jim Lucas
Richard Heyes wrote: Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = CL22; $strLow = strtolower($thisStr); echo $thisStr; Why does

Re: [PHP] strlower problem

2008-06-02 Thread Richard Heyes
Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = CL22; $strLow = strtolower($thisStr); echo $thisStr; Why does $strLow come up empty?

Re: [PHP] strlower problem

2008-06-02 Thread Ed Curtis
Richard Heyes wrote: Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = CL22; $strLow = strtolower($thisStr); echo $thisStr; Why does

Re: [PHP] strlower problem

2008-06-02 Thread Michael Kubler
Does : /echo strtolower(CL22);/ work? You could also try : /var_dump($strLow); / Ed Curtis wrote: Richard Heyes wrote: Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other

Re: [PHP] strlower problem

2008-06-02 Thread Ed Curtis
Michael Kubler wrote: Does : /echo strtolower(CL22);/ work? You could also try : /var_dump($strLow); / Ed Curtis wrote: Richard Heyes wrote: Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million

Re: [PHP] strlower problem

2008-06-02 Thread Ted Wood
On 2-Jun-08, at 10:25 AM, Ed Curtis wrote: I found the problem myself. The actual code follows the same principal but the value of $thisStr is a $_GET value from a link. The name of that value in the link was 'style'. Oops, you should never use a HTML reserved attribute as a varible

[PHP] imageColorAllocate problem

2008-06-02 Thread Jo Ann Comito
Hi phpers, I'm having a strange problem. My goal is to be able to generate navigation buttons on the fly. I had this working -- I could pass variable text, size and font information to the php page that generates the image and all worked as expected--png files were created, stored and

[PHP] question about session variables

2008-06-02 Thread Sudhakar
i have a registration page called register.php if the data entered is validated correctly i call a file called thankyou.php or else validate.php presently a user after seeing the url website.com/thankyou.php if they enter the url directly in the browser as website.com/thankyou.php they can

[PHP] Links (A HREF) loosing my session

2008-06-02 Thread Razer Montaño
Hello All, my first time here at list. Well, I am with a very weird question, never happened with me, always worked fine. First of all, I am using WAMP (php 5.2.6, apache 2.2.8, mysql 5.0.51b), Firefox (All cookies allowed), Windows XP SP 3 (I think ;-)... Ah, the session.save_path

Re: [PHP] question about session variables

2008-06-02 Thread Ted Wood
How are you calling thankyou.php? 1. are you -redirecting- the user to that file? --or-- 2. are you -including- that file into register.php upon a successful submission? The method you're using determines how you best secure thankyou.php from direct access. If you're redirecting, then

Re: [PHP] Links (A HREF) loosing my session

2008-06-02 Thread Ted Wood
1. If you're using cookies, there's no need to pass the session name via the URL. 2. Is the cookie being created? ~Ted On 2-Jun-08, at 11:32 AM, Razer Montaño wrote: Hello All, my first time here at list. Well, I am with a very weird question, never happened with me, always worked

Re: [PHP] Links (A HREF) loosing my session

2008-06-02 Thread Razer Montaño
Yes, the cookie is being created. I show it in Firefox (Tools | Options | Privacy | Show Coockies). So the Session File, is being created at session.save_path, as configured in PHP.INI. :( Thank you for your response. 2008/6/2 Ted Wood [EMAIL PROTECTED]: 1. If you're using

[PHP] Bug in SimpleXML?

2008-06-02 Thread Kyle Browning
I was working on a project for XML Parsing. I came across instances where my elements were completely missing. After further Digging into the issue, I found out, that when placing tags inside of an element with text, SimpleXML (and dom Document) ignore the added tags, and the text within. Heres

[PHP] Storing £ (pound sterling) sign and displaying in HTML email

2008-06-02 Thread Graham Cossey
Could someone please point me in the right direction here please? I have a form textarea field (submitted using POST) that accepts free text that will include the likes of '£' (pound sterling symbol) that is written to a MySql database and later retrieved to output into an HTML email. I have

Re: [PHP] Bug in SimpleXML?

2008-06-02 Thread Nathan Nobbe
On Mon, Jun 2, 2008 at 3:12 PM, Kyle Browning [EMAIL PROTECTED] wrote: I was working on a project for XML Parsing. I came across instances where my elements were completely missing. After further Digging into the issue, I found out, that when placing tags inside of an element with text,

Re: [PHP] Bug in SimpleXML?

2008-06-02 Thread Nathan Nobbe
On Mon, Jun 2, 2008 at 4:32 PM, Kyle Browning [EMAIL PROTECTED] wrote: I used both print_r and var_dump. Whats supported for ultimate nesting prints of values and keys?, or in objects words, properties and values. cc'ng the list again.. well var_dump() and print_r() just arent supported for

Re: [PHP] Storing £ (pound sterling) sign and displaying in HTML email

2008-06-02 Thread Richard Heyes
Graham Cossey wrote: Could someone please point me in the right direction here please? I have a form textarea field (submitted using POST) that accepts free text that will include the likes of '£' (pound sterling symbol) that is written to a MySql database and later retrieved to output into an

Re: [PHP] Storing £ (pound sterling) sign and displaying in HTML email

2008-06-02 Thread James Dempster
This is most likely a character encoding issue. Check that the html encoding is set to the same type as what your storing it as in mysql. /James On Mon, Jun 2, 2008 at 10:26 PM, Graham Cossey [EMAIL PROTECTED] wrote: Could someone please point me in the right direction here please? I have a

Re: [PHP] Avoid object twice

2008-06-02 Thread Yui Hiroaki
if I delete $obj=new my(Hello); $obj-buff(); I can not show Hello. I would like to see hello one time only. Regards, Yui 2008/6/2 Scott McNaught [Synergy 8] [EMAIL PROTECTED]: Try removing from a.php the lines: $obj=new my(Hello); $obj-buff(); I think this will achieve what you want.

[PHP] question, about mysql query

2008-06-02 Thread LKSunny
two table, tablea and tableb tablea uid, col1, col2, col3 1,xx, xx, xx 2,xx, xx, xx 3,xx, xx, xx tableb id, uid, col1, firstdata 1, 1, xx, 1 2, 2, xx, 0 3, 2, xx, 0 4, 1, xx, 0 i want query tablea, and join tableb, uid is associate, ok LEFT JOIN `tableb` b ON a.uid = b.uid, and than