Re: [PHP] Last Record INSERT

2013-06-26 Thread Curtis Maurand
Look up using the mysqli libraries. This was about a 30 second php.net search. http://us3.php.net/manual/en/mysqli.insert-id.php Cheers, Curtis On 6/26/2013 1:33 PM, Tedd Sperling wrote: Hi gang: What's the most-current way to get the ID of the last recorded inserted in a database?

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
On Mon, Jun 24, 2013 at 06:17:33PM +0200, Maciek Sokolewicz wrote: Please please please please don't do this! 1) You did not answer the question, nor giving any related information. 2) This was debug-output. I see not point in optimizing. 3) print is language construct, just as is echo 4)

[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
I use sessions to store login information. However, a particular user of a site can only access it at the library which has cookies shut off. So, I'm thinking of creating an entry in the database with a unique identifier and expiration time. I would then pass that identifier to each page.

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 it at

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
But please, PLEASE, read carefully: *If a user were to copy and paste the URL of the page they were on, and someone else were to click on it, they would both be using the same session.* On Tue, Jun 25, 2013 at 9:17 AM, Samuel Lopes Grigolato samuel.grigol...@gmail.com wrote: Hope it helps:

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
Putting your session-ID into post will require you to POST every page, rather then GET it. And every anchor user clicks will have to POST, not GET. On Tue, Jun 25, 2013 at 4:32 PM, p...@nobswolf.info wrote: You should at least check the IP of the client additionally to have some prove it is

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
Just be cautious if going to check IP, because: 1) The two users could be in the same house or cybercafé, which gives them the same IP. 2) The user could be traveling with a wireless card, his IP would change quite a lot in this scenario. On Tue, Jun 25, 2013 at 9:32 AM, p...@nobswolf.info

[PHP] Re: Some Advice

2013-06-25 Thread Jonesy
On Tue, 25 Jun 2013 09:40:04 -0300, Samuel Lopes Grigolato wrote: --047d7b2e430e0b34d004dff9d47c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Just be cautious if going to check IP, because: 1) The two users could be in the same house or

