[PHP] Re: header headers_sent BUG

2003-07-23 Thread Ivo Fokkema
You might want to check whether or not your header output is getting buffered. My suggestion is a flush() after the fist call. I'm not an expert on this, it's just an idea. HTH -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands James M. Luedke [EMAIL PROTECTED

[PHP] Re: Opinon please - Host refuses to install a later version than 4.2.3 - says they're too buggy.

2003-07-23 Thread Ivo Fokkema
the information necessary. I'm not sure about other bugs but I haven't encountered other problems. -- Ivo Fokkema PHP MySQL programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Ivo Fokkema
'] and $_SERVER['PHP_SELF'] be different? TIA, -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php function on php.net

2003-07-24 Thread Ivo Fokkema
, but you will be redirected. Therefor you can use $_SERVER['REQUEST_URI'] in your 404-page to check what the visitor was looking for. HTH, -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Hi list, Just out of curiosity I would like to know if anyone can tell me the difference between some $_SERVER variables that generate the same output (in my test-file

[PHP] ereg() can't recognize characters such as èéêë...

2003-07-29 Thread Ivo Fokkema
}); print ($val); ? TIA! -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ereg() can't recognize characters... [SOLVED]

2003-07-29 Thread Ivo Fokkema
*() functions then? Not that I think they would be much better but... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Ivo Fokkema [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi list, I read through the manual and tried to find something on google, but I didn't come

[PHP] Re: anchor in php page

2003-07-29 Thread Ivo Fokkema
-the value - in the string query would be marked up as: ... // thepage.asp a name=here blah,blah,blah, etc... /a ... Can this be done using php? Why not use : www.thesite.com/thepage.asp#here ? -- Ivo Fokkema PHP MySQL programmer Leiden

[PHP] Re: ereg() can't recognize characters... [SOLVED]

2003-07-29 Thread Ivo Fokkema
... Thanks again! Ivo Dvdmandt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also... You know, there's a (.*?) command as well.. Might work just about perfect in your situation... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Ivo Fokkema [EMAIL PROTECTED] skrev i

[PHP] Re: anchor in php page

2003-07-29 Thread Ivo Fokkema
Hi Tony, I think no server-side application had any effect on the viewing position on the page, it's totally client side. To use this anyway, you could do this in PHP : ?php if ($_GET['go']) { header(Location: http://; . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . # . $_GET['go']); exit;

[PHP] Re: debuging and getting mor information about failures

2003-07-30 Thread Ivo Fokkema
that you omitted a closing '}'. So when you would do : ?php function something () { print (done); ? You will get a similar error. Check all of your functions and if/else/foreach/ etc. structures for an omitted '}' to fix your script.\ Good luck! -- Ivo Fokkema PHP MySQL programmer Leiden

Re: [PHP] learning php - problem already

2003-07-30 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote John W. Holmes ([EMAIL PROTECTED]): [snip] don't but all that matters to most is: it works.. and foreach has taken over its job anyway. Just a small comment... foreach() is not equal to a while/each loop.

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-30 Thread Ivo Fokkema
(SELECT barColumn FROM table_name WHERE id = 1)); ? This will do exactly what you need, if I understand you correctly. HTH, -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: php path statement appears on my webpages

2003-07-31 Thread Ivo Fokkema
If you don't run PHP as an CGI but as an module, you don't even need this line. My guess is that you run PHP as a module, so delete the line to fix your problem. HTH, -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands Jim M Gronquist [EMAIL PROTECTED] wrote

Re: [PHP] Where am i screwing up?

2003-07-31 Thread Ivo Fokkema
John Manko [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone correct me on this if i'm wrong... try (meaning, I think that $vars as $keys will put the value into $key, not the key itself): foreach ($vars as $key=$value) // clear all previous sessions {

[PHP] Re: manipulate mail header

2003-08-06 Thread Ivo Fokkema
Klaus Linzner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! Its me again. Sorry for the last post - it was quite clumsy. In fact, it wasn't really what I need. I have a mail and I want to fake the attachment. Its always the same String in the header that I need, but I need to

Re: [PHP] Re: Parse error not understood

2003-08-08 Thread Ivo Fokkema
Miles Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes, I'm top posting, pls forgive. This is a situation where an editor which has built-in brace matching really helps - if in the midst of looking one remembers to use it. Another tip, although it probably wouldn't help

[PHP] Re: mail() function failure

2003-08-11 Thread Ivo Fokkema
PROTECTED]; if (mail($mail_to, $mail_subject, $mail_body,$headers)) { echo (success); } else { echo (failed); } HTH, -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Ivo Fokkema
To change é to eacute; you need htmlentities(), not htmlspecialchars as the latter only translates ampersands (), double quotes, less than en greater than characters (Single quotes are not translated by default). If htmlentities does not work, what does a var_dump on your $translationtable send

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Ivo Fokkema
translation table look like? -- Ivo Fokkema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP - MySQL Query...

2003-08-14 Thread Ivo Fokkema
This is not true, the resource link identifier is optional! If unspecified, the last opened link is used. My suggestion is to check the results of mysql_error() for more information on the failed query. HTH, Ivo Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] $dbh

