Re: [PHP] Last Record INSERT

2013-06-26 Thread Curtis Maurand
? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 25 Jun 2013 06:03:47 -0000 Issue 8277

2013-06-25 Thread php-general-digest-help
php-general Digest 25 Jun 2013 06:03:47 - Issue 8277 Topics (messages 321468 through 321479): Is it possible??? 321468 by: Karl-Arne Gjersøyen 321469 by: Stuart Dallas 321470 by: raphael khaiat 321471 by: Karl-Arne Gjersøyen 321472 by: Stuart Dallas

php-general Digest 25 Jun 2013 19:34:17 -0000 Issue 8278

2013-06-25 Thread php-general-digest-help
php-general Digest 25 Jun 2013 19:34:17 - Issue 8278 Topics (messages 321480 through 321492): Thread-Hijacking (was: Re: [PHP] Fwd: Is it possible???) 321480 by: Tamara Temple 321481 by: Maciek Sokolewicz Some Advice 321482 by: Floyd Resler 321483 by: Samuel

Re: [PHP] Fwd: Is it possible???

2013-06-25 Thread php
the most helpfull hint for the thread-starter? If not please send a complete example of your code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Thread-Hijacking (was: Re: [PHP] Fwd: Is it possible???)

2013-06-25 Thread Tamara Temple
Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Please please please please don't do this! Please Please Please Do Not Hijack Threads. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Thread-Hijacking (was: Re: [PHP] Fwd: Is it possible???)

2013-06-25 Thread Maciek Sokolewicz
On 25 June 2013 10:02, Tamara Temple tamouse.li...@gmail.com wrote: Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Please please please please don't do this! Please Please Please Do Not Hijack Threads. Hijacking would be starting a completely different discussion in the same thread.

[PHP] Some Advice

2013-06-25 Thread Floyd Resler
. Does that sound like a good alternative to sessions or is there something else I could do? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
Hope it helps: http://stackoverflow.com/questions/3740845/php-session-without-cookies (go directly to the answer) On Tue, Jun 25, 2013 at 9:15 AM, Floyd Resler fres...@adex-intl.com wrote: I use sessions to store login information. However, a particular user of a site can only access

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
: http://stackoverflow.com/questions/3740845/php-session-without-cookies (go directly to the answer) On Tue, Jun 25, 2013 at 9:15 AM, Floyd Resler fres...@adex-intl.comwrote: I use sessions to store login information. However, a particular user of a site can only access it at the library which

Re: [PHP] Some Advice

2013-06-25 Thread Floyd Resler
Thanks for pointing me to that. Looks to be much simpler that they way I was going to do it. Thanks! Floyd On Jun 25, 2013, at 8:17 AM, Samuel Lopes Grigolato samuel.grigol...@gmail.com wrote: Hope it helps: http://stackoverflow.com/questions/3740845/php-session-without-cookies (go

Re: [PHP] Some Advice

2013-06-25 Thread php
You should at least check the IP of the client additionally to have some prove it is the same client you gave the session-ID. And it is better to put the session-ID in a POST-field than in GET. So it es very unlikely someone passes a session ID around accidently. -- PHP General Mailing List

Re: [PHP] Some Advice

2013-06-25 Thread Alex Pojarsky
it is the same client you gave the session-ID. And it is better to put the session-ID in a POST-field than in GET. So it es very unlikely someone passes a session ID around accidently. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
wrote: You should at least check the IP of the client additionally to have some prove it is the same client you gave the session-ID. And it is better to put the session-ID in a POST-field than in GET. So it es very unlikely someone passes a session ID around accidently. -- PHP General Mailing

[PHP] Re: Some Advice

