RE: [PHP] Between Query (0T)

2005-05-09 Thread Kim Madsen
Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySql injections (related question)

2005-05-12 Thread Kim Madsen
A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] beginner needs help!

2005-05-13 Thread Kim Madsen
a variable unless it´s inside a class. I never really tested that before, but outside a class this won´t work: ? var $test = hello; echo $test; // returns nothing ? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http

RE: [PHP] Problem with extending classes.

2005-05-13 Thread Kim Madsen
); -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Phone Number Validation

2005-05-17 Thread Kim Madsen
_start_ with 3 digits followed by a - then 3 digits, then another - and end with 4 digits Example: $number = 555-666-0606; if(ereg(^[0-9]{3}-[0-9]{3}-[0-9]{4}$, $number)) { echo valid phonenumber; } else { echo invalid phonenumber; } -- Med venlig hilsen / best regards ComX Networks A/S Kim

RE: [PHP] Re: novice: char to varchar

2005-05-19 Thread Kim Madsen
-Original Message- From: tony yau [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:03 PM found the answer sorry about this But You don´t wanna share the solution with the rest of the class? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler

RE: [PHP] Problem With System Call

2005-05-19 Thread Kim Madsen
. On the Fedora box I get nothing, a blank page. There is content in the /tmp directory on the Fedora box. Are You perhaps running SElinux? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Problem With System Call

2005-05-20 Thread Kim Madsen
Madsen Systemudvikler/Systemdeveloper On 5/19/05, Kim Madsen [EMAIL PROTECTED] wrote: -Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 9:10 AM I am having the strangest problem using system() or exec() or any variation. None

RE: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-23 Thread Kim Madsen
to generate the file in a new window and check that a session var has been set earlier... I´m doin that on a site with (legal) mp3s -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] Stopping users to see uploaded files

2005-05-27 Thread Kim Madsen
? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stopping users to see uploaded files

2005-05-30 Thread Kim Madsen
be piece of cake. Current Setup: ~user/public_html // containing all your php files Add a new dir: ~user/tmp (or upload) And have the uploaded files uploaded into that dir (don´t forget permissions) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler

RE: [PHP] Re: Free penetration test

2005-05-30 Thread Kim Madsen
:-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper ComX Networks A/S Naverland 31, 2 DK-2600 Glostrup Denmark Phone: +45 70 25 74 74 Fax: +45 70 25 73 74 Web: www.comx.dk E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Warning: filemtime() (errno=75 - Value too large for defined data type)

2005-05-30 Thread Kim Madsen
is a nice and simple solution. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Dummy question about gettion select option choosen

2005-05-30 Thread Kim Madsen
? option3/option Should be option value=33/option -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php + cvs

2005-06-01 Thread Kim Madsen
into the live environment. Some companies use several levels like dev, pre-production before production. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and USB Devices

2005-06-01 Thread Kim Madsen
from Episode 1) No really, does the reader by any chance emulate a keyboard like a handscanner does? That would definetly be a nice thing for You :-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net

RE: [PHP] Re: php forum and (almost certainly 0T) client editor

2005-06-01 Thread Kim Madsen
! It made my FireFox crash! -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] htmlArea - a 'client editor'

2005-06-16 Thread Kim Madsen
-Original Message- From: M Saleh EG [mailto:[EMAIL PROTECTED] Sent: Saturday, June 04, 2005 2:57 PM To: Rory Browne Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] htmlArea - a 'client editor' www.FCKEditor.net http://www.FCKEditor.net FCKEditor is the best

RE: [PHP] autocomplete a field

2005-06-16 Thread Kim Madsen
-Original Message- From: xfedex [mailto:[EMAIL PROTECTED] Sent: Saturday, June 04, 2005 4:57 AM To: php-general@lists.php.net Subject: Re: [PHP] autocomplete a field Hi, Anyone know if theres a way to disable this feature for user using old browsers or not suporting JS/XML? It

RE: [PHP] htmlArea - a 'client editor'

2005-06-16 Thread Kim Madsen
-Original Message- From: Kim Madsen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 9:14 AM To: php-general@lists.php.net Subject: RE: [PHP] htmlArea - a 'client editor' Yeah, looks cool, but Im having a *lot* of trouble getting the listing of current images and upload

RE: [PHP] undefined index

2005-06-17 Thread Kim Madsen
? Or set earlier in the script? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: editor in WEB PAGE

2005-06-21 Thread Kim Madsen
works on several platforms, but is difficult to setup with image browsing and upload functionality. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: editor in WEB PAGE

2005-06-21 Thread Kim Madsen
-Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:49 AM To: Kim Madsen Cc: Denyl Meneses Guillén; php-general@lists.php.net; M. Sokolewicz Subject: Re: [PHP] Re: editor in WEB PAGE On 6/21/05, Kim Madsen [EMAIL PROTECTED] wrote

RE: [PHP] resetting arrays

2005-06-21 Thread Kim Madsen
hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: So many returned mail notices!

2005-06-22 Thread Kim Madsen
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 8:13 PM sarcasm you're not your, but it's understandable coming from someone named after a car license plate number. In denmark it costs around 1000€ to get a license plate with Your own

RE: [PHP] eml splitting

2005-06-22 Thread Kim Madsen
-- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] safe mode