[PHP] Re: Parse error not understood

2003-08-14 Thread Ivo Fokkema
this, and your problem is fixed! -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to change index.php?passwd to index.php in the address bar

2003-08-14 Thread Ivo Fokkema
You will really need the post protocol if you don't want anything from a form displayed in the url. Apparently, Apache is not allowing the POST protocol for that directory/file. Is this a local server or don't you have access to the Apache config file? If it's a local server, fix this setting.

Re: [PHP] php.ini configuration can we have two include_path in php.in file

2003-08-14 Thread Ivo Fokkema
I think Justin means you could CREATE the file with that exact content he has given you. With a .htaccess file, you can override settings of your php.ini file. HTH, Ivo Murugesan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am not able to locate the file you are referring

[PHP] Re: global scope issue

2003-08-14 Thread Ivo Fokkema
Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having problems using global vars. I have read the docs and all of the notes but it's not helping. Simplified example: /dir1/script2.php ?php $test = array ( 'a' = '1', 'b' = '2'); ? /dir1/script1.php ?php

Re: [PHP] Max script size

2003-08-14 Thread Ivo Fokkema
Hi, I must say I don't agree. Although it seems odd, I received a DNS error a while ago while creating a script using the GD library. If the script wasn't there, I would've got a 404. That particular script was generating problems with Apache somehow causing my browser to display a DNS error. Run

Re: [PHP] Max script size

2003-08-14 Thread Ivo Fokkema
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Monday 11 August 2003 19:59, Ivo Fokkema wrote: I must say I don't agree. Although it seems odd, I received a DNS error a while ago while creating a script using the GD library. If the script wasn't there, I would've

[PHP] Re: Cache Question

2003-08-14 Thread Ivo Fokkema
Hi Tony, Chris explained a lot about this... I'm not an expert on this, but you might want to give a try to embed something like : embed src='mp3.php?mp3=filename' autostart=true; And then let mp3.php send all of the no-cache headers together with the contents of the filename.mp3. It might

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Ivo Fokkema
Liam Gibbs [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think php.net/htmlentities will do this. Apparently it *is*, but it won't for me. Any problems with this code? $result[] = é; $result[1] = htmlspecialchars($result[0]); $result[2] = htmlentities($result[0]); Both

Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Ivo Fokkema
Cesar Aracena [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] For some e-mail servers, you have to write lots of extra headers in the e-mails in order to pass their guard. [/snip] True! But actually, I' ve seen people using only the 'From:' header to send mail. Emails can then

[PHP] parse_ini_file() difference between empty value and Off?

2003-08-19 Thread Ivo Fokkema
more complex than just 'On' or 'Off', so I really need to see the difference between a user requesting the Default value or setting it to Off. TIA, Ivo -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP

Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): True! But actually, I' ve seen people using only the 'From:' header to send mail. Emails can then be dropped easily by servers thinking it is spam. No email server should drop

