Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-29 Thread Alexander Skwar
So sprach 1LT John W. Holmes am 2003-01-27 um 15:49:33 -0500 : > Actually, "08" is equal to 8 in PHP. PHP will convert the string to an No, that's not true: if ("08" == 8){ echo "equal"; } if ("08" === 8){ echo "more equal"; } This will

Re: [PHP] Masive mail Advice

2003-01-29 Thread Alexander Skwar
ultra fast. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.biz |Jabber: [EMAIL PROTECTED] iso-top.biz - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 16 hours 2 minu

[PHP] Re: phpMyAdmin is this possible

2002-08-20 Thread Alexander Skwar
em" stuff like creating databases and especially setting ACL, I much more prefer to use Webmin. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.biz |Jabber: [EMAIL PROTECTED] iso-top.biz - Die gü

[PHP] Re: [PHP-DEV] singleton feature

2002-06-24 Thread Alexander Skwar
onnection pools, loggers etc. Uhm, what's a "Singleton class"? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de |Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an

[PHP] configure breaks at return type of qsort...

2002-07-07 Thread Alexander Skwar
3 Jun 18 2001 sslopt-vars.h -rw-r--r--1 root root 2724 Jun 18 2001 tilde.h These files belong to the SuSE mysql-devel-3.23.37-24 RPM. Does anyone have an idea about why this error happens? Thanks a lot, Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quo

Re: [PHP] configure breaks at return type of qsort...

2002-07-07 Thread Alexander Skwar
Alexander Skwar wrote: > When I use --with-mysql instead of --with-mysql=/usr/include/mysql, I > can compile PHP with no errors. /usr/include/mysql contains: Solved. I need to call --with-mysql=/usr and not use the full path to the mysql includes. Alexander Skwar -- How to quote

[PHP] Cannot start Apache

2002-07-08 Thread Alexander Skwar
fault) --- +++ killed by SIGSEGV +++ There's only one thing which is irritating me: ioctl(5, TCGETS, 0xbfffe7f8)= -1 ENOTTY (Inappropriate ioctl for device) Anyone got an idea about what might be broken here? Thanks a lot, Alexander Skwar -- H

Re: [PHP] Cannot start Apache

2002-07-08 Thread Alexander Skwar
So sprach Alexander Skwar am 2002-07-08 um 10:11:16 +0200 : > I thought that I had PHP 4.2.1 compiled just fine on SuSE 7.2, > however when I start Apache 1.3.19, it seg faults. I've now found out, that this was caused by --with-recode. When I compile PHP like I did but don'

[PHP] STARTTLS with IMAP?

2002-07-09 Thread Alexander Skwar
Hi! Does imap_open in PHP 4.2.1 support STARTTLS? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de |Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Alexander Skwar
So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600: > string is a mixture of PHP code and HTML. I want to be able to output the > string with the PHP code inside the string processed. Right now the PHP http://www.php.net/manual/en/function.eval.php Alexander Skwar -- How to

Re: [PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Alexander Skwar
ubstr($LiveDate, 2, $comma - 2); $year = substr($LiveDate, 4, $comma); Something like this should work - I'm not too sure about the values for substr, but it should give you an idea. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

[PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Alexander Skwar
, there's not the network layer in the way which has to be taken care of. Is this correct? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige A

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Alexander Skwar
So sprach Brian Clark am Mon, Apr 16, 2001 at 07:17:43PM -0400: > > In a mysql_connect() it is possible to specify a path to the socket > > which should be used for communicating with MySQL. > > Yes, it's in the documentation. Please read again what I wrote Alexander

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Alexander Skwar
here is the answer to my question "well documented"? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Alexander Skwar
ween PHP > > and MySQL faster than when I connect via a (loop-)network? > > No idea. Yes, I got that :)) Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Alexander Skwar
So sprach Brian Clark am Mon, Apr 16, 2001 at 08:01:04PM -0400: > Ahhh, yes, I see that was stupid. Sorry, Alexander. :) Ah, thanks Joe for clearing up this confusion :)) Now that this is sorted out: What might be the best way to do some benchmarking wrt. this? (Links are fine) Alexan

Re: [PHP] Populating HTML List boxes From DB

2001-04-16 Thread Alexander Skwar
dea Uhm, no example? I'll try. ... failed *G* ListboxValue ); echo '">'; echo htmlentities( $row->ListboxText ); } ?> Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.co

