[PHP] json_encode strange behavior

2013-05-31 Thread Bruno Hass de Andrade
ente_id - razao_social 10 - Client A 5 - Client B 1 - Client C json_encode output: {"10":"Client A","5":"Client B","1":"Client C"} Thanks! -- - Bruno Hass (51) 8911-9274

Re: [PHP] Updating to 5.3.6

2011-06-20 Thread Bruno Coelho
I've installed through XAMPP. The latest version of XAMPP still has PHP 5.3.1 A 2011/06/20, às 18:50, Sean Greenslade escreveu: > How did you install it? Why can't you just uninstall it and reinstall with > the new version? > > On Jun 20, 2011 12:52 PM, "Bruno

[PHP] Updating to 5.3.6

2011-06-20 Thread Bruno Coelho
I realize this is a basic matter, but I've installed PHP 5.3.1 with XAMPP for Mac OS. How can I update my PHP version now? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Greate day for you,

2010-04-07 Thread Bruno Fajardo
2010/4/7 Nilesh Govindarajan : > On 04/07/10 21:41, Chris G wrote: >> >> http://sites.google.com/site/vfgbyuhoi6/kewe2w >> > > Bloody asshole spammer. > Is there no spam filter at lists.php.net ? It was probably a virus or a trojahn, not intentionally sent to the list by the OP... > > -- > Nilesh

Re: [PHP] PHP MySQL Insert Statements

2010-03-11 Thread Bruno Fajardo
2010/3/11 Martine Osias : > Hi, > > My insert statements on this web page don't execute. The select statements > do work. This tells me that the database connection is working. The username > and password are the administrator's. What else could prevent the insert > statements from executing? Woul

Re: [PHP] Execution order of PHP

2010-03-10 Thread Bruno Fajardo
2010/3/10 Andrew Ballard : > On Wed, Mar 10, 2010 at 9:54 AM, Bruno Fajardo wrote: > [snip] >> 2010/3/10 Auke van Slooten : >>> This is not what I meant. I should perhaps mention that it's an xml-rpc >>> client and the method calls are remote method call

Re: [PHP] Execution order of PHP

2010-03-10 Thread Bruno Fajardo
2010/3/10 Auke van Slooten : > Bruno Fajardo wrote: >> >> 2010/3/10 Auke van Slooten >>> >>> Hi, >>> >>> In a hobby project I'm relying on the order in which the following piece >>> of PHP code is executed: >>> >>

Re: [PHP] Execution order of PHP

