[PHP] Image from MIME email

2002-11-14 Thread Christoph
Hello, I'm currently programming a webmail interface with php 4.1.2 and c-client 2001. I'm getting the Mime data from the mail. Now I have the image data as text but how I can get it into an field? greetz peterschen Liebe ist auch nach einem Bluescreen zu behaupten es gäbe keine Alternativ

[PHP] ImageLoadFont

2002-11-21 Thread Christoph
Hi, I want to create dynamic images using php4 & php4-gd2. My problem now: in wich format the bitmap font file have to be to be loaded correctly into my script? Regards peterschen --- Liebe ist es, nach einem Bluescreen zu behaupten es gäbe keine Alternative. http://www.peterschen.de/ -- PHP

Re: [PHP] Players Table

2007-09-24 Thread Christoph
Players NFL_Team ( varchar32 ) Fantasy_team ( varchar32 ) I player can definitely be part of only 1 NFL Team. But how are you handling your league? Is this just for a single small group of people? Or is this database to be set up for lots of leagues? If the latter,

Re: [PHP] sprintf() oddness

2007-12-02 Thread Christoph
;<br>'; echo 'round( 0.12962500, 3 ) = ' . round( 0.12962500, 3 ) . '<br>'; echo 'round( 0.11590000, 3 ) = ' . round( 0.1159, 3 ) . '<br>'; echo 'round( 0.1575, 3 ) = ' . round( 0.1575, 3 ) . '<br>'; echo 'round( 0.13387500, 3 ) = ' . round( 0.13387500, 3 ) . '<br>'; echo 'round( 0.1197, 3 ) = ' . round( 0.1197, 3 ) . '<br>'; echo 'round( 0.1525, 3 ) = ' . round( 0.1525, 3 ) . '<br>'; echo 'round( 0.12962500, 3 ) = ' . round( 0.12962500, 3 ) . '<br>'; echo 'round( 0.1159, 3 ) = ' . round( 0.1159, 3 ) . '<br>'; echo 'round( 0.07875000, 3 ) = ' . round( 0.07875000, 3 ) . '<br>'; echo 'round( 0.06693750, 3 ) = ' . round( 0.06693750, 3 ) . '<br>'; echo 'round( 0.05985000, 3 ) = ' . round( 0.05985000, 3 ) . '<br>'; echo 'round( 0.13125000, 3 ) = ' . round( 0.13125000, 3 ) . '<br>'; echo 'round( 0.13375000, 3 ) = ' . round( 0.13375000, 3 ) . '<br><br>'; Why is the behavior of round() different to that of sprintf()? Both are rounding numbers. I'll grant you that sprintf() has more utility and does more things than round() but when you are dealing with numbers (and more specifically, when you've used a numeric type specifier in the format argument), sprintf() is doing the same type of thing to the value -- rounding. So why are they doing it differently? Is that a bug? I'm reticent to say that but it doesn't make sense to me that they would behave differently. If the general rule is to round up for 5s when preceeding is odd and round down when even, that's not occuring here when using round(). thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change case of HTML tags

2007-12-20 Thread Christoph
thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] check if website has www. in front of domain

2008-02-16 Thread Christoph
// Check if site is preceeded by 'WWW' public function checkWWW() { $myDomain = $_SERVER['SERVER_NAME']; $FindWWW = '.'; $POS = strpos($myDomain, $FindWWW); if ($POS === false) { return false; } else { return true;

Re: [PHP] www. not working

2008-02-19 Thread Christoph
Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are examples of screwed up records by incompetent sysadmins? thnx, Chr

[PHP] Re: session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Christoph Grottolo
p-- You must set session.save_path to a valid windows path (i.e. "c:\temp" or "c:\sessions" AND the directory must already exist. Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Christoph Grottolo
r browser. Refresh the page where you call phpinfo() by hitting +F5. If you change the ini file php uses (double check if it's the one you're editing, notepad loves saving the file as php.ini.txt), the changes take are reflected when you restart the webserver. There is no possilility of

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Christoph Grottolo
e.g. a php script using CURL, www.php.net/curl). You should at least combine the REFERER check with a valid session on your host or look for a corresponding log entry or something alike. Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include question

