Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-05 Thread Peet Grobler
On 2013/02/01 4:58 PM, Sean Greenslade wrote: > This task is not really suited for php. I would suggest looking into Ntop. > It does exactly what you described. That's one option. I use a custom system, with perl and bash scripts collecting data and saving to rrd databases. php script displaying

Re: [PHP] Storing passwords in session variables

2012-12-11 Thread Peet Grobler
On 2012/12/11 2:46 PM, Paul Halliday wrote: > Client <-> Server is encrypted, can I toss these into session variables? > Do note your full url (including &user=xx&pass=yy will be logged in apache logs, and depending on configuration in squid logs in-between too. -- PHP General Mailing List (htt

Re: [PHP] mysqli question

2011-11-12 Thread Peet Grobler
On 2011-11-13 1:42 AM, Tommy Pham wrote: >>or db_error ($dbh, $__FILE__, $__LINE__); > > __FILE__ are reserved keywords __LINE__. If you intended to use > variables represent the similar meaning, the suggested approach would Yes, sorry, was a bit quick there - I'm using __FILE__ __LINE_

[PHP] mysqli question

2011-11-12 Thread Peet Grobler
Not sure if this is the correct mailing list to be asking this question but here goes: I've got a prepared statement. $stmt = $dbh->prepare ("insert into test values (?, ?)") or die ("Error: " . $dbh->error); $stmt->bind_param ('ii', $var1, $var2) or die ("Error: " . $dbh->error);

Re: [PHP] mysqli sql question

2011-08-31 Thread Peet Grobler
On 8/31/2011 1:38 PM, John Black wrote: > Hi Peet, > > not sure if there is a method to echo the sql but you can set your > development MySQL server to log all queries to a log file. > Use the log file with tail and you'll get a live view of all queries the > server attempts to process. > I alre

[PHP] mysqli sql question

2011-08-31 Thread Peet Grobler
Is it possible to get the actual sql that is being used to query or update the database? E.g $sth = $dbh->prepare ("update table set field=?, field2=? where id=?); mysqli_bind_param ($sth, 'ssi', 'text1', 'text2', 10); $sth->execute(); Something like $sth->sql? Or $dbh->sql? I want to see "updat

[PHP] PHP mysqli help

2011-08-10 Thread Peet Grobler
So I have: $result = $dbh->query ("select * from roles order by name"); $row = mysqli_fetch_object ($result); function process_field ($which) { // This fails, I need to know how to do this the right way if ($row->may_$which == 'Y') { // Print stuff } else {

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Peet Grobler
On 8/7/2011 9:53 AM, Negin Nickparsa wrote: > Hello List > > I want to use Cake PHP ,I have downloaded it from it's site,rename the > folder to first_app > and copied it to > /srv/www/htdocs > > my root is here: > > /srv/www/htdocs > > by entering http://localhost/first_app/ > > it has some er

Re: [PHP] Memory limit Problem

2011-06-23 Thread Peet Grobler
On 6/23/2011 3:29 PM, Graham Drabble wrote: > (ie it seems I only have 128M available). > > There's plenty of RAM on the server. > > Any ideas? Check for the upload_max_filesize parameter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache or php limit?

2011-05-30 Thread Peet Grobler
Hi there, new to this list. I have a problem I can't seem to figure out. Here goes. PHP page has 100s of textboxes on it. Submit on the development machine, everything works as expected. Submit on live machine - only part of the $_POST variables are there. The script doesn't stop executing - it e