Re: [PHP] $_SESSION v. Cookies

2008-05-08 Thread Németh Zoltán
On Wed, May 7, 2008 at 2:35 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: On Wed, May 7, 2008 at 2:22 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400

Re: [PHP] included file var scope

2008-04-08 Thread Németh Zoltán
In index.php rather than declaring vars like so... $var = 'value'; ...declare them in the $GLOBALS array like so... $GLOBALS['var'] = 'value'; $var is then in the global scope regardless of where it was set. -Stut That would work. However I'm looking for a more generic solution,

Re: [PHP] Can someone tell me what a tilde means ?

2008-04-08 Thread Németh Zoltán
The humble tilde (~). I came across it the other day in some PHP code [code]~E_ERROR[/code] I'm curious, can't find any documentation on it. In math it refers to propostional logic, is it the same thing in PHP ? ~ $aNot Bits that are set in $a are not set, and vice versa.

Re: [PHP] Random Unique ID

2007-03-23 Thread Németh Zoltán
2007. 03. 22, csütörtök keltezéssel 12.58-kor tedd ezt írta: At 4:53 PM +0100 3/22/07, Németh Zoltán wrote: 2007. 03. 22, csütörtök keltezéssel 11.42-kor tedd ezt írta: As for efficiency, that's probably not even worth mentioning in this case. why not? you would use 2 sql queries

Re: [PHP] Random Unique ID

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 08.13-kor Robert Cummings ezt írta: On Fri, 2007-03-23 at 09:15 +0100, Németh Zoltán wrote: // method 2 $time = microtime(TRUE); for ($i = 1; $i = 5000; $i++) { $done = FALSE; while (!$done) { $id = md5((microtime(TRUE) * (rand

Re: [PHP] POST a variable

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 10.45-kor Dan Shirah ezt írta: Okay, I feel like the correct answer to this is about 2mm back in my grey matter. 1. I have a query that pulls the last row number when a newly inserted record is added: $maximum=SELECT MAX(payment_id) FROM payment_request;

Re: [PHP] POST a variable

2007-03-23 Thread Németh Zoltán
are very, very minimal. We're talking about MAYBE a 2-3 millisecond gap? On 3/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 23, péntek keltezéssel 10.45-kor Dan Shirah ezt írta: Okay, I feel like the correct answer to this is about 2mm back in my

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

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 16.55-kor Dwayne Heronimo ezt írta: Dear all, hmm.. sorry the $previewstext thing was a typo in my mail. But yes it is working but it will only display the first record of the recordset. I have like a list for items with short text in a page and of

Re: [PHP] Random Unique ID

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 15.13-kor tedd ezt írta: At 9:15 AM +0100 3/23/07, Németh Zoltán wrote: 2007. 03. 22, csütörtök keltezéssel 12.58-kor tedd ezt írta: At 4:53 PM +0100 3/22/07, Németh Zoltán wrote: 2007. 03. 22, csütörtök keltezéssel 11.42-kor tedd ezt írta

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

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: YES this works thank nemeth: your welcome but please call 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