2010-03-10 Thread Bruno Fajardo
ould store they values in local variables, and then pass them to the $client->system->multiCall(), assuring that those methods are executed before the multiCall(). Something like: $methodOne = $client->methodOne(); $methodTwo = $client->methodTwo(); $client->system->multiCall($met

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Bruno Fajardo
2010/2/23 Daniel Egeberg > > 2010/2/23 Dasn : > > Hello guys, I try to use 'ReflectionFunction' to retrieve the info of a > > function. > > For example: > > > > > $rf = new ReflectionFunction('strstr'); > > echo $rf; > > ?> > > === output == > > > > Function [ functio

Re: [PHP] Cookies & sessions

2010-01-20 Thread Bruno Fajardo
ore the session_start() or setcookie() functions get executed. Well, I hope this information is helpful. Cheers, Bruno. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies & sessions

2010-01-19 Thread Bruno Fajardo
2010/1/19 : > I am trying for the first time to use cookies. The manual contains the > statement "Cookies > are part of the HTTP header, so setcookie() must be called before any output > is sent to > the browser." > > When I first started using sessions, I was alarmed to read a very similar > s

Re: [PHP] What's the best way to extract HTML out of $var?

2010-01-15 Thread Bruno Fajardo
2010/1/15 alexus : > What's the best way to extract HTML out of $var? > > example of $var > > $var = "http://http://stackoverflow.com/"Stack Overflow" > I want > > $var2 = "http://starckoverflow.com/"; > example: preg_match(); > > what else? Hi, If you simply wants to remove all tags from the stri

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Bruno Fajardo
ng in putting a die command after the header("Location"). In fact, it is common. The header() command by itself don't imply in the send of the request. You can have many header() commands in sequence, and the header will be sent only in the end of the process. Cheers, Bruno. >

Re: [PHP] SVG and PHP

2010-01-05 Thread Bruno Fajardo
2010/1/5 Alice Wei > > Hi, > > Just went online and saw an SVG generated from Python, and wanted to do > the similar thing by loading the SVG into an PHP script. Here is the script > that I have: > > > #Load the Map > $ourFileName= "USA_Counties_with_FIPS_and_names.svg"; > $fh = fopen($ourFileN

Re: [PHP] Dual PHP installation and session sharing

2009-07-20 Thread Bruno Fajardo
iscontinue the current one. But if there's a chance to share session in the actual environment, I would certainly prefer that. Thanks for the reply! 2009/7/19 Zareef Ahmed > > > On Sat, Jul 18, 2009 at 1:34 AM, Bruno Fajardo wrote: >> >> Hi all, >> >> I'

[PHP] Dual PHP installation and session sharing

2009-07-17 Thread Bruno Fajardo
Hi all, I'm using Apache/2.2.3 (Linux/SUSE), running PHP 4.4.7 in CGI mode, in a dual installation with PHP 5.1.2 running as an Apache module. Scripts with .php5 extension are executed by PHP 5, and those with .php are executed by PHP 4, and everything runs as expected. My question is: is it possi

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Bruno Fajardo
Hi there! Try out AES. http://en.wikipedia.org/wiki/Advanced_Encryption_Standard Bruno. 2009/6/3 Hemant Patel > > Hello Everyone, >                      Hope you all are doing great. >                      Now we are creating a application which has high level > of security so i

Re: [PHP] MYSQL 5 auto increment not working

2009-05-21 Thread Bruno Fajardo
2009/5/21 Leidago !Noabeb > Hi All > > > I know this is not strictly a PHP question, but i have a problem whenever i > insert a record using PHP. Basically the auto increment field does not work > at all. Here's the structure of the table that i'm using: > > CREATE TABLE `children` ( > `cid` int

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Bruno Fajardo
This kind of tip is raised in form of notices. So, to enable that, use the following function on top of your scripts: error_reporting(E_ALL | E_NOTICE); Best regards, Bruno. 2009/5/18 Paul M Foster > On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote: > > > Is it possi

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Bruno Fajardo
ng to solve, has been solved a long time ago. Bruno. > > That is a recursive function and i can use array_map becouse i some cases we > obtain arrays of arrays and that will generate a error. > > > Regards, > Igor Escobar > Systems Analyst & Interface Designer >

Re: [PHP] SQL Injection - Solution

2009-05-06 Thread Bruno Fajardo
ape_string() like Shawn said, possibly something like this would do the trick (from http://br2.php.net/manual/en/function.mysql-query.php): $query = sprintf("SELECT firstname, lastname, address, age FROM friends WHERE firstname='%s' AND lastname='%s'", mysql_real_escape_string($firstna

Re: [PHP] RE: AJAX with POST

2009-04-04 Thread Bruno Fajardo
Ajax is asynchronous. The option of asynchronous or synchronous can be set in the XMLHTTPRequest object (used by Ajax), but a synchronous call is not Ajax. Cheers, Bruno. 2009/4/5 Phpster > Ajax can be both async and sync. Itsbthe fourth param in the open call and > I believe by default

Re: [PHP] Re: Extract result from a https remote server response

2009-02-13 Thread Bruno Fajardo
Assigning the return of file_get_contents to a variable? Didn't get your point... 2009/2/13 m a r k u s > > Shawn McKenzie wrote: >> >> Shawn McKenzie wrote: >>> >>> m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.com&

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Bruno Fajardo
Can you extend the JPGraph class, intercepting the desired method, formatting the output the way you need? 2009/2/11 João Cândido de Souza Neto > > No, I can´t, because if I do it how can jpgrhph render without numeric data? > hehehe > > "Richard Heyes" escreveu na mensagem > news:af872644090

Re: [PHP] php validate user password

2009-02-09 Thread Bruno Fajardo
> another hash that does not have the same collision issues. > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.p

Re: [PHP] php validate user password

2009-02-09 Thread Bruno Fajardo
tedd, I think that the problem of the "duplicated hashes" in the database (in the case of two users using the same password) persists with a constant prefix in the passwords. Although the random salt portion get stored in the database concatenated to the hash, the attacker don't know the string le

Re: [PHP] long echo statement performance question

2009-02-06 Thread Bruno Fajardo
I am so stick to Smarty that I never tried other solutions, like Savant. Thanks for the tip, I'll try it right away. Cheers. 2009/2/6 Eric Butera : > On Fri, Feb 6, 2009 at 1:43 PM, Bruno Fajardo wrote: >> Well, Smarty's caching layer is very fast. Maybe not as fast as an >

Re: [PHP] long echo statement performance question

2009-02-06 Thread Bruno Fajardo
ication, i agree. 2009/2/6 Eric Butera : > On Fri, Feb 6, 2009 at 12:15 PM, Bruno Fajardo wrote: >> In my opinion, you would achieve better results using a template >> engine, like Smarty (http://www.smarty.net/). In addition, your code >> would be entirely separated fro

Re: [PHP] long echo statement performance question

2009-02-06 Thread Bruno Fajardo
> > echo 'blah', $var, 'blah', $var2,...ad nauseum > > ... to output mixed html and php var values? If so could you refer me to a > work around, or better way? > > Frank > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsu

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Bruno Fajardo
Maybe X-Debug (http://www.xdebug.org/) could help you find bugs in your code, and for development environments it's recommended to use the most sensitive level of messages (turn on E_STRICT and E_NOTIVE, for example). 2009/2/5 Ashley Sheridan > > On Thu, 2009-02-05 at 12:22 -0500, Paul M Foster w

[PHP] Web app for betting on soccer WorldCup 2006

2006-05-03 Thread FAURE, Bruno (PCO TECHNOLOGIES)
exist and where I could find one? Thanks in advance, Bruno Worldcup fan This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received

[PHP] Re: Get recursive array

2006-02-06 Thread Bruno B B Magalhães
& $reference[$argument]; } } unset($reference); } And I didn't double posted, I had to subscribe... and I didn't know if my message had been sent or not. Thanks, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
a function that gets those values and subvalues, but there is one small catch, I need to dynamically get parsed arguments and check if key exists and returns it... I tried func_num_args, and func_get_args, without success. Any ideas? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
a function that gets those values and subvalues, but there is one small catch, I need to dynamically get parsed arguments and check if key exists and returns it... I tried func_num_args, and func_get_args, without success. Any ideas? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Imap, reading the email-body

2005-10-19 Thread Bruno Gola
main page and try to read any message... I dont know what can i do to fix it... Thanks for any help and sorry any mistakes about my english... Bruno Gola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread Bruno B B Magalhães
write the strings.. Best Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to read PHP variables.

2005-07-12 Thread Bruno B B Magalhães
Hi you all! That's my problem: I have a configuration files with the following structure... $vars['varname'] = 'varvalue'; And I would like to have a module to change those parameters, but I don't know how to write a pattern to match it... Thanks in advan

Re: [PHP] TimeStamp BEFORE 1970 AND AFTER 2035

2005-07-07 Thread Bruno B B Magalhães
preg_match('([0-9][0-9][0-9][0-9])', $input, $year); $input = str_replace($year[0], '1976', $input); return (float)floor(strtotime($input) + (($year[0] - 1976) * (31557376.189582))); } } Shoot! Best Regards, Bruno B B Magalhaes

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
and now multiply by number of seconds in a year (31557376.189582) before Gregorian Calendar, and we will get: -1262295047.583 Now we calculate the timestamp from 01/01/1976: 189313200 Now we have the final equation: 189313200 + (-1262295047.583). The result is a negative timestamp: -1072981847

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
return $output; } else { preg_match('([0-2][0-9][0-9][0-9])', $input, $year); preg_replace('([0-2][0-9][0-9][0-9])', '1976', $input); return floor(strtotime($input) + (($year[0] - 1976) * (31557376.189582))); } } Tha

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
I found a round number (31557376.189582). Well, any help is appreciate. At least now I can work on a windows box. Best Regards, Bruno B B Magalhaes On Jul 7, 2005, at 3:42 PM, Richard Davey wrote: Hello Bruno, Thursday, July 7, 2005, 7:04:44 PM, you wrote: BBBM> I've read the manual, and

[PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
t;[EMAIL PROTECTED]> * @copyright 2004 by Bruno B B Magalhaes * @copyright 2005 by B3M Development Team * @link http://www.bbbm.com.br/platform/

Re: [PHP] Formating

2005-07-07 Thread Bruno B B Magalhães
Hi Richard, On Jul 5, 2005, at 6:20 PM, Richard Lynch wrote: On Mon, July 4, 2005 6:48 pm, Bruno B B Magalhães said: For example I have a brazilian zipcode witch is stored in database as Is she a Good Witch, or a Bad Witch? :-) Ups, hehehehe! 22252970 and must be formatted as N-NNN

[PHP] Formating

2005-07-05 Thread Bruno B B Magalhães
only, for example 05117635472 and outputted as NNN.NNN.NNN-NN... Is that any way that I can do it generic, storing the formatting strings ('N- NNN') with languages strings, so it is localised and this would be parsed as: string::format($string, $format); Best Regards, Brun

Re: [PHP] PHP vs. ColdFusion

2005-07-04 Thread Stéphane Bruno
On Fri, 2005-07-01 at 19:01, Mark Charette wrote: > It is always funny to read that one needs OO approches to do anything > useful. What one needs is a modular approach, re-factoring, and knowing I never said that you NEED OO approach to do anything. I found some problems where an OO approach he

