[PHP] Re: opening a new window from php script

2011-03-25 Thread Geoff Lane
On Friday, March 25, 2011, Grega Leskovšek wrote: > Do I have to use target="_new" - I can not do this - I am working > this for my University seminar and it has to be valid HTML5. I guess that this is an HTML issue rather than PHP. However: Despite what the W3C validator might claim, I understa

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Sharl.Jimh.Tsin
Try third binary instead of official one. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2011/3/26 Tommy Pham : > On Fri, Mar 25, 2011 at 1:44 PM, Pierre Joye wrote: >> On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham wrote: >> >>> There used to be a VC6 binary release fo

[PHP] Re: putting variables in a variable

2011-03-25 Thread David Robley
Hulf wrote: > Hi, > > I am making and HTML email. I have 3 images to put in. Currently I have > > $body .=" > > > > > > > > > > "; > > > ideally I would like to have > > $myimage1 = "image1.jpg"; > $myimage2 = "image2.jpg"; > $myimage3 = "image3.jpg"; > > > and put

Re: [PHP] opening a new window from php script

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 2:59 PM, Grega Leskovšek wrote: > I am working on CMS designed to those who are unfamiliar  with a > computer world and I want to offer a task where on a push of a button > it will save current working page in textarea/s and open this page in > a new tab or in a new window.

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 1:44 PM, Pierre Joye wrote: > On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham wrote: > >> There used to be a VC6 binary release for PHP v5.3.3 at >> windows.php.net but I don't see a VC6 build for v5.3 now.  Any way, >> since you're using using Windows, why not just run it as

[PHP] opening a new window from php script

2011-03-25 Thread Grega Leskovšek
I am working on CMS designed to those who are unfamiliar with a computer world and I want to offer a task where on a push of a button it will save current working page in textarea/s and open this page in a new tab or in a new window. I googled some, but am still not sure how can I do it. Do I hav

Re: [PHP] session variable problem

2011-03-25 Thread Peter Lind
More info (including some code) would be needed to get to the bottom of this, I'd say. Hard to diagnose what's happening otherwise. Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Pierre Joye
On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham wrote: > There used to be a VC6 binary release for PHP v5.3.3 at > windows.php.net but I don't see a VC6 build for v5.3 now.  Any way, > since you're using using Windows, why not just run it as FastCGI?  It > runs fine on Win2003 (x86), Win7 x64, Win08

Re: [PHP] session variable problem

