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 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 had to enable f

Re: [PHP] problem with my login script

2012-10-02 Thread Bálint Horváth
ch, so I should never use > break too... Good to know. By the way, what's the problem with it? > > > Enviado por Samsung Mobile > > > > Bálint Horváth escreveu: > > > > The problem was already solved. I forgot to send a copy to the list... > > Rodri

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 fou

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: "ja

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 wrote: > Notepad!!! LOL.. I use netbeans but eclipse is nice. A lot o

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
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-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" wrote: > On Wednesday 25 May 2011 07:05:18 Negin Nickparsa wrote: >> my code is this: >> $query1="select * from patient where id=".$_POST['txt']; >>

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Bálint Horváth
ges... -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" wrote: > :D > tnx very much &g

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" wrote:

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 Ni

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

2011-05-19 Thread Bálint Horváth
Sorry, I forgot the alternative.. You can use simply meta refresh which is working anyway. Usually I insert more than one redirector function to my script... Eg.: ... $back = $_SERVER['PHP_SELF'] . '?action=login'; //header('Location: '.$back.''); echo 

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: and not.. Valentine On Thu, May 19, 2011 at 9:45 PM, Marc Guay wrote: > Hi folks, > > I'm running some code locally which should produce this fun error we > all know and love: Warning: Cannot modify header inform

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 wrote: > Hello, all! > > I've encounter

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: So first you have to try encode your string to set as subject. Could be utf8_encode or base64_encode... http://php.net/manual/en/function.utf8-encode.php http://php.net/manual/en/function.mail.php *Valentine* On Tue, May 17, 2011 at 4:59 PM, Eli

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!?