Re: Re[2]: [PHP] PHP vs. ColdFusion

2005-07-01 Thread Stéphane Bruno
Hello, I followed the discussions closely. I wanted to reply to some questions I saw in the discussions. I am using both PHP and Coldfusion, but both on Linux platforms. So, I am not bound to Microsoft technologies, and CF runs faster on Linux/Unix than on Windows. Like PHP, there is no need for

Re: [PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Thanks, Richard It now works. It was not obvious in the book I was using. The author should have put a side note stating it is two underscores instead of one. Stéphane On Thu, 2005-06-09 at 08:42, Richard Davey wrote: > Hello Stéphane, > > Wednesday, June 8, 2005, 10:23:22 PM, you wrote: > > S

[PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Hello, I designed a "player" class with the following properties and constructor: class player { private $properties = array('firstname' => NULL, 'lastname' => NULL); function _construct($first, $last) { $this->properties['firstname'] = $first; $this->properties['lastname'] = $last;

[PHP] _construct() problem

2005-06-09 Thread Stéphane Bruno
Hello, I designed a player class with the following properties and constructor: class player { private $properties = array('firstname' => NULL, 'lastname' => NULL); function _construct($first, $last) { $this->properties['firstname'] = $first; $this->properties['lastname'] = $last; }

[PHP] Re: SSL use

2005-04-23 Thread Bruno Wolff III
On Fri, Apr 22, 2005 at 16:38:29 -0400, "ruel.cima" <[EMAIL PROTECTED]> wrote: > hi, > > im handling some important information that needs to be stored in my > postgresql database via a php script. i´ve been reading the mails sent on > this mailing list on SSL use. my postgresql server allow

Re: [PHP] Re: class calling script

2005-04-12 Thread Bruno B B Magalhães
return true; } return true; } else { return $this->_mdl->$module_name = false; return false; } } else { return $this->_mdl->$module_name = false; return false; } } else { return $this->_mdl->$module_name = false; re

Re: [PHP] Simple Licensing System

2005-04-09 Thread Bruno B B Magalhães
Hi Richard, And how do I generate this, and how would I check it?!?! Thanks, Bruno B B Magalhaes On Apr 8, 2005, at 11:48 PM, Richard Lynch wrote: On Fri, April 8, 2005 1:06 pm, Bruno B B Magalhães said: I need a help with a licensing system, I want something very simple, for example a simple var

[PHP] Simple Licensing System

2005-04-08 Thread Bruno B B Magalhães
ave a simple idea for it? Best Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] line feed

2005-03-04 Thread Bruno Santos
use double quotes, in a simple html comand i need to use \" and i dont want that. is any way i could use single quotes, and getting the line feed ?? example: Double quotes: echo "\n"; single quotes: echo ''; cheers Bruno Santos -- Say no to software patents w

Re: [PHP] Re: PHP and Access

2005-02-26 Thread Bruno Santos
pete M wrote: Check this out http://adodb.sourceforge.net/ http://phplens.com/adodb/code.initialization.html#init have fun Pete Bruno Santos wrote: Hello. I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP

[PHP] PHP and Access

2005-02-25 Thread Bruno Santos
Hello. I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values from an access database ?? cheers Bruno Santos -- Say no to software patents www.nosoftwarepatents.com/ -- [EMAIL PROTECTED

[PHP] Communication protocol of PHP and Mysql

2005-02-25 Thread Bruno Santos
Hello all. Im developing an application as my final school project and for the report (administration manual) i need to specifie the protocol of communication between PHP and Mysql when accessing the mysql database using the functions within PHP. PHP communicates with Mysql throw TCP/IP or any

[PHP] URL encode

2005-02-23 Thread Bruno Santos
can i can resolve it ?? ive tryed with htmlentities, urlencode, urldecode, etc... help ? cheers Bruno Santos -- Say no to software patents www.nosoftwarepatents.com/ -- [EMAIL PROTECTED] -- Divisao de Informatica [EMAIL PROTECTED] Tel: +351 272 000 155 Fax: +351 272 000 257 -- Hospital Amato Lusitano

[PHP] cannot remove cookies

2005-02-22 Thread Bruno Santos
er im testing it is firefox (linux) but in IE is not working either... PHP version is PHP-5.0.3 Apache version is Apache-2.0.52 Cheers Bruno Santos -- Say no to software patents www.nosoftwarepatents.com/ -- [EMAIL PROTECTED] -- Divisao de Informatica [EMAIL PROTECTED] Tel: +351 272 000 155 Fax

[PHP] memory error

2005-02-17 Thread Bruno Santos
= 300 max_input_time = 60 memory_limit = 8M by the way, is there any function that allows me to flush the memory ?? cheers Bruno Santos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Users logins in Linux machine

2005-02-12 Thread Bruno Santos
m ?? (/etc/passwd) ?? can it be with LDAP ? or PAM ? or any other method ? cheers ! Bruno Santos -- Say no to software patents www.nosoftwarepatents.com/ -- [EMAIL PROTECTED] -- Divisao de Informatica [EMAIL PROTECTED] Tel: +351 272 000 155 Fax: +351 272 000 257 -- Hospital Amato Lusitano [EMAIL PROT

[PHP] $GLOBALS, any probolems?

2005-02-09 Thread Bruno B B Magalhães
Hi guys, is there any problems using $GLOBALS superglobal to carry all my global classes instances? For example: $GLOBALS['myclass'] = new myclass(); Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] URGENT: Break-lines disappearing.

2005-01-20 Thread Bruno B B Magalhães
} else { return $input_data; } } Where are the break-lines?!?!? I am really desperate! Please! I am using MySQL and PHP4. Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dates, times, timezones...

