Re: [PHP] php 5.3.15 and exception for disabled_functions

2013-07-30 Thread Bálint Horváth
Hi, Maybe you think for ini_set() http://php.net/manual/en/function.ini-set.php On Tue, Jul 30, 2013 at 9:22 AM, Josef Karliak karl...@ajetaci.cz wrote: Hi there, in the php.ini file I've disabled some functions (exec and similar). In the php script we must use binary execution - so I

Re: [PHP] problem with my login script

2012-10-02 Thread Bálint Horváth
The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)... (switch is an exception) In the other hand Thomas, you should use while and count the lines and u need to test if username

Re: [PHP] problem with my login script

2012-10-02 Thread Bálint Horváth
. By the way, what's the problem with it? Enviado por Samsung Mobile Bálint Horváth hbal...@gmail.com escreveu: The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)... (switch

Re: [PHP] Form Already Filled Out

2011-08-04 Thread Bálint Horváth
Hi, Use value=$_POST['user'] or sg like that because: before send value eq null, after if returned -cause of a fail- the inputs remain also set *autocomplete=off* (at form) and if it doesn't work use js to set null values to input boxes (add a name for ur form...) Another way, use Google:

Re: [PHP] Best editor?

2011-08-03 Thread Bálint Horváth
Hi, On Windows I used UltraEdit. On Linux Kate is simple and comfortable app. Actually I prefer NetBeans too. Eclipse could be faster but I think less comfortable... *Valentine* On Wed, Aug 3, 2011 at 4:45 PM, Matt Giddings mcgid...@gmail.com wrote: Notepad!!! LOL.. I use netbeans but eclipse

Re: [PHP] Tree menu list in php

2011-07-26 Thread Bálint Horváth
Hi, I'd like to write my opinion quickly.. My way both usable with and without JS... In my structures there is an array of the menu elements similar to: $menu[gravity][name] = link; - filled from database, easy to handle to more prof., more params use three-dimensional array... In the url u can

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Bálint Horváth
Of course have to use filters and etc... Bálint Horváth On 25 May 2011 09:53, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: On Wednesday 25 May 2011 07:05:18 Negin Nickparsa wrote: my code is this: $query1=select * from patient where id=.$_POST['txt']; it works but Holy Jesus! Can't

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Bálint Horváth
The problem is that if you set the post directly to the query it's available to be an attach code in the field... (eg. DROP DATABASE;) it's called to SQL injection... what I mean on filtering: always check the values in query eg.: $id = $_POST['id']; if(is_numeric($id)){...}else{bad post} and at

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
Hi, I've a simply idea... If you have integer in your mysql, don't use at that field in the query... Try this: $query=select * from patient where id=.$id.; There isn't apostrofy in the mysql query... Bálint Horváth On 25 May 2011 06:06, Negin Nickparsa nickpa...@gmail.com wrote: my code

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
If the query is incorrect u get boolean: false, if its correct u get a resource id... Bálint Horváth On 25 May 2011 06:28, Negin Nickparsa nickpa...@gmail.com wrote:

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
... -If ur query contains errors u'll not get the resource id to use just a false boolean... -..and always check u don't have empty variables... :D Let's ride PHP! Bálint Horváth (Valentine) On 25 May 2011 06:57, Negin Nickparsa nickpa...@gmail.com wrote: :D tnx very much *Notice*: Undefined variable

Re: [PHP] Warning: Cannot modify header information - headers already sent by - classic

2011-05-19 Thread Bálint Horváth
Hi Header just be modified if its at the start of your script... right code: ?php ... header(); ... ? and not.. ?php ... ? php header(); ? Valentine On Thu, May 19, 2011 at 9:45 PM, Marc Guay marc.g...@gmail.com wrote: Hi folks, I'm running some code locally which should produce this fun

Re: [PHP] Warning: Cannot modify header information - headers already sent by - classic

2011-05-19 Thread Bálint Horváth
='.$back.' /'; ... Valentine 2011/5/19 Bálint Horváth hbal...@gmail.com Hi Header just be modified if its at the start of your script... right code: ?php ... header(); ... ? and not.. ?php ... ? php header(); ? Valentine On Thu, May 19, 2011 at 9:45 PM, Marc Guay marc.g

Re: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Bálint Horváth
Hi, For the subject you can use sg. like this: ?php function mail_utf8($to, $subject = '(No subject)', $message = '', $header = '') { $header_ = 'MIME-Version: 1.0' . \r\n . 'Content-type: text/plain; charset=UTF-8' . \r\n; mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message,

Re: [PHP] Bitwise AND for 31-st bit

2011-05-17 Thread Bálint Horváth
Hi, Hmm.. interesting... tst1=-2147483648, tst1_eq=-2147483648, tst1_type=integer tst2=2147483648, tst2_eq=-2147483648, tst2_type=double at me... PHP Version 5.3.3-1ubuntu9.5 (Apache 2.0 - i686) Valentine On Tue, May 17, 2011 at 5:19 PM, Vitalii Demianets vi...@nppfactor.kiev.uawrote: Hello,

Re: [PHP] mysql insert internal server error 500

2011-05-16 Thread Bálint Horváth
I think it's not the best place to send it but: $dolgF is not closed with ; ...and the insert is not in a variable! (And also I think it's not a good way using COOKIE in PHP because we have sessions) So the answer is: the all.. :D -or what's the full part you use for insert int this source!?