Re: [PHP] querying for values inside range

2003-03-18 Thread Wico de Leeuw
At 06:04 18-3-03 -0500, Jason Paschal wrote: this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a

Re: [PHP] querying for values inside range

2003-03-18 Thread Wico de Leeuw
At 06:04 18-3-03 -0500, Jason Paschal wrote: this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a

Re: [PHP] Fputs including php syntax?

2003-02-25 Thread Wico de Leeuw
fput($fp, '? phpinfo(); ?'); should work else try fput($fp, '' . '?' . \n); fput($fp, 'phpinfo() . \n); fput($fp, '?' . '' . \n); Greetz At 09:27 25-2-03 -0500, MIKE YRABEDRA wrote: Is it possible to use 'fputs' to write to a text file and include php code within it? That way the generated

Re: [PHP] Send mail with hidden copy.

2003-02-25 Thread Wico de Leeuw
add an etra header (see mail function) and use the bcc: email header Gr At 11:39 25-2-03 -0300, Skyhawk wrote: How do I make to I send mail with hidden copy? What the correct sintax?? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looping needs to re-open parm file

2002-12-19 Thread Wico de Leeuw
Did you look at: http://www.php.net/manual/en/function.file.php Puts all lines in an array Gr, At 12:00 19-12-02 +0100, Jacob van Zanen wrote: Hi All, I'm reading a paramter file and a text file. Per line of the text file I want to check if there is a word in there from the parameter file.

Re: [PHP] Looping needs to re-open parm file

2002-12-19 Thread Wico de Leeuw
Hiya something like this ? if ($FileContent = file(d:\MyPhp\\test.ora) AND $IniContent = file(d:\MyPhp\initORA.ini)) { foreach($FileContent AS $line) { if (in_array($line, $iniContent)) { echo $LineBR\n;

Re: [PHP] RegExpres Prob

2002-12-19 Thread Wico de Leeuw
At 11:18 19-12-02 +, John Wards wrote: I have a regexp problem I want to go through some HTML and where img src=path/to/image.jpg I want to change it to this img src=http://www.domain.com/path/to/image.jpg; BUT if the image tag is like this img src=http://www.domain.com/path/to/image.jpg;

Re: [PHP] RegExpres Prob

2002-12-19 Thread Wico de Leeuw
At 11:27 19-12-02 +, John Wards wrote: On Thursday 19 Dec 2002 11:25 am, Wico de Leeuw wrote: Preg_Replace('~src=(?!http://)~iS', 'src=http://www.domain.com/', $string); 1. find src= 2. look forward if next chars are http:// i=not case sensitive S=optimize pattern because we going to use

Re: [PHP] flush output error

2002-12-18 Thread Wico de Leeuw
At 20:41 18-12-02 +1100, you wrote: hi guys i have a little problem with flushing the buffer output, in this loop it should be downloading a file and changing the progress of a progress bar, although it waits until the shell_exec of all the files are done and then flushes the buffer which will

Re: [PHP] Compiling php-4.0.6 with MySQL support

2002-12-18 Thread Wico de Leeuw
At 14:44 18-12-02 +0500, Igor Shulgin wrote: Hi! I cannot compile php-4.0.6 with MySQL support as static module for apache_1.3.20 on FreeBSD 4.4. Early I successfully build and install /usr/ports/databases/mysql323-server and /usr/ports/databases/mysql323-client with standard

Re: [PHP] Undefined variable error message

2002-12-18 Thread Wico de Leeuw
http://www.php.net/manual/en/function.error-reporting.php At 10:31 18-12-02 +, Michael Egan wrote: All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' This occurs wherever a variable

Re: [PHP] How to upload a file

2002-12-18 Thread Wico de Leeuw
Look for the limit in php.ini http://www.php.net/manual/en/configuration.directives.php#ini.upload-max-filesize Gr, Wico At 16:47 18-12-02 +0530, Somesh wrote: Hi, I am using the following code to upload file; X--- form enctype=multipart/form-data

Re: [PHP] Random Number Genertation

2002-12-18 Thread Wico de Leeuw
http://www.php.net/manual/en/function.array-rand.php At 11:35 18-12-02 +, shaun wrote: Hi, Say i have a set of non sequential numbers for example: 1 3 8 12 13 16 19 21. How can i get php to take a random number from this set? Thanks for your help -- PHP General Mailing List

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-18 Thread Wico de Leeuw
Maybe basename($_SERVER['SCRIPT_NAME']); At 14:10 18-12-02 +0100, Robert Nedbal wrote: Hi, I'm having problems with my PHP installation. When I try to get real path to my script by using $_SERVER[PATH_TRANSLATED], I receive empty string. $_SERVER[PATH_TRANSLATED] empty string (why?)

[PHP] Re: AW: [PHP-DEV] PHP Setup / Query

2002-12-18 Thread Wico de Leeuw
. I know the urlencode function. But my PHP application is done already (developed on the linux based PHP) and it would be very hard to edit the source code again. So the urlencode function is only a workaround. -Ursprungliche Nachricht- Von: Wico de Leeuw [mailto:[EMAIL PROTECTED

[PHP] test

2002-12-18 Thread Wico de Leeuw
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mailling list error

2002-12-18 Thread Wico de Leeuw
Hiya everytime i send something to the php list i get an error from someone @fc.emc.com.ph stating: php-list,emc (The name was not found at the remote site. Check that the name has been entered correctly.) I can't send the whole email, i tried but then i was unsubscribed from the list :) Can

Re: [PHP] Re: Put text matching regex into array?

2002-12-18 Thread Wico de Leeuw
At 13:39 18-12-02 +, achillex wrote: [EMAIL PROTECTED] (Leif K-Brooks) wrote in news:3DFE7849.5050102 @buyer-brokerage.com: Is there a way to put each part of a string matching a regex into an array? Example: $string = -_-_--- --_-_-- random text here-_; $array =

Re: [PHP] preventing sql injections

2002-12-18 Thread Wico de Leeuw
addslashes should be enough and put qoutes arround your strings in the sql At 14:58 18-12-02 +0100, Anders Thoresson wrote: Would this function do the trick? ?php // validate.php - functions that validates form input function validate_string($unsafe_string) { // create array

Re: [PHP] URL parsing

2002-12-18 Thread Wico de Leeuw
http://www.php.net/manual/en/function.parse-url.php At 06:39 18-12-02 -0800, Mako Shark wrote: I've got a URL like this: http://www.naturalist.com/~fungae/index.php which is stored in $http_referer (as parse_url from $HTTP_REFERER). I'm trying to extract the username (~fungae). I've read the

Re: [PHP] Empty textfield

2002-12-18 Thread Wico de Leeuw
At 15:33 18-12-02 +, shaun wrote: Hi, what is the best way to check if a textfield is empty, and is it the same for file fields? if (empty(trim(@$textfield))) { } thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] ereg.

2002-12-18 Thread Wico de Leeuw
^ is not in this case Try if(!ereg(^([a-zA-ZåÅäÄöÖ]{4,20})\$, $_REQUEST['f_name'])) { Added the $ at the end else the could be more then 20 chars Greetz At 17:20 18-12-02 +0100, Anders Thoresson wrote: What's wrong with the following regular expression? As far as I can se, only alphabetic

Re: [PHP] ereg.

2002-12-18 Thread Wico de Leeuw
At 17:26 18-12-02 +0100, Wico de Leeuw wrote: ^ is not in this case Cancel that, i don't think thats true anyway if(!ereg(^[a-zA-ZåÅäÄöÖ]{4,20}\$, $_REQUEST['f_name'])) { Should work i think Gr, Try if(!ereg(^([a-zA-ZåÅäÄöÖ]{4,20})\$, $_REQUEST['f_name'])) { Added the $ at the end else

Re: [PHP] Re: php --with-gd support

2002-12-17 Thread Wico de Leeuw
http://www.php.net/manual/ At 13:13 17-12-02 +0100, [EMAIL PROTECTED] wrote: Hi Bogdan, sorry I am new to PHP where can I find a manual of PHP? Oliver Sorry, I only saw the first line in your message (I want to know all about...) - somehow assumed the 2nd to be part of the sig on first

Re: [PHP] *arrays/evaluating - ! urgent !

2002-12-17 Thread Wico de Leeuw
Hiya, I couldn't read you code really (i think you gotta look into it, eval is evil and really not nessacery here) I suggest you look at this (piece) of code: form action=?=$_SERVER['PHP_SELF']? method=post input type=text name=text value=?=@$_REQUEST['text']?br / select

Re: [PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Wico de Leeuw
Hiya Try it like this: ? require_once HTML/IT.php; class Home { var $tpl_home = NULL; function Home () { $this-tpl_home = new IntegratedTemplate(../templates); } function Home(){

Re: [PHP] REQUIRE_ONCE AND CLASSES

2002-12-16 Thread Wico de Leeuw
(); ? At 17:36 16-12-02 +0100, Wico de Leeuw wrote: Hiya Try it like this: ? require_once HTML/IT.php; class Home { var $tpl_home = NULL; function Home () { $this-tpl_home = new IntegratedTemplate(../templates

Re: [PHP] Re: Lists are back up

2001-06-19 Thread Wico de Leeuw
At 22:43 18-6-2001 -0500, David VanHorn wrote: At 12:01 AM 6/19/01 +0200, Alexander Skwar wrote: 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

[PHP] Webdeveloper aangeboden in Nederland

2001-05-08 Thread Wico de Leeuw
in een uitgebreide cv toesturen. Alvast bedankt, Wico de Leeuw -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] removing backslashes using regular expressions

2001-05-08 Thread Wico de Leeuw
At 11:27 8-5-2001 +0200, Trond Straume wrote: Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace(/\\/,,testing \\ testing); try print preg_replace('\',,testing \\ testing); double-quote single-quote back-slash single-qoute double-qoute,

Re: [PHP] removing backslashes using regular expressions

2001-05-08 Thread Wico de Leeuw
At 11:45 8-5-2001 +0200, Wico de Leeuw wrote: At 11:27 8-5-2001 +0200, Trond Straume wrote: Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace(/\\/,,testing \\ testing); try print preg_replace('\',,testing \\ testing); double-quote single

Re: [PHP] remotly include file

2001-05-08 Thread Wico de Leeuw
At 15:40 8-5-2001 +0200, Dominic Brander wrote: Hi I'm trying to include some php3 files via http. one part of the php files is on a regular server and the other part is on an secure server. Instead of duplicating all the files for both servers I would like to include them via http. How does it

Re: [PHP] % always return int?

2001-05-04 Thread Wico de Leeuw
At 21:33 3-5-2001 -0300, Christian Dechery wrote: How can I get the modulus of an float by an integer? $time=3.345345; $time2=2.34234; $time3=$time%$time2; try $time3=(long)$time%$time2; something like that should work echo $time3; this outputs 1. $time=3.345345; $time2=2

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Wico de Leeuw
At 00:28 18-4-2001 -0700, Sean Coyle wrote: Thanks for that help! Now I am getting an interesting error that I am not sure what to make of. Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on line 91 Here are lines surrounding 91: 89- strtolower($f_loc_name); 90-

Re: [PHP] Regular Expression

2001-04-18 Thread Wico de Leeuw
At 13:39 18-4-2001 +0200, Jeroen Geusebroek wrote: Hi, I have question about regular expressions; I don't know anything about it and was wondering if someone could help me out. I have this text: "[ this is atest ] and this is the rest of the text" $data = "[ this is a test ] and this is the

Re: [PHP] Function by reference?

2001-01-31 Thread Wico de Leeuw
At 11:35 31-1-01 +0300, Max A. Derkachev wrote: Hello Niklas, Wednesday, January 31, 2001, 7:02:49 PM, you wrote: NS $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this-dataToBeParsed); Take a look @ Preg_Replace with the e modifier, i think you are looking for that (php4