Re: [PHP] Re: logic operands problem

2009-12-07 Thread HostWare Kft.
I don't really get it. This is a select statement working with the datas of one table. A field of a record (namely "page" here) can only take one value, so it is totally nonsense to give XOR for that field. I think you want to select two different recordsets: one with page 1 and 3, and another

Re: [PHP] header problem

2009-09-10 Thread HostWare Kft.
Usually, when I have to redirect the user AFTER headers has been sent (like showing an error message), I write this: location=page_to_send.html But this will redirect the user at once. If you want the user to read the page, you should do something in Javascript with setTimeout(func,timeout) f

[PHP] Where is interbase.dll?

2009-08-13 Thread HostWare Kft.
Hi, I downloaded PHP 5.3.0, and since then I can't use fbird_connect. When I inspected the installed files, I realized that php_interbase.dll is not there! Where is it? Or where can I get it? SanTa

[PHP] Character encoding

2009-08-05 Thread HostWare Kft.
Hi, I have a mysql database, which the users can insert comments. As the users can be from different countries, with different character encoding, the mysql table can contain various special characters. How can I be sure to display these comments properly? I've found the mb_convert_encoding, a

[PHP] Structure of PHP files

2009-07-23 Thread HostWare Kft.
Hi, It isn't really a programming question, but rather a structural. Let's suppose I have a PHP page, which is built by other PHP files' includes. Which is the better approach: in a switch-like statement I include the required PHP files, which contain all the functions, and the HTML code to p

Re: [PHP] Writing to a file

2009-07-03 Thread HostWare Kft.
The classic method is: 1.) read the whole file into an array of strings. 2.) search for the last line 3.) insert a string BEFORE the last line. 4.) write back the whole file to the same name Classic file handling does allow you to append to the end of a file, or recreate as a whole. Usually thes

Re: [PHP] Self-Process php forms or not?

2009-04-24 Thread HostWare Kft.
t;'Sándor Tamás (HostWare Kft.)'" ; "'PHP-General List'" Sent: Friday, April 24, 2009 3:03 PM Subject: RE: [PHP] Self-Process php forms or not? So, on your opinion, we can call that method, on some circumstances, a good practice? What about the moto: "le

Re: [PHP] Self-Process php forms or not?

2009-04-24 Thread HostWare Kft.
I think the main advantage is that if something goes wrong processing the datas, you can show the form again without redirecting again. And if you have to change the behavior of the page, you have to change only one file instead of two. SanTa - Original Message - From: "MEM" To: "

Re: [PHP] PHP-MYSQL Question

2009-04-07 Thread HostWare Kft.
This isn't PHP but mysql question. You didn't mention that the table itslef is created or not. If not, then it is probably a mysql error, maybe your installation of mysql doesn't support INNODB. SanTa - Original Message - From: "abdulazeez alugo" To: Sent: Tuesday, April 07, 2009

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
uot; To: "Virgilio Quilario" Cc: "Sándor Tamás (HostWare Kft.)" ; Sent: Wednesday, March 11, 2009 1:55 PM Subject: Re: [PHP] Silly question - include vs. eval On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: >> Hi, >> >> I wo

[PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
Hi, I wondering what is the difference between include(), and eval(' ?>'.file_get_content().'

Re: [PHP] Code Not entering the value in the Database

2009-01-20 Thread HostWare Kft.
Did I miss something, or you really left the execution of the last $sql? After you put the 'INSERT INTO...' string in $sql, you have to mysql_query it, or you won't get any result. SanTa - Original Message - From: "Chris Carter" To: Sent: Tuesday, January 20, 2009 3:34 PM Subject

[PHP] Finger

2009-01-15 Thread HostWare Kft.
Hi, My problem is that how I can know that a valid e-mail address is exists on the mail server? Is there some PHP function, or protocol, or something? Thanks, SanTa

Re: [PHP] Firebird Backup

2009-01-07 Thread HostWare Kft.
#x27;t have any access to this machine, only FTP and of course, web. The PHP installation doesn't even let me to do exec_command(). SanTa - Original Message - From: "Lester Caine" To: Sent: Wednesday, January 07, 2009 9:07 AM Subject: Re: [PHP] Firebird Backup Sán

[PHP] Firebird Backup

2009-01-06 Thread HostWare Kft.
Hi, I don't know if it's Firebird or PHP question. I want to use remote administration on one of my pages, at least do a backup for a Firebird database. Because the database file is located on a different intranet machine, I have to use service manager to do backup. So I tried: $svc_mgr = ib

Re: [PHP] First record not diplaying

2008-12-22 Thread HostWare Kft.
Yes, the error is here. You get the record count with a mysql_fetch_assoc(), which reads the first record, and then step onto the next one. So the first record's datas will disappear at the next mysql_fetch_assoc() line (which can be found in your while loop). You should NOT fetch the first

Re: [PHP] First record not diplaying

2008-12-22 Thread HostWare Kft.
How do you know the record count for the query? SanTa - Original Message - From: "Gary Maddock-Greene" To: Sent: Monday, December 22, 2008 3:02 PM Subject: [PHP] First record not diplaying Hi, I seem to have a bug in my code but can't see why. My first record does not display when

Re: [PHP] Variable name for constants?

2008-12-11 Thread HostWare Kft.
... and in that way, you can create the name of the constant as you please: $VAR_IMG = 'HOME'; define('IMG_HOME', 'pic.jpg'); echo(constant('IMG_'.$VAR_IMG)); SanTa - Original Message - From: "clive" <[EMAIL PROTECTED]> To: "PHP LIST" Sent: Thursday, December 11, 2008 9:18 AM Subject

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
In fact, if I have to redirect, and I am not sure about headers are sent or not, I usually do: print('window.location=somewhere.php'); That way I can always do the redirection. SanTa - Original Message - From: "Andrew Ballard" <[EMAIL PROTECTED]> To: "David Stoltz" <[EMAIL PROTECTED

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
ks! -Original Message- From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 6:59 AM To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE You should check if php.ini has display_error off. This can prevent all error message to be shown. San

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
For your original problem: If you're unsure if you've sent something to the browser BEFORE the header(), you should check it with header_sent(). This function returns true if something has been sent to the browser. SanTa - Original Message - From: "David Stoltz" <[EMAIL PROTECTED]>

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
You should check if php.ini has display_error off. This can prevent all error message to be shown. SanTa - Original Message - From: "David Stoltz" <[EMAIL PROTECTED]> To: "Richard Heyes" <[EMAIL PROTECTED]> Cc: Sent: Friday, December 05, 2008 12:42 PM Subject: RE: [PHP] Help with IF

Re: [PHP] Picture downloading in IE

2008-12-03 Thread HostWare Kft.
I don't think, because it happens on different machines, with different users. (one of them is a fresh install) SanTa - Original Message - From: Ramesh Thiruchelvam To: Sándor Tamás (HostWare Kft. ) Sent: Wednesday, December 03, 2008 12:05 PM Subject: Re: [PHP] Pi

[PHP] Picture downloading in IE

2008-12-03 Thread HostWare Kft.
Hi, I have a strange error / misfunction with PHP header and IE7. I render a JPG from a database BLOB to show it on a page. In Firefox, when the user clicks on the image, and selects "Save image as... ", (s)he can download it in JPG format. But when a user in IE7 does the same, (s)he only can ge

Re: [PHP] restricted file access

2008-08-28 Thread HostWare Kft.
Through PHP you can access the filesystem, so the folder containing your documents doesn't even have to be on the website. I would do this way: Click here And in the PHP file: file_get_contents(DOCFOLDER . $_GET['filename']) or something like this. SanTa - Original Message - From: "

[PHP] Regexp to get paramname

2008-08-18 Thread HostWare Kft.
Hi, I have these lines to get parameters' name to $regs, but I always get the first one twice. What do I do wrong? $sql = 'select * from hotsys where ALREND=:alrend and SYSKOD=:syskod'; eregi('(:[a-z,A-Z,0-9]+)', $sql, $regs); Thanks, SanTa -- PHP General Mailing List (http://www.php.ne

[PHP] Reporting mail as spam

2008-03-31 Thread HostWare Kft.
Hi, I wrote a little registration routine, which will send a confirmation letter to the user with a random number in the message body (my site is on a host, so I can't write in the subject, and ask the user to reply), which can be clicked then, and my site will finish the registration. My big p

Re: [PHP] www. not working

2008-02-21 Thread HostWare Kft.
"A form" of the web existing long before that depending on your definition of the web. To me it's a way for people to share information. That would cover the BBS world which pre-dates LANs by some distance. Spider webs have existed for many a year... Yeah, but when was the last time you sa

Re: [PHP] Tool for programmer team

2008-01-21 Thread HostWare Kft.
It depends. If the project built up of slightly different modules, putting the coders on a big, white table seems to be a good idea. But if the modules are completely different, you should separate them, so each of them can be focused on their own subject. In this case, you have to have some peo

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread HostWare Kft.
Thanks, but unfortunately my ISP does not implemented PEAR, and uses PHP 4.3.10. - Original Message - From: <[EMAIL PROTECTED]> To: ""Sándor Tamás (HostWare Kft.)"" <[EMAIL PROTECTED]> Cc: Sent: Friday, December 07, 2007 12:07 PM Subject: Re: [PHP

[PHP] How to create multipart e-mail bodies?

2007-12-07 Thread HostWare Kft.
Hi, I don't know if it is a PHP question, but I give it a try. I've been trying this subject for a while, but with less success. Now I can create mail bodies like this: Content-Type: multipart/alternative; boundary="-=Part233475926a47beb07.46978329" ---=Part233475926a47beb07.46978329 Conte