Re: [PHP] PHP Interview questions

2003-08-27 Thread Ivo Fokkema
Gabriel Guzman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote: PHP is server side, so it obviously cannot control light bulbs. Use javascript. maybe the lightbulbs are connected to the server :) as seems to be the case right

[PHP] Re: accessing $GLOBALS values

2003-09-02 Thread Ivo Fokkema
can be found at http://www.php.net/manual/en/language.types.array.php and scroll down to 'Array do's and don'ts' - 'Why is $foo[bar] wrong?' HTH, Ivo Fokkema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] -f function ???

2003-09-09 Thread Ivo Fokkema
[snip] Does this parameter have anything to do with the -f option of the Unix/Linux sendmail command? [/snip] I'm not a linux expert, but as far as I know, it's the same. It allows users to set the Return-Path header with the mail() function, but this is disallowed when your PHP is set to

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-09 Thread Ivo Fokkema
Hi, I've actually been looking for this kind of things for a while as well. However, I would not want my client to install something to uncode the scripts (probably causing the scripts to be unencoded easier). I found these: PHP OBFUSCATOR

[PHP] Re: Validating Subdomain E-mail Addresses Using Regular Expressions

2003-09-10 Thread Ivo Fokkema
Jami Moore [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been trying all weekend to get this right, and so far it does not validate an e-mail address with a subdomain. -- Code -- $empatt = ^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*(\.[a-z]{2,3})$;

[PHP] [SESSION] Session variable deleted prior to command?

2003-07-16 Thread Ivo Fokkema
with the last login time below it. No, it doesn't. When I quote the line '$_SESSION['last_logn'] = ;' it does display, but then it keeps doing that until you log off. Not so elagant. Any ideas/suggestions??? Thank you in advance! Ivo -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ivo Fokkema
| Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)

2003-07-17 Thread Ivo Fokkema
! -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands Karen Santmyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] HI: Can anyone refer me to someone that can help with the problem below. I

[PHP] Re: really no way to get byte size of variable?

2003-07-17 Thread Ivo Fokkema
stores arrays, so I don't know if $total_size is even close to the amount of bytes used for an array. -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net

[PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Ivo Fokkema
Well, worked nicely for me... Can you tell me where you can fetch this kind of information? -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands Suhas Pharkute [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: Mail From option in PHP.ini

2003-07-21 Thread Ivo Fokkema
Reply-To, Error-To and whatever more, but I couldn't fix it. Maybe something can be added to a later release of PHP to fix this? I for one would be extremely happy with that. -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical

Re: [PHP] Sending email with the windows version of php

2003-07-21 Thread Ivo Fokkema
its self. You would need to set 'SMTP' and 'sendmail_from' in your php.ini. The 'sendmail_path' doesn't work for Windows, so you can leave that blank. Nothing else changes then... -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical

[PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
.= From: Name [EMAIL PROTECTED]\r\n; $body = Whatever is in your email; $to = Name [EMAIL PROTECTED]; $check_mail = mail($to, Subject, $body, $headers); -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP

Re: [PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
? -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help?

2003-07-21 Thread Ivo Fokkema
to warn you though, PHP depricates the use of register_globals = On, so it would be recommendable to use your modified script and keep coding using $_POST, $_GET and these kind of global variables. -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden

Re: [PHP] Re: Help?

2003-07-22 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): I want to warn you though, PHP depricates the use of register_globals = On, so it would be recommendable to use your modified script and keep coding using $_POST, $_GET

[PHP] Re: Warnings when trying to write to file

2003-07-22 Thread Ivo Fokkema
localhost (Windows 2000). HTH, -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands Dore Van Hoorn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I get this warning when trying to write to a .txt

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Ivo Fokkema
. (...) -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php