Re: [PHP] Last Record INSERT

2013-06-26 Thread Carsten Jensen
On 06/26/2013 08:03 PM, Samuel Lopes Grigolato wrote: AFAIK mysql_[...] is deprecated in favor of mysqli_[...] correspondent functions, there's nothing to do specifically with mysql[i]_insert_id. On Wed, Jun 26, 2013 at 3:01 PM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Jun 26,

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Matijn Woudt
On Wed, Jun 26, 2013 at 7:35 PM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Jun 26, 2013, at 1:32 PM, Jim Giner jim.gi...@albanyhandball.com wrote: But more importantly - don't you need to figure out why it happened?? As well as correcting any inserts with the bogus id? Yes, I would

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Jim Lucas
On 06/26/2013 10:07 AM, Tedd Sperling wrote: Hi gang: I have a client where their next auto-increment number just jumped from 2300 to 10 for reasons not understood. They want it set back. Options such as dropping the primary key and rebuilding the index is NOT possible -- this is a

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 2:10 PM, Dan Munro d...@danmunro.com wrote: Learning something new everyday is one of the joys of this profession. If you learn two new things, consider yourself lucky :) What if it's the same two things? New just means I didn't remember it. Cheers, tedd

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 3:23 PM, Matijn Woudt tijn...@gmail.com wrote: What storage engine are you using? InnoDB is known for it's auto increment holes, but I didn't expect the holes to be that big. I have no idea. It's not my database. It's Constant Contact's -- I just put stuff in it as per

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?

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.

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

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

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

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:

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!

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

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

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

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

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:

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

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

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

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

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

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) =

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: [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?

Re: [PHP] Detect and Redirect Mobile Users

2013-06-14 Thread Marc Guay
http://www.answershat.com/questions/352/How-to-get-rid-of-spam-mail-in-my-mailbox On 14 June 2013 09:28, Chirag Vekariya chirag.vekariya...@gmail.com wrote: 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

Re: [PHP] LightBox click detection

2013-06-14 Thread Marc Guay
$('.lightbox-image-class').click(function(){ $.post('ajax.php', {click: true}); }); and do your DB work in ajax.php http://api.jquery.com/jQuery.post/ On 14 June 2013 09:52, Tedd Sperling t...@sperling.com wrote: Hi gang: It's Friday so I am allowed to ask odd questions. Here's the

Re: [PHP] LightBox click detection

2013-06-14 Thread Marc Guay
Also, the docs and functionality for that particular plugin seem a bit weak. Maybe there's another one that has a doneLoadingLightbox event that you could hook into and call your ajax script inside of... On 14 June 2013 10:02, Marc Guay marc.g...@gmail.com wrote:

RE: [PHP] Detect and Redirect Mobile Users

2013-06-14 Thread Ford, Mike
-Original Message- From: Dead Letter.Office [mailto:dead.letter.off...@isam.co.nz] Sent: 14 June 2013 05:22 To: php-general@lists.php.net http://php.net/manual/en/misc.configuration.php#ini.browscap http://tempdownloads.browserscap.com/ $browser = get_browser(null, TRUE); if 

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Tihanyi Péter
Hi, It might be a good solution for your problem: http://detectmobilebrowsers.com/ You can find php, js, apache, etc scripts for your problem. Regards, Peter Tihanyi http://systream.hu 2013.06.13. 1:19 keltezéssel, dealTek írta: Hi all, I'm curious of a simple, common,

Re: [PHP] PHP is Zero

2013-06-13 Thread georg
Sorry missed to post list as well Hi Daniel, here is wild goose i assume you have 3 x = in your problem formulation which could possibly result in the akward standard C mixup; the rightmost = first parsed and resulting in an ASSIGMENT to the variable with that value, the comes the parsing of

Re: [PHP] PHP is Zero

2013-06-13 Thread Pete Ford
On 13/06/13 08:59, BUSCHKE Daniel wrote: Hi all, I want to start a discussion about a PHP behaviour that drives me crazy for years. For the beginning I would like you to guess what the result of the following snippet will be: var_dump('PHP' == 0); I know the difference of == and === but the

Re: [PHP] PHP is Zero

2013-06-13 Thread Stuart Dallas
On 13 Jun 2013, at 12:27, BUSCHKE Daniel daniel.busc...@nextiraone.eu wrote: Hi, It gives up when it finds a non-numeric character (as the documentation would tell you) 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

Re: [PHP] PHP is Zero

2013-06-13 Thread Samuel Lopes Grigolato
Just found out that MySQL uses the same implicit conversion precedence on SQL clauses. That shows me that possibly exists some higher order rule that states this consistency, and changing that is outside the scope of PHP. On Thu, Jun 13, 2013 at 9:20 AM, Stuart Dallas stu...@3ft9.com wrote: On

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread raphael khaiat
Hi, On Thu, Jun 13, 2013 at 1:19 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? I think for my purposes if I can detect

Re: [PHP] Enabling the chroot() function in PHP 5.4

2013-06-13 Thread Matijn Woudt
Hi Aaron, It's better if you ask this question on the PHP internals list, there's hardly anyone compiling it's own PHP here. - Matijn On Thu, Jun 13, 2013 at 9:55 AM, Aaron Stephens aaron.t.steph...@gmail.comwrote: Hi All, Does anybody know how to enable the chroot() function in PHP

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 3:17 AM, Paul M Foster pa...@quillandmouse.comwrote: On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek 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:

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Matijn Woudt
On Thu, Jun 13, 2013 at 3:20 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Jun 13, 2013 at 3:17 AM, Paul M Foster pa...@quillandmouse.comwrote: On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek wrote: Hi all, I'm curious of a simple, common, universal way to detect a mobile user

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Camille Hodoul
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 for. Have a nice day 2013/6/13 dealTek deal...@gmail.com Hi all, I'm

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

2013-06-13 Thread David Harkness
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 obscure/override the behaviour. This is the Template Method pattern, though in this

Re: [PHP] Detect and Redirect Mobile Users

2013-06-13 Thread Dead Letter.Office
http://php.net/manual/en/misc.configuration.php#ini.browscap http://tempdownloads.browserscap.com/ $browser = get_browser(null, TRUE); if (isset($browser['ismobiledevice']) ($browser['ismobiledevice'] == TRUE)) { $isMobile = TRUE; } else { $isMobile = FALSE; } unset($browser); -- PHP

Re: [PHP] Detect and Redirect Mobile Users

2013-06-12 Thread Paul M Foster
On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek 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? I think for my purposes if I can detect screen size or

Re: [PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Stuart Dallas
On 11 Jun 2013, at 18:16, Tedd Sperling t...@sperling.com wrote: Hi gang: To get html pages to use php scripts, I've used: RewriteEngine on # handler for phpsuexec. -- this makes these prefixes considered for php FilesMatch \.(htm|html)$ SetHandler application/x-httpd-php /FilesMatch

Re: [PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Matijn Woudt
On Tue, Jun 11, 2013 at 7:17 PM, Stuart Dallas stu...@3ft9.com wrote: On 11 Jun 2013, at 18:16, Tedd Sperling t...@sperling.com wrote: Hi gang: To get html pages to use php scripts, I've used: RewriteEngine on # handler for phpsuexec. -- this makes these prefixes considered for php

Re: [PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Rodrigo Silva dos Santos
Em Ter 11 Jun 2013 15:08:59 BRT, Matijn Woudt escreveu: On Tue, Jun 11, 2013 at 7:17 PM, Stuart Dallas stu...@3ft9.com wrote: On 11 Jun 2013, at 18:16, Tedd Sperling t...@sperling.com wrote: Hi gang: To get html pages to use php scripts, I've used: RewriteEngine on # handler for phpsuexec.

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
On Jun 8, 2013, at 4:17 PM, Julian Wanke jswp...@gmx.at wrote: A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the overview over your databases... What -- people have more than one client?!? My thoughts: A client is like a girlfriend -- if you

Re: [PHP] Using Table prefixes

2013-06-10 Thread Julian Wanke
Tell this the facebook, google or nsa data team ^^ Am 10.06.2013, 16:15 Uhr, schrieb Tedd Sperling tedd.sperl...@gmail.com: On Jun 8, 2013, at 4:17 PM, Julian Wanke jswp...@gmx.at wrote: A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
Hi: I am sure they do not turn over a 1000 clients to a single person. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 10, 2013, at 2:11 PM, Julian Wanke jswp...@gmx.at wrote: Tell this the facebook, google or nsa data team ^^ Am 10.06.2013,

Re: [PHP] Using Table prefixes

2013-06-10 Thread Julian Wanke
There servers are so good configured, that they don't need much maintainance. Facebook has 1,11 Billion Accounts. If we divide this through 1000 members per data team member they need 1 Million data team mebers, each of them has a salary which I would say is about 2000$. That means they have

Re: [PHP] basic authentication usage

2013-06-10 Thread Julian Wanke
I think that the problem here is, that the unset of the $_SERVER[PHP_AUTH_USER] variable is not affecting the client's browser. If you've got a directory protection, the browser needs a restart to show the login dialog before. I may be wrong because I'm using forms normally but the

Re: [PHP] basic authentication usage

2013-06-10 Thread Jim Giner
On 6/10/2013 4:33 PM, Julian Wanke wrote: I think that the problem here is, that the unset of the $_SERVER[PHP_AUTH_USER] variable is not affecting the client's browser. If you've got a directory protection, the browser needs a restart to show the login dialog before. I may be wrong because I'm

Re: [PHP] basic authentication usage

2013-06-10 Thread Julian Wanke
I just mentioned that as an example. For this authentification the server sends a Authorization header. The client's browser requests the credentials from the user and save them in the RAM. Now the client's browser sends the credentials to the server. And what's important: The browser sends

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tamara Temple
Julian Wanke jswp...@gmx.at wrote: Facebook has 1,11 Billion Accounts. If we divide this through 1000 members per data team member they need 1 Million data team mebers, each of them has a salary which I would say is about 2000$. That means they have to pay 2 Billion US$ (!) per month to the

Re: [PHP] Using Table prefixes

2013-06-08 Thread Ashley Sheridan
dealTek deal...@gmail.com wrote: Hi all, I can see the basic need for a table prefix in a case where you may use one mysql database for several projects at once so as to distinguish tables per project like... Project 1 mysales_contacts mysales_invoices etc and jobs_contacts jobs_invoices

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tedd Sperling
On Jun 8, 2013, at 3:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: dealTek deal...@gmail.com wrote: I can see the basic need for a table prefix in a case where you may use one mysql database for several projects at once so as to distinguish tables per project like... -snip-

Re: [PHP] Using Table prefixes

2013-06-08 Thread Julian Wanke
A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the overview over your databases... Am 08.06.2013, 21:46 Uhr, schrieb Tedd Sperling tedd.sperl...@gmail.com: On Jun 8, 2013, at 3:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: dealTek

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tamara Temple
Tedd Sperling tedd.sperl...@gmail.com wrote: On Jun 8, 2013, at 3:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: dealTek deal...@gmail.com wrote: I can see the basic need for a table prefix in a case where you may use one mysql database for several projects at once so as to

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tamara Temple
Julian Wanke jswp...@gmx.at wrote: A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the overview over your databases... I believe what is being talked about is one DB per application install -- 'client' can be a way-overloaded term. Am

Re: [PHP] Using Table prefixes

2013-06-08 Thread Bastien
Bastien Koert On 2013-06-08, at 5:58 PM, Tamara Temple tamouse.li...@gmail.com wrote: Julian Wanke jswp...@gmx.at wrote: A database for each client? Isn't that over-powered? If you have 1000 clients, you would loose the overview over your databases... I believe what is being talked about

Re: [PHP] Using Table prefixes

2013-06-08 Thread Bastien
Bastien Koert On 2013-06-08, at 5:56 PM, Tamara Temple tamouse.li...@gmail.com wrote: Tedd Sperling tedd.sperl...@gmail.com wrote: On Jun 8, 2013, at 3:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: dealTek deal...@gmail.com wrote: I can see the basic need for a table prefix

<    2   3   4   5   6   7   8   9   10   11   >