2011-03-25 Thread markb
On 3/25/2011 12:13 PM, Ken Robinson wrote: At 01:09 PM 3/25/2011, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create v

Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 12:12 PM, Tommy Pham wrote: > On Fri, Mar 25, 2011 at 10:52 AM, Curtis Tammany > wrote: >> Help!! I am in a Windows environment (XP SP3 for development and Server 2003 >> for production. I have to upgrade to PHP 5.3.6. It does not appear to work >> with either Apache 2.2.

Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 10:52 AM, Curtis Tammany wrote: > Help!! I am in a Windows environment (XP SP3 for development and Server 2003 > for production. I have to upgrade to PHP 5.3.6. It does not appear to work > with either Apache 2.2.11 or the new 2.2.17 from Apache Lounge. Apache will > run by

[PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Curtis Tammany
Help!! I am in a Windows environment (XP SP3 for development and Server 2003 for production. I have to upgrade to PHP 5.3.6. It does not appear to work with either Apache 2.2.11 or the new 2.2.17 from Apache Lounge. Apache will run by itself but when PHP is installed, it adds: #BEGIN PHP INSTAL

[PHP] Re: Slow sessions.

2011-03-25 Thread Rob Adams
I decided to try changing the session.save_path, and I've had some interesting results. First I changed it to a local directory. Originally it was on a mounted directory on our main file server. When I switched to a local directory, everything started working fast again on the php 5.2.17 ser

[PHP] php extension openssl testcases - openssl 1.0 vs openssl 0.9.8k

2011-03-25 Thread Waiki Wright
Hi, I have php-5.3.2 and openssl version 1.0.0b-fips installed on my Redhat 6 machine. I noticed the expected results are different from the actual results when I ran these testcases in the ext/openssl/tests directory: openssl_x509_parse_basic.phpt, bug28382.phpt, bug47828.phpt. Then I ran: o

Re: [PHP] session variable problem

2011-03-25 Thread markb
On 3/25/2011 12:13 PM, Ken Robinson wrote: At 01:09 PM 3/25/2011, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create v

[PHP] Re: Array Search

2011-03-25 Thread Jo�o C�ndido de Souza Neto
It´s a job to array_key_exists function. -- João Cândido de Souza Neto "Ethan Rosenberg" escreveu na mensagem news:0lim00hi3ihny...@mta4.srv.hcvlny.cv.net... > Dear List - > > Here is a code snippet: > > $bla = array("g1" => $results[7][6], >"h1" => $results[7][7]); >

Re: [PHP] session variable problem

2011-03-25 Thread Ken Robinson
At 01:09 PM 3/25/2011, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables

[PHP] Array Search

2011-03-25 Thread Ethan Rosenberg
Dear List - Here is a code snippet: $bla = array("g1" => $results[7][6], "h1" => $results[7][7]); print_r($bla); $value = "h1"; $locate1 = array_search($value, $bla); echo "This is locate" ; print_r($locate1); if(in_array($value, $bla)) print_r($b

[PHP] session variable problem

2011-03-25 Thread markb
Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables, change existing ones (but they do n

Re: [PHP] DOMElement::setAttribute couldn't fetch class extending DOMElement

2011-03-25 Thread Richard Quadling
On 25 March 2011 15:42, Richard Quadling wrote: > On 25 March 2011 14:16, Hosh wrote: >> I have a piece of code that extracts .p3t files (sample file can be found >> here: http://download.ps3-themes.com/downloads3/11518-MyFirstTheme.p3t ). >> It uses PHPs unpack() function. The complete script ca

Re: [PHP] DOMElement::setAttribute couldn't fetch class extending DOMElement

2011-03-25 Thread Richard Quadling
On 25 March 2011 14:16, Hosh wrote: > I have a piece of code that extracts .p3t files (sample file can be found > here: http://download.ps3-themes.com/downloads3/11518-MyFirstTheme.p3t ). > It uses PHPs unpack() function. The complete script can be found at: > http://pastebin.com/bRGL9KFh . Howeve

[PHP] DOMElement::setAttribute couldn't fetch class extending DOMElement

2011-03-25 Thread Hosh
I have a piece of code that extracts .p3t files (sample file can be found here: http://download.ps3-themes.com/downloads3/11518-MyFirstTheme.p3t ). It uses PHPs unpack() function. The complete script can be found at: http://pastebin.com/bRGL9KFh . However I am getting this error: Warning: DOMEl

Re: [PHP] possible variable declaration error

2011-03-25 Thread Daniel Brown
On Fri, Mar 25, 2011 at 09:00, matty jones wrote: > I used the format of your link and that gave me something like what I was > looking for, so I am sure now the error is just in my markup.  How would I > get this to work without passing it a value or does the function not work > like that, in whi

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:23 AM, wrote: > Correct me if I wrong, but you're declaring $id AFTER binding the SQL > parameter, therefore your :id isn't being bound to anything, hence the empty > returned array. > > I think: > $d_series_fetch = $db->prepare("SELECT * FROM defaultseries WHERE publish

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:24 AM, Daniel Brown wrote: > On Fri, Mar 25, 2011 at 08:18, matty jones wrote: > > I get the following error " PHP Notice: Undefined index: publisher in > > /var/www/testfunctions.php on line 65" and I have narrowed it down to > what I > > *think* is a variable not bei

Re: [PHP] possible variable declaration error

2011-03-25 Thread matty jones
On Fri, Mar 25, 2011 at 8:34 AM, Daniel Brown wrote: > On Fri, Mar 25, 2011 at 08:24, Daniel Brown wrote: > > And, now that I'm not on a three-inch screen, I can see that I > didn't read your entire message, so my response appears rather idiotic > --- because you already did the isset(). So

Re: [PHP] possible variable declaration error

2011-03-25 Thread Daniel Brown
On Fri, Mar 25, 2011 at 08:24, Daniel Brown wrote: > >    So, as you can see, it's complaining because you didn't give it > that information.  If you don't always want to have to do so, surround > it with an isset() case. And, now that I'm not on a three-inch screen, I can see that I didn't r

Re: [PHP] possible variable declaration error

2011-03-25 Thread Daniel Brown
On Fri, Mar 25, 2011 at 08:18, matty jones wrote: > I get the following error " PHP Notice:  Undefined index: publisher in > /var/www/testfunctions.php on line 65" and I have narrowed it down to what I > *think* is a variable not being declared.  Here is the code. This line is the issue: > i

Re: [PHP] possible variable declaration error

2011-03-25 Thread james
Correct me if I wrong, but you're declaring $id AFTER binding the SQL parameter, therefore your :id isn't being bound to anything, hence the empty returned array. I think: $d_series_fetch = $db->prepare("SELECT * FROM defaultseries WHERE publisher >> :id"); $id = 'DC Comics'; $d_series_fetch->b

[PHP] possible variable declaration error

2011-03-25 Thread matty jones
I get the following error " PHP Notice: Undefined index: publisher in /var/www/testfunctions.php on line 65" and I have narrowed it down to what I *think* is a variable not being declared. Here is the code. //this will fetch the data from a table $d_series_fetch = $db->prepare("SELECT * FROM de

Re: [PHP] [OT:Friday] Kunal invites you to join Games24x7.com

2011-03-25 Thread Steve Staples
On Fri, 2011-03-25 at 10:56 +, Richard Quadling wrote: > On 25 March 2011 09:57, Kalle Sommer Nielsen wrote: > > Dear usang...@gmail.com, > > > > We are sorry to inform you back that the PHP project only is of the age 15, > > which means we are not eligible to take participate within your game

[PHP] [OT:Friday] Kunal invites you to join Games24x7.com

2011-03-25 Thread Richard Quadling
On 25 March 2011 09:57, Kalle Sommer Nielsen wrote: > Dear usang...@gmail.com, > > We are sorry to inform you back that the PHP project only is of the age 15, > which means we are not eligible to take participate within your games. > > You may in the future, when the PHP project have reach the age