[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

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 http://richard.fairthorne.is-a-geek.com/utils_obfuscate.p

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 safe_mo

[PHP] Re: accessing $GLOBALS values

2003-09-02 Thread Ivo Fokkema
d to problems when you use the name of a constant as a key. I hope this is clear, more info 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] 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

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

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

2003-08-19 Thread Ivo Fokkema
ing? Any ideas on this? The default values may sometimes be a bit 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

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 ca

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

[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 : ""; And then let mp3.php send all of the no-cache headers together with the contents of the filename.mp3. It might work, I would give it a try... HTH, -- Ivo "To

[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 > $test = array ( 'a' => '1', 'b' => '2'); > ?> > > /dir1/script1.php

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 referr

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. Thi

[PHP] Re: Parse error not understood

2003-08-14 Thread Ivo Fokkema
$ in > /var/www/html/Sessions/userman.php on line 83 > > Line 83 is '?>'.. You missed a '}' at lines : if($count==0) { //User does not exist in the database header('location: user_not_exists.php'); exit(); Add a '}' after 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] 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] 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] $

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

Re: [PHP] HTML equivalents of accented characters

2003-08-14 Thread Ivo Fokkema
_ENTITIES); var_dump($a); ? With me, it returns a 99 elements array with loads of characters, including the "é". (PHP/4.2.3 on Win2000) I have no idea what might be the problem, what does your 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] HTML equivalents of accented characters

2003-08-14 Thread Ivo Fokkema
To change "é" to "é" 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 bac

[PHP] Re: mail() function failure

2003-08-11 Thread Ivo Fokkema
eaders .= "X-Mailer: PHP/".phpversion()."\r\n";//I use this, I'm not sure if you really need this header $headers .= "From: [EMAIL PROTECTED]"; $headers .= "Reply-to: [EMAIL PROTECTED]"; $headers .= "Return-path: [EMAIL PROTECTED]"; $headers

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 wo

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

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: 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" &

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-30 Thread Ivo Fokkema
desired value. Why don't you use : 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/unsub.php

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

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

2003-07-30 Thread Ivo Fokkema
y? Getting these errors at the last line in your script generally means that you omitted a closing '}'. So when you would do : 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

[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 : http://"; . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "#" . $_GET['go']); exit; } //rest of your code ?> This code dete

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

2003-07-29 Thread Ivo Fokkema
f two separate links... 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 P

[PHP] Re: anchor in php page

2003-07-29 Thread Ivo Fokkema
thesite.com/thepage.asp?go=here > > where "here" -the value - in the string query would be marked up as: > ... > // thepage.asp > > > blah,blah,blah, etc... > > ... > > Can this be done using php? Why not use :

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

2003-07-29 Thread Ivo Fokkema
s:[EMAIL PROTECTED] > Use preg_*() 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] >

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

2003-07-29 Thread Ivo Fokkema
ny ideas? http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=Pub Med&dopt=Abstract&list_uids=\\1\" target=\"_blank\">\\2","{PMID11519736:Müller}"); print ($val); ?> TIA! -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP

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

Re: [PHP] php function on php.net

2003-07-24 Thread Ivo Fokkema
.htaccess, the URL will not change, 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

[PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Ivo Fokkema
re looking for when they hit a 404) but can $_SERVER['SCRIPT_NAME'] 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

[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
#x27;t return all 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] 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

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Ivo Fokkema
support for Apache 2 is experimental. It's highly recommended you use PHP with Apache 1.3.x and not Apache 2. (...) -- 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: Warnings when trying to write to file

2003-07-22 Thread Ivo Fokkema
ther, but I do on my 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, >

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 a

[PHP] Re: Help?

2003-07-21 Thread Ivo Fokkema
on, you can use your first script. 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 and these kind of global variables. -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/

Re: [PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
I do get the notification mail when mail bounces. That's funny, because I always had that problem, too. By adding Reply-To and Return-path, it did not fix my problem. Boucing emails never got back to me. Return-path was overwritten by my hostingserver to '[EMAIL PROTECTED]'

[PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
ent-Type: text/plain; charset=iso-8859-1\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-MSMail-Priority: Normal\r\n"; $headers .= "X-Mailer: PHP/".phpversion()."\r\n"; $headers .= "From: Name <[EMAIL PROTECTED]>\r\n"; $body = "

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

2003-07-21 Thread Ivo Fokkema
he windows > version connects to a smtp server and sends the message 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

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

2003-07-21 Thread Ivo Fokkema
receive any delivery errors. I used 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 &

[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]> w

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

2003-07-17 Thread Ivo Fokkema
trlen($val); } But I'm really not sure how PHP 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 N

[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
Good luck! -- [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 someo

Re: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ivo Fokkema
aces) but for larger input or many iterations I'd rather use Perl compatible... -- [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] [SESSION] Session variable deleted prior to command?

2003-07-16 Thread Ivo Fokkema
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 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