2005-07-28 Thread Kim Madsen
*never* host anything on a server with safe_mode on! System(cat /home/USER/include/db_setup.inc); -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] safe mode

2005-07-28 Thread Kim Madsen
Ahem! -Original Message- From: Kim Madsen [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 12:01 PM I would *never* host anything on a server with safe_mode on! s/safe_mode on/safe_mode off/ /Kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] safe mode

2005-07-29 Thread Kim Madsen
´M more safe and so are my customers ;-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problem w/ Hidden Input Fields

2005-10-11 Thread Kim Madsen
=text name=txtKeyValue id=txtKeyOther / It´s overwritten then. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper ComX Networks A/S Naverland 31, 2 DK-2600 Glostrup Denmark Phone: +45 70 25 74 74 direct: +45 32 87 73 93 Fax: +45 70 25 73 74 Web

[PHP] PHP4.4 and installing PEAR?

2005-10-20 Thread Kim Madsen
packages next time? And where can one read about this? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Read From COM1 port

2005-03-03 Thread Kim Madsen
a small part of a much larger workflow, which runs in PHP, therefore it would be preferred if the configs of switches and routers could be in PHP aswell. (Posted yesterday in alt.comp.lang.php and the day before in comp.lang.php) -- Sincerly Kim Madsen Systemdeveloper / ComX - http://www.comx.dk

SV: [PHP] Read From COM1 port

2005-03-04 Thread Kim Madsen
Kim Madsen Systemdeveloper / ComX - http://www.comx.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

SV: [PHP] A general question

2005-03-07 Thread Kim Madsen
in a different software ? http://dk.php.net/manual/en/function.header.php Please help very urgent :-) -- Sincerly Kim Madsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie Question re substr

2005-03-08 Thread Kim Madsen
regards ComX Networks A/S Kim Madsen Systemudvikler Naverland 31 DK-2600 Glostrup www.comx.dk Telefon: +45 70 25 74 74 Telefax: +45 70 25 73 74 E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP5.0.3-3 on RedHat

2005-03-10 Thread Kim Madsen
add new ones or remove unsued/unsage ones. Depending on the download time that is the part, that take most of the time or not ;-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler Naverland 31 DK-2600 Glostrup www.comx.dk Telefon: +45 70 25 74 74 Telefax: +45 70

RE: [PHP] free php live chat with visitor/customer script

2005-03-11 Thread Kim Madsen
You enough ideas to start Your project :-) Sincerely Kim Madsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Increase execution time

2005-03-11 Thread Kim Madsen
and setting set_time_limit(0); nothing works. I still get Fatal Error: maximum execution time of 60 seconds. Did You restart the webserver? Sincerely Kim Madsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] incrementing a number from a text file

2005-03-11 Thread Kim Madsen
with queries like: Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id Horror! Kind regards Kim Madsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Question about shortening a string

2005-03-16 Thread Kim Madsen
, in Denmark ÆæØøÅå, in sweden äÄöÖ and so on. Of course I could do something like: ereg(^(.+ ).* ?(.+)$, $name, $regs); // untested -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler Naverland 31 DK-2600 Glostrup www.comx.dk Telefon: +45 70 25 74 74 Telefax: +45 70 25 73

RE: [PHP] php 4 php 5

2005-03-16 Thread Kim Madsen
Networks A/S Kim Madsen Systemudvikler Naverland 31 DK-2600 Glostrup www.comx.dk Telefon: +45 70 25 74 74 Telefax: +45 70 25 73 74 E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] showing the decimal places

2005-03-16 Thread Kim Madsen
at gettype() http://dk2.php.net/manual/en/function.gettype.php $number += 2.00; Should convert the var to a float according to: http://dk2.php.net/manual/en/language.types.type-juggling.php#language.t ypes.typecasting -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen

RE: [PHP] PHP Classes

