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: php-general@lists.php.net Sent: Friday, December 07, 2007 12:07 PM Subject: Re: [PHP] How to create

[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

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

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 saw

[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

[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

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: A HREF=getfile.php?filename=something.docClick here/A And in the PHP file: file_get_contents(DOCFOLDER . $_GET['filename']) or something like this.

[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

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] Picture

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: php-general@lists.php.net Sent: Friday, December 05, 2008 12:42 PM Subject: RE:

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.
! -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. SanTa

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('SCRIPTwindow.location=somewhere.php/SCRIPT'); That way I can always do the redirection. SanTa - Original Message - From: Andrew Ballard [EMAIL PROTECTED] To: David Stoltz [EMAIL

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 php-general@lists.php.net Sent: Thursday, December 11,

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 g...@maddock-greene.co.uk To: php-general@lists.php.net 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

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

[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 =

Re: [PHP] Firebird Backup

2009-01-07 Thread HostWare Kft.
Sándor Tamás (HostWare Kft.) wrote: Hi, I don't know if it's Firebird or PHP question. Bit of both - probably worth moving to the firebird-php list http://groups.yahoo.com/group/firebird-php/ I want to use remote administration on one of my pages, at least do a backup for a Firebird database

[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] 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 chandan9sha...@yahoo.com To: php-general@lists.php.net

[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().' ?php ')? If there is something I should be aware, please, let me know. Thanks, SanTa

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

2009-03-11 Thread HostWare Kft.
To: Virgilio Quilario virgilio.quila...@gmail.com Cc: Sándor Tamás (HostWare Kft.) sandorta...@hostware.hu; php-general@lists.php.net 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

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 defati...@hotmail.com To:

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

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

2009-04-24 Thread HostWare Kft.
action=?= $_SERVER['PHP_SELF'] ? you can name your file as you want, it will work without rewriting the page. SanTa - Original Message - From: MEM tal...@gmail.com To: 'Sándor Tamás (HostWare Kft.)' sandorta...@hostware.hu; 'PHP-General List' php-general@lists.php.net Sent: Friday, April 24

[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

[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,

[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

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: SCRIPTlocation=page_to_send.html/SCRIPT But this will redirect the user at once. If you want the user to read the page, you should do something in Javascript with

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