Re: [PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Németh Zoltán
2007. 03. 22, csütörtök keltezéssel 12.48-kor Dwayne Heronimo ezt írta: thx for the input. I was afraid that it would be option 1 because it is more complex. why would resizing and then storing it be more complex than resizing and then displaying it? greets Zoltán Németh I will start

Re: [PHP] Random Unique ID

2007-03-22 Thread Németh Zoltán
2007. 03. 22, csütörtök keltezéssel 11.24-kor tedd ezt írta: At 11:18 AM -0600 3/21/07, [EMAIL PROTECTED] wrote: Hello, I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no

Re: [PHP] Random Unique ID

2007-03-22 Thread Németh Zoltán
2007. 03. 22, csütörtök keltezéssel 11.42-kor tedd ezt írta: At 4:28 PM +0100 3/22/07, Németh Zoltán wrote: 2007. 03. 22, csütörtök keltezéssel 11.24-kor tedd ezt írta: At 11:18 AM -0600 3/21/07, [EMAIL PROTECTED] wrote: Hello, I want to add a random unique ID to a Mysql table

Re: [PHP] Random Unique ID

2007-03-22 Thread Németh Zoltán
2007. 03. 22, csütörtök keltezéssel 12.58-kor tedd ezt írta: At 4:53 PM +0100 3/22/07, Németh Zoltán wrote: 2007. 03. 22, csütörtök keltezéssel 11.42-kor tedd ezt írta: As for efficiency, that's probably not even worth mentioning in this case. why not? you would use 2 sql queries

RE: [PHP] Problem with MySQL

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 00.04-kor Richard Lynch ezt írta: On Tue, March 20, 2007 11:08 am, Ford, Mike wrote: what do you want with that '@' here? that operator can be used to suppress error messages when calling functions but not when using a variable This is most definitely way

Re: [PHP] Flash animation without install Flash!

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 09.58-kor Helder Lopes ezt írta: Hi people, Because the problems with virus in internet the people dont install activex controls. My question is: How to put a flash in the website without asking the person to install activex control?? I think there is no

Re: [PHP] read only texbox to html with php

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta: I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn't work It is inserted into a variable via a form textarea $mail_text.

Re: [PHP] PHP mail() problem

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 10.54-kor Delta Storm ezt írta: Hi, I'm having problem with character encoding in PHP mail functions. CODE: $headers.= Content-Type: text/html; charset=iso-8859-1; $headers .= MIME-Version: 1.0 ; $headers .=

Re: [PHP] Problem with MySQL

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 15.09-kor Pavel Kaznarskiy ezt írta: Hello ! I have problem with access in mysql it is my code: html headtitleSQL Query Sender/title/head body ?php $host=; $user=; $password=; /* Section that executes query */ if(@$_GET['form'] == yes) what do you want

RE: [PHP] Problem with MySQL

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 16.08-kor Ford, Mike ezt írta: On 20 March 2007 13:26, Németh Zoltán wrote: 2007. 03. 20, kedd keltezéssel 15.09-kor Pavel Kaznarskiy ezt írta: Hello ! I have problem with access in mysql it is my code: html headtitleSQL Query Sender/title

Re: [PHP] Re: Question

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 16.31-kor Dan Shirah ezt írta: Because in my application it is VERY VERY VERY important that I track the specific details for any given user in any given account. The user data changes frequently and I need to be able to track user information changes, numbers

Re: [PHP] logging erros and user access to logs

2007-03-19 Thread Németh Zoltán
2007. 03. 15, csütörtök keltezéssel 16.08-kor Jason Joines ezt írta: Richard Lynch wrote: On Thu, March 15, 2007 2:47 pm, Jason Joines wrote: Richard Lynch wrote: On Thu, March 15, 2007 8:25 am, Jason Joines wrote: Richard Lynch wrote: Get the errors OFF the web page (display_errors

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-19 Thread Németh Zoltán
2007. 03. 14, szerda keltezéssel 19.30-kor Børge Holen ezt írta: On Tuesday 13 March 2007 22:09, Tijnema ! wrote: On 3/13/07, Bruce Gilbert [EMAIL PROTECTED] wrote: On 3/13/07, Tijnema ! [EMAIL PROTECTED] wrote: So you just need to set the content-type and output add this to the

Re: [PHP] Parse

2007-03-14 Thread Németh Zoltán
2007. 03. 14, szerda keltezéssel 07.53-kor al phillips ezt írta: I keep getting a parse error line x when trying view php info() Can you help please? no, if you don't post the exact error message and your code here btw, it is probably a typo in your code at line x, but we cannot see it as

Re: [PHP] Using a reentrant form

2007-03-13 Thread Németh Zoltán
2007. 03. 13, kedd keltezéssel 08.19-kor Todd Cary ezt írta: To validate a page, I set the form value to the page name the user is on. Then there is a hidden variable, looped that is set to 1. By checking looped, I know if the user has re-entered the form so I can do my validation checks.

Re: [PHP] PHP URL issues

2007-03-12 Thread Németh Zoltán
2007. 03. 12, hétfő keltezéssel 05.50-kor Don Don ezt írta: I've got the following url rewriting problem. on page 1 i've got this p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p is this all within something like an echo statement with marks? otherwise the values

RE: [PHP] Using array_search I get error

2007-03-12 Thread Németh Zoltán
2007. 03. 12, hétfő keltezéssel 09.21-kor Richard Kurth ezt írta: -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On

Re: [PHP] FW: looking for two remote functions

2007-03-10 Thread Németh Zoltán
I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zoltán Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt írta: Thank you Mickey, but I have already looked in there and the function

Re: [PHP] How to verify Folder Existence?

2007-03-09 Thread Németh Zoltán
2007. 03. 9, péntek keltezéssel 16.48-kor Helder Lopes ezt írta: Hi people, how to verify if folder exists in server?? http://hu2.php.net/manual/en/function.is-dir.php greets Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript and PHP interaction

2007-03-08 Thread Németh Zoltán
2007. 03. 8, csütörtök keltezéssel 09.14-kor Alain Roger ezt írta: Hi, I would like to know if there is a way how PHP code can extract from ElementID some property values. for example, i have the following PHP page : ?php print div class='maindiv' id='id_maindiv'my main div/div;

Re: [PHP] Can i use DateTime Object with an timestamp as reference instead of an formated string.

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta: Hello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, but it seems it needs a string as reference, so i can't use a

Re: [PHP] Textarea update problem

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 16.28-kor Delta Storm ezt írta: [EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write the script for you? - Rick Original Message Date: Wednesday, March 07, 2007 01:54:04 PM +0100 From:

Re: [PHP] php and javascript error

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This

Re: [PHP] how to access private property?

2007-03-06 Thread Németh Zoltán
2007. 03. 6, kedd keltezéssel 20.08-kor Nicholas Yim ezt írta: Hello Everyone, [code] class MyClass { private $prop; } $obj=new MyClass; [/code] is there anyway to read and write MyClass-prop, except serialize write methods to do this class MyClass {

Re: [PHP] module and access rights

2007-03-05 Thread Németh Zoltán
2007. 03. 5, hétfő keltezéssel 15.05-kor Alain Roger ezt írta: I already started to use SSL, but i do not understand how to keep it running. I mean after user has been authenticated and authorized to go further, all next web pages are opened using PHP location(https://...); command.

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Németh Zoltán
2007. 03. 2, péntek keltezéssel 13.56-kor Punit Neb ezt írta: hello, I am a newbie trying to create on the fly thumbnail images on a debian sarge system with PHP Version 4.3.9-1. The following code is used ? function thumbnail_img($photo_img_name) { $percent = 0.5;

Re: Fw: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Németh Zoltán
a confirmation email and that's all... greets Zoltán Németh - Original Message - From: Németh Zoltán [EMAIL PROTECTED] To: Haydar Tuna [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, March 02, 2007 12:19 PM Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups

[PHP] Re: Audio CAPTCHA

2007-02-28 Thread Németh Zoltán
2007. 02. 27, kedd keltezéssel 14.15-kor tedd ezt írta: Németh: (call me Zoltán please as that's my first name ;) ) As you know, I'm having more problems with my CAPTCHA experiment, so back to basics. (as my mum used to say No good deed goes unpunished. I need your review. All you

Re: [PHP] ID problem

2007-02-28 Thread Németh Zoltán
2007. 02. 28, szerda keltezéssel 10.24-kor Delta Storm ezt írta: Hi, I'm building an CMS system (for practice and experience :)). And of course like many times before I have encountered a problem. The problem is: I have a index.php that takes the news from the database and publishes

Re: [PHP] audio CAPTCHA - was Combining sound files

2007-02-27 Thread Németh Zoltán
2007. 02. 26, hétfő keltezéssel 12.06-kor tedd ezt írta: Hi: Dumb error, please try again: http://www.sperling.com/a/c Plus, the point is to click the Speak CAPTCHA button and see if it speaks. XP/IE7: the error message is gone, but button does nothing Linux/Firefox: speak button

Re: [PHP] PHP shell_exec

2007-02-27 Thread Németh Zoltán
2007. 02. 27, kedd keltezéssel 13.17-kor h ezt írta: Hi I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible

Re: [PHP] RE: [PHP-DB] NOT NULL query

2007-02-26 Thread Németh Zoltán
SELECT * FROM table WHERE NOT ISNULL(field_3) (in MySQL) greets Zoltán Németh 2007. 02. 26, hétfő keltezéssel 15.21-kor Steven Macintyre ezt írta: SELECT * FROM table WHERE field_3 IS NOT NULL -Original Message- From: Ron Piggott [mailto:[EMAIL PROTECTED] Sent: 26 February 2007

Re: [PHP] audio CAPTCHA - was Combining sound files

2007-02-26 Thread Németh Zoltán
I got the same notice on the top of the page. besides that, when clicking the speak captcha button nothing happens greets Zoltán Németh 2007. 02. 26, hétfő keltezéssel 08.12-kor benifactor ezt írta: tried, and failed. got this error: Notice: Undefined variable: captcha in

Re: [PHP] Multiple Submit

2007-02-26 Thread Németh Zoltán
2007. 02. 26, hétfő keltezéssel 11.23-kor Dan Shirah ezt írta: Hello all, I have a page that has multiple submits on it. One submit is within my javascriptfor form checking, the other submit is a button used to populate all customer information if an order ID is entered. Problem: I

Re: [PHP] audio CAPTCHA - was Combining sound files

2007-02-26 Thread Németh Zoltán
2007. 02. 26, hétfő keltezéssel 08.26-kor benifactor ezt írta: i was just trying again, and entered 406 via keyboard and pressed submit, and it said i was successful, then i pressed back on my browser and no longer had the error. it displayed the captcha at the top of the page where the

Re: [PHP] Option Value

2007-02-23 Thread Németh Zoltán
2007. 02. 23, péntek keltezéssel 10.10-kor Dan Shirah ezt írta: On my form I have several drop down menus. They all work and display the corrent values. However, I would like the initial display of the form to show each dropdown as blank. $q_status = SELECT * FROM status_codes ORDER BY

Re: [PHP] Problems processing UNIX timestamps in events directory

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 09.33-kor Dave Goodchild ezt írta: Thanks all for your input - you're all correct, I don't really need to use timestamps as I am only interested in dates so will be reworking the app to use dates only. I still need to generate sequences of dates and really don't

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Németh Zoltán
works on linux/firefox and xp/ie7 greets Zoltán Németh 2007. 02. 21, szerda keltezéssel 12.12-kor Scott Gunn ezt írta: All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what sort

Re: [PHP] How to call image from mySql to php file

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 06.26-kor Chris Carter ezt írta: I have a field in database called logos which has one value images/logos/some_logo.jpg In my php I am trying to call it in my php file as image. With this code. $sno = $_REQUEST['sno']; $query=SELECT logos FROM table

Re: [PHP] Storing compiled code on the server

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 06.52-kor Brian Dunning ezt írta: I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the server itself. I have no idea how

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Németh Zoltán
2007. 02. 21, szerda keltezéssel 08.58-kor Chris Ditty ezt írta: Works fine on FF/XP Looks nice btw. (sorry for the dup post Nemeth) no problem however, my first name is Zoltán and last name is Németh ;) (it is written in the opposite order in Hungary that's why it appears as Németh Zoltán

Re: [PHP] Re: WHERE problem

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 01.33-kor Fergus Gibson ezt írta: How about this instead, Mike? ?php // some code $fortune = mysql_query(SELECT text FROM fortunes ORDER BY RAND() LIMIT 1); $fortune = mysql_fetch_row($fortune); $fortune = sprintf( 'span class=quotecycquot;%squot;br

Re: [PHP] Mozilla/Opera issue

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 21.40-kor Chris Aitken ezt írta: Hi All, I am clutching at straws here, but I have come across an issue that I don't know whether it's a PHP problem in my coding, or HTML, or something entirely different but I've never seen this happen before, and this

Re: [PHP] Manual contradiction concerning string access?

2007-02-20 Thread Németh Zoltán
AFAIK the english manual is more up to date, so I would follow that greets Zoltán Németh 2007. 02. 20, kedd keltezéssel 17.15-kor Christian Heinrich ezt írta: Dear list, today, I read in a german PHP forum about a problem with accessing an offset of a string. For example, if you have a

Re: [PHP] WHERE problem

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 08.17-kor Jim Lucas ezt írta: Mike Shanley wrote: I'd like to think I understood code a little better than this, but I've got a problem with my WHERE... I know it's the WHERE because I get a good result when I leave it out. And the random function is

Re: [PHP] WHERE problem

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 08.28-kor Jim Lucas ezt írta: Németh Zoltán wrote: 2007. 02. 20, kedd keltezéssel 08.17-kor Jim Lucas ezt írta: Mike Shanley wrote: I'd like to think I understood code a little better than this, but I've got a problem with my WHERE... I know it's

Re: [PHP] Understanding session variables with input field and register_global

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 17.32-kor Otto Wyss ezt írta: I've an input field in a form input name=username type=text ... and with register_global I can use this field in PHP as variable $username. Yet if I use a session variable $_SESSION['username'] = 'value' the variable

Re: [PHP] WHERE problem

2007-02-20 Thread Németh Zoltán
2007. 02. 20, kedd keltezéssel 11.39-kor [EMAIL PROTECTED] ezt írta: Different strokes for different folks... Might I toss a new recommendation into the mix? SELECT text FROM fortunes ORDER BY RAND() LIMIT 1; that's not new :) a couple of people recommended it earlier today/yesterday

Re: [PHP] Problem Directing the Page with header

2007-02-16 Thread Németh Zoltán
2007. 02. 15, csütörtök keltezéssel 18.41-kor Ashish Rizal ezt írta: Hey Jim, Thanks for the quick response. I have actually made the whole code on same page (login.php) and the functions that i used in this code are in functions.php. Now this time it is showing the warning : Warning: Cannot

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Németh Zoltán
2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta: On 16/02/07, Eli [EMAIL PROTECTED] wrote: Hi, Why isn't there a function that acts like array_pop() returns a pair of key-value rather than the value only ? Reason is, that in order to pop the key-value pair, you do:

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Németh Zoltán
2007. 02. 16, péntek keltezéssel 10.47-kor Robin Vickery ezt írta: On 16/02/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta: On 16/02/07, Eli [EMAIL PROTECTED] wrote: Hi, Why isn't there a function that acts like

Re: [PHP] Banner rotation with links

2007-02-14 Thread Németh Zoltán
2007. 02. 14, szerda keltezéssel 08.29-kor Chris Carter ezt írta: How can I rotate a banner as well as the link in it within a page using PHP. This can be done as a include file php. Anybody please supply some code or a link for this. please go STFW for banner rotation php script greets

Re: [PHP] [PHP 5.0] save HTML form to .php file

2007-02-12 Thread Németh Zoltán
On h, 2007-02-12 at 21:04 +1100, Chris Henderson wrote: My HTML form submits data to a php form and the php form displays it. I was wondering if I could save the data in the php form so whoever opens it can see the data. At the moment, if I open action.php from a different computer or browser

Re: [PHP] Beginner Questions regarding Mail and Forms

2007-02-12 Thread Németh Zoltán
On h, 2007-02-12 at 11:13 +0100, Matthias S. wrote: Hi there, I've got two bloody beginner questions: I've created a form with various text input fields. One is to hold a numeric value (age). Upon submission, I try to retrieve the value of this field like this: $age = $_POST['_txtAge'];

Re: [PHP] Beginner Questions regarding Mail and Forms

2007-02-12 Thread Németh Zoltán
On h, 2007-02-12 at 14:16 +0100, Matthias S. wrote: hi zoltan, thanks for your reply. i've tried the -f switch but the only effect it has is an error message ;) Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. ehh, sorry, I

Re: [PHP] Beginner Questions regarding Mail and Forms

2007-02-12 Thread Németh Zoltán
On h, 2007-02-12 at 14:54 +0100, Matthias S. wrote: hi jochem, thanks. i've tripplechecked on the names, but just in case I miss something obvious, I'll post the entire snippets. +++ HTML form +++ form action=templates/prokop/submit.php method=post input type=hidden name=_type value=2

RE: [PHP] Beginner Questions regarding Mail and Forms

2007-02-12 Thread Németh Zoltán
On h, 2007-02-12 at 14:09 +, Edward Kay wrote: div class=FormLabelAge span class=translateAlter/span:/div input type=text name=txtAge maxlength=50 style=width:70px; There's your problem: name=txtAge. For your PHP script to work you need name=_txtAge. in his last email the OP has the

Re: [PHP] array within array

2007-02-09 Thread Németh Zoltán
On p, 2007-02-09 at 09:24 +0200, Steven Macintyre wrote: Hi all, I have an array ($articles) that contains content in this format Textbr More text I am currently calling the creation of the array as such; $articles = split(Section break, $mystring); -- this works NOW ... I need to

Re: [PHP] array within array

2007-02-09 Thread Németh Zoltán
On p, 2007-02-09 at 10:10 +0100, Németh Zoltán wrote: On p, 2007-02-09 at 09:24 +0200, Steven Macintyre wrote: Hi all, I have an array ($articles) that contains content in this format Textbr More text I am currently calling the creation of the array as such; $articles

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote: Okay, I edited my page per some suggestions here. Below is what I now have: script language=JavaScript function checkForm() { // ** START ** if (inputForm.cc_phone_number.value == ) { alert( Please enter a phone number. );

Re: [PHP] graphical form validation

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 13:27 +, Ross wrote: Does anyone know of a form validation class available that gives (i) feedback in a graphical way like this (the ticks and crosses) http://forums.oscommerce.com/index.php?act=Regcoppa_user=0termsread=1coppa_pass=1 this is available to

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
solved it... but I'm not sure whether it was exactly the same problem or not, so it might be complete bullshit ;) greets Zoltán Németh On 2/8/07, Németh Zoltán [EMAIL PROTECTED] wrote: On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote: Okay, I edited my page per some

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote: Okay, I'll try your spacer solution. Where do you think I should add it? I put it right before the /form tag, but I think you could put it anywhere between the form and the /form greets Zoltán Németh On 2/8/07, Németh Zoltán [EMAIL

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Németh Zoltán
On cs, 2007-02-08 at 09:09 -0500, Dan Shirah wrote: Nope, same result unfortunately. well, sorry, then my memories were incorrect maybe I should run a memtest86 on myself ;) greets Zoltán Németh On 2/8/07, Németh Zoltán [EMAIL PROTECTED] wrote: On cs, 2007-02-08 at 08:56 -0500

Re: [PHP] Sorting a multidimensional array

2007-02-08 Thread Németh Zoltán
array_multisort? http://php.net/manual/en/function.array-multisort.php hope that helps Zoltán Németh On cs, 2007-02-08 at 14:08 +, Dave Goodchild wrote: Hi all. I am building an online events directory and as part of the system users can search for events by date, category etc. The

Re: [PHP] Login script login

2007-02-02 Thread Németh Zoltán
On p, 2007-02-02 at 12:10 +, Dave Carrera wrote: Hi Stut, I think i have found where i am going wrong. Its in the comparison login for the db result. So i select * from jfjfjfjf where custno=$_POST[number] But now i am getting messed up with if cust no not found then all i get

Re: [PHP] Year

2007-02-02 Thread Németh Zoltán
On p, 2007-02-02 at 10:11 -0500, Dan Shirah wrote: Hello all, I am trying to populate a dropdown list to contain the current year to 10 years in the future. Below is the code I'm using: ?PHP for ($y=0;$y=10;$y++) { $years=date http://php.net/date('Y')+$y; $short_years=date

Re: [PHP] Socket problem plz read.

2007-02-01 Thread Németh Zoltán
On cs, 2007-02-01 at 14:45 +0100, Scripter47 wrote: Richard Lynch skrev: On Wed, January 31, 2007 9:39 am, Németh Zoltán wrote: On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote: I'm making a simple socket server that just receive some data, and then send some data back again

Re: [PHP] Who uses PHP

2007-02-01 Thread Németh Zoltán
On cs, 2007-02-01 at 10:19 -0500, Eric Gorr wrote: On Feb 1, 2007, at 10:06 AM, Jochem Maas wrote: Eric Gorr wrote: On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: Eric Gorr wrote: I've heard some concern expressed that PHP might be more insecure then other methods of

Re: [PHP] nested, referenced foreach implicit current array pointer issues

2007-02-01 Thread Németh Zoltán
On cs, 2007-02-01 at 10:53 -0500, Robert Cummings wrote: On Thu, 2007-02-01 at 16:42 +0100, Roman Neuhauser wrote: If PHP was statically typed, global variables would still be a bad smell. They are bad smell in C++ and Java, for example. It's too easy to call getfoo() before you have

Re: [PHP] Socket problem plz read.

2007-01-31 Thread Németh Zoltán
On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote: I'm making a simple socket server that just receive some data, and then send some data back again to the client. EDIT: I forgot to tell that i need help! I have search around for hours now, and the examples are always not what I needed

Re: [PHP] php code to upload a url correctly

2007-01-26 Thread Németh Zoltán
On p, 2007-01-26 at 14:10 +, Corden James (RW3) CMMC Manchester wrote: I have a form in which users submit a url. I am having problems as some people submit the url in the format http://www.blah.blah.org http://www.blah.blah.org/ while others submit in the format www.blah.blah.org

Re: [PHP] php code to upload a url correctly

2007-01-26 Thread Németh Zoltán
On p, 2007-01-26 at 16:46 +0100, Jochem Maas wrote: Németh Zoltán wrote: On p, 2007-01-26 at 14:10 +, Corden James (RW3) CMMC Manchester wrote: I have a form in which users submit a url. I am having problems as some people submit the url in the format http://www.blah.blah.org http

RE: [PHP] where match question

2007-01-24 Thread Németh Zoltán
On k, 2007-01-23 at 22:49 -0700, Don wrote: On k, 2007-01-23 at 00:58 -0800, Jim Lucas wrote: Németh Zoltán wrote: On k, 2007-01-23 at 19:46 +1100, chris smith wrote: On 1/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I

Re: [PHP] Unserialize problem (and or bug)

2007-01-24 Thread Németh Zoltán
On sze, 2007-01-24 at 17:17 +0200, Sancar Saran wrote: Hi, After updating company test server to dotdeb 5.2.0 it star to give memory problems (even 32mb session). I tought it was because of suhosin. And I cannot update that server to vanilla debian php5 package because it was a sarge so

Re: [PHP] where match question

2007-01-23 Thread Németh Zoltán
On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I have a db field that contains zip codes separated by comas. I am trying to get php to return all of the rows that contain a particular zip code. $query = SELECT * FROM info WHERE MATCH (partialZIP) AGAINST

Re: [PHP] where match question

2007-01-23 Thread Németh Zoltán
On k, 2007-01-23 at 19:46 +1100, chris smith wrote: On 1/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I have a db field that contains zip codes separated by comas. I am trying to get php to return all of the rows

Re: [PHP] where match question

2007-01-23 Thread Németh Zoltán
On k, 2007-01-23 at 00:58 -0800, Jim Lucas wrote: Németh Zoltán wrote: On k, 2007-01-23 at 19:46 +1100, chris smith wrote: On 1/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I have a db field that contains zip codes separated

Re: [PHP] Newbie - help with a foreach

2007-01-22 Thread Németh Zoltán
On v, 2007-01-21 at 01:28 -0800, pub wrote: On Jan 18, 2007, at 2:43 AM, Németh Zoltán wrote: first, do you want to allow several jobs for the same company to be stored in the DB and appear on the page, right? (if not, then why are you storing them in separate tables?) Yes

Re: [PHP] Newbie - help with a foreach

2007-01-19 Thread Németh Zoltán
On cs, 2007-01-18 at 20:46 +0100, Jochem Maas wrote: Németh Zoltán wrote: On cs, 2007-01-18 at 02:04 -0800, pub wrote: On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: ... maybe you should use a parameter for it, place it into the link in the first query loop, get it here

[PHP] preg_match problem

2007-01-19 Thread Németh Zoltán
Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all word characters as mentioned at http://hu2.php.net/manual/hu/reference.pcre.pattern.syntax.php plus the '/' character, and at least 6 characters. But it throws Warning: preg_match(): Unknown

Re: [PHP] preg_match problem

2007-01-19 Thread Németh Zoltán
On p, 2007-01-19 at 15:39 +, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-19 15:25:38 +0100: Hi all, I have a simple checking like if (preg_match(/[\w\x2F]{6,}/,$a)) as I would like to allow all word characters as mentioned at

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Németh Zoltán
I can't really understand what your problem is, because it seems to me that the site is working like you want it to work. Or not? And if there is a problem with the code then please show us the code somehow, not the resulting webpage greets Zoltán Németh On cs, 2007-01-18 at 01:31 -0800, pub

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Németh Zoltán
on the left top navigation! Does that make sense? On Jan 18, 2007, at 1:43 AM, Németh Zoltán wrote: I can't really understand what your problem is, because it seems to me that the site is working like you want it to work. Or not? And if there is a problem with the code then please show us

Re: [PHP] Newbie - help with a foreach

2007-01-18 Thread Németh Zoltán
On cs, 2007-01-18 at 02:04 -0800, pub wrote: On Jan 18, 2007, at 2:00 AM, Németh Zoltán wrote: ok, but how could anyone help without seeing your code? greets Zoltán Németh Here is the code: Here is the entire page: !-- nav/box 1 starts here -- ?php include(../include

Re: [PHP] Broken compatibility with escaping { in php 5.2

2007-01-18 Thread Németh Zoltán
On cs, 2007-01-18 at 14:19 +0100, Jochem Maas wrote: Bogdan Ribic wrote: Hi all, Try this: $a = ''; echo \{$a}; from php 4, it outputs {}, from php 5.2 (one that comes with Zend 5.5) no-one here supports Zend. it outputs \{}, thus breaking existing scripts. AFAICT the

Re: [PHP] web form data to arrays?

2007-01-17 Thread Németh Zoltán
On sze, 2007-01-17 at 15:23 +0200, William Stokes wrote: Hello, I have a script which retrieves rows from DB and prints them to a user editable form to a web page. I don't know how to print the form objects so that all editable fields are put to arrays for updating them to DB. I have

Re: [PHP] web form data to arrays?

2007-01-17 Thread Németh Zoltán
On sze, 2007-01-17 at 16:13 +0200, William Stokes wrote: But if the form is printed with foreach don't I need some type of counter? Otherwise the form that is posted will contain only the data of the last iteration of the loop that wrote the original form. right? -Will so you want to

Re: [PHP] web form data to arrays?

2007-01-17 Thread Németh Zoltán
And how does it work? does it create a sub-array of $_POST? And is it documented somewhere in the manual? Greets Zoltán Németh On sze, 2007-01-17 at 10:54 -0500, Mike Smith wrote: input type=text name=name[] *note the []. -- Mike -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Unbuffered Query

2007-01-15 Thread Németh Zoltán
I think mysql_data_seek throws this warning also if there is no data in the result object at all, so I would check the result before positioning greets Zoltán Németh 2007. 01. 12, péntek keltezéssel 23.30-kor Richard Lynch ezt írta: I have this process that dumps out database records to static

  1   2   >