2003-01-15 Thread Christoph Grottolo
ipt, not to the original HTML-file. PHP includes the file as is (imagine it puts the HTML code at the place of the include statement) The browser does not know that there is another HTML file, it only sees the output of the php script. Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP & Apache

2003-01-30 Thread Christoph Grottolo
' in c:\inetpub\wwwroot\sdd\pages\redirection.php? >Quote: "The brain can understand everything, but itself", Aaron Boeren, oh, there are certainly other cases... Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regex replace href-content

2003-08-24 Thread Christoph Gassmann
Dear List, I´m writing a little framework with special features for my application. The content of my Website is in HTML-Pages from other users working with HTML-Editors. I parse the content in their in my framework. now I have to replace the content of their links from test to test. It works f

[PHP] Re: two php.ini on windows????

2002-07-25 Thread Christoph Grottolo
If you use cgi, no problem, just put the php.ini into the php directory (instead of the windows directory). This works. If you use isapi, i think it's not possible, but i'm not shure. Christoph Scott Fletcher wrote: > Hi! > > There are a couple of websites I had to move

[PHP] Re: two php.ini on windows????

2002-07-25 Thread Christoph Grottolo
Christoph Grottolo wrote: > If you use cgi, no problem, just put the php.ini into the php > directory (instead of the windows directory). This works. sorry, forgot to write: put the different versions of php into different directories (i.e. c:\php\php421 and c:\php\php430) Christoph &g

[PHP] hello everybody - date problem -

2002-09-26 Thread Christoph Siefer
hatever I try, the result always is an hour to much. Any 'hacks' on this ?-) Thanks for your time, Christopher -- sym.net - martin butz & christoph siefer gbr zwirnerstrasse 26 - 50678 koeln - 0221/3762591 email: [EMAIL PROTECTED] - netz: http://www.sym.net -- PHP Genera

[PHP] Secure File Upload

2002-06-04 Thread Christoph Starkmann
x27;s a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Secure File Upload

2002-06-06 Thread Christoph Starkmann
e quite easy, I guess. But that's not the problem, it's about traffic. > > Answer these two questions and it will help me alot Hope this did ;) Can you help me now? ;) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://

RE: [PHP] Secure File Upload

2002-06-06 Thread Christoph Starkmann
rs seperated from the message body... But as far as I can see, this is not possible. Sad but true ;) So I have to trust my visitors ;) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Secure File Upload

2002-06-06 Thread Christoph Starkmann
int. I was just hoping I was simply missing some point, but then a login wil have to do. Thanks for all your help... Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ -- -- PHP General Mailing List (http://www

[PHP] Name of script

2002-06-11 Thread Christoph Starkmann
Hi there! I don't find the function or variable returning/containing the name of the script itself; like: echo "Hi, my name is " . $SCRIPT_NAME; Anyone can help? (I did RTFM...) Kiko -- It's not a bug, it's a feature. [.nfq] christoph starkmann tel.: 0821 / 56

[PHP] Name of file

2002-06-11 Thread Christoph Starkmann
idea how to avoid this? Of course I can strip simply everything to [...]/htdocs/, but isn't there a smarter way? Cheers, Kiko -- It's not a bug, it's a feature. [.nfq] christoph starkmann tel.: 0821 / 56 97 94 34 fax.: 0821 / 56 97 94 38 http://www.gruppe-69.com/ ICQ: 1006016

RE: [PHP] Name of script

2002-06-11 Thread Christoph Starkmann
Hi Liam, hi René! Great, thanx alot, this gets me rid of all thinking ;) At least concerning this... ;) > $PHP_SELF > see Language Reference chapter 7 Variables Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gr

RE: [PHP] Else/For loop

2002-06-12 Thread Christoph Starkmann
> I think I can work around this with some different coding, > but why should I > have to? I have done this same thing in java, perl and other > languages... Yes, also with "==" ;) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] view source with opera

2002-06-13 Thread Christoph Starkmann
Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] view source with opera

2002-06-13 Thread Christoph Starkmann
your server has phps (source view) enabled. If it has > then you can see > the source of any file by using the extension .phps. Awright! But then it would be possible with any browser... Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] htt

Re: [PHP] 'CC' and 'BCC' in mail function