2005-01-19 Thread Bruno B B Magalhães
7;s easy to convert to any format and to do math with dates Is this the way? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking if

2005-01-12 Thread Bruno B B Magalhães
Richard, my solution right know is: if(substr($url,-1) != '/') { $url = $url.'/'; } Simple and fast... :) Regards, Bruno B B Magalhaes On Jan 12, 2005, at 3:37 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: how to determine if the last char of a string is a &

[PHP] Checking if

2005-01-11 Thread Bruno B B Magalhães
Hi people, how to determine if the last char of a string is a '/'... The problem, a webpage can be accessed by www.domain.com/page.php or www.domain.com/page.php/ Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] UBB Code correct use

2005-01-11 Thread Bruno B B Magalhães
Database ---> UBB Decode ---> Display Did you get what my question is? :) What is the correct order... I mean, because I am having problems when editing an article all the BRs are being duplicated, and other problems that have to do with the order. Regards, Bruno B B Magalhaes -- PHP Ge

[PHP] client information

2005-01-11 Thread Bruno Santos
he DISPLAY variable of the client ? if i make a system call, i get the server information and thats not what i want ? if not with php, is possible to do it with javascript ? thanx in advance Bruno Santos -- Say no to Software patents www.nosoftwarepatents.com -- [EMAIL PROTECTED] -- Divisão de Informát