2013-06-25 Thread Jonesy
=E9, which gives the= m the same IP. 2) The user could be traveling with a wireless card, his IP would change quite a lot in this scenario. Or, it could be an AOL user and requess could be routed through who knows how many different requestors. -- PHP General Mailing List (http://www.php.net

[PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Forum
Hello, i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy with PHP 5.4. Some applications like mediawiki could be updated and they are running fine. But there are some old and beloved applications that run any more. A good example is PHPmyedit 5.7.1 http

[PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Forum
Hello, i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy with PHP 5.4. Some applications like mediawiki could be updated and they are running fine. But there are some old and beloved applications that run any more. A good example is PHPmyedit 5.7.1 http

Re: [PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Paul M Foster
On Tue, Jun 25, 2013 at 07:58:32PM +0200, Forum wrote: Hello, i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy with PHP 5.4. Some applications like mediawiki could be updated and they are running fine. But there are some old and beloved applications that run

[PHP] Problem with variables

2013-06-25 Thread Fernando A
Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

[PHP] Re: Problem with variables

2013-06-25 Thread Jim Giner
On 6/25/2013 5:46 PM, Fernando A wrote: Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

php-general Digest 24 Jun 2013 10:57:20 -0000 Issue 8276

2013-06-24 Thread php-general-digest-help
php-general Digest 24 Jun 2013 10:57:20 - Issue 8276 Topics (messages 321466 through 321467): php, openssl and GOST ciphers - problem with GOST R 34.10-2001 321466 by: Eugene M. Zheganin Re: One more newbie question. About foreach.. 321467 by: Karl-Arne Gjersøyen

[PHP] php, openssl and GOST ciphers - problem with GOST R 34.10-2001

2013-06-24 Thread Eugene M. Zheganin
is needed in PHP distribution, - you can patch curl upstream distribution by the method described above, and use GOST ciphers. In case you aren't using curl, you need to patch the openssl module in it's code. Curl guys are aware of the problem, but they don't want to make things even worse, so

[PHP] Re: One more newbie question. About foreach..

2013-06-24 Thread Karl-Arne Gjersøyen
which gives you a product name and asks you to update the amount of it in stock. form action=... method=post input type=text name=number_in_stock value=0 input type=submit name=submit value=store /form When you submit this simple form, the PHP script defined in the action property is called

[PHP] Is it possible???

2013-06-24 Thread Karl-Arne Gjersøyen
$item_amount_in_store = 223; $update_amount = 7; $update_item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; Why? That should be 230! Karl

Re: [PHP] Is it possible???

2013-06-24 Thread Stuart Dallas
and $update_item_amount_in_store as if PHP should know you mean the same thing. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible???

2013-06-24 Thread raphael khaiat
Hi, Shouldn't it be: $item_amount_in_store = 223; $update_amount = 7; $item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; The 3rd line seems wrong as you didn't use the same variable. -- Raphaël Khaïat 06.72.89.57.29 On Mon, Jun 24, 2013 at 1:59 PM, Karl-Arne

[PHP] Fwd: Is it possible???

2013-06-24 Thread Karl-Arne Gjersøyen
/24 Subject: Is it possible??? To: PHP Mailinglist php-general@lists.php.net $item_amount_in_store = 223; $update_amount = 7; $update_item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; Why? That should be 230! Karl -- Hjemmeside: http://www.karl-arne.name/

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Stuart Dallas
on to give you 227, but variable names are case sensitive which is why you're not getting what you expect. ?php $item_amount_in_store = 223; $update_amount = 7; $item_amount_in_Store += $update_amount; var_dump($item_amount_in_store); var_dump($item_amount_in_Store); ? Output: int(223) int(7

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread nobs
You should give a complete programm so we can run exactly the same you do, like this: ?php $item_amount_in_store = 223; print ($item_amount_in_store); $update_amount = 7; $item_amount_in_store += $update_amount; print ( + $update_amount = $item_amount_in_store ); ? which gives this result

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Sachin Raut
: 2013/6/24 Subject: Is it possible??? To: PHP Mailinglist php-general@lists.php.net $item_amount_in_store = 223; $update_amount = 7; $update_item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; Why? That should be 230! Karl -- Hjemmeside: http://www.karl

[PHP] Re: Fwd: Is it possible???

2013-06-24 Thread Carlos Medina
: $item_amount_in_store = 223; $update_amount = 7; $item_amount_in_Store += $update_amount; It show the result = 227 and not 230. Why is this happen? Karl -- Forwarded message -- From: Karl-Arne Gjersøyen karlar...@gmail.com Date: 2013/6/24 Subject: Is it possible??? To: PHP

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Maciek Sokolewicz
On 24-6-2013 14:27, n...@nobswolf.info wrote: You should give a complete programm so we can run exactly the same you do, like this: ?php $item_amount_in_store = 223; print ($item_amount_in_store); Please please please please don't do this! First of all, I don't know why you would use

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Carlos Medina
Amen! Am 24.06.2013 18:17, schrieb Maciek Sokolewicz: On 24-6-2013 14:27, n...@nobswolf.info wrote: You should give a complete programm so we can run exactly the same you do, like this: ?php $item_amount_in_store = 223; print ($item_amount_in_store); Please please please please

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Marco Behnke
Am 24.06.2013 18:17, schrieb Maciek Sokolewicz: On 24-6-2013 14:27, n...@nobswolf.info wrote: You should give a complete programm so we can run exactly the same you do, like this: ?php $item_amount_in_store = 223; print ($item_amount_in_store); Please please please please don't do

php-general Digest 23 Jun 2013 08:27:14 -0000 Issue 8274

2013-06-23 Thread php-general-digest-help
php-general Digest 23 Jun 2013 08:27:14 - Issue 8274 Topics (messages 321454 through 321459): Re: scandir doesn't find all files 321454 by: Ken Robinson 321455 by: Ken Robinson 321456 by: Tamara Temple Re: json stream filter 321457 by: Tamara Temple

php-general Digest 23 Jun 2013 22:15:05 -0000 Issue 8275

2013-06-23 Thread php-general-digest-help
php-general Digest 23 Jun 2013 22:15:05 - Issue 8275 Topics (messages 321460 through 321465): Re: scandir doesn't find all files 321460 by: Carlos Medina Hmm remarkable things? 321461 by: Karl-Arne Gjersøyen 321462 by: Serge Fonville One more newbie question. About

Re: [PHP] json stream filter

2013-06-23 Thread Markus Staab
contents on the filesystem, because it seems to be the fastest possible way to read/write files with PHP. Since I discovered stream-filters, http://www.php.net/manual/en/filters.php, we use those also for base64 encoding files before sending them over the wire, which preserves a lot of memory

[PHP] Re: scandir doesn't find all files

2013-06-23 Thread Carlos Medina
: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't run chown() because the server is part of shared hosting. I can't find anything about this behavour

[PHP] Hmm remarkable things?

2013-06-23 Thread Karl-Arne Gjersøyen
| ETX1.17X460 | 17x460 | 70 | 0.95| ++-+---+-+--+-+--+-+ 2 rows in set (0.00 sec) mysql What I think i am doing wrong is the way I write the php/mysql stuff. What I want is to store differt

Re: [PHP] Hmm remarkable things?

2013-06-23 Thread Serge Fonville
in set (0.00 sec) mysql What I think i am doing wrong is the way I write the php/mysql stuff. What I want is to store differt values in stk_pa_lager based on the particular serialnumber. (field varenr). I will be very thankful if you can tell me what is wrong here and point out what to do

[PHP] One more newbie question. About foreach..

2013-06-23 Thread Karl-Arne Gjersøyen
Hello again. I Got the solution for my last mention problem. Now I can update several rows at once by one single submit action. In my form I have many records and therefor I use an checkbox to just mark those records I like to update. This work just fine in PHP/HTML5 form and I got it as I want

[PHP] Re: One more newbie question. About foreach..

2013-06-23 Thread Tim Streater
with the results of the mysql_query? Nothing? Also, why do you need the for loop anyway? What is it supposed to do? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: One more newbie question. About foreach..

2013-06-23 Thread Maciek Sokolewicz
=store /form When you submit this simple form, the PHP script defined in the action property is called, and the $_POST array looks like: $_POST = array( 'number_in_stock' = '0' ); You can then run your simple query mysql_query(UPDATE some_table SET stock=' . $_POST['number_in_stock

php-general Digest 22 Jun 2013 19:11:04 -0000 Issue 8273

2013-06-22 Thread php-general-digest-help
php-general Digest 22 Jun 2013 19:11:04 - Issue 8273 Topics (messages 321444 through 321453): Newbie form question 321444 by: Karl-Arne Gjersøyen 321445 by: Jim Giner PHP5 OOP: Abstract classes, multiple inheritance and constructors 321446 by: Micky Hulse

[PHP] scandir doesn't find all files

2013-06-22 Thread Daniel Pöllmann
Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't run chown() because the server is part of shared hosting. I can't find anything about this behavour

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Ken Robinson
Sent from my iPhone On Jun 22, 2013, at 3:10 PM, Daniel Pöllmann poellmann.dan...@gmail.com wrote: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Ken Robinson
Did you try the glob function? http://php.net/glob Ken Sent from my iPhone On Jun 22, 2013, at 3:10 PM, Daniel Pöllmann poellmann.dan...@gmail.com wrote: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Tamara Temple
Daniel Pöllmann poellmann.dan...@gmail.com wrote: I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't run chown() because the server is part of shared hosting

Re: [PHP] json stream filter

2013-06-22 Thread Tamara Temple
to read/write files with PHP. Since I discovered stream-filters, http://www.php.net/manual/en/filters.php, we use those also for base64 encoding files before sending them over the wire, which preserves a lot of memory and allows even bigger files. Would it make sense to also have a native stream

Re: [PHP] json stream filter

2013-06-22 Thread Larry Garfield
On 06/20/2013 04:26 AM, Markus Staab wrote: Hi! first post on the list, so please bare with me ;-) we are handling a lot of cache files in our apps and use json to persist those contents on the filesystem, because it seems to be the fastest possible way to read/write files with PHP. Since I

php-general Digest 21 Jun 2013 12:25:47 -0000 Issue 8272

2013-06-21 Thread php-general-digest-help
php-general Digest 21 Jun 2013 12:25:47 - Issue 8272 Topics (messages 321440 through 321443): Re: A Strange Problem 321440 by: Tedd Sperling 321442 by: tamouse mailing lists Re: [PHP-DEV] PHP 5.5.0 final has been released! 321441 by: Marco Pivetta 321443

Re: [PHP] A Strange Problem

2013-06-21 Thread tamouse mailing lists
On Jun 20, 2013 7:20 PM, Tedd Sperling t...@sperling.com wrote: On Jun 20, 2013, at 7:12 PM, Stuart Dallas stu...@3ft9.com wrote: Whatever the reason for this, I'd recommend you always specify a path relative to the current script. In PHP 5.3+: $fcontents = file(__DIR__.'/docs/admin

Re: [PHP] Re: [PHP-DEV] PHP 5.5.0 final has been released!

2013-06-21 Thread Ravi Gehlot
Awesome! On Thu, Jun 20, 2013 at 11:14 PM, Marco Pivetta ocram...@gmail.com wrote: Well done! Congratulations! On 20 Jun 2013 23:23, Julien Pauli jpa...@php.net wrote: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes

[PHP] Newbie form question

2013-06-21 Thread Karl-Arne Gjersøyen
Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submitted data it only take the very last row

[PHP] Re: Newbie form question

2013-06-21 Thread Jim Giner
On 6/21/2013 10:09 AM, Karl-Arne Gjersøyen wrote: Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle

[PHP] PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
. Any tips would be appreciated. Sorry if silly questions. Thanks! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
to modify the parent class. I'd still like to know how to improve my demo code in general, but I'm working on a project where the parent class is off bounds in terms of modifying. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Julian
Awesome work and the new design for the php.net website is also nice ;) Am 20.06.2013, 23:22 Uhr, schrieb Julien Pauli jpa...@php.net: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes

[PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Martin Amps
, 23:22 Uhr, schrieb Julien Pauli jpa...@php.net: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0

Re: [PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Daniel
www.iCracked.com iCracked | Redwood City, CA On Jun 21, 2013, at 2:01 PM, Julian jswprog.mailingli...@gmx.at wrote: Awesome work and the new design for the php.net website is also nice ;) Am 20.06.2013, 23:22 Uhr, schrieb Julien Pauli jpa...@php.net: Hello! The PHP Development Team would

Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread David Harkness
There's no way to bypass an overridden method using parent, but you could add an abstract method that Child would implement. class Parent function __construct() { $this-foo = $this-getFoo(); } abstract function getFoo(); } David

Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
Thanks for tips David! I'll play with your suggestion. I've never used abstract methods, but if I'm understanding the code you posted, they look pretty useful. I may be back with questions. Appreciate the help. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

php-general Digest 20 Jun 2013 09:26:46 -0000 Issue 8270

2013-06-20 Thread php-general-digest-help
php-general Digest 20 Jun 2013 09:26:46 - Issue 8270 Topics (messages 321423 through 321424): Re: Hoping nobody notices it isn't Friday. 321423 by: Daniel Brown json stream filter 321424 by: Markus Staab Administrivia: To subscribe to the digest, e-mail: php

php-general Digest 20 Jun 2013 23:12:43 -0000 Issue 8271

2013-06-20 Thread php-general-digest-help
php-general Digest 20 Jun 2013 23:12:43 - Issue 8271 Topics (messages 321425 through 321439): A Strange Problem 321425 by: Tedd Sperling 321426 by: Matijn Woudt 321427 by: Bastien 321428 by: Tedd Sperling 321429 by: Tedd Sperling 321430

[PHP] json stream filter

2013-06-20 Thread Markus Staab
Hi! first post on the list, so please bare with me ;-) we are handling a lot of cache files in our apps and use json to persist those contents on the filesystem, because it seems to be the fastest possible way to read/write files with PHP. Since I discovered stream-filters, http://www.php.net

[PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
_ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Strange Problem

2013-06-20 Thread Matijn Woudt
folders and files, except only in two different places on the server. Both are one level down from root. Any ideas as to what is going on? Cheers, tedd Else it could be permission item, I think the user executing the PHP script (www-user or such for apache), needs to have execute rights

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
root. Any ideas as to what is going on? Cheers, tedd It sounds like a current working directory issue. Try running a getcwd() in both places to see how they are set Bastien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
are one level down from root. Any ideas as to what is going on? Cheers, tedd Else it could be permission item, I think the user executing the PHP script (www-user or such for apache), needs to have execute rights on all directories up to the file, to be able to read the file listing

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 1:44 PM, Bastien phps...@gmail.com wrote: It sounds like a current working directory issue. Try running a getcwd() in both places to see how they are set Bastien I think you have something, here's the reports: Works: /home/content/64/cut/html/sdi/tedd/php-mail

[PHP] PHP 5.3.18RC1 and 5.4.8RC1 Released for Testing!

2013-06-20 Thread Johannes Schlüter
Hi! We've released PHP 5.3.27RC1 and 5.4.17RC1 which can be found here: 5.3.27RC1: http://downloads.php.net/johannes/php-5.3.27RC1.tar.bz2 http://downloads.php.net/johannes/php-5.3.27RC1.tar.gz 5.4.17RC1: http://downloads.php.net/stas/php-5.4.17RC1.tar.bz2 http

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP-DEV] PHP 5.3.27RC1 and 5.4.17RC1 Released for Testing!

2013-06-20 Thread Johannes Schlüter
Hi! We've released PHP 5.3.27RC1 and 5.4.17RC1 which can be found here: 5.3.27RC1: http://downloads.php.net/johannes/php-5.3.27RC1.tar.bz2 http://downloads.php.net/johannes/php-5.3.27RC1.tar.gz 5.4.17RC1: http://downloads.php.net/stas/php-5.4.17RC1.tar.bz2 http

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
something, here's the reports: Works: /home/content/64/cut/html/sdi/tedd/php-mail Does NOT work: /home/content/64/cut/html/sdi The one that does not work should be: /home/content/64/cut/html/sdi/includes/ How do I fix it? Cheers, tedd PS: All cut's were identical

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
with that one? Cheers and Thanks! tedd _ tedd.sperl...@gmail.com http://sperling.com The calls from the code are occurring in diff dirs as the starting point. Is the call in an include file? Bastien -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] A Strange Problem

2013-06-20 Thread Daniel Brown
? Sounds like either a chroot or virtual environment (such as, execution of the script in a separate directory) issue. Check the output of this: ?php if (phpversion() = 5.3) { echo __DIR__.PHP_EOL; } else { echo getcwd().PHP_EOL; } ? -- /Daniel P. Brown Network Infrastructure Manager http

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
or virtual environment (such as, execution of the script in a separate directory) issue. Check the output of this: ?php if (phpversion() = 5.3) { echo __DIR__.PHP_EOL; } else { echo getcwd().PHP_EOL; } ? -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net

Re: [PHP] A Strange Problem

2013-06-20 Thread Marc Guay
places to see how they are set Bastien I think you have something, here's the reports: Works: /home/content/64/cut/html/sdi/tedd/php-mail Does NOT work: /home/content/64/cut/html/sdi The one that does not work should be: /home/content/64/cut/html/sdi/includes/ How do I

[PHP] PHP 5.5.0 final has been released!

2013-06-20 Thread Julien Pauli
Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0 since PHP 5.4, please consult the PHP 5 ChangeLog. Release

Re: [PHP] A Strange Problem

2013-06-20 Thread Stuart Dallas
from root. Any ideas as to what is going on? Cheers, tedd Whatever the reason for this, I'd recommend you always specify a path relative to the current script. In PHP 5.3+: $fcontents = file(__DIR__.'/docs/admin-email.txt'); Prior to 5.3: $fcontents = file(dirname(__FILE__).'/docs/admin

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 7:12 PM, Stuart Dallas stu...@3ft9.com wrote: Whatever the reason for this, I'd recommend you always specify a path relative to the current script. In PHP 5.3+: $fcontents = file(__DIR__.'/docs/admin-email.txt'); Prior to 5.3: $fcontents = file(dirname(__FILE__

[PHP] Re: [PHP-DEV] PHP 5.5.0 final has been released!

2013-06-20 Thread Marco Pivetta
Well done! Congratulations! On 20 Jun 2013 23:23, Julien Pauli jpa...@php.net wrote: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also

Re: [PHP] Hoping nobody notices it isn't Friday.

2013-06-18 Thread Daniel Brown
make an exception, but since it appears to only be available for you Redcoats, I'll remind you that today is Tuesday, and admonish you for making the week feel that much longer for all of us. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 17 Jun 2013 15:01:00 -0000 Issue 8268

2013-06-17 Thread php-general-digest-help
php-general Digest 17 Jun 2013 15:01:00 - Issue 8268 Topics (messages 321416 through 321420): Re: LightBox click detection 321416 by: Micky Hulse Re: newbie PDO query display question 321417 by: dealTek 321418 by: Ashley Sheridan 321419 by: dealTek

Re: [PHP] newbie PDO query display question

2013-06-17 Thread jomali
is like... $results = $db-select(mytable, id = 201); //just 1 exact record) then I can loop like.. foreach ($results as $result) { ? tr td?php echo $result[First]; ?/td td?php echo $result[Last]; ?/td td?php echo $result[id]; ?/td /tr This all works fine

php-general Digest 16 Jun 2013 22:29:48 -0000 Issue 8267

2013-06-16 Thread php-general-digest-help
php-general Digest 16 Jun 2013 22:29:48 - Issue 8267 Topics (messages 321410 through 321415): Re: PHP is Zero 321410 by: Tamara Temple Re: LightBox click detection 321411 by: Tamara Temple 321412 by: Tamara Temple 321413 by: Julian Wanke 321414

[PHP] newbie PDO query display question

2013-06-16 Thread dealTek
) then I can loop like.. foreach ($results as $result) { ? tr td?php echo $result[First]; ?/td td?php echo $result[Last]; ?/td td?php echo $result[id]; ?/td /tr This all works fine. --- But since I only have 1 exact record - I don't need to LOOP anything - so

Re: [PHP] LightBox click detection

2013-06-16 Thread Micky Hulse
is that it's got a ton of powerful ways to analyze the data. Not sure the goal of your project, but I thought I would mention. Cheers, M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie PDO query display question

2013-06-16 Thread dealTek
On Jun 16, 2013, at 3:37 PM, Stephen stephe...@rogers.com wrote: Here is a sample from my code: $photo_category_list = ; $SQL = SELECT category_id, category_name FROM gallery_category ORDER by category_order; try { $stmt = $dbh-prepare($SQL); $stmt-execute();

Re: [PHP] newbie PDO query display question

2013-06-16 Thread Ashley Sheridan
$results[First][1]; ??? While works better than foreach for getting the result rows from PDO -- Thanks, Dave - DealTek deal...@gmail.com [db-3] Have you tried chaining the the fetch() method on as in: $pdo_object-query()-fetch(); Thanks, Ash -- PHP General Mailing List (http

Re: [PHP] newbie PDO query display question

2013-06-16 Thread dealTek
When you know there is only one row to be returned you can do this: $photo_category_list = ; $SQL = SELECT category_id, category_name FROM gallery_category ORDER by category_order; try { $stmt = $dbh-prepare($SQL); $stmt-execute(); list( $id, $name) =

php-general Digest 15 Jun 2013 14:19:19 -0000 Issue 8266

2013-06-15 Thread php-general-digest-help
php-general Digest 15 Jun 2013 14:19:19 - Issue 8266 Topics (messages 321401 through 321409): Re: What is the name of the pattern that will ... 321401 by: Richard Quadling Re: Detect and Redirect Mobile Users 321402 by: Camilo Sperberg 321403 by: Chirag Vekariya

Re: [PHP] Detect and Redirect Mobile Users

2013-06-15 Thread Tamara Temple
@ indiscriminantly. /rant Cheers! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: AW: AW: [PHP] PHP is Zero

2013-06-15 Thread Tamara Temple
BUSCHKE Daniel daniel.busc...@nextiraone.eu wrote: Why is PHP doing that? I know it works as designed and I know it is documented like this but that does not mean that it is a good feature, does it? So lets talk about the question: Is that behaviour awaited by PHP software developers

Re: [PHP] LightBox click detection

2013-06-15 Thread Tamara Temple
/ All the javascript is there (jQuery et al). Ideally, I would like to have a php/javascript combination that would: 1. Detect when a user clicked the LightBox; 2. Pass that value to PHP so I can keep count. Any ideas? First off, do you have the javascript code available in an unsquished form

Re: [PHP] LightBox click detection

2013-06-15 Thread Tamara Temple
it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LightBox click detection

2013-06-15 Thread Julian Wanke
way to go. If they don't, you need to capture the previous click handler and call it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LightBox click detection

2013-06-15 Thread Bastien
. W00T! Friday! Here's the problem -- I need to count the number of times a user activates a LightBox -- how do you do that? Here's a LightBox Example: http://www.webbytedd.com/c2/lightbox/ All the javascript is there (jQuery et al). Ideally, I would like to have a php/javascript

Re: [PHP] What is the name of the pattern that will ...

2013-06-14 Thread Richard Quadling
. If you don't want to build a data-holder class yet, simply return an array for now. While you cannot enforce the return type at parse time, they should be verified with unit tests. Unit tests are critical with dynamic languages like PHP and Python since runtime is the only way to verify behavior

Re: [PHP] Detect and Redirect Mobile Users

2013-06-14 Thread Camilo Sperberg
On Jun 13, 2013, at 15:31, Camille Hodoul camille.hod...@gmail.com wrote: Hello, I stumbled upon this the other day : http://mobiledetect.net/ I haven't tried it yet, since I have my own small user agent parser when I need it, but it may help you if it's a pure php solution you're looking

Re: [PHP] Detect and Redirect Mobile Users

2013-06-14 Thread Chirag Vekariya
Hi, Post your question to http://answershat.com On Thu, Jun 13, 2013 at 4:49 AM, dealTek deal...@gmail.com wrote: Hi all, I'm curious of a simple, common, universal way to detect a mobile user so I can redirect them to a mobile directory... What is best for this: Javascript - CSS - PHP

<    5   6   7   8   9   10   11   12   13   14   >