2002-06-15 Thread Christoph Grottolo
Stuart Dallas wrote: > On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote: >> Does any one know how to make mail() function to send mail to 'CC' >> and 'BCC' address. I have tried to keep 'CC' and BCC' in header, but >> it is not working. Mail function is sending the message to 'To' >

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-21 Thread Christoph Grottolo
Try a recent dev-snapshot from snaps.php.net/win32. The mail function has been reworked. Christoph Lance wrote: > yes, the + is a whitespace. hm... a bug, you could be right on that. > > i dont have a copy of php4.2.1 on linux to test and see if it is just > windows2k that i

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Christoph Grottolo
You should download php4.3.0 dev. The mail enhancements have not been merged into the 4.2 branch. Sorry for not having been exact in my last posting. Christoph Lance wrote: > i downloaded php4.2.2dev and tried my codes on it. still giving me the > same problem. >> Try a recent dev-s

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-22 Thread Christoph Grottolo
Lance wrote: > cool! 4.3.0dev work like a charm! but is it safe for deployment > server? > No. It's a dev version which has not been going through qa. (We're using it on an intranet and didn't have any probs until now.) Christoph -- PHP General Mailing List

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-23 Thread Christoph Grottolo
You could use the mail class by Manuel Lemos on php.upperdesign.com if you need cc/bcc and attachments. I've been using it for quite some time now with good results. Christoph Lance wrote: > ok. thanks for the info. guess i have to wait till it hit stable > version before deploying

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-24 Thread Christoph Grottolo
Sorry. The link below is broken. Try one of the mirrors on www.phpclasses.org instead. Christoph Christoph Grottolo wrote: > You could use the mail class by Manuel Lemos on php.upperdesign.com > if you need cc/bcc and attachments. I've been using it for quite some > time now wit

Re: [PHP] using pdf template

2002-07-11 Thread Christoph Grottolo
Maybe you could use PDF with FDF to accomplish this task (see http://www.php.net/manual/en/ref.fdf.php). Christoph Rasmus Lerdorf wrote: > Only using the commercial PDI library from pdflib.com > > On Thu, 11 Jul 2002, Tobias Talltorp wrote: > >> Is it possible to produce

Re: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Christoph Grottolo
Might it be your/your provider's anti-virus blocking the clsid string? You could try to send another long mail with common text or HTML. BTW mail() has been reworked for PHP 4.3.0, you can get a new (dev)version to try out on http://snaps.php.net/win32 Christoph Martin Clifford wrote

[PHP] SESSIONMANAGEMENT -- gute php mailing list / gute leute

2003-10-28 Thread christoph lockingen
verzweifeln läßt. Tausend Dank ! Christoph Lockingen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] socket-functions

2001-01-14 Thread Christoph Aigner
hello, is it possible to use the socket-functions within a windows-environment, or are they for linux-distributions only ...? regards christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Parse error: parser stack overflow in...

2001-04-26 Thread Christoph Hunscher
... perm.inc on line 56 Hi all, this message some ppl get when they try to connect to a mysql database. i use php3 with phplib. the problem is, when i try it over lan and with dialin over isdn, there are no probs with win95, win98, winme and nt4.0 clients. neither with ms-ie nor with netscape.

[PHP] ereg

2002-02-11 Thread Christoph Starkmann
Hi there! Is there any mean to tell PHP to use ereg etc. greedy? Thanx, Kiko - It's not a bug, it's a feature. [.nfq] christoph starkmann tel.: 0821 / 56 97 94 34 fax.: 0821 / 56 97 94 38 http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing

RE: [PHP] viewing get/post variables

2002-04-16 Thread Christoph Starkmann
ly, your safe_mode seems to be turned on. One way would be to turn safe_mode off again: change the line safe_mode=On to safe_mode=Off in your php.ini. The safer way would be to prepare $var1, for example like this: $var1 = $HTTP_GET_VARS["var1"]; Now you can use $var1. HTH, Kiko -- I

RE: [PHP] deleting lines in a textfield

2002-04-22 Thread Christoph Starkmann
AFAIK, there are no lines in a textfield; Text is simply displayed as needed to fit in the area of the textfield. As soon as you can do anything with it in PHP, it is no longer in a textfield but simply one string; This string you may search with regular expressions or using PHP string functions

