[PHP] OT: firstname-lastname fun - SOLVED :) (was: Re: [PHP] preview string with strlen PHP (help))

2007-03-25 Thread Zoltán Németh
l me Zoltán ;) > > (my first name is Zoltán. in Hungary we write names the opposite order > > than anywhere else ;) so that's why my mailbox is set to display 'Németh > > Zoltán' but I sign my mails as 'Zoltán Németh' showing that my first > > n

Re: [PHP] Re: Book Suggestion for ZCE

2007-03-25 Thread Zoltán Németh
greets Zoltán Németh > > -- > itoctopus - http://www.itoctopus.com > ""Danial Rahmanzadeh"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > hey dudes, > > i want to know that which books are good to read before ZCE exam. >

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Zoltán Németh
ail() expects \n or \r\n to be there... greets Zoltán Németh > > This is what I specified: > $eol="\r\n"; > $mime_boundary=md5(time()); > > # Common Headers > $headers .= 'From: '.$fromName.'<'.$fromaddress.'>'.$eol; >

Re: [PHP] Perl find and replace in PHP

2007-03-26 Thread Zoltán Németh
tion.str-replace.php http://hu2.php.net/manual/en/function.preg-replace.php greets Zoltán Németh > > Regards > > Richard Luckhurst > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newline and tab characters

2007-03-26 Thread Zoltán Németh
mustn't strip them. why not strip them before storing the html content into the DB? that way you need to strip them only once, while if you strip them on display you need to strip them once for each request. and you don't need checking with tags and stuff. just do a str_replace(arr

Re: [PHP] Newline and tab characters

2007-03-26 Thread Zoltán Németh
2007. 03. 26, hétfő keltezéssel 13.58-kor Zoltán Németh ezt írta: > 2007. 03. 26, hétfő keltezéssel 13.54-kor Arno Kuhl ezt írta: > > I've just noticed that "\r\n" and "\t" characters create a space when > > rendered in the browser (tested in IE and Fire

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Zoltán Németh
"Syntax Error" ;) I also write a blog in Hungarian at http://www.syntaxerror.hu/ and thus I have an e-mail address [EMAIL PROTECTED] but I thought it would be funny to talk about real syntax errors with a code name Syntax Error :D that's why I use my real name e-mail address here, whi

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
x27;') { *This is suppose to run the below query if > $_POST['max_id'] is not blank* with that line you assign a value to $_POST['max_id'] if you want to see that $_POST['max_id'] is not blank, you should use if ($_POST['max_id'] != '')

Re: [PHP] Language detection with PHP

2007-03-27 Thread Zoltán Németh
like "if it contains 's, 've, 'm many times it's probably english"... I don't really know how to store those rules, and I'm not sure they are good enough (or are there good enough rules) to tell several languages apart... greets Zoltán Németh > Thanks a lot, > > > -William > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
yeah because you assign that value to $first, not to $cc_first what you echo out later... greets Zoltán Németh > > > On 3/27/07, Davi <[EMAIL PROTECTED]> wrote: > > > > Em Terça 27 Março 2007 17:40, Dan Shirah escreveu: > > > I have echoed something

Re: [PHP] Language detection with PHP

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 22.57-kor Tijnema ! ezt írta: > On 3/27/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > 2007. 03. 27, kedd keltezéssel 15.06-kor William Lovaton ezt írta: > > > Hi there, > > > > > > I am trying to implement langu

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
hen probably 1) you misspelled the field name and it's not called first_name 2) the field first_name is empty in the row greets Zoltán Németh > > On 3/27/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > print_r($row_info) display the entire column contents

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
t there is a value in the first_name column of the record. maybe paste here the complete result of: echo ""; var_dump($row_info); echo ""; so I might have some more ideas... greets Zoltán Németh > > On 3/27/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: >

Re: [PHP] POST + QUERY

2007-03-27 Thread Zoltán Németh
27;] you might access the fields by their number or you could use mssql_fetch_assoc() http://www.php.net/manual/en/function.mssql-fetch-assoc.php greets Zoltán Németh > > On 3/27/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > > > > Send us the output of print_r($row_info) &g

Re: [PHP] How can i convert one object to another. Convert Exception object to MyException Object.

