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

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] 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
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] 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] 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] 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] 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] 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 it's a

Re: [PHP] SQL Injection - Solution

2009-05-06 Thread Bruno Fajardo
Hi there! 2009/5/6 Igor Escobar > > Hi folks, > Someone know how i can improve this function to protect my envairounment > vars of sql injection attacks. > > that is the function i use to do this, but, some people think is not enough: > >  * @uses $_REQUEST= _antiSqlInjection($_REQUEST); >  * @us

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Bruno Fajardo
2009/5/6 Igor Escobar : > hun...by the way I forgot to mention, I am Brazilian and here in Brazil > these words are not common ... Igor, I'm brazilian too, but that is not the point. Deny the use of *any* word as input in your app is unnecessary. The problem that you're trying to solve, has b

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 possible to set a parameter

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] 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 its obvious that

[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] 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'

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] header("Location:...") fails

2010-01-13 Thread Bruno Fajardo
2010/1/13 Richard S. Crawford > > Here is a snippet of code that is going to be the death of me: > > > //  Create a new project > $projectcode = strtoupper(addslashes($_POST['projectcode']));   //  project > code > > //  Make sure the pr

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] 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] Cookies & sessions

2010-01-20 Thread Bruno Fajardo
2010/1/20 : > When you are working with sessions, provided you start your program with > session_id(), you > can then do anything you like with session variables at any point in your > program. Hi, You meant session_start() instead of session_id(), right? But yes, once you started a session (b

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] Execution order of PHP

2010-03-10 Thread Bruno Fajardo
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: > > $client->system->multiCall( >  $client->methodOne(), >  $client->methodTwo() > ); > > Currently PHP always resolves $client->system (and executes the __ge

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
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] 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] 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