[PHP] registering an array to a session?

2002-04-24 Thread Christoph Starkmann
Hi all! Is it possible to register an array to a session with PHP 4? If yes, how can it be done? Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.ph

RE: [PHP] xml/xslt capability?

2002-04-29 Thread Christoph Starkmann
Only one letter difference between PGP and PHP yet makes no sense... ;) > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8zWnJHpvrrTa6L5oRAv5DAJ9Fp8vq7+PPqIiM1Mnqf5sGZlhD5wCfWqan > TWH60NiXJh5ESsHP0QNLsUY= > =dJq7 >

[PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Christoph Starkmann
ed automatically ?(I don't think and don't hope so, but one never knows) Thanx, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-03 Thread Christoph Starkmann
> Yes, but that's what the php-db list is for. I am sorry... Gonna get this list. Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] PHP file Opening Problem

2002-05-13 Thread Christoph Starkmann
ns the result as a HTML-doc to your browser which renders the file. Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [""] versus ->

2002-05-14 Thread Christoph Starkmann
ed in the WHYNOT behind this ;) Can you give me a hint? Or at least some place where I could start reading and would find an explanation, not only "you have to use..."? Thanxx Kiko -- It's not a bug, it's a feature. christoph starkmann http://www.gruppe-69.com/ mailto:[

[PHP] Variables in PHP: public vs. private

2002-05-17 Thread Christoph Starkmann
ug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-INST] W2K SP2, PHP 4.2.1, IIS 5

2002-05-23 Thread Christoph Grottolo
manual (mssql functions) Note that php_mssql.dll is not included in the windows installer version of php. Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] multiple variables

2002-03-15 Thread Christoph Starkmann
traryVariable)==1) or (user($arbitraryVariable)==2) or (...)) Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] checking if a link is still "alive"

2002-03-21 Thread Christoph Starkmann
nts are appreciated. Cheers, Kiko ----- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: checking if a link is still "alive"

2002-03-21 Thread Christoph Starkmann
Outsch, sorry, I just found what I wanted... > Is there any posibility to check if there is > actually a website behind a link or just, let's > say a 404? http://www.hotscripts.com/PHP/Scripts_and_Programs/Link_Checking/ Have a nice day ;) Kiko - It's not a bug, it

[PHP] fsockopen

2002-03-26 Thread Christoph Starkmann
e? I guess I'm simply getting sth wrong... Any hint would be great. Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] fsockopen

2002-03-26 Thread Christoph Starkmann
uot;error opening $url: \$errstr=$errstr, > \$errno=$errno\n"; > > } > > else > > { > > fputs ($fp, "GET / HTTP/1.0\r\n\r\n"); > > echo "s>>>" . fgets($fp,1024); > > fclose($fp); > > } Cheers... Kiko - It'

RE: [PHP] fsockopen

2002-03-26 Thread Christoph Starkmann
Oohh so sorry... Now it works. I simply forgot to crop the tailing "/" from the URL. Call me stupid for now... Thanx alot ;) Cheers, Kiko - Fool me once. Shame on you. Fool me twice. Shame on me. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ:

RE: [PHP] ping

2002-03-27 Thread Christoph Starkmann
Hi CHris! > has anyone written a script to check if a host is alive - > like a ping script ? Something like this? BTW, any hints to weak or wrong code are welcome, I'm not this experienced with PHP ;) Cheers, Kiko P.S.: There are some formatting strings and some variables stored in constants.

[PHP] Checking if a link is valid

2002-04-02 Thread Christoph Starkmann
s http://www.gruppe-69.de/ 't is redirected by my provider directly to http://www.gruppe-69.com but my linkchecker thinks it would be dead (404) Any idea how I can check this, too? Thanx and cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECT

FW: [PHP] PHP FAQ (again)

2002-04-03 Thread Christoph Starkmann
k someone who isn't checking ouzt the online doc would be reading the FAQ? Regards, Kiko - It's not a bug, it's a feature. christoph starkmann - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Includes

2002-04-05 Thread Christoph Starkmann
ime (I include this, too). Was this what you wanted to know? Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Includes