Re: [PHP] Re: Pagination Optimization

2005-01-08 Thread Bruno B B Magalhães
{ return null; } return $results; } === Regards, Bruno B B Magalhães On Jan 7, 2005, at 10:09 PM, M. Sokolewicz wrote: first of all, you're running 4 queries here. 4 queries is a lot! Especially when you don't nee

[PHP] Pagination Optimization

2005-01-07 Thread Bruno B B Magalhães
My question is: Is there ANY way to speed up this function, or any way to fetch paginated results quicker? I had a project list, without pagination, and when I added the pagination function, it slowed down up to 0.0125 secs. Before it was runnin

Re: [PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
efault_timezone_offset)) { $this->local_timezone_offset = $this->default_timezone_offset - $this->server_timezone_offset; return time()+3600*$this->local_timezone_offset; } else { return time(); } } =====

[PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
the hour. Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Frameworks

2004-12-22 Thread Bruno B B Magalhães
tion class (lots of input validation) and its multilingual, fetched from the database. Best Regards, Bruno B B Magalhaes

[PHP] scripting with php

2004-12-14 Thread Bruno Santos
used #!/usr/bin/php -q, but it apears is not working ... can someone tell me how to i use php stand alone ? chears !!! Bruno Santos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Infinity and nested categories

2004-12-14 Thread Bruno B B Magalhães
Thanks Richard! Helped a lot! Regards, Bruno B B Magalhaes On Dec 13, 2004, at 4:16 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: Hi again everybody, well, I've asked it before, but I couldn't work on this at all. As some knows I have a system witch has a category system. The gener

[PHP] Slow Zend Optimizer

2004-12-14 Thread Bruno B B Magalhães
hell is this optimizer optimizing?!?1 Regards, Bruno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Infinity and nested categories

2004-12-12 Thread Bruno B B Magalhães
AND category_id='022') My problem is that how can I handle those categories! and build a three of it. I am using PHP5 and MySQL 4.1 Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friendly URL

2004-12-11 Thread Bruno B B Magalhães
Richard, well a much simpler solution than my old one: $this->uri = explode('/',basename($_SERVER['SCRIPT_NAME']).$_SERVER['PATH_INFO']); Many thanks for your help, Bruno B B Magalhaes On Dec 10, 2004, at 11:57 PM, Richard Lynch wrote: $_SERVER['PHP_SE

[PHP] Not quite PHP, but related...

2004-12-10 Thread Bruno B B Magalhães
post, get, cookie and session headers. Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Friendly URL

2004-12-10 Thread Bruno B B Magalhães
] = strtolower(addslashes(strip_tags(eregi_replace($get_string,'',$path[$i]) ))); } else { $this->uri[$i] = strtolower(addslashes(strip_tags($path[$i]))); } } } Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Implementing database cache.

2004-12-08 Thread Bruno B B Magalhães
I am using mysql with cache results enable, but as every addicted I want more and more... course I have to benchmark it to see if its worth... Regards, Bruno B B Magalhães On Dec 8, 2004, at 8:34 PM, John Holmes wrote: Bruno B B Magalhães wrote: Hi again guys, does anybody have am idea of witch

[PHP] Implementing database cache.

2004-12-08 Thread Bruno B B Magalhães
query itself. I would love any ideas! :) Nice regards. Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Comment Speed

2004-11-27 Thread Bruno B B Magalhães
cess. Any idea? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] identifying the country of the people who connect to web site / portal

2004-11-27 Thread Bruno B B Magalhães
Hi, course you can, you should search harder for it, but I will facilitate for you! :o) http://www.phpclasses.org/browse/package/1477.html Best Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Lazy anwsers (WAS: mysql_connect vs mysql_pconnect)

2004-11-27 Thread Bruno B B Magalhães
) and I believe that others do too. So I think that this is the worst kind of comment or suggestion someone can receive. Sorry everybody. Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread Bruno B B Magalhães
g as foreach($modules as $module) { } our also a faster one for($i=0; $i < $t; $i++) { } where $t = count($modules)-1;. Best Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is it a good idea?

2004-11-20 Thread Bruno B B Magalhães
} } elseif(!isset($this->core->$class)) { return $this->core->$class =& new $class($this); } else { return $this->core->$class; } } Best regards to you all, Bruno B

[PHP] Auto Class loading

2004-11-17 Thread Bruno B B Magalhães
Continuing the classes questions... I have a class loader called 'load_core_class($class=''), but if $class equals to all I would like to load all classes in the core directory, include then AND start then this way: $this->$loadedclassname = new $loadedclassname; Is it possib

[PHP] Re: [PHP-DB] OOP vs Functions and includes

2004-11-16 Thread Bruno B B Magalhães
Here is a example of a controller of my framework, can you imagine it using procedural approach? (http://www.yourhostname.com/controller/articles) http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework *

Re: [PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
Is this good or bad? heheh! Regards, Bruno B B Magalhaes On Nov 16, 2004, at 3:31 PM, raditha dissanayake wrote: Bruno B B Magalhães wrote: Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and

[PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Bruno B B Magalhães
.class.php'); $myclass = new class(); } Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array unset

2004-11-16 Thread Bruno B B Magalhães
( [moduleId] => 2 [moduleName] => Logout [modulePath] => logout [moduleAliasPath] => [moduleController] => administration [moduleLevel] => 5 [moduleOrder] => 3 [moduleVisibility] => 1 [moduleType] => alias [moduleStatus] => 1 ) ) So, the question, how resort the numeric values to 1,2,3,4? Regards, Bruno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
table.. == http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework * @version 0.5dev */ class authentication { var $domain; var $database; var $authentica

Re: [PHP] Javascript and php

2004-11-07 Thread Bruno B B Magalhães
Reinhart, picture_url.'"'; if($i <= mysql_num_rows($result)-2) { echo ','; } } ?> Here is how I do in my developments. Regards, Bruno B B Magalhães On Nov 7, 2004, at 8:44 AM, Reinhart Viane wrote: Hey all, Hope some o

Re: [PHP] Re: keywords generation (ANOTHER)

2004-11-05 Thread Bruno B B Magalhães
Hi, I am trying to categorize the keywords... for example, if a word shows at the begin probably it´s more important, but how many occurrences is also important... Does someone knows Google´s formula? hehe This code is working more or less as expected! Many Thanks, Bruno

Re: [PHP] Re: keywords generation

2004-11-05 Thread Bruno B B Magalhães
at nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. '; echo generate_keywords($submited_text); ==== Than

Re: [PHP] Re: keywords generation

2004-11-05 Thread Bruno B B Magalhães
um] => 0 [zzril] => 1 [delenit] => 1 [ugue] => 1 [duis] => 1 [te] => 4 [fcilisi] => 0 ) Which is the word and it total occurrence in the text... Now I want to sort it from the highest values to the lowest... and then return a keyword string as: $k

[PHP] keywords generation

2004-11-05 Thread Bruno B B Magalhães
{ $total[$val] = substr_count($text,$val); } } } = How can I sort the resulting array by value, without loosing its relations. Is there a faster way of doing this? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Bruno B B Magalhães
-1; $i++) { $highlighted_code = eregi_replace($oddsyntax[$i],''.$oddsyntax[$i].'',$code); } return $code; } echo highlight_code($code); Regards, Bruno B B Magalhães On Nov 5, 2004, at 6:39 PM, Aaron Gould wrote: Could any of you privide some leads in regard to highlighting synt

Re: [PHP] enterprise php application automated testing

2004-10-23 Thread Bruno B B Magalhães
Well, we call it pre-testing, the only way, and the better one, is doing it with the future users of your system! Regards, Bruno B B Magalhães On Oct 23, 2004, at 10:00 PM, blackwater dev wrote: Hello all, I know I can use simpletest to test my application at the class level but I need a tool

  1   2   >