[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

[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

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
Hi. So, back to the GOST ciphers problem. This is kinda a long story. Basically, there's tow sides of it. On one side there's a lack of OPENSSL_config() calls in ext/openssl/openssl.c. On the other hand, there's also a curl, which is also linked to Openssl. In case you want any encryption, you

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

2013-06-24 Thread Karl-Arne Gjersøyen
WOW! Thank you very, very much! This is so good! Thanks to all of you for spending time to learning me programming! Karl 2013/6/23 Maciek Sokolewicz maciek.sokolew...@gmail.com On 23-6-2013 17:11, Karl-Arne Gjersøyen wrote: Hello again. I Got the solution for my last mention problem. Now I

[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
On 24 Jun 2013, at 12:59, Karl-Arne Gjersøyen karlar...@gmail.com wrote: $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! Because you're using $item_amount_in_store and

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
Error in my last post This is corrected: $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:

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

2013-06-24 Thread Stuart Dallas
On 24 Jun 2013, at 13:02, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Error in my last post This is corrected: $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? Something else is going

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
variables are case-sensitive. $item_amount_in_store is different from $item_amount_in_Store 1st variable contains all lowercase characters, while the 2nd one contains S uppercase character. happy coding sachin On Mon, Jun 24, 2013 at 5:32 PM, Karl-Arne Gjersøyen karlar...@gmail.comwrote:

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

2013-06-24 Thread Carlos Medina
Hi Karl, i dont know what you want to do. But i can say: The $item_amount_in_store variable is not the same to $item_amount_in_Store (case sensitive). It work for me... Regards Carlos Medina Am 24.06.2013 14:02, schrieb Karl-Arne Gjersøyen: Error in my last post This is corrected:

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 the

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 this!

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
Gruß, Markus Am 23.06.2013 um 05:08 schrieb Larry Garfield la...@garfieldtech.com: On 06/20/2013 04:26 AM, Markus Staab wrote: Hi! first post on the list, so please bare with me ;-) Yes the usual typo ;) we are handling a lot of cache files in our apps and use json to persist those

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

2013-06-23 Thread Carlos Medina
Hi, check the permissions: if the server can access to files or create files if the FTP creates the files with the right permission if a script is running, check if the script can creates the files with the right permission Regards Carlos Medina Am 22.06.2013 21:10, schrieb Daniel Pöllmann:

[PHP] Hmm remarkable things?

2013-06-23 Thread Karl-Arne Gjersøyen
Hello again. Thanks for last answere. It works very well but now I have another remarkable things. Perhaps logic but not for me yet.. I have this source code: (In norwegian but I translate my thoughts through it in english.) The problem with this source code is that it work very well if I select

Re: [PHP] Hmm remarkable things?

2013-06-23 Thread Serge Fonville
Hi, name=varenr[] size=3 seems to be missing a closing HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server

[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
On 23 Jun 2013 at 16:11, Karl-Arne Gjersøyen karlar...@gmail.com wrote: // Foreach get all given serialnumbers as I want it foreach($serialnumber as $snr){ // I got the number of serialnumbers given in the array $count = count($serialnumber); Why not do this *before* the foreach loop?

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

2013-06-23 Thread Maciek Sokolewicz
On 23-6-2013 17:11, Karl-Arne Gjersøyen wrote: Hello again. I Got the solution for my last mention problem. Now I can update several rows at once by one single submit action. [...] I have tried to search in google and on PHP.net but can't fine anything that explain my problem. I like to have

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 in the

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 the

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
Markus Staab maggus.st...@gmail.com wrote: first post on the list, so please bare with me ;-) No, I'm getting nekkee with you... :) 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

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 by:

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 =

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 a

[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 in the

[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
Example/working code here: https://gist.github.com/mhulse/5833826 Couple questions: 1. Is there anything wrong with the way I'm using the abstract class? If so, how could I improve the logic/setup? 2. Is there a way for me to pass $foo to the parent class, from the child, without having to

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

2013-06-21 Thread Micky Hulse
On Fri, Jun 21, 2013 at 12:54 PM, Micky Hulse mickyhulse.li...@gmail.com wrote: 2. Is there a way for me to pass $foo to the parent class, from the child, without having to ferry that variable through the abstract class? I should mention, I'm working on some code where I don't have the ability

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
I second this - great to see both finally available. Fantastic release! Martin Amps | CIO 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

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

2013-06-21 Thread Daniel
I hope this will get people like WordPress to get up and support mysqli out of the box. going to cause big issues if they don't. On Sat, Jun 22, 2013 at 8:59 AM, Martin Amps ph...@rtin.so wrote: I second this - great to see both finally available. Fantastic release! Martin Amps | CIO

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:

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-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 by:

[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,

[PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get: Warning: file(/docs/admin-email.txt) [function.file]: failed to open stream:

Re: [PHP] A Strange Problem

2013-06-20 Thread Matijn Woudt
On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
On 2013-06-20, at 1:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Matijin: My mistake in posting -- I have tried it several different ways including absolute. Nothing works. Cheers, tedd --- On Jun 20, 2013, at 1:43 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have

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

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with that one? Cheers and Thanks! tedd _ tedd.sperl...@gmail.com

[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

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
Bastien Koert On 2013-06-20, at 1:57 PM, Tedd Sperling t...@sperling.com wrote: 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

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
Bastien Koert On 2013-06-20, at 2:14 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with

Re: [PHP] A Strange Problem

2013-06-20 Thread Daniel Brown
On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with that one?

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Daniel: I placed it at root and it reports: /home/content/64/cut/html/sdi That's the same path that had problems. tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 20, 2013, at 2:22 PM, Daniel Brown danbr...@php.net wrote: On Thu, Jun 20, 2013 at 2:14 PM,

Re: [PHP] A Strange Problem

2013-06-20 Thread Marc Guay
Never used it but searching turned up http://php.net/manual/en/function.chdir.php Marc On 20 June 2013 12:57, Tedd Sperling t...@sperling.com wrote: 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

[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
On 20 Jun 2013, at 18:39, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

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 =

[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
On Tue, Jun 18, 2013 at 1:36 PM, Richard Quadling rquadl...@gmail.com wrote: Hi. We've all been told that 'free software' is to be thought of as 'free speech', not 'free beer'. Well, I hope to muddy the waters with this link. https://www.facebook.com/TheFreeBeerApp I'd say that I'd

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
On Sun, Jun 16, 2013 at 6:29 PM, dealTek deal...@gmail.com wrote: Hi all, newbie PDO question... I think (hard to tell - buried in a wrapper class) I am doing a select query using - PDO::FETCH_ASSOC like... wrapper -- return $pdostmt-fetchAll(PDO::FETCH_ASSOC); --- so my query is

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 by:

[PHP] newbie PDO query display question

2013-06-16 Thread dealTek
Hi all, newbie PDO question... I think (hard to tell - buried in a wrapper class) I am doing a select query using - PDO::FETCH_ASSOC like... wrapper -- return $pdostmt-fetchAll(PDO::FETCH_ASSOC); --- so my query is like... $results = $db-select(mytable, id = 201); //just 1 exact

Re: [PHP] LightBox click detection

2013-06-16 Thread Micky Hulse
On Fri, Jun 14, 2013 at 8:52 AM, Tedd Sperling t...@sperling.com wrote: Here's the problem -- I need to count the number of times a user activates a LightBox -- how do you do that? If you're using Google Analytics, you can use click tracking:

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
dealTek deal...@gmail.com wrote: 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 =

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
Ford, Mike m.f...@leedsmet.ac.uk wrote: (someone else wrote:) $browser = get_browser(null, TRUE); if (isset($browser['ismobiledevice']) ($browser['ismobiledevice'] == TRUE)) { $isMobile = TRUE; } else { = FALSE; Mike's remarks below notwithstanding, I think something

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? Is that

Re: [PHP] LightBox click detection

2013-06-15 Thread Tamara Temple
Tedd Sperling t...@sperling.com wrote: It's Friday so I am allowed to ask odd questions. 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/

Re: [PHP] LightBox click detection

2013-06-15 Thread Tamara Temple
Marc Guay marc.g...@gmail.com wrote: $('.lightbox-image-class').click(function(){ $.post('ajax.php', {click: true}); }); Do javascript DOM events stack? If they do, this is definitely the simplest way to go. If they don't, you need to capture the previous click handler and call it. --

Re: [PHP] LightBox click detection

2013-06-15 Thread Julian Wanke
They do, afaik... Am 15.06.2013, 20:11 Uhr, schrieb Tamara Temple tamouse.li...@gmail.com: Marc Guay marc.g...@gmail.com wrote: $('.lightbox-image-class').click(function(){ $.post('ajax.php', {click: true}); }); Do javascript DOM events stack? If they do, this is definitely the simplest

Re: [PHP] LightBox click detection

2013-06-15 Thread Bastien
Sorry 'bout the top post. That's how I do it. Capture the click event with jquery and Ajax that back to the server Bastien Koert On 2013-06-15, at 2:07 PM, Tamara Temple tamouse.li...@gmail.com wrote: Tedd Sperling t...@sperling.com wrote: It's Friday so I am allowed to ask odd questions.

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

2013-06-14 Thread Richard Quadling
On 13 June 2013 18:38, David Harkness davi...@highgearmedia.com wrote: Hi Richard, On Thu, Jun 13, 2013 at 10:16 AM, Richard Quadling rquadl...@gmail.comwrote: I'm building a class which needs to have certain methods called by the subclass, but the subclass can extend but not

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   >