Re: [PHP] is it safe to stripslashes() on all form variables?

2001-04-16 Thread Alexander Skwar
//php.net/ChangeLog-4.php#4.0.3 ) Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 2 hou

Re: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Alexander Skwar
#x27;; echo $row->device; echo '\n'; } *G* Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux D

Re: [PHP] Populating HTML List boxes From DB

2001-04-17 Thread Alexander Skwar
So sprach Jason Murray am Tue, Apr 17, 2001 at 11:55:44AM +1000: > Brief correction. > > > while($row = mysql_fetch_row($rs)) > > ^^^ should be "array". Why should it be array and not, let's say, object? Alexander Skwar -- How

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
ould also ask on the MySQL list? And, do you have any suggestions about how to benchmark this? Thanks a lot, Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de -

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
So sprach Christian Reiniger am Tue, Apr 17, 2001 at 02:01:48PM +0200: > run "ab" (comes with apache) on two scripts, one using method A > repeatedly, the other using method B repeatedly Thanks, will do. Alexander Skwar -- How to quote: http://learn.to/quote (german) ht

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
> > test the numbers using the 'localhost' (the AF_UNIX socket). > comment/uncoment the 'myhost' line & re-test (AF_INET connect). the first define, defines a connect using a AF_UNIX socket? Are you sure? According to the manual, I'd have thought, that I'd ne

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
o say 'localhost:/tmp/mysql.sock', but, guess I'm wrong :) Thanks, Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen

[PHP] CGI PHP Scripts: Error "Premature end of script headers"

2001-04-17 Thread Alexander Skwar
ed-By: PHP/4.0.4 Content-type: text/html 42 But when I run the script via a browser, like http://localhost/cgi-bin/ez, I get an internal server error and in apache's error log the line "Premature end of script headers" What am I doing wrong, what have I forgotten, and how to do it

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-18 Thread Alexander Skwar
t the HTTP_POST_VARS you have outside the function. Either you pass it along as a parameter, or you do: global $HTTP_POST_VARS; Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.i

Re: [PHP] function to add %20 in place of blank spaces

2001-04-18 Thread Alexander Skwar
So sprach Nando2 am Mon, Apr 16, 2001 at 03:28:11PM -0300: > Can anyone remind me of that? (raw)urlencode Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top

Re: [PHP] php like cgi

2001-04-18 Thread Alexander Skwar
know which interpreter to use to exec this script. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen

[PHP] FastCGI and PHP

2001-04-18 Thread Alexander Skwar
FastCGI scripts, I see that they mainly consist of a while loop like this: while( FCGI::accept() >= 0 ) { foo(); FCGI::flush(); } Questions: What are the PHP equivalents to FCGI::accept() and FCGI::flush()? Alexander Skwar -- How to quote: http://learn.to/quote (german)

Re: [PHP] FastCGI and PHP

2001-04-20 Thread Alexander Skwar
aries (yet). Thanks, that's right. Too bad. So the major advantage of FastCGI for PHP is, when your web server does not support mod_php, ie. when you're using something else than Apache. In Apache mod_php does about the same as FastCGI PHP does. Too bad... Alexander Skwar -- How to

[PHP] PEAR extensions/patches - where to send them?

2001-05-05 Thread Alexander Skwar
Hi! If I patch/extend the PEAR classes, where can I send the diffs so that they are not lost on my local harddisk? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso

Re: [PHP] How to catch the output of http:// -> text file?