2002-04-05 Thread Christoph Starkmann
which looks as if you where getting different pages... Better now? Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
y ideas, hints? Thanx alot, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
d only right way and is part of a standard normalisation process, isn't it? Nevertheless, Thanx for your hint; If I not already had this this would be an important one! And btw., I learnd a new english word, too (premise). So I always keep learning ;) Cheers, Kiko -- It's n

RE: [PHP] Making graphics

2002-04-11 Thread Christoph Starkmann
Hi Ron! > Here is what I want to do. > > I am taking a poll and I would like to display the results in > a bar graph > format. What is the best way to do this.hopefully you > will not say GD > library! If you don't like GD, why not try Flash instead? ;)) -- PHP General Mailing Lis

RE: [PHP] while() query

2002-04-11 Thread Christoph Starkmann
Hi Caspar! $counter = -1; while(++$counter <50) { if ($counter != 39) { do a task on all between 1 and 50 except on 39 } } This should do... Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Michael... > hmm...he has a table for premises and one for doctors, hasn't he? > > FROM $medTable m, > > $praxTable p He has ;)) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.co

RE: [PHP] = 0 and = "0"

2001-10-25 Thread Christoph Starkmann
comparison with false > in certain situations. Are there any cases where you need > to do a direct comparison with true? AFAIK it's only a matter of speed. Unary operators consume less time than binary ones... Correct me if I'm wrong. > Are you coming to Ottawa in

RE: [PHP] Url Length Limitations?

2001-11-12 Thread Christoph Starkmann
e is not limitation... Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] stupid little problem

2001-11-16 Thread Christoph Starkmann
p? HTML is "normalizing" all text; So any number of spaces, tabs newlines etc. become one space " "; If you want a certain number of spaces, you could use the  -entity: $a = "test"; $b = "test2"; $data = $a . "" . $b . ""; echo

[PHP] SuSE 7.1 mySQL

2001-11-21 Thread Christoph Starkmann
.sock at port 111 ?!?!?! I tried to reinstall it with yast2, reinstall it manually, but to no extend. Anyone got an idea? I'm quite new to Linux and mySQL... so forgive me if this should be an easy/stupid question... ;) Cheers, kiko - It's not a bug, it's a feature. christoph

[PHP] ereg

2001-11-23 Thread Christoph Starkmann
tire page, containing one php-script-section at the very top and one at the very botton, and maybe some inbetween. Now the above ereg always returns me the entire site in $phpIncludes[0]; All help is appreciated, thanx a lot, cheers, Kiko - It's not a bug, it's a feature. ch

[PHP] php->html

2001-11-23 Thread Christoph Starkmann
time...) Any hints? Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] Recursive directory scan

2001-11-26 Thread Christoph Starkmann
ll directories, does something with all files found there and stops after returning to the starting directory? Phew... Would be great, I'm kind of in a hurry... Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/

[PHP] mkdir()

2001-11-28 Thread Christoph Starkmann
file or directory... If there was, I wouldn't have to create one ;) Any ideas? Hints? Every tidy bit of wisom is appreciated... Cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP

[PHP] foo-bar

2001-11-29 Thread Christoph Starkmann
BTW... Can anybody tell me where the words foo and bar come from? Thanx, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] Global storage of objects.

2001-11-29 Thread Christoph Starkmann
it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrat

[PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Christoph Starkmann
- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

[PHP] Math problem with modulus

2004-10-05 Thread Christoph Schwadorf
expected. Replacing Custom_Round() by Floor() works fine, but why does the custom function doing the same not work? Is this a bug in PHP? This problem occurse in PHP 4.3.3 and PHP 5.0.1. Thanks for help, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Freeing memory for DOMDocument

2009-01-07 Thread Christoph Boget
one know how (or even if) I can explicitly free the memory used for the DOMDocument? Any help/advice would be greatly appreciated! thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Christoph Boget
my scripts inside a for/while loop; in the > end I opted for a CLI script which opened worker threads then > killed/restarted them when memory usage was X. Unfortunately, that is not an option for me. It just blows my mind that a method to free memory used for a DOMDocument object wasn&#x

[PHP] Create image from HTML

2009-01-09 Thread Christoph Boget
othing like this out there or if I'm just looking in the wrong places. Any advice/suggestions would be greatly appreciated! thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Christoph Boget
selecting, you'll need to use aliases. http://dev.mysql.com/doc/refman/5.1/en/identifiers.html In your code, when you are referencing the column, do so using the alias. That should solve your problem. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Christoph Boget
By defining an alias, it removes the ambiguity and allows mysql to return the value of both columns. In your code, you would just reference it using: $rowData['EmployeeName'] $rowData['EmployerName'] I hope that helps explain aliases a bit. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-11 Thread Christoph Boget
contemplation for everyone. :p thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Namespce operator

2009-03-25 Thread Christoph Boget
ction? :P Though I have read the explanation (many, many times) and I still don't understand why '::' wasn't used. MyClass::MyStaticMethod is utilizing namespacing. Why it was felt that '::' as the official namespace operator would mess that up is beyond my ken

[PHP] Symlinks and ownership

2009-04-23 Thread Christoph Boget
it in the directory, the group for the link has not been changed to what I set it to. Is that not something you can do for symbolic links programatically? thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Warning: Division by zero

2009-04-30 Thread Christoph Boget
g used. e.g., $iVar = 1; if(( isset( $_REQUEST['MY_NUMBER'] ) && ( is_numeric( $_REQUEST["MY_NUMBER']))) { $iVar = $_REQUEST['MY_NUMBER']; } $iCalculatedValue = $x / $iVar; thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Warning: Division by zero

2009-04-30 Thread Christoph Boget
oint. For it's use in the above equation, neither case is valid. Consequently, you really should be doing some validation at some point prior to that line. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Does something like this exist?

2009-06-29 Thread Christoph Boget
lasses (eg, instantiation) I've done some looking around but haven't really been able to find anything that does even some of this. I could write functionality that does this but didn't want to reinvent the wheel. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Does something like this exist?

2009-06-29 Thread Christoph Boget
d want to eventually add anyway but it's something we could do over time as we became much more familiar with the framework. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] un-de-re-deprecation

2009-07-06 Thread Christoph Boget
is_a() added back in when it was tossed out on it's head in 5.0? thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fileinfo returning wrong mime type for Excel files

2009-07-29 Thread Christoph Boget
there something else I'm missing? Or doing wrong? thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Christoph Boget
ere is no distinction. That seems both odd and wrong to me. But not nearly as wrong as fileinfo reporting "application/msword" as the mime type of an excel document. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Christoph Boget
t-stream' $ file -i excel.xls excel.xls: application/msword The xls file I am using was generated with Excel (of Office 2007) for the Mac. So either you have a different magic file (assuming that's what the file command uses) than I do or different versions of excel contain different informati

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Christoph Boget
d it may perhaps be an issue with the documents themselves. As I stated in a post I just made, the excel document I'm looking at was created using Office 2007 for the Mac. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Christoph Boget
spreadsheet saved using Office 2003 on XP and received the same output: application/msword. thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generic decorators and type hinting

2009-09-02 Thread Christoph Boget
r::time( $obj ); // $obj becomes a Timer obj with $obj inside it $obj->thingMethod(); // Timer passes call to Timer->obj thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stdout as input

2009-09-24 Thread Christoph Boget
and going with the STDIN and STDOUT constants. None of that worked. Is there a way I can pipe/redirect output from a command line uhh, command as input to my script? thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stdout as input

2009-09-24 Thread Christoph Boget
;m starting from would change. I suppose I could pass those arguments to my script and access it using argv but I'm actually kind of curious how (if) I can access output which has been piped (or redirected) to my script. thnx, Christoph -- PHP General Mailing List (http://www.php

Re: [PHP] stdout as input

2009-09-24 Thread Christoph Boget
> Exactly.  And if you just want redirected data you can try: > $data = file_get_contents("php://stdin"); > --or-- > For an array of lines: > $lines = file("php://stdin"); This is exactly what I was looking for. Thanks Shawn and Ben! thnx, Christoph

[PHP] Problem with XPath query

2009-12-14 Thread Christoph Boget
]: Invalid predicate If I remove this part of the query [...@alias="widgetType and @value="system"] the error goes away. As far as I can tell from googling around, the query is valid. If that's the case, I don't understand what's causing the error. Could someone e

Re: [PHP] Problem with XPath query

2009-12-14 Thread Christoph Boget
much quicker. ;) thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >