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 only print equal and not more equal. Alexander Skwar -- How

Re: [PHP] Masive mail Advice

2003-01-29 Thread Alexander Skwar
. 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 minutes -- PHP

[PHP] Re: phpMyAdmin is this possible

2002-08-20 Thread Alexander Skwar
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ünstige Art an Linux Distributionen zu

[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

[PHP] Cannot start Apache

2002-07-08 Thread Alexander Skwar
, 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] 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't use recode

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

2002-07-07 Thread Alexander Skwar
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://quote.6x.to (en) Homepage: http://www.iso-top.de | Jabber

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: http

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

2002-06-24 Thread Alexander Skwar
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 Linux Distributionen zu kommen

Re: [PHP] simple email validation ereg

2002-06-03 Thread Alexander Skwar
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 Distributionen zu kommen

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 translate

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 this

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Alexander Skwar
»Craig« sagte am 2002-04-30 um 09:00:33 +0100 : I am trying to write an if statement that says if the value $foo is divisible by 2 then echo text i have tried mod but it isnt recognised if ($foo % 2){ echo foo is divisible by 2; } else { echo it is not; } Alexander Skwar

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

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: http://learn.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-black); Alexander Skwar -- How to quote: http

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

2002-04-23 Thread Alexander Skwar
. 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 Uptime: 14 hours 53 minutes -- PHP

Re: [PHP] arrays in a class

2002-04-23 Thread Alexander Skwar
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 never used it. Thanks!! np Alexander Skwar

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

2002-04-23 Thread Alexander Skwar
session_name();? value=?php echo session_id();? Same for type: input type=hidden name=type value=?php echo $type;? 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

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

2002-04-23 Thread Alexander Skwar
for html element properties, amp; instead of , and always echo the var instead of the short form ?=. Yes, that's true. // 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) http

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 seem to hurt. Alexander

[PHP] Printing an array

2002-03-19 Thread Alexander Skwar
'] = 'phone' The 3rd [0] is too much. This means, that I somehow need to get rid of the 3rd [0]. It seems like I did not notice that I went up again in the array. Could somebody please help me in refining the function so that it works? Thanks a lot! -- \ Alexander Skwar

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 (german) http

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 (german) http://quote.6x.to (english

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

2002-03-19 Thread Alexander Skwar
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ünstige Art an Linux

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

2002-03-19 Thread Alexander Skwar
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 Uptime: 2

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

2002-03-19 Thread Alexander Skwar
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: http

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

2002-03-19 Thread Alexander Skwar
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 Distributionen zu kommen Uptime: 2 days

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

2002-03-19 Thread Alexander Skwar
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 Uptime: 2 days 12 hours 18

[PHP] Detecting the charset used for sending data

2002-03-19 Thread Alexander Skwar
. :( 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 | Jabber

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

2002-03-18 Thread Alexander Skwar
. 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 Linux Distributionen zu kommen

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

2002-03-18 Thread Alexander Skwar
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/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de

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

2002-03-18 Thread Alexander Skwar
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-top.de | Jabber: [EMAIL PROTECTED] iso-top.de

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

2002-01-23 Thread Alexander Skwar
; 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 (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art

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://quote.6x.to

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://www.iso

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ünstige

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 : ?php $test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Ah, I thought you did disagree. Whatever. I misunderstood you, sorry about that. Alexander Skwar -- How to quote: http://learn.to/quote (german

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 = xyz company; Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http

[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! iso

Re: [PHP] Screen Resolution in PHP?

2001-09-24 Thread Alexander Skwar
So sprach »Jay Paulson« am 2001-09-24 um 10:50:02 -0500 : Is there a way to get the client's screen resolution in php? no, because, as you say, it's the client's screen resolution and PHP runs on the server. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to

Re: [PHP] Create Array??

2001-09-23 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-09-23 um 02:09:17 -0400 : Hi, If I have a value $num = 32; based on this how can I create an Array of numbers 1 - 32, something like this... ? $num = 32; $arr = array(); for ($i = 1; $i = $num; $i++) $arr[] = $i; Alexander Skwar -- How to quote

Re: [PHP] 404 error

2001-09-23 Thread Alexander Skwar
So sprach »Richard Baskett« am 2001-09-23 um 05:40:52 -0700 : I know how to get the web page that created the 404 error, but how do I get the link that created the 404 error? Is there a way of doing this? Im sure Check the referer. Alexander Skwar -- How to quote: http://learn.to/quote

Re: [PHP] Arrays Data

2001-09-23 Thread Alexander Skwar
So sprach »Alawi Albaity« am 2001-09-23 um 07:00:22 -0700 : how can I remove duplicted values (Data) in my array ? array_unique Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso

Re: [PHP] how to get the total disk space used in a directory

2001-09-23 Thread Alexander Skwar
So sprach »sagar N Chand« am 2001-09-23 um 22:51:49 +0530 : is there any way to get the total disk space used under a directory including its subdirectories and all the contents. Either execute du, or sum up the sizes of all the files manually in PHP. Alexander Skwar -- How to quote: http

Re: [PHP] File permitions

2001-09-23 Thread Alexander Skwar
should only need access for the group running the webserver process. Here at home, it's apache/apache. 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] nimda, etc.

2001-09-22 Thread Alexander Skwar
, but you've got two Apache/PHP processes running for the sleep time. Now, imagine that 10,000 Nimda accesses happen at the same time. 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

Re: [PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Alexander Skwar
=9errormessage=$errormessage); Any idea, why this is after update not working anymore? Thanks for help Well, because in line 321 of variables.php, there's something printed. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http

Re: [PHP] How do they do that.

2001-09-22 Thread Alexander Skwar
known. 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: 3 days 2 hours 23 minutes

[PHP] Checking if session has been started

2001-09-22 Thread Alexander Skwar
($HTTP_SESSION_VARS)){ // Do something since a session is already running } ? 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

Re: [PHP] Re: Checking if session has been started

2001-09-22 Thread Alexander Skwar
So sprach »Fredrik Arild Takle« am 2001-09-22 um 18:00:37 +0200 : session_register(valid_session); OR SOMETHING LIKE THIS? if (session_is_registered($valid_session)) { Yep, that seems better. Thanks to both of you! Alexander Skwar -- How to quote: http://learn.to/quote (german

Re: [PHP] naming convention in php?

2001-09-22 Thread Alexander Skwar
So sprach »saif« am 2001-09-15 um 18:58:29 +0530 : i want to know is there any naming convention followed in php as in c/c++/java/etc. I'm trying to follow PEAR coding style - http://php.net/manual/en/pear.standards.php Alexander Skwar -- How to quote: http://learn.to/quote (german) http

Re: [PHP] naming convention in php?

2001-09-22 Thread Alexander Skwar
So sprach »saif« am 2001-09-23 um 00:33:27 +0530 : thanks Chris, i would have checked the link but it seems that online php documentation has gone haywire. Well, it's working right now. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage

Re: [PHP] percentage problems

2001-09-22 Thread Alexander Skwar
So sprach »Tyler Longren« am 2001-09-22 um 17:14:46 -0500 : Any other ideas? number_format ? 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

Re: [PHP] Private functions

2001-09-19 Thread Alexander Skwar
So sprach »James Gregory« am 2001-09-19 um 19:27:27 -0400 : Is there a way to make a function 'private' in a php class? In PHP 4.0.x - no. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http

Re: [PHP] 4.0.7 = when?

2001-09-19 Thread Alexander Skwar
So sprach »Rasmus Lerdorf« am 2001-09-18 um 10:26:15 -0700 : open_basedir has been around for years. It is not a new 4.0.7 feature. Uhm, what does open_basedir do? I can't find it in the manual? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english

Re: [PHP] Setting multiple values in a cookie

2001-09-19 Thread Alexander Skwar
. 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 1 hour 39 minutes -- PHP General

Re: [PHP] 4.0.7 = when?

2001-09-19 Thread Alexander Skwar
So sprach »Felix« am 2001-09-19 um 09:07:04 -0500 : That was taken from the manual: Chapter 3 [configuration file] Ah, okay, I thought it would be a function :) So, no wonder I didn't find it in the functions list *G* Thanks! Alexander Skwar -- How to quote: http://learn.to/quote (german

Re: [PHP] PHP vs M$.NET C#?

2001-09-19 Thread Alexander Skwar
So sprach »Christian Reiniger« am 2001-09-19 um 16:58:30 +0200 : now. And there's nothing new / innovative in C# Well, it's from M$ which will make quite some people like it, I suppose. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage

Re: [PHP] Putting PHP info into a variable

2001-09-19 Thread Alexander Skwar
So sprach »Power Programmer« am 2001-09-19 um 12:23:48 -0700 : How do I store the phpinfo() data into a variable so I can mail it to myself? use output buffering Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http

Re: [PHP] PHP Web Base Email

2001-09-17 Thread Alexander Skwar
So sprach »Sall Him« am 2001-09-10 um 12:17:54 +0800 : Hi All Does anyone know is there any web base email system which is written in PHP? imp - http://horde.org Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http

Re: [PHP] Quick mail function help.... please!!!

2001-09-17 Thread Alexander Skwar
aswell :( - php.net/mail 3rd comment PS: Keep your lines below 72 characters/line. 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

Re: [PHP] radio button help

2001-09-17 Thread Alexander Skwar
parse the $radios array. 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: 4 days 5 hours

Re: [PHP] radio button help

2001-09-17 Thread Alexander Skwar
was thinking about checkboxes Nevermind :) 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] Quick mail function help.... please!!!

2001-09-17 Thread Alexander Skwar
So sprach »Kyle Smith« am 2001-09-17 um 17:04:15 -0700 : please someone please! ive been through the manual and i dont know anywhere else to look so someone please gimme a kick in the right direction? well, read the manual php.net/mail 3rd comment Alexander Skwar -- How to quote: http

Re: [PHP] posted urls

2001-09-14 Thread Alexander Skwar
So sprach »Egon Schmid« am 2001-09-14 um 08:20:11 +0200 : Alexander, please don't try to educate people with a RTFM. Your solution to the above problem is obviously wrong. Yes, that's right. I misunderstood the question, sorry about that. Alexander Skwar -- How to quote: http://learn.to

Re: [PHP] Permissions on File

2001-09-14 Thread Alexander Skwar
. For the executed via a website part, you need to know under which user the web server process is running. This user needs to be able to read the file, and nobody else. So, something like this: chown WEBSERVERUSER file chmod 400 file Alexander Skwar -- How to quote: http://learn.to/quote

Re: [PHP] html formating trouble

2001-09-14 Thread Alexander Skwar
right before the #FF. You either need to break your fingers and write: echo font col=\#ff\.; or have it much simpler, faster and better and use single quotes instead: echo 'font col=ff..'; Alexander Skwar -- How to quote: http://learn.to/quote (german) http

Re: [PHP] html formating trouble

2001-09-14 Thread Alexander Skwar
lines. 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 13 hours 45 minutes -- PHP

Re: [PHP] html formating trouble

2001-09-14 Thread Alexander Skwar
So sprach »Andrew Perevodchik« am 2001-09-14 um 22:34:02 +0300 : The only reason i see -- you don't have to escape any quotes. You can just paste a piece of HTML and insert variables in there without ?=...? ;) Yep, that's the only reason I see for here-docs as well. Alexander Skwar -- How

Re: [PHP] Email checking

2001-09-13 Thread Alexander Skwar
], 'ANY')){ // Domain not existant return array('code' = -6, 'part' = $parts[1]); } if (! checkdnsrr($parts[1], 'MX')){ // No MX for domain return array('code' = -7, 'part' = $parts[1]); } // When we get here, everything is fine! return TRUE; } Alexander Skwar

Re: [PHP] minus in [] groups in ereg

2001-09-13 Thread Alexander Skwar
=, %, . and _ inside the character class? I'm not sure, but I don't think it's needed. [[A-Za-z0-9\_\-\=\%\.]] won't work with - as it is supposed to [[A-Za-z0-9\_\=\%\.\-]] is ok And finally - why two [ and ]? Why not just 1 of each? Alexander Skwar -- How to quote: http://learn.to/quote (german) http

Re: [PHP] Re: Email checking

2001-09-13 Thread Alexander Skwar
a wrong adress. So, getting a Email is okay answer means nothing - but if you get a Email is wrong answer, you know that it is wrong. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso

Re: [PHP] is PHP crazy, or am I?

2001-09-13 Thread Alexander Skwar
So sprach »Tom Carter« am 2001-09-14 um 03:58:50 +0100 : maybe I'm wrong, but don't you need a return value? No, he doesn't . Have a look at the 1st parameter. PS: Fullquotes are not necessary. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english

Re: [PHP] Forced download??

2001-09-13 Thread Alexander Skwar
So sprach »Zhu George-CZZ010« am 2001-09-13 um 17:46:13 -0500 : Is there a way to do that? Yes, send a bogus filetype, maybe something like application/x-download. PS: Please keep your lines below ~72 characters. Thanks ahead! Yep. Alexander Skwar -- How to quote: http://learn.to/quote

Re: [PHP] easy cookie question

2001-09-13 Thread Alexander Skwar
/setcookie 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 hours 50 minutes -- PHP

Re: [PHP] equivelant of ASP's #include file?

2001-09-13 Thread Alexander Skwar
So sprach »Kurth Bemis« am 2001-09-13 um 10:32:21 -0400 : the PHP equiv is include('filename') Well, no, the equiv is readfile. read the manual - You too. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http

Re: [PHP] dlopen - why ?

2001-09-13 Thread Alexander Skwar
scripting language. You mean for shell scripts? #!/usr/bin/php -q ?php echo inside the script; ? That is, put a -q at the end of the first line or call php with the -q parameter. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http

Re: [PHP] posted urls

2001-09-13 Thread Alexander Skwar
So sprach »murat« am 2001-09-13 um 14:34:31 +0300 : how can i change variables that has two or more words to variables that has + instead of blanks in that variables. Like this: word1 word2 word3 = word1+word2+word3 $word1 . $word2 . $word3 Read the manual! Alexander Skwar -- How

Re: [PHP] Getting ip address of client and displaying a number in decimal format.

2001-09-13 Thread Alexander Skwar
etc - php.net/number_format 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

Re: [PHP] How to list 2-6 in while script?

2001-09-12 Thread Alexander Skwar
,$val) = each ($headers) and $key = 6 and $key = 2) { print pb.$val./b/p; } Eh? Oh, if $key contains the number, than yes. I understood his question differently. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage

Re: [PHP] htmlspecialchars() and MySQL

2001-09-12 Thread Alexander Skwar
So sprach »Augusto Cesar Castoldi« am 2001-09-12 um 08:52:29 -0300 : i'm using htmlspecialchars()... Switch to addslashes() to insert the data and stripslashes() when fetching the data from the DB + htmlentities/htmlspecialchars to display the values. Alexander Skwar -- How to quote: http

Re: [PHP] Verify E-Mail Address

2001-09-12 Thread Alexander Skwar
is a completely legal adress. 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 days 14 hours 59

Re: [PHP] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread Alexander Skwar
this? No, it's either SHTML or PHP. IIRC, Apache 2.0 will be able to handle SHTML'd PHP files (or rather: two (or more?) handlers for one file). Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 08:55:49 -0600 : We need the receive the help from Got, I believe He is the only one who can help us on this situation Well, you know: *EXACTLY* this is the problem! Your so called god. If it weren't for this superstition, the world would

Re: [PHP] How to list 2-6 in while script?

2001-09-11 Thread Alexander Skwar
)){ if (2 == $i || 6 == $i){ continue; } print $val; $i++; } 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] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 17:36:59 +0100 : I'm sure your is the view shared by the VAST, VAST majority on both sides. Michael Quoting Clint Tredway [EMAIL PROTECTED]: I am sorry, but the problem is the exact opposite. If people would turn back to God and

Re: [PHP] Stripslashes question.

2001-09-10 Thread Alexander Skwar
you to put it in a SQL query. 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: 16

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-09 Thread Alexander Skwar
are high that a lot of your will bounce. If you'll be doing something like this more often, it'll be a lot easier and a lot more successful if you outsource this to specialized companies. They know how to circumvent this kind of trouble. Alexander Skwar -- How to quote: http://learn.to/quote (german

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Alexander Skwar
So sprach »Neil Zanella« am 2001-09-09 um 23:20:12 -0230 : Hi Rasmus! Thanks for your explanation. Unfortunately I am using a server on which I do not have write access to php.ini. I have also been noticing that No need to; if you're allowed to, you can create a .htaccess. a submitted \

Re: [PHP] Carriage return.

2001-09-05 Thread Alexander Skwar
So sprach »Johan Vikerskog (EMP)« am 2001-09-05 um 11:48:11 +0200 : What i need to know is if there is a way to do this without involving unix commands like perl sed dos2unix etc etc. I need to know if there is a simple way to do this with just php and not some regexp solution. I want to

Re: [PHP] Newbie Question: mysqldump via PHP

2001-09-04 Thread Alexander Skwar
So sprach »Tony Frasketi« am 2001-09-04 um 13:53:10 -0500 : section of the phpinfo listing. Do you know of a unix shell command I could use to get the location of mysqldump? which mysqldump this should tell you. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote

Re: [PHP] I dont see whats wrong!

2001-09-03 Thread Alexander Skwar
, you've got a . - remove this, and it might work. 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] I dont see whats wrong!

2001-09-03 Thread Alexander Skwar
So sprach »Andy Woolley« am 2001-09-03 um 16:37:08 +0100 : Might not work in all cases though but it's certainly easier to read. Also easy to read: $msg = array( $foo, $bar, $blah, $blub ); echo implode(\r\n, $msg); Alexander Skwar -- How to quote: http

Re: [PHP] php's future

2001-09-02 Thread Alexander Skwar
(well, not really...) and which loops thru 20 values. 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] php's future

2001-09-02 Thread Alexander Skwar
only what's neccessary. 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: 5 hours 53

Re: [PHP] php's future

2001-09-02 Thread Alexander Skwar
it in the php.ini file. 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: 6 hours 8 minutes

Re: [PHP] for and emailmessage

2001-09-02 Thread Alexander Skwar
So sprach »Jan Grafström« am 2001-09-02 um 22:17:34 +0200 : $i = 0; $ii = count($vn); Sure that $vn contains anything? Add this line after the count() line to see what $vn contains: var_dump($vn); Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
So sprach »Arcadius A.« am 2001-08-31 um 05:27:04 -0700 : $u = $SCRIPT_FILENAME; Because you did not define $SCRIPT_FILENAME anywhere. If you want to access the global variable, you've got to say so: global $SCRIPT_FILENAME; Alexander Skwar -- How to quote: http://learn.to/quote (german

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
[]' has 10 characters. So, you don't type less. And with using global(), the code is more orderly, and thus easier to read. 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

  1   2   >