2001-05-05 Thread Alexander Skwar
So sprach elias am Wed, May 02, 2001 at 04:28:41PM -0700: >$lines = join('', file(http://www.mysite.com/generator.php?id=$i)); Easier: $lines = readfile('URL.......'); Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (englis

Re: [PHP] How to catch the output of http:// -> text file?

2001-05-05 Thread Alexander Skwar
So sprach Kraa de Simon am Thu, May 03, 2001 at 10:19:49AM +0200: > Warning: Bad arguments to join() in c:\program > files\nusphere\apache\htdocs\test.php on line 2 See http://php.net/join and you'll see the error. Alexander Skwar -- How to quote: http://learn.to/quote (german) h

Re: [PHP] How to catch the output of http:// -> text file?

2001-05-05 Thread Alexander Skwar
So sprach Kraa de Simon am Thu, May 03, 2001 at 10:32:47AM +0200: > I'm on Windows 2000, Apache 1.3.12 / PHP 4.0.4pl1 and MySQL 3.23.32. Fine - so? PS: No fullquotes, please... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: [PHP] How to catch the output of http:// -> text file?

2001-05-05 Thread Alexander Skwar
l and see if this works. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 21 hours 3 minute

Re: [PHP] Array Assignment

2001-05-05 Thread Alexander Skwar
Mark first assigned something to $first, which then made this a string variable. Later on he assigned something to $first[$second]. This broke because of the reasons Christian mentioned. Mark, if you directly assign $first[$second] the value "pass", then it should work. Alexander Skwar -- H

Re: [PHP] "Free" Database Design Program

2001-05-05 Thread Alexander Skwar
So sprach Augusto Cesar Castoldi am Sat, May 05, 2001 at 10:58:32AM -0300: > I heard about "ERWin", but I didn't find the 'crack' for version 4. We've got ERwin at work - does ERWin work with MySQL databases? PS: Please no fullquotes. Alexander Skwar -- How

Re: [PHP] session_register()

2001-05-05 Thread Alexander Skwar
So sprach Matthew Luchak am Fri, May 04, 2001 at 11:57:50AM -0400: > I would be very interested in hearing of any developments with session > anomilies.. Although you've posted the question twice in the message, I still think you've forgot one minor point - your question! :)

Re: [PHP] "Free" Database Design Program

2001-05-05 Thread Alexander Skwar
essful, but eg. how can you define keys in an entity in dia? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu

Re: [PHP] ImageColorTransparent and Netscape?

2001-05-05 Thread Alexander Skwar
So sprach martin helie am Sat, May 05, 2001 at 11:32:47AM -0400: > I am stumped with ImageColorTransparent and Netscape. Netscape 4.x doesn't support transparent PNGs Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread Alexander Skwar
appy to sell IIS to you. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 16

Re: [PHP] Sorry, what is "PWS"

2001-05-06 Thread Alexander Skwar
So sprach Thomas Edison Jr. am Sat, May 05, 2001 at 11:41:17PM -0700: > Stable don't go in the same line. But anyways, it > works ok at home for any kind of work. Yeah, I suppose for a HOME server PWS is just fine. If you don't want to do any fancy, than PWS might be good.

Re: [PHP] best ide for windows

2001-05-06 Thread Alexander Skwar
So sprach Alex Piaz am Sun, May 06, 2001 at 02:09:51PM -0300: > On linux, Quanta is a good choice, since homesite does not run on linux (I A lot of people also like bluefish. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: h

Re: [PHP] "Free" Database Design Program

2001-05-07 Thread Alexander Skwar
s anymore. When did CA buy LogicWorks? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime:

Re: [PHP] checking the mp3 bitrate

2001-05-12 Thread Alexander Skwar
ry executing mp3info (if it's installed) after the file has been uploaded, and parsing it's output. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-

Re: [PHP] (again)Writing new lines in txt- files?=)

2002-01-23 Thread Alexander Skwar
ad. And if you're so unlucky to use Windows, you've got to use \r\n. This means, $s="Line 1\r\nLine 2\r\nLine 3\r\n"; will fill the variable $s with a string which consists of 3 lines when printed on a Windows system. Alexander Skwar -- How to quote: http://learn.to/quote (

Re: [PHP] Which Database abstration layer?

2002-04-23 Thread Alexander Skwar
»Javier« sagte am 2002-04-23 um 17:09:56 -0300 : > Can anybody recomend me a "nice" DB abstraction layer that is not > included in phplib? PEAR http://pear.php.net http://php.weblogs.com/php_pear_tutorials ADOdb http://php.weblogs.com/adodb Alexander Skwar -- How to quote:

Re: [PHP] arrays in a class

2002-04-23 Thread Alexander Skwar
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:27:46 -0400 : > ImageString($this->im,1,65,5,"apcs[0] = $this->apcs[0]",$this->black); Hm, try to use proper syntax here, ie: ImageString($this->im,1,65,5,"apcs[0] = " . $this->apcs[0],$this->

Re: [PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Alexander Skwar
't need to worry about having to "encapsulate" the data so that it can be passed in the first place. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de |Jabber: [EMAIL PROTECTED] iso-top.de -

Re: [PHP] arrays in a class

2002-04-23 Thread Alexander Skwar
s [0] as the array index to the class var apcs of $this. Instead of doing it the way I just suggested, you could have also done "{$this->apcs[0]}", I think. I seem to remember that this also should be possible - but IMO that's even a lot more broken than my way and I've

Re: [PHP] What's wrong with the PHPSESSID?????

2002-04-23 Thread Alexander Skwar
the Post String, > > -- clip -- > ACTION='network_option_transunion.php?&type=' > METHOD="POST"> Well, either to a POST request *OR* a GET request, but don't mix them. Pass the session_name() as a normal POST var with a value of session_id(), like so:

Re: [PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread Alexander Skwar
quotes for html element properties, & instead of > &, and always echo the var instead of the short form // With session_id() instead of $PHPSESSID or $SID $SID will for sure be empty, but the constant SID not. Alexander Skwar -- How to quote: http://learn.to/quote (german)

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Alexander Skwar
} else { echo "it is not"; } Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de |Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen

Re: [PHP] XML to HTML?!

2002-04-30 Thread Alexander Skwar
»Fredrik Arild Takle« sagte am 2002-04-30 um 18:48:37 +0200 : > I've parsed some XML, when I do xml_parse it outputs the html-codes. Wrap into a output buffer. ob_start, ob_get_contents Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english)

Re: [PHP] php sessions

2002-06-02 Thread Alexander Skwar
Michal Dvoracek wrote: >when creating new session: > >define('S_USER', 0); >define('S_USER_ID', 0); >define('S_USER_NAME', 1); > >session_start(); >$_SESSION[S_USER][S_USER_ID] = 1; >$_SESSION[S_USER][S_USER_NAME] = 'Michal'; > Hm, you're defining a session variable called 0? Because PHP will

Re: [PHP] simple email validation ereg

2002-06-02 Thread Alexander Skwar
Justin French wrote: >my aim will be to strip out anything that doesn't at least LOOK like like an >email address. > Well, instead of coming up with some "clever" regexp, I'd suggest to completely dump syntax checks. Instead, I only check if the host has a MX entry associated. If not, then t

Re: [PHP] simple email validation ereg

2002-06-03 Thread Alexander Skwar
re the mail should be delivered if there's no MX? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de |Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distribu

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Alexander Skwar
amount of those > chars. preg_replace('|[^a-z]||g', $string) or somesuch Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Li

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Alexander Skwar
id of the -, you need to specify it as the 1st charcter, or in your case, as the 2nd: $new = preg_replace('/[^-a-z]/i','',$old); How do you allow [ and ]? $new = preg_replace('/[^[]-a-z]/i','',$old); Alexander Skwar -- How to quote: http://learn.to/qu

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Alexander Skwar
ot remove the ^ character, because you've mentioned this char quite sume times. The ^ has only a special meaning, if it's the 1st character in a [] group. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso

[PHP] Printing an array

2002-03-19 Thread Alexander Skwar
;male' r[0][0][prop] = 'prefs' r[0][0][0][text] = 'mail' r[0][0][0][set] = 'yes' r[0][0][0][1][text] = 'phone' r[0][0][0][1][set] = 'no' As you can see in the line with "phone", I've sti

Re: [PHP] Printing an array

2002-03-19 Thread Alexander Skwar
»scott furt« sagte am 2002-03-19 um 05:28:51 -0500 : > ...because you never shrink $prefix > > after output(), try array_pop($prefix); Awesome! This works! *THANKS* a lot! I was fighting with this for a whole day :) Alexander Skwar -- How to quote: http://learn.to/quote (ger

Re: [PHP] Please explain...

2002-03-19 Thread Alexander Skwar
»Rudolf Visagie« sagte am 2002-03-19 um 12:19:04 +0200 : > I would guess that the string "foo" evaluates to integer 0 in the comparison Hmm, shouldn't a filled string ("foo") evaluate to TRUE, ie. to 1? Alexander Skwar -- How to quote: http://learn.to/quote

Re: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Alexander Skwar
d PGP to anyone, as NA has stopped developing PGP and is trying to sell it. PGP is dead - long live GnuPG! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die gü

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
nt. There's no connection between the two. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
one hand, PHP is not calling JS functions. The browser might interpret the strings PHP sends as JavaScript and act thusly. On the other hand, users who disabled JS will not see your JS alert. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Alexander Skwar
an understand when people/admins hesistate to recompile PHP and stuff like this. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distribution

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Alexander Skwar
e user had disabled JS in his browser. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen

[PHP] Detecting the charset used for sending data

2002-03-19 Thread Alexander Skwar
t manually. :( If a user sets his browser to use UTF-8 (or whatever) and then submits a form with a text field, how do I find out which charset was used? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabb

Re: [PHP] $DOCUMENT_ROOT behavior linux vs solaris

2002-03-20 Thread Alexander Skwar
»Dennis Moore« sagte am 2002-03-20 um 02:14:16 -0500 : > So when I build my paths I get an extra "/". Is there any way to make Sun version >to work like the Linux version. I hate to go back and change all my code. Uhm, is the double / a problem? On Linux, it doesn't see

Re: [PHP] printf

2002-04-10 Thread Alexander Skwar
»Ron Allen« sagte am 2002-04-10 um 13:49:15 +0200 : > I would like it so that it puts a comma for every 3 spaces...Any Uhm, I'd rather use number_format than printf. See http://www.php.net/manual/en/function.number-format.php Alexander Skwar -- How to quote: http://learn.

Re: [PHP] Is While needed in MySQL Result with a Limit of 1

2002-04-10 Thread Alexander Skwar
mysql_num_rows to see if there was 1 row. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen

[PHP] Multilingual application

2001-12-06 Thread Alexander Skwar
Hi! I've got to develop a multilingual application. What's the best approach to have the app multilingual? Should I use gettext, or are there any better ways to do this? Thanks, Alexander Skwar -- >> Wohnung in Gelsenkirchen und Umgebung gesucht!

Re: [PHP] SSI

2001-12-26 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-12-21 um 15:12:54 -0800 : > if you have a PHP page and you want to use SSI in it... is there a special > method? Yes - scrap it. It's neither senseful nor possible. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://

Re: [PHP] PHP software tool

2001-12-26 Thread Alexander Skwar
So sprach »LaserJetter« am 2001-12-22 um 18:46:46 - : > Does anybody know of or can recommend any freeware text editing tools for > editing PHP code in Win32? vim Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://w

Re: [PHP] Question about CREATE_FUNCTION

2001-12-26 Thread Alexander Skwar
So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : > Nope > $test(); Please explain! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die gü

Re: [PHP] Question about CREATE_FUNCTION

2001-12-26 Thread Alexander Skwar
So sprach »Andrey Hristov« am 2001-12-21 um 17:40:07 +0200 : > $test='htmlspecialchars'; > echo $test(''); > ?> > > Produces : > > <html> Ah, I thought you did disagree. Whatever. I misunderstood you, sorry about that. Alexander Skwar -- H

Re: [PHP] Sendemail appends domain to mail function

2001-12-26 Thread Alexander Skwar
So sprach »Peter« am 2001-12-21 um 18:48:13 +0800 : > How can I avoid this? By using a valid $from adress. It might also help to put the "adress" in <>, so: $from = ""; Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (

[PHP] Re: equivalent of asp's <%= strTest %>

2001-04-07 Thread Alexander Skwar
So sprach Costas am Wed, Apr 04, 2001 at 02:07:54PM +0100: > Is there an equivalent in PHP of the following code: > > equivalent of asp's <%= strTest %> Uhm - what does this strange line do?? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://

[PHP] Shared Memory weiredness

2001-04-09 Thread Alexander Skwar
nel 2.4.2 (also tried 2.4.3). PHP was compiled with gcc 2.96. Someone please help me! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Dist

Re: [PHP] link variable to an html page...

2001-04-09 Thread Alexander Skwar
es. Else: Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 9 hours 22 minute

Re: [PHP] Re: Lists are back up

2001-06-18 Thread Alexander Skwar
So sprach Clayton Dukes am Mon, Jun 18, 2001 at 05:38:26PM -0400: > Why not just set your filter to look for [EMAIL PROTECTED] in the to > or cc line? Because not all filters support that, and it makes reading mails eg. via webmail interfaces easier? Alexander Skwar -- How to quote:

Re: [PHP] Re: Lists are back up

2001-06-19 Thread Alexander Skwar
n CC. Those are both products I use regularly. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen

Re: [PHP] Speed of loding PHP pages

2001-07-12 Thread Alexander Skwar
ld > just go away :) Well, Netscape 4 is not that nice, granted, but Mozilla rules! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an L

Re: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Alexander Skwar
is a Windows program... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 23 hour

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Alexander Skwar
> if you install mysql on a windoze machine then you can administer ANY > mysql >database going through the socket. Okay, for a development this may be fine, but I still fail to see how a tool that runs on your own computer (no matter if it's a Windows tool, or a Linux tool) can help you admin

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Alexander Skwar
> i'm sorry but i seem to be completely missing your point. > > mysql accepts incoming requests on a specific socket (can't remember You mean "port", don't you? > one, but postgresql is 5432) and therefore where you are is not an > issue. Well, the issue is, that normally, connects to mysql a

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Alexander Skwar
> i'm sorry but i seem to be completely missing your point. Yeah, seems like so :) > > mysql accepts incoming requests on a specific socket (can't remember You mean "port", don't you? > one, but postgresql is 5432) and therefore where you are is not an > issue. Well, the issue is, that norm

Re: [PHP] return

2001-07-16 Thread Alexander Skwar
ction expDate($date){ $month = 08; // whatever $year = 15; // whatever $return_value = array( "month" = $month, "year" = $year ); return $return_value; } $date = expDate("4711"); print $date["month"] . " " . $date["year&q

Re: [PHP] return

2001-07-16 Thread Alexander Skwar
So sprach »Alexander 'Digital Projects' Skwar« am 2001-07-16 um 22:38:44 +0200 : > anything.. correction: Whoops - there's a . missing anything... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.d

Re: [PHP] a good PHP editor

2001-07-18 Thread Alexander Skwar
of simple FTP client builtin? > There are three bad things about this program though; > 1, The price - $99 usd ($89 if you download it). Well, we now how do deal with that one, don't we? :( Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.t

Re: [PHP] Question about hosting

2001-07-18 Thread Alexander Skwar
ftware RAID. Using two (or more) disks will speed things up tremendously, because the system will then read and write simultaneously from multiple disks. > time. (Forget crappy 'ultrasuperfast IDE'... ) yep. Alexander Skwar -- How to quote: http://learn.to/quote (german) htt

Re: [PHP] Question about hosting

2001-07-18 Thread Alexander Skwar
performance when reading. Just let the table grow to, let's say, 500k rows and then create a new table. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die

Re: [PHP] a good PHP editor

2001-07-18 Thread Alexander Skwar
oes Emacs (Emacs? Hmm, what about XEmacs?) have a PHP mode? Last time I checked, it did not - although I used XEmacs back then. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.

Re: [PHP] PHP & Imagemagick

2001-07-22 Thread Alexander Skwar
, don't know about ImageMagick, but have a look at php_imlib. Find the URL yourself! :) Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die güns

[PHP] PHP Newsgroup?

2001-07-23 Thread Alexander Skwar
Hi Folks! Is there a PHP newsgroup around? I'm not talking about the ones at news.php.net, btw. Or is alt.php the "official" newsgroup? Thanks, Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digi

[PHP] Cannot compile 4.0.6 on RedHat 6.2

2001-07-23 Thread Alexander Skwar
f_t' /usr/include/unistd.h:835: parse error before `__off_t' In file included from zend_language_scanner.c:2749: /usr/include/unistd.h:905: parse error before `__off_t' zend_language_scanner.c: In function `prepare_string_for_scanning': zend_language_scanner.c:3101: `__uint8_t&#x

Re: [PHP] Capitalize Function ??

2001-07-23 Thread Alexander Skwar
a German example, I'd bet there are names in French, Dutch, Spanish, Italian as well which should not be capitalized. Hmm, how about English? Sometimes there are suffixes like "the 3rd", no? Would it be right to capitalize this? Alexander Skwar -- How to quote: http://l

Re: [PHP] Capitalize Function ??

2001-07-24 Thread Alexander Skwar
e the 'med' shouldn't be capitalized. And I'm sure, there are enough other examples - but: it's your app, *I* would not do it, but that's just me. If people are too lazy to type there name correctly capitalized, than it's their problem IMHO. Alexander Skw

Re: [PHP] Capitalize Function ??

2001-07-24 Thread Alexander Skwar
So sprach »Ryan Fischer« am 2001-07-24 um 13:18:33 -0400 : > Never heard of that one before. Usually, a medical doctor adds an > "M.D." at the end of his name indicating so. Hmm, this maybe the case in the states. "Dr. med." is the German title. Alexander Skwa

  1   2   3   >