2007-03-28 Thread Zoltán Németh
; > function ExceptionHandler($exception) { > // Convert an NoN MyException to an MyException > } > > set_exception_handler('ExceptionHandler'); > --- > > Then when i do a: > throw new Exception('My Message', 1); why not use throw new MyException(&

Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-28 Thread Zoltán Németh
s maybe because of incorrect content-type headers. it is possible that the older browser does not take care about that header, so the content is displayed ok, but the newer browser reads the header, cannot interpret it and so offers the download window check out what headers are the script is sen

Re: [PHP] Timezone offset

2007-03-28 Thread Zoltán Németh
I would think that it should > return +. Am I wrong? maybe because of DST? (it summer time now which I think is +0100) greets Zoltán Németh > > thnx, > Chris > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date/time format?

2007-03-28 Thread Zoltán Németh
gt; other people using it in blogs. I think I can figure out the rest as > I go if I know how to decode the day. Any help or pointers to the "M" > would be GREATLY appreciated! :) > > > what does strtotime return for that string? greets Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date/time format?

2007-03-28 Thread Zoltán Németh
2007. 03. 28, szerda keltezéssel 14.48-kor Travis Doherty ezt írta: > Zoltán Németh wrote: > > >2007. 03. 28, szerda keltezéssel 15.35-kor Jason Pruim ezt írta: > > > > > >>Hi Everyone, > >> > >>First off, I'm using PHP 5.2.0 and apache

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Zoltán Németh
avoid confusion) greets Zoltán Németh > > BTW: figured out the problem, as resolved by Tijnema, ³WHEN² is a reserved > word in mySQL. > > ~~~ > Rahul Sitaram Johari > CEO, Twenty Four Seventy Nine Inc. > > W: http://www.rahulsjohari.co

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Zoltán Németh
works fine on XP/IE7 but still tells me to install some unknown plugin on ubuntu/firefox greets Zoltán Németh 2007. 03. 29, csütörtök keltezéssel 12.41-kor tedd ezt írta: > Hi gang: > > If you people would be so kind as to review this: > > http://sperling.com/examples/captcha/ &

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 21.52-kor Tijnema ! ezt írta: > On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > works fine on XP/IE7 > > but still tells me to install some unknown plugin on ubuntu/firefox > > > > greets > > Zoltán Németh >

Re: [PHP] Date/time format?

2007-03-29 Thread Zoltán Németh
assume you want this calculation within one given day) you could read all rows into an array like $timeinfo = array(); $sql = "SELECT minute, sequence FROM table WHERE day='$day'"; $result = mysql_query($result); while ($row = mysql_fetch_assoc($result)) { $timeinfo[$row['se

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Zoltán Németh
ver htdocs > > folder where my website resides. How do I make these files available to > > download if they are not in my webserver folder? > > > > Thanks! > > A very simple way is to link the > Users/rjohari/Documents/XFER/osm/ESPI/ to some folder inside your www

Re: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 22.00-kor Tijnema ! ezt írta: > On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > 2007. 03. 29, csütörtök keltezéssel 21.52-kor Tijnema ! ezt írta: > > > On 3/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > > &

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
art > > But some how this is not working. It is displaying the 404 page and the > normal page. in the above link you do not give a "page" parameter at all... so from where should the script get it? greets Zoltán Németh > > > > /* function to get an external fil

Re: [PHP] tabbed navegation PHP

2007-03-30 Thread Zoltán Németh
nk you should read http://www.php.net/manual/en/language.operators.php carefully. with the if ($page_name = "default) statement you assign the value "default" to $page_name, not checking equality. that could be done by == greets Zoltán Németh > > > > ?> h

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
y I don't know what the problem is, but I would do it in a much shorter way: $pagename = $_GET['catcode']; if(file_exists("$pagename")) { include "$pagename"; } else { include "404.php"; } about your original question, the script looks basically okay..

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
well, then it's pretty sure that you have mixed up the two variable names somewhere... decide which one you want to use for this and make sure you always use that one in your script greets Zoltán Németh 2007. 03. 30, péntek keltezéssel 14.20-kor Tom Chubb ezt írta: > I think I&#

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
well, I don't know what may be wrong... try echoing out $pagename and is your script only this? or are there other parts? if so, those other parts might be screwing things up... greets Zoltán Németh 2007. 03. 30, péntek keltezéssel 15.36-kor Dwayne Heronimo ezt írta: > hey zoltan, >

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
? maybe you just forget that you include some displaying part after it and that's making the confusion... greets Zoltán Németh > > wierd i tried renaming the > ""Zoltn Nmeth"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > wel

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
lays some page. you should have nothing executing after the error message. like this: $cat_item = $_GET['catcode']; if(file_exists($cat_item)) { include "$cat_item"; } else { include "404.php"; exit; } greets Zoltán Németh > if (!function_exists("

Re: [PHP] simple page not found 404 script - PHP

2007-04-01 Thread Zoltán Németh
quot;inc/"); > > $ext = array ("php","html","htm"); > > $exists = false; > > foreach($ext as $file_ext) { > > if ( file_exists ( HTML.$_GET["catcode"].".".$file_ext ) ) > { > $exists = true; > break; > } > } > >

Re: [PHP] Date/time format?

2007-04-02 Thread Zoltán Németh
2007. 03. 30, péntek keltezéssel 14.00-kor Jason Pruim ezt írta: > On Mar 29, 2007, at 4:52 PM, Zoltán Németh wrote: > > > > > > > > > (I assume you want this calculation within one given day) > > you could read all rows into an array like > > > >

Re: [PHP] Gnome and MIME types

2007-04-02 Thread Zoltán Németh
ome." > > Is that possible, or do I hack my way around making this .gnome > folder less of a security risk? > > Thanks again everyone. You've all been really helpful. > > Nate > I think the home directory of www-data user is by default /var/www this can be set

Re: [PHP] help me to solve this math maze

2007-04-04 Thread Zoltán Németh
gt; > can anyone understand my problem and assists me. $adultmoney = $totalmoney / ($adultnumber + 0.75 * $childnumber); $childmoney = 0.75 * $adultmoney; greets Zoltán Németh > > faisal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Zoltán Németh
ot do this. you are sending output here, html output, so the webserver sends the html headers for it. and later you try to send a pdf and corresponding headers in the same script. that will never work. greets Zoltán Németh > >$file = $_GET['file']; > >// try to sa

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Zoltán Németh
tput started at /var/www/telbit_website/2/products-testudio.php:14) > in /var/www/telbit_website/2/products-testudio.php on line 120 that's what I said before. you echo out some html before the file headers. that will never work. remove the echo statement on line 14 and you should be

Re: [PHP] Problems downloading a PDF

2007-04-04 Thread Zoltán Németh
le so you should decide which mode is requested (for example by checking for $_GET['file'] - if it is set, a file is requested, otherwise not) and do the appropriate action for the request greets Zoltán Németh > > How can i sove this puzzle ? > > Full code follows

Re: [PHP] advice on sql injection/XSS prevention

2007-04-05 Thread Zoltán Németh
replacing the pseudo-codes with the process results greets Zoltán Németh 2007. 04. 5, csütörtök keltezéssel 09.17-kor Bing Du ezt írta: > Hi, > > I'm not an experienced PHP developer. We're hosting a content management > system that allow authorized people to add PHP conte

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread Zoltán Németh
e paper and pencil because never find good app for > > it. if you can recommend - I'll be more than happy to use it and stop > > wasting paper (agree with you on "poor tree" :D) > > I use two things... my brain for the overall idea. A notes.txt file for > speci

Re: [PHP] PHP textbook suggestions?

2007-04-05 Thread Zoltán Németh
#x27;abcdef', 1); > NOT > echo substr("abcdef", 1); there is no difference between the above two echo statements. I'm almost sure that there is absolutely zero difference between the two kind of quotes when there are no variables involved greets Zoltán Németh &g

Re: [PHP] PHP textbook suggestions?

2007-04-06 Thread Zoltán Németh
caped characters and stuff like that. greets Zoltán Németh > > And Chris, about the book, go for PHP5 Power Programming by Prentice Hall, > it's the best in the market in my opinion, it teaches the language itself, > as well as best practices, all in an OOP twist. > >

Re: [PHP] Using /index.php/this/that/343/3 style links but having a prob!

2007-04-06 Thread Zoltán Németh
ms > which would take you to the main forums page... > > So what's going on??? I don't know, everything works OK for me on Linux/Firefox greets Zoltán Németh > > The only code that deal with this is: > $CALL = array_values(array_unique(explode('/',$PHP_SELF)))

Re: [PHP] redirect http to https

2007-04-10 Thread Zoltán Németh
I have separate document roots for the http and the https stuff, say "htdocs" and "htdocs-secure" - this can be done with apache configuration then I need only to put a single redirecting line into the htdocs/index.php like https://my.server.com/";); ?> and that'

Re: [PHP] uk date to mysql date and back again

2007-04-10 Thread Zoltán Németh
sion -MM-DD what about doing it like $dateparts = explode('/', $ukdate); $sqldate = implode('-', array_reverse($dateparts)); greets Zoltán Németh > > and then back again. > > ta, > > R. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2007-04-11 Thread Zoltán Németh
I use jEdit http://www.jedit.org/ and I like it ;) it's not specifically for php but for any kind of programming, and has nice plugins for several programming languages you might edit with it greets Zoltán Németh 2007. 04. 11, szerda keltezéssel 10.12-kor Jonathan Kahan ezt írta: >

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Zoltán Németh
> $action = 1; > > } else if ($_GET['act'] = 'd'){ > > $action = 0; > > } > > > Don't use "=", use "==" (or in some cases "==="). > "=" is for assignment. > > Also, what if $_GET['

Re: [PHP] Re: SQL Source Control

2007-04-11 Thread Zoltán Németh
on for rollback, and if something is broken in a new version and I have to revert a working DB to an older state, well that's real serious trouble (and usually a lot of cursing and stuff like that) so, if anyone has a good solution I also would like to hear it :) greets Zoltán Németh > > Col > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Zoltán Németh
? that was just an example, any kind of hacker SQL code can be put there... if $id should be a number typecast it to int like this: $id = (int) $_GET['id']; greets Zoltán Németh > > TIA > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SQL Source Control

2007-04-12 Thread Zoltán Németh
2007. 04. 11, szerda keltezéssel 21.43-kor Colin Guthrie ezt írta: > Zoltán Németh wrote: > > yeah I have the same problem ;) > > > > I have two kind of SQL files: > > 1) SQL of the complete, blank DB structure - I store it for each main > > version (I shou

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Zoltán Németh
eply 3 > times. > > with showing code there is nothing anybody can do to help. I think you meant "without showing code" in the above line ;) greets Zoltán Németh > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Zoltán Németh
omepage almost ate all > my RAM before firefox finally offered to kill the script that was going nuts > ('because Flash was running slowly' ... > yeah, not to mention the rest of my machine) ... seems the OP really has a > problem with memory consumption ;-). > AdBlock P

Re: [PHP] HTML tab

2007-04-12 Thread Zoltán Németh
"\n\t" in a echo comes out something like this: > > > Hi > > > As you can see, the tab has 4 spaces and in the bottom as 8 spaces and I > just want only 2 spaces in each newline. > How can I do that? > well, you could use "\n " for the

Re: [PHP] HTML tab

2007-04-12 Thread Zoltán Németh
the list in the replies please greets Zoltán Németh > > On 12/04/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2007. 04. 12, csütörtök keltezéssel 21.22-kor Panquekas ezt > írta: > > Hello, > > > > I

Re: [PHP] how to get var name and value from function?

2007-04-15 Thread Zoltán Németh
specially when you're using more dangerous functions like > > system(). > I do validation after this step. :) you should validate before this step, not after. let's say you have an important variable called $system_setting then someone sends you a POST with 'system_set

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Zoltán Németh
y (filemtime($d) => $d); greets Zoltán Németh > > the previous ones are lost. I tried array_push but that doesn't seems to > work, at least I always get syntax errors. Next try was > array_merge(array (...)). So what next? > > O. Wyss > -- PHP General Maili

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Zoltán Németh
is incorrect, I misunderstood what you wanted...) so: $dirs[filemtime($d)] = $d; greets Zoltán Németh > > the previous ones are lost. I tried array_push but that doesn't seems to > work, at least I always get syntax errors. Next try was > array_merge(array (...)). So what next?

Re: [PHP] Appending into associative arrays

2007-04-16 Thread Zoltán Németh
n by doesn't work? what error is thrown if any? what result do you get instead of the expected? at first glance I cannot see anything wrong with your function... greets Zoltán Németh > >function recurseDir ($base, $accending = true, $dirs = array()) { > $handl

Re: [PHP] Appending into associative arrays

2007-04-16 Thread Zoltán Németh
2007. 04. 16, hétfő keltezéssel 10.40-kor Otto Wyss ezt írta: > Zoltán Németh wrote: > > what do you mean by doesn't work? what error is thrown if any? what > > result do you get instead of the expected? > > at first glance I cannot see anything wrong with your function..

Re: [PHP] Appending into associative arrays

2007-04-16 Thread Zoltán Németh
2007. 04. 16, hétfő keltezéssel 10.50-kor Zoltán Németh ezt írta: > 2007. 04. 16, hétfő keltezéssel 10.40-kor Otto Wyss ezt írta: > > Zoltán Németh wrote: > > > what do you mean by doesn't work? what error is thrown if any? what > > > result do you get instead

RE: [PHP] PHP excel capability

2007-04-18 Thread Zoltán Németh
t be included in a csv file or a html table... > Or you can use COM as Jay recommended, but that requires Excel to be > installed on the PC that's running PHP and can get a little ugly. really? I thought it requires only winsuxx to be installed... greets Zoltán Németh > > -T

Re: [PHP] serialize an object

2007-04-19 Thread Zoltán Németh
as far as I know serialize() saves all the properties of the object... and I think you can store objects in session without serializing it since PHP serializes-unserializes it for you automatically - or not? greets Zoltán Németh 2007. 04. 19, csütörtök keltezéssel 13.17-kor Tobias Wurst ezt

Re: [PHP] Migrating php4 to php5 on a shared host

2007-04-19 Thread Zoltán Németh
I suggest installing php locally on a dev machine, testing your code on it and if it works just go on. greets Zoltán Németh 2007. 04. 19, csütörtök keltezéssel 10.03-kor Al ezt írta: > I've got 2 sites on a shared host running php4 and I think it's a matter of > when, not if, I

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Zoltán Németh
the current max - so it gets to the bottom of the list. and I provide buttons to move it up/down/top/bottom which do nothing but adjust the order fields accordingly greets Zoltán Németh > > Stephen > > Wolf wrote: > > IMO, you don't WANT to change that behavior. The categor

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Zoltán Németh
2007. 04. 20, péntek keltezéssel 09.45-kor Stephen ezt írta: > Zoltán Németh wrote: > > 2007. 04. 20, péntek keltezéssel 09.31-kor Stephen ezt írta: > > > > > Opps. Sorry > > > > > > I meant when I create the category the category_order field is blank

Re: [PHP] How Best to Maintain Sort Order Field

2007-04-20 Thread Zoltán Németh
2007. 04. 20, péntek keltezéssel 10.47-kor Stephen ezt írta: > Zoltán Németh wrote: > > nothing special. just like this: > > > > > > and then in handler.php do a switch for cmd and update the rows > > accordingly, then redirect back to the form > > > >

Re: [PHP] Round

2007-08-29 Thread Zoltán Németh
gt; Richard (Heyes) is right. > > > > > > > > Tested on 5.0.4 and 5.2.3. > > > Think this through before you respond... > > Try this > > var_dump( round(-0.26) ); > var_dump( abs( round(-0.26) ) ); > var_dump( round(-1.26) ); > var

Re: [PHP] Generating foldout menus in php

2007-09-03 Thread Zoltán Németh
" - I tried right click, left click, double click there and nothing happens. (on right click the standard firefox context menu appears) greets Zoltán Németh > -- > Richard Heyes > +44 (0)800 0213 172 > http://www.websupportsolutions.co.uk > > Knowledge Base and HelpDe

Re: [PHP] Re: Generating foldout menus in php

2007-09-03 Thread Zoltán Németh
2007. 09. 3, hétfő keltezéssel 16.34-kor Colin Guthrie ezt írta: > Zoltán Németh wrote: > > hmm on Linux/Firefox I can not see any custom menu... there's a box > > saying "Right click here to see menu" - I tried right click, left click, > > double click there

Re: [PHP] Problem With mysql_query

2007-09-05 Thread Zoltán Németh
checkLogin($e, $p) { $emailcheck = $e; $passwdcheck = $p; are the same as: function checkLogin($emailcheck, $passwdcheck) { (I see later you use the variables $e and $p in the echo statements. I suggest decide which to use and use only on

RE: [PHP] blocking exec() silently

2007-09-14 Thread Zoltán Németh
t; disable_functions = "phpinfo" > ... > error_reporting = E_ALL & ~E_WARNING a better solution would be error_reporting = E_ALL display_errors = off log_errors = on this sends all error messages to the apache log, as you mentioned above. see: http://hu2.php.net/manual/en

Re: [PHP] my paging task with PHP does not work. It uses cookie.

2007-09-14 Thread Zoltán Németh
han one table) you could not make use of that stored value anyway. greets Zoltán Németh > > anyway the design was meant for a simple one function call. it's > worked great for small and data loads. > > On 9/14/07, Arvids Godjuks <[EMAIL PROTECTED]> wrote: > > Don&

Re: [PHP] Page Numbering

2007-09-19 Thread Zoltán Németh
ution.com/en/sql/000/123/74.shtml maybe you could use a query like that greets Zoltán Németh > > On 9/19/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > That gives me an array of the 10 records that are being displayed every > > single time. > > > >

Re: [PHP] Upgrade

2007-09-21 Thread Zoltán Németh
tinued from the end of this year, see php.net If you insist on 4.3.0, I don't know of any problems with upgrading to it, but pay attention to all the extensions - upgrade them also if needed, etc... greets Zoltán Németh > > Thanks, > > Ed > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Optimized PHP

2007-10-03 Thread Zoltán Németh
he opcode for double quotes differ only if they contain variables: http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html and anyway, the microseconds you could win with this really don't count that much to be worth the effort... find real bottlenecks and optimize aga

Re: [PHP] the opposite of a join?

2007-10-03 Thread Zoltán Németh
I don't have any better idea. someone else? greets Zoltán Németh > > > Thanks > > > > J > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error messages

2007-10-05 Thread Zoltán Németh
I suggest that you go in baby steps, test frequently, back-up > what worked, and comment out sections of code to eventually isolate > the offending statement(s). > > I long for the time where my editor said "Offending syntax on line 236". my editor still says "pa

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Zoltán Németh
nly 5 mb. Free. > > I've downloaded from: > http://www.codelobster.com > Good luck! > > wow I haven't seen that thread for several weeks. this is really thread resurrection lol :) anyway, this thread has been talked to death a million times, so we could just let it drop finally

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Zoltán Németh
aned up. in order to achieve what you want you should store a 'last action' timestamp or something like that in the session, and upon each request check how many seconds passed since that timestamp and decide session validity based on that. eg: session_start(); if ($_SESSION['

Re: [PHP] Array problem

2007-10-17 Thread Zoltán Németh
ow to cycle throug the arrays, or an > alternative way to achive my goal? something like $pic_ids = array_keys($comment_id); foreach ($pic_ids as $pic_id) { // echo image tag or what you want foreach ($comment_id[$pic_id] as $comment) { // echo comment or what you w

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Zoltán Németh
t, so the server side would not receive the session ID, so the session data would be lost. that's good in some cases, but if you leave cookie_lifetime at its default, cookies expire when the browser is closed. that, combined with a lasttime value stored in the session, should be enough. greets Zol

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Zoltán Németh
I've seen some option like that somewhere but cannot remember where since I don't need it and never needed... greets Zoltán Németh > > On 8/3/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > eclipse with php eclipse, but i may be switching to eclipse pdt once it > > be

Re: [PHP] This, then that.

2007-10-19 Thread Zoltán Németh
ve sent your and have no more output for the > >browser, just use the include() function to run your extra process. > > > >e.g > > > > > > > > > > No, includes don't work that way. > > Your secondary_script.php will be run before y

Re: [PHP] problem calling functions

2007-10-19 Thread Zoltán Németh
tion3($var3){ > // some code > } > > if ($function == 'solution1' or $function == 'solution2' or $function == > 'solution3') > { > $my_solution = $function($var); # this supposed to call one of > "solution" functions, right

Re: [PHP] This, then that.

2007-10-19 Thread Zoltán Németh
f the webroot? I don't think anyone can access it there, if not using your imageserving php which authenticates the user. greets Zoltán Németh > Cheers > > tedd > > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problem calling functions

2007-10-19 Thread Zoltán Németh
27;t think you can put a function name in a variable and call it like > $function($var). why not? http://www.php.net/manual/en/functions.variable-functions.php greets Zoltán Németh > You'd be better of with a case statement in one > function and call the proper solution (qui

Re: [PHP] Question about time...

2007-10-25 Thread Zoltán Németh
ot;winter.jpg"; > > $break; > > } > > echo($var); > > > > And this code is called from within my css file for a background > > image. Yes, I use variables in css. > > > > Cheers, > > > > tedd > > >

Re: [PHP] strange error

2007-10-25 Thread Zoltán Németh
RFC822 encountered some error, and thus returned a PEAR_Error object. on the next line you try to access it as an array, which of course throws a fatal error. try to dump out the error object to see what is the pear error encountered. greets Zoltán Németh > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question

2007-10-26 Thread Zoltán Németh
2007. 10. 26, péntek keltezéssel 15.26-kor arash moosavi ezt írta: > I have Question In PHP Where Can I send it to Give my answer? for example to this list ;) (it's not sure you will get the exact answer you want, but the chances are pretty good) greets Zoltán Németh -- PHP General

[PHP] unexpected '@' in preg_replace???

2007-10-29 Thread Zoltán Németh
hi list, I have this code: ]*>.*?<\/script>/i', //

Re: [PHP] unexpected '@' in preg_replace???

2007-10-29 Thread Zoltán Németh
2007. 10. 29, hétfő keltezéssel 11.17-kor Daniel Brown ezt írta: > On 10/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > hi list, > > > > I have this code: > [snip!] > > Parse error: syntax error, unexpected '@' > > in /home/znemeth/pub

Re: [PHP] unexpected '@' in preg_replace??? - SOLVED

2007-10-30 Thread Zoltán Németh
2007. 10. 29, hétfő keltezéssel 09.17-kor Jim Lucas ezt írta: > Daniel Brown wrote: > > On 10/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > >> hi list, > >> > >> I have this code: > > [snip!] > >> Parse error: syntax error, unexpected &#

Re: [PHP] unexpected '@' in preg_replace???

2007-10-30 Thread Zoltán Németh
2007. 10. 30, kedd keltezéssel 10.21-kor Daniel Brown ezt írta: > On 10/30/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > 2007. 10. 29, hétfő keltezéssel 11.17-kor Daniel Brown ezt írta: > > > On 10/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > > >

Re: [PHP] Not Null?

2007-10-31 Thread Zoltán Németh
> If (Œ$a¹ == Œ ANYTHING¹) { > > some action > > }else{ > > some other action > > } try isset($a) greets Zoltán Németh > > Thank you for any help. > > -- > Steve M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to replace define in a require file with mysql?

2007-11-05 Thread Zoltán Németh
er) ) { > > define($name, $value); > > } > > > > put this in place of your existing defines and you should be good. > > > > Thanks! Works fine! > I need now a modification for that. > > Two values: > SELECT param_name, param_value1, param_value2 FROM you

Re: [PHP] PHP ide?

2007-11-08 Thread Zoltán Németh
for me EasyEclipse for PHP greets Zoltán Németh > > -- > Lester Caine - G8HFL > - > Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact > L.S.Caine Electronic Services - http://home.lsces.co.uk > MEDW - http://home.lsces.co.uk

Re: [PHP] Converting user input for XML-validation

2007-11-16 Thread Zoltán Németh
/hu.php.net/htmlentities (of course first find the part within , thats a quite easy regex. then use htmlentities on that part, then replace it back to the original xml) greets Zoltán Németh > > Thanks a lot, > Ralph > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Zoltán Németh
Mailer: PHP ".phpversion().$eol; > > is a good way to get stuck in a spam filter -- what do you think? I think there are spam filters out there which mark messages with X-Mailer: PHP as spam because many incorrectly coded php mail forms have been already abused by spammers... bu

Re: [PHP] bank query and curl

2007-11-19 Thread Zoltán Németh
count > > information! I suggest you change banks. > > With that attitude you'll end up keeping your money under your bed. > Anything my browser can do curl can do. hmm, my bank won't let me access my account with only a browser. it uses some additional authentication, e

  1   2   3   4   >