2005-03-16 Thread Kim Madsen
A/S Kim Madsen Systemudvikler/Systemdeveloper Naverland 31 DK-2600 Glostrup www.comx.dk Telefon: +45 70 25 74 74 Telefax: +45 70 25 73 74 E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to access any function of a any class?

2005-03-17 Thread Kim Madsen
, but a instance from A cannot call the function Container. Read more here: http://dk2.php.net/manual/en/keyword.extends.php You could just drop the idea of several classes or the OOP programming (I removed the D on purpose due to the bad design ;-) -- Med venlig hilsen / best regards ComX Networks A/S Kim

RE: [PHP] something stupid... split().

2005-03-17 Thread Kim Madsen
($AcctSessionTime/90), 2); will do the trick for ya. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper Naverland 31 DK-2600 Glostrup www.comx.dk Telefon: +45 70 25 74 74 Telefax: +45 70 25 73 74 E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http

RE: [PHP] php.ini file

2005-03-20 Thread Kim Madsen
-file-path=/usr/local/php.ini -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] fopen

2005-03-20 Thread Kim Madsen
@ to get warnings? $defaultfile = ffmail.txt; #default file to write to @ $results = fopen($datafilename, a); #open file and supress errors You set $defaultfile, but tries to open $datafilename? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP

RE: [PHP] php.ini file

2005-03-21 Thread Kim Madsen
A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php.ini file

2005-03-22 Thread Kim Madsen
for the info: If You compile PHP there´s a parameter to use: --with-config-file-path=/usr/local/php.ini Skip the php.ini from the _path_ (doh!) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net

RE: [PHP] remove space

2005-03-22 Thread Kim Madsen
. How? Did You search? http://dk.php.net/manual-lookup.php?pattern=replace Str_replace, ereg_replace, preg_replace is just a few friends, that will help You. Php.net is Your best friend ;-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General

RE: [PHP] More about problems reading COM ports

2005-03-29 Thread Kim Madsen
this feature (or bug)? This is with php 5.0.2.2 on Windows XP. I´m using 4.3.10 -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ISO encoding of subject in mail?

2005-03-29 Thread Kim Madsen
: BAD HEADER Non-encoded 8-bit data (char E5 hex) in message header 'Subject': Subject: ADVARSEL: F\345 IP adresser ti... Any tips/ideas? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Kim Madsen
. Might just create my own function since it´s 6 chars that needs to be converted... BTW, are you _the_ Kim Madsen of TKBMMemtable fame ? Hehe, I doubt that since I have NO clue what the heck You´re talking about :-) /Kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread Kim Madsen
-Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:09 PM convert it to quoted-printable using eg. imap_8bit() That seems to be, what I want _but_ NO PHP is printed after I call this function. I turns out that we haven´t got PHP compiled

RE: [PHP] ISO encoding of subject in mail?

2005-03-30 Thread Kim Madsen
-Original Message- From: Kim Madsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:56 PM I´d like to encode the subject in mails generated and sent by PHP, so Danish letters like æ,ø and å can be used too... like this: Subject: Problemer med =?ISO-8859-1?Q?f

RE: [PHP] Generate random number

2005-03-30 Thread Kim Madsen
/function.rand.php -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] HELP!

2005-03-30 Thread Kim Madsen
, but its not necessary, threfore $786.00 and $1.00 matches too. The () around all expressions means, that we save whatever is matched into $pricetag -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper

RE: [PHP] image_type

2005-03-30 Thread Kim Madsen
venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session problem

2005-03-31 Thread Kim Madsen
$uss; HERE $uss is empty! Yeah, cause that´s _not_ what the manual says: http://dk.php.net/manual/en/ref.session.php It should be $_SESSION['nfo']['fu'] = 12; -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List

RE: [PHP] getting check box values into an array

2005-03-31 Thread Kim Madsen
is not an option? Cause that would be the smartest way to do it. In this way all the checked boxes are in $_POST['interests'] and can be seen with print var_dump($_POST['interests']) You create the checkboxes with a for loop -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler

RE: [PHP] Session in two servers

2005-04-01 Thread Kim Madsen
choose another dir than /tmp or the session files will never be deleted. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session in two servers

2005-04-04 Thread Kim Madsen
the whole idea of load balancing! Might not work for your situation, but it would get around the file/session issue... The solution is to have a common share that all servers in the LB scheme use for storing session variables. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen

RE: [PHP] Connection to Two databases simultaneously

2005-04-04 Thread Kim Madsen
FROM db1.members, db2.addresses WHERE db1.members.id = db2.addresses.member_id It´s been a while(years!) since I´ve used this, so I´m sorry if the syntax ain´t correct. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List

RE: [PHP] Re: eregi problem

2005-04-04 Thread Kim Madsen
in having a-zA-Z in the pattern since eregi() is case insensitive. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: eregi problem

2005-04-04 Thread Kim Madsen
= 789; if(ereg([^1-6], $var1)) print $var1 is true; else print $var1 is false; returns false if(ereg([^1-6], $var2)) print $var2 is true; else print $var2 is false; returns true It´s untested though :-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler

[PHP] read from comport: windows vs. linux

2005-04-05 Thread Kim Madsen
/ best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
_no_ difference at all, I´m still getting permission denied, when calling fopen :-/ [EMAIL PROTECTED] dev]# ls -al ttyS* crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
have no clue, what that is and do. The server with the problem runs Feodora 3, I´m running RH9 on my own servers. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
-Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 10:43 AM Are you running mod_security? Nops: [EMAIL PROTECTED] ~]# httpd -l Compiled in modules: core.c prefork.c http_core.c And SELinux is now disabled, still no change... :-/

RE: [PHP] if question

2005-04-06 Thread Kim Madsen
/language.operators.arithmetic.php -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] language files

2005-04-07 Thread Kim Madsen
a Multilanguage site for a bar in Cyprus. You can have a look at gg.emax.dk and the langfile is here: http://gg.emax.dk/language/UK/lngfile.txt -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] read from comport: windows vs. linux

2005-04-07 Thread Kim Madsen
) and see if that allows you any kind of access. Doubt it, though. I´m using exec to set the comport speed and the likes. -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Anybody getting these also?

2005-04-07 Thread Kim Madsen
-Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 4:02 PM -- Forwarded Message -- Subject: Date: Wednesday 06 April 2005 07:30 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thank you for contacting

RE: [PHP] threaded comments

2005-04-08 Thread Kim Madsen
set: if($last_id == $ref) // highlight the line Is that what You are looking for? -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] imagecopyresample

2005-04-14 Thread Kim Madsen
the value instead: // Output Return imagejpeg($image_p, null, 100); And call it like: $new_img = imageresize('100', '75', 'pages/1.jpg'); Print img src=\$new_img\ alt=\$new_img\; -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General

RE: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Kim Madsen
scale multi-language websites with PHP/MySQL? Look in the archives, it´s less than 2 weeks since this was discussed (again :-) -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: Re[2]: [PHP] Any experience with multi-language PHP sites?

2005-04-15 Thread Kim Madsen
around 7/4-2005 -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Setting permissions such that file can be included but not open directly

2005-04-18 Thread Kim Madsen
outside webscope, I.E.: /home/USER/public_html/ /home/USER/private/ -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] is this possible in PHP?

2005-05-03 Thread Kim Madsen
regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Can someone help me build a regular expression?

2005-05-04 Thread Kim Madsen
it should match a 2 or 3 digit number, with a single digit afterwards. This one matches 9abcd. Correct: ^[0-9]{2,3}\.[0-9]{1}$ -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Header problem

2009-10-03 Thread Kim Madsen
Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php there's an iframe, that opens another file), if certain check are okay then a popup window opens download.php, where a mp3 file is fetched from the

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
Andrea Giammarchi wrote on 2009-10-03 13:40: Do you want users download the file or the zip? They can choose between the two. do you send other headers before the download? Header must come first (before you output anything) or you get a parse error, so I'm not sure what you mean here? You

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
Hi kranthi kranthi wrote on 2009-10-03 16:21: Thats a lot of headers to read.. At a first glance I can see that you did not specify a content-length header. this is a must and must be equal to the size of the file in bytes I've noticed that too, but it's impossiple to determine the length

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
Hello Andrea Andrea Giammarchi wrote on 2009-10-04 18:49: Header must come first (before you output anything) or you get a parse error I try to better explain ... HTTP works like this: you ask something, you receive something, html and texts are just one option. Got it so far Your

Re: [PHP] Header problem

2009-10-05 Thread Kim Madsen
Hi Andrea Andrea Giammarchi wrote on 2009-10-04 19:36: Unless I am missing something, your page has too many if and it always ends up with print something ... but there is no exit after the download, so the zip will have extra output included without a reason ... which is an error, imho,

Re: [Fwd: [PHP] Sessions in databases]

2009-10-06 Thread Kim Madsen
Sam Stelfox wrote on 2009-10-06 18:09: If you are distributing your application over multiple servers, using a database for session tracking allows a user to continue there session regardless of which server their request bounces too. It prevents the need for 'sticky' network connections which

Re: [PHP] Need unrounded precision

2009-10-16 Thread Kim Madsen
Hello Andre Dubuc wrote on 2010-01-02 02:20: Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'. Since no one came up with the simple solution: $num = 28.56018; ereg(^[0-9]+\.([0-9]){1}, trim($num), $regs); if($regs[1])

Re: [PHP] Header problem - solved

2009-10-16 Thread Kim Madsen
Andrea Giammarchi wrote on 2009-10-05 18:26: There's a useful function called headers_sent() which checks to see if the headers have already been sent to the browser. This might be a good place to throw into your code at various points to check and see if something is being written

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-18 Thread Kim Madsen
Dotan Cohen wrote on 2009-10-18 10:52: I assumed the reason you wanted to do escape the string so that you could perform DB operations. Yes, that is my intention. However, the function is found in an include file of functions used in many different scripts, each of which connect to a

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-19 Thread Kim Madsen
Dotan Cohen wrote on 2009-10-18 21:21: I thought that one could not test if a database connection is established or not, this is the most relevant thing that I found while googling that: http://bugs.php.net/bug.php?id=29645 from http://www.php.net/manual/en/function.mysql-connect.php $link =

Re: [PHP] Blocking video streaming

2009-10-19 Thread Kim Madsen
Hey Talawa wrote on 2009-10-19 18:29: Hello everyone, I post a message here because i didn't find any solution yet. I just finished video streaming service on my website. I use xmoov script (http://xmoov.com/xmoov-php/) to do that. It works like a charm, but I find an issue. When the video

Re: [PHP] Please don't kick me!

2009-10-19 Thread Kim Madsen
Hi Philip Philip Thompson wrote on 2009-10-19 22:47: Hi all. I know this question has been asked a thousand times on the list, but my searches in the archives are not being nice to me. So... please don't kick me. Why would anyone do that? We're PHPeople and PHfrinds (ho ho) Currently,

Re: [PHP] Header problem - SOLVED

2009-10-19 Thread Kim Madsen
This has been solved today. Talawa had a similar problem and came up with a solution to his problem, namely using session_write_close() before creating the headers. That stunt also solved my problem :-) -- Kind regards Kim Emax Kim Madsen wrote on 2009-10-03 13:30: Hi PHP people I have

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-20 Thread Kim Madsen
Dotan Cohen wrote on 2009-10-20 20:06: if(mysql_real_escape_string($variable) === false) { // create a default DB connection } Here, the key seems to be to turn the warning level down, which I do not have privileges to do on this server. But it fact this seems to be the key that I was

Re: [PHP] Spam opinions please

2009-10-20 Thread Kim Madsen
Hey Gary Gary wrote on 2009-10-20 20:31: I have several sites that are getting hit with form spam. I have the script set up to capture the IP address so I know from where they come. I see that a lot suggested CAPTCHA, I don't like those either. The IP solution will give you a constant

Re: [PHP] Please don't kick me!

2009-10-20 Thread Kim Madsen
Philip Thompson wrote on 2009-10-20 21:58: I got it to draw the different background colors successfully. However, drawing borders is not as straight forward. I'm sure I could get it working as well... but I'd rather it work *out of the box*. Thanks for the suggestion. ;) Well, you're

Re: [PHP] Spam opinions please

2009-10-20 Thread Kim Madsen
Gary wrote on 2009-10-20 22:55: I like that idea,so in other words they have to get to the form from another page on the site, and you set a time limit for a minimum amount of time they spend on the page(5-10 seconds)? I don't set any time, just the session to prevent direct hits from a spam

Re: [PHP] how call a variable in a text

2009-10-21 Thread Kim Madsen
Ashley Sheridan wrote on 2009-10-21 22:43: The {} only become really useful when you're trying to reference arrays within a string: $var = array('great', 'boring'); $text = this is {$var[0]}.; Without the curly braces, PHP wouldn't be able to figure out whether you wanted the end string to

Re: [PHP] how call a variable in a text

2009-10-21 Thread Kim Madsen
Ashley Sheridan wrote on 2009-10-21 22:56: Try this though: ?php $var = array(array('great','alright'), 'boring'); print This is $var[0][0].; Print This is different from your previous example :-); -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List

[PHP] Sessions seems to kill db connection

2009-10-22 Thread Kim Madsen
Hi PHPeople I have an odd problem at my new work and wonder if it's some sort of odd setup that is causing this problem when using sessions: if($test) { $query = SELECT count(*) FROM articles WHERE group1 = 'fp';# AND group2 = 'login'; $r = mysql_query($query) or die('Db error: ' .

  1   2   >