Re: [PHP] Would this work? (mod_rewrite)

2002-04-21 Thread bvr
This can also be achieved by doing Alias / /home/blah/script.php no need to use mod_rewrite !! bvr. [ rswfire ] wrote: > Assume I want *.domain.*/*.* to automatically call index.php (without > the user knowing and without any redirecting at all): > > RewriteEngine on &

Re: [PHP] Build static with Apache 2.0.35

2002-04-09 Thread bvr
changed (a lot) recently. About static/dso ; I don't think one method *performs* better than the other, they both have advantages, that's why it's an option. bvr. Marc Delisle wrote: >Is PHP 4.1.2 (or 4.2.0) supported only with apxs2, or can I build it static into >Apa

Re: [PHP] Test for one bit set?

2002-04-07 Thread bvr
This shows all integers from 1 to 10 that have the 2 least significant bits set: bvr. Charlie Killian wrote: >How can I test if a number only has on bit set? > >So testing different numbers will return TRUE or FALSE: > >testing 0001 would return TRUE. >testing 000

[PHP] The PHP Filter did not receive suitable input data

2002-04-06 Thread bvr
AddType , I hope this is simply a configuration issue. versions used: Apache 2.0.35 PHP 4.3.0-cvs (03 Apr 2002 23:53 GMT+1) apache conf: # PHP LoadModule php4_module modules/libphp4.so SetOutputFilter PHP SetInputFilter PHP # Indexes DirectoryIndex index.phtml index.html index.php

[PHP] please /ignore childish spammer (Auction for sale)

2002-03-30 Thread bvr
ages (including 'spammish' PHP questions), and I hope others will do the same thing, . bvr. Duncan Hill wrote: >On Sat, 30 Mar 2002, vins wrote: > >>SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM >> > >*plonk* > > > -- PHP General Mail

Re: [PHP] SPAM

2002-03-30 Thread bvr
WHEN DOES IT GET TO YOUR BRAIN that i'm not American.. grammatica hulp is niet nodig, ik spreek *echt* nederlands ;) bvr. >oh dam >and American that can actually speak some Traditional Afrikaans that makes >absolutely no sense. >listen check the south african afrikaa

Re: [PHP] SPAM

2002-03-30 Thread bvr
Yeah, pretty obvious .. you must have figured that from the .NL extension to my e-mail address.. Lemme guess, .ZA that's Japan nie waar nie ?? You are obviously not an expert so don't make us filthen this list with (anti-)SPAM messages and stupid off-topic definitions. THANKS! b

Re: [PHP] Qmail Question

2002-03-30 Thread bvr
I'm west-european, and I don't want to fuck with you and I don't know what it's like.. THANKS AGAIN. bvr. Vins wrote: >Listen here. >I'm south african. >You wouldn't want to fuck with. >I'm sure you know what we all are like. > >Watch

Re: [PHP] Security hole using cookies for sessions. Workaround?

2002-03-30 Thread bvr
Three tips: - Let the session expire after X secs. - Use BODY's ONUNLOAD attribute/JS event handler - Provide a 'Logout' button. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class extends

2002-03-30 Thread bvr
Read http://www.php.net/manual/language.oop.php bvr. caspar kennerdale wrote: >can you use class extends feature to refernce more than one class- > >so a class called contnet could call functions fromone called html and one >called db? > >thanks in advance > > --

Re: [PHP] Qmail Question

2002-03-30 Thread bvr
This is what you've been waiting for: F@#$@CK OFF! bvr. Vins wrote: >I have qmail on my server. >I've set up and email address to send all incoming mail to a php script. > >How would I break down the message and read the to field and the from field >etc. > >

Re: [PHP] php configs in the apache config file?

2002-03-30 Thread bvr
It doesn't work with CGI installations of PHP. bvr. Robert Montgomery wrote: >Supposedly, in your apache httpd.conf file you can >specify php config values. I'm trying to shore up >security on a new box by setting the following >within tags: > >php_value open_

Re: [PHP] changing the color from black to blue on an image. Helpon imagecolorset.

2002-03-30 Thread bvr
first: <http://www.php.net/manual/en/function.imagefill.php> $col = imagecolorallocate($im, 51, 51, 204); then: ImageFill <http://www.php.net/manual/en/function.imagefill.php>($im, $x, $y, $col); or ImageSetPixel($im, $x, $y, $col); bvr. Andy wrote: >Hi there, >

Re: [PHP] fputcsv() (was: best way to read a file)

2002-03-28 Thread bvr
Didn't test. http://www.php.net/manual/en/function.fgetcsv.php *blair at squiz* 14-Aug-2001 07:19 Here is a function that takes an array and adds a CSV line to the passed file pointer. #- function fputcsv ($fp, $array, $deliminator=",") { $line = "";

Re: [PHP] fputcsv ?????? (was: best way to read a file)

2002-03-28 Thread bvr
A fputcsv() would be nice, doesn't seem to exist (yet) though ? bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Talking XML over SSL with PHP?

2002-03-28 Thread bvr
s slightly more complex, but also advanced. (It's in the manual) bvr. Devin Atencio wrote: >I am trying to write a program that will talk to UPS. It appears that >the requirements is that i must talk SSL and then submit XML type documents >as a POST. Would it be easy in PHP to talk S

Re: [PHP] Get Current Filename HOWTO

2002-03-28 Thread bvr
note that this var. includes the query string, for example: /applications.php?cat=browsers bvr. Patrick Hartnett wrote: > It seems I spoke to quick...here is how to get the current file name. > > $this_file = $_SERVER['REQUEST_URI']; > echo( $this_file ); > >

Re: [PHP] best way to read a file

2002-03-28 Thread bvr
o mainserver/virtualhost: CustomLog /usr/local/apache/logs/access_log php This adds an extra value to the access log entries that indicates the largest number of bytes of memory used by the script at a time. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I search for a partial match in an array ?

2002-03-28 Thread bvr
preg_grep("/^file/", $arr) bvr. Dalton Hunter wrote: >Hi, I want to search for a partial match in an array? Does in_array() or >search_array() support this or is there another way? For example if I have >30 file names in an array in the format ... > >file1.t

Re: [PHP] require or include ?

2002-03-28 Thread bvr
both include the file, but use require() when it is required, and include() when it's not. In the new behaviour these two make no further difference. bvr. Javier wrote: >If I include for ex. common.php in a script and this script also calls >common.php what should I use require

Re: [PHP] Why?

2002-03-28 Thread bvr
rization, but it now seems more likely that FUBAR was itself a derivative of `foo' perhaps influenced by German `furchtbar' (terrible) - `foobar' may actually have been the original form. See: http://www.ietf.org/rfc/rfc3092.txt ;) bvr. Alberto Wagner wrote: &g

Re: [PHP] Include Error on PHP 4.1.2

2002-03-28 Thread bvr
Fix 'include_path' in php.ini I think you want it to look in the current directory (.\) as well. bvr. Alberto Wagner wrote: >I can't include anything on my php scripts > >Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear

Re: [PHP] best way to read a file

2002-03-28 Thread bvr
types can hardly be seen as a disadvantage.. bvr. Erik Price wrote: > This is a really simple question that I've wondered for a while now... > > what is the best way to read a file? There are so many different > functions for reading files that I have no idea which I should use.

Re: [PHP] NNTP Services

2002-03-28 Thread bvr
open http://www.php.net/manual/en/ press Ctrl-F and type 'nntp' .. click ok. bvr. news.php.net wrote: >Hello everyone > >I have a problem to post messages to newsgroups. How can i do it. > >thanks >Muhammad Fawad > > > -- PHP General

Re: [PHP] PHP/mySQL hosting

2002-03-22 Thread bvr
go to google, put in 'free mysql hosting', press 'feeling lucky' .. http://www.free-php-hosting.com/ bvr. Daniel Negron/KBE wrote: >Does anyone have a good site for free mySQL and PHP hosting ? > > >**DAN** > > -- PHP General Mailing List (http://www

Re: [PHP] Perl NewsGroup?

2002-03-21 Thread bvr
Why not try www.perl.com ??? I found: http://www.perl.com/cs/user/query/q/6?id_topic=50 bvr. David Duong wrote: >This may be the worst place to put this but here goes: > >Does anyone know of a Perl NewsGroup? > > > -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] mail()

2002-03-20 Thread bvr
Jennifer, The SMTP option in php.ini is for Windows only. On other platforms you should specify a delivery program (sendmail). If you still want to use an external server, there are classes available that send mail through an SMTP server without using mail(). bvr. Jennifer wrote: > so

Re: [PHP] Making a simple borderless pop up window with a "Close"button

2002-03-20 Thread bvr
) and will also work in Mozilla and Netscape 6. I don't know about the JavaScript implementation in Opera, but if it supports JS it is likely to support these options too (or at least ingores them). bvr. Joe Webster wrote: >It only works in IE -- it makes use of the 'Full Screen&

Re: [PHP] Please explain...

2002-03-19 Thread bvr
This is because of type conversion, see also manual chapter 'Type juggling'. "foo" converted to integer type is also zero, if you try "1foo" for example, it will convert to one. if you want to check without type conversion use the === operator instead. bvr

Re: [PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread bvr
A good solution is to store the file under a random generated filename and store that name, together with the real name, to the database. bvr. andy wrote: >Hi there, > >I am wondering if it would be possible to replace all chars which are not >inbetween [a-z] with a valid asccii

Re: [PHP] array within an array (one more reply)

2002-03-15 Thread bvr
Sorry, replies to really deep threads looks nice in my mail program.. ;)bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-15 Thread bvr
Maybe it makes sense to you like this: $mtxt = $GLOBALS['mtxt']; $mtxt === $GLOBALS['mtxt'] $mtxt[1] === $GLOBALS['mtxt'][1] bvr. >hmm.. the '===' operator, now that's weird ;) >>Because in my mind (which I know is totally wrong in

Re: [PHP] Re: Help - Variables

2002-03-15 Thread bvr
isset($_COOKIE[$var1 . $var2]) isset($HTTP_COOKIE_VARS[$var1 . $var2]) // (for ancient PHP versions) http://www.php.net/manual/en/features.cookies.php or isset(${$var1 . $var2}) http://www.php.net/manual/en/language.variables.variable.php bvr. BUDINSCHI Cosmin wrote: >On Fri, 15 Mar 2

Re: [PHP] SERVER INFO

2002-03-15 Thread bvr
e for your platform/distribution, sometimes these are even pre-compiled. bvr. Dani wrote: >Hi all, > >I appologise if this is off topic but I don't know who to ask. I hope >you guys don't mind. > >Does any body know where I can find information about the steps of >sett

Re: [PHP] Version difference (4.0.4pl1-4.1.2)

2002-03-06 Thread bvr
as changed, although you could get the old behaviour back by changing the php.ini , it is recommended for a number of reasons to 'upgrade' your source to ensure it will continue to work in future versions of PHP. See: http://www.php.net/release_4_1_0.php HTH, bvr. Aras Kucinskas wrote:

Re: [PHP] cache

2002-03-06 Thread bvr
another method which works quite well on images, example: This appends a UNIX timestamp to the image location so the browser sees a different image location on each page load, forcing it to download the image every time. bvr. Jeroen Timmers wrote: >is there some command with php dat &

Re: [PHP] Re: Value of $_* variables

2002-03-05 Thread bvr
Yes, there is, strings should *always* be quoted! See: http://www.php.net/manual/en/language.types.array.php it's under do's and don'ts .. bvr. Mike Eheler wrote: > $result = mysql_query("select user from users where id = > $_SESSION[id]", $db); > &g

Re: [PHP] Help about Linux password change script

2002-03-05 Thread bvr
# passwd -? Usage: passwd [OPTION...] <...> --stdin read new tokens from stdin (root only) <...> bvr. Henry Zambrano wrote: > Hi, I'm trying to do a script for changing the Linux password of an > user in a web page. I don't know how to implement

Re: [PHP] serialize

2002-03-05 Thread bvr
Instead of serialize(), you could also fix your existing code like this: "; } ?> Or "; } ?> bvr. > for ($i=0; $i<$HTTP_GET_VARS['num']; $i++) > { > echo "felnummer "; > } > ?> > -- PHP General Mailing List (ht

Re: [PHP] How can I use PHP4 module for Apache Win32 ????

2002-03-05 Thread bvr
Download it from www.php.net. Read install notes, come back when you really need help. bvr. hei wrote: >How can I use PHP4 module for Apache Win32 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it correct having number of forms in the same html page?

2002-03-05 Thread bvr
Yes, that can be correct, however: -You can only submit one form at a time. - You cannot have 'nested' forms (forms in forms). bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP SECOND TIME - header for download gzip file using IE and Netscape with HTTP and HTTPS

2002-03-04 Thread bvr
y for all browsers. I'm also not sure wether this header made it to the HTTP1.1 specs, but if you still want to use it I recommend consulting the website of W3C (http://www.w3c.org/), they should at least have some notes about it. bvr. Krzysztof Kocjan wrote: > Hi > > I have b

Re: [PHP] -loop question-

2002-03-04 Thread bvr
Nope, you can't, use the loop to create a temp variable containing the message, or do this: mail($to, $subj, implode("\n", $Name_Passenger_), $header); bvr. Richard Bradley wrote: >I want to run a loop inside of the "body" section of the mail() function.

Re: [PHP] how do I use php and mysql to print mailing lables

2002-03-04 Thread bvr
iltin functions that allow you to print directly from PHP, however there may be several ways to accomplish this. For example you could use COM to open Word with a template document, paste the label text and print it. bvr. Ivan Carey wrote: >Hello and thanks for your help > >how do I use ph

Re: [PHP] keeping the dot

2002-03-04 Thread bvr
d use escape it like this: \. Otherwise the dot will match any character for it's a 'wildcard' and the result of your replace will be empty. bvr. [EMAIL PROTECTED] wrote: >>Try thinking? >> > >Don't be a jerk. > -- PHP General Mailing List (ht

Re: [PHP] CheckBoxes....

2002-03-03 Thread bvr
Yes, well, PHP supports that a little bit differently. If you append '[]' to the name, an array will be returned after submit with the values of the checked checkboxes. (submit..) $test now contains array("1","3"); bvr. Ben Turner wrote: >Don'

Re: [PHP] mysql and telnet.

2002-03-01 Thread bvr
ay it, you connected to your *web* server. Doesn't that sorta mean it's not a *database* server ? bvr. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user input in HTML

2002-03-01 Thread bvr
Use strip_tags() http://www.php.net/manual/en/function.strip-tags.php Erik Price wrote: > I was hoping to solicit an opinion: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CGI

2002-02-26 Thread bvr
Still this wouldn't prevent a visitor from passing something like : ../../../../bin/cat /etc/passwd bvr. >>if (action=="cgi") echo `./cgi-bin/cgiscripts/${scripts} 2&>1`; > >If you still want to use that method have a look at these two functions >which

Re: [PHP] CGI

2002-02-26 Thread bvr
Please note that plain this: >or >if (action=="cgi") echo `./cgi-bin/cgiscripts/${scripts} 2&>1`; >?> is not a good idea, because it allows a visitor to run arbitrary commands on your server. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] eregi, ereg or smth. else???

2002-02-26 Thread bvr
nd put the and in between. bvr. On Tue, 26 Feb 2002 11:50:31 +0200 (EET), Kristjan Kanarik wrote: >I've never had time to get into those ereg, eregi etc. functions, and now >I am affraid I probably need to use them. Here is the problem I need to >solve: > >I have a string (

Re: [PHP] Any way to display a changing value?

2002-02-22 Thread bvr
.. part every time you sent commands (for Netscape) - do all calculations and stuff in PHP, minimize your JS code to something like echo("document.myform.mytext.value = '" . addslashes($newval) . "';\n"); - try to do updates 'smartly', i.e. on when the valu

Re: [PHP] Telnet

2002-02-22 Thread bvr
cording to the 'SMTP RFC' (put that in google). bvr. On Fri, 22 Feb 2002 09:47:08 +0530 (IST), Uma Shankari T. wrote: > > Hello, > > > By using telnet option how i will send a mail from my machine using > php..If any one came to know this plz tell me how to do it

RE: [PHP] INT function?

2002-02-20 Thread bvr
On Thu, 21 Feb 2002 12:10:53 +1100, Martin Towell wrote: >$z = (int)($x / $y); // should work > >or > >$z = $x / $y; >settype($z, "integer"); or $z = intval($x / $y); bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zend debug server trouble

2002-02-20 Thread bvr
and there's no errors. When I paste the request into my browser I get 'document contains no data'. phpinfo() reports the following: ZEND_DEBUG enabled Please help! bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread bvr
I believe I *am* helping you! bvr. On Wed, 20 Feb 2002 16:06:24 -0800, Brian Paulson wrote: >Ok help me out here, isn't the point of this list to get help? > >How long is too long to work on a solution before ask for help? > >Brian > >-Original Message-

Re: [PHP] Removing every thing between ( )

2002-02-20 Thread bvr
9]+/ matches a series of one or more numbers bvr. On Wed, 20 Feb 2002 14:24:33 -0800, Brian Paulson wrote: >Hello, > > What would the regular expression be to remove all the text >between ( ) > >$string = "This is a (001 Test) and (002 Test)"; > >The num

Re: [PHP] using sendtohost on a secure site

2002-02-20 Thread bvr
The answer to this and many related questions is: Use CURL. See manual. bvr. >Is great for posting results to a regular http site. But what I need to do >is post to a secure site (https). I looked through some of the php >documentation and couldn't find anything about manua

Re: [PHP] MySQL Admin Tool

2002-02-14 Thread bvr
No, you're right.. Permissions for that file could probably be tighter, but it's better not to rely on file system permissions only. bvr. >> And also... >> How do I go about securing PHP functions. For example, at the moment Joe >> can upload a PHP script

Re: [PHP] MySQL Admin Tool

2002-02-14 Thread bvr
could try and 'chroot' Apache to make sure it never touches system files. Do some research! bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to POST a HTML-page with the header function

2002-02-13 Thread bvr
If you really want, you can emulate a form POST by using the CURL library. Please refer to the manual for more info on CURL. bvr. > >> But instead of showing the variable $CODE we would like to hide it. Just >> like >> when you POST variables to a HTML-page. Is the

[PHP] Includes in your document root (was: Re: [PHP] MsSQL PASSWORD())

2002-02-11 Thread bvr
of-context execution. bvr. On Tue, 12 Feb 2002 10:09:38 +1000, Liam MacKenzie wrote: >I think by saying "under" the webserver root, he means any directory below >it. For instance, if you webserver root was /www/root, put it here: /www -- PHP General Mailing List (http://www.php.n

Re: [PHP] determining script url

2002-02-08 Thread bvr
I'd say you should store the base url of your site in a variable somewhere. then append the REQUEST_URI and you have the url. or .. you take the SERVER_NAME, SERVER_PORT and REQUEST_URI .. and you might need some other variables to make it recognize SSL and prefix with httpS .. bvr.

Re: [PHP] How to find out what country the visitor comes from

2002-02-08 Thread bvr
local language of the visitor's country, it may not at all be the *preferred* language of the visitor. This way the user still has full control over what language is used through browser settings. bvr. On Fri, 8 Feb 2002 12:56:52 -, Jon Farmer wrote: >One you have the IP you need

Re: [PHP] difference !!??

2002-02-07 Thread bvr
an use 'heredoc notation'. bvr. On Thu, 7 Feb 2002 10:05:18 +0100, B. Verbeek wrote: >Hello, > >What's the difference between: > >1.- $row[column_name]; >2.- $row['column_name']; >3.- $row["column_name"]; -- PHP General Maili

Re: [PHP] Re: Is this possible?

2002-02-06 Thread bvr
Yes, it's entirely possible to abuse the PHP mailinglist by sending MySQL tutorials and useless complaints like this one. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread bvr
Storing variables on the client-side using JavaScript can be done by setting a cookie. The cookie data will ofcourse be available to PHP when the next script is executed (for example through a link or redirect). bvr. On Wed, 6 Feb 2002 11:13:01 -0500, Erik Price wrote: >Sounds like if

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread bvr
ing a form: But you could also use JavaScript to create a dialog and 'redirect' to your script, passing the email address in the URL, probably something like: email = prompt("Please enter your address"); document.window.location.href = "myscript.phtml?email=" + e

Re: [PHP] Check if var is a domain name

2002-02-06 Thread bvr
Oh, according to the manual this doesn't work on Windowz. bvr. On Wed, 06 Feb 2002 11:26:42 +0100, bvr wrote: > >You can online check for a valid domain using > >if (checkdnsrr($mydomain, "SOA")) >{ > echo("is valid domain"); >} > >

Re: [PHP] Check if var is a domain name

2002-02-06 Thread bvr
You can online check for a valid domain using if (checkdnsrr($mydomain, "SOA")) { echo("is valid domain"); } note that www.mynewdomain.com CAN be a valid domain also. bvr. On Tue, 5 Feb 2002 07:59:22 -0800, Brandon Orther wrote: >Hello, > >Does an

Re: [PHP] socket - e-mailaddress validation

2002-02-06 Thread bvr
. Also you can use a local SMTP server that supports the VRFY (verify) command to check if the address is accepted. Google for 'RFC SMTP' for more details on the SMTP protocol. bvr. On Wed, 6 Feb 2002 11:05:31 +0100, B. Verbeek wrote: >Question: > >Is it possible to validate

Re: [PHP] show something

2002-02-06 Thread bvr
By default, PHP's output is buffered. To disable output buffering use ob_implicit_flush(); somewhere in your script. This flushes previous output to the client and disables buffering. For more info look at the manual's chapter on 'Output buffering'. bvr. On Wed, 6 Feb

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread bvr
n "'s (double quotes). bvr. On Tue, 05 Feb 2002 17:23:06 -0700, Michael O'Neal wrote: >if ($job_id == '$my_job_id') { > >echo " selected "; >} > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Yet another regex question

2002-02-04 Thread bvr
; For more advanced input validation, regular expressions can be very adequate but I'd recommend separating this from previous mentioned 'escaping' which is simply needed for your DB to function properly and safe. greets, bvr. On Mon, 4 Feb 2002 17:18:20 -, Simon H wrote: &g

Re: [PHP] How to get the URL into a var?

2002-02-04 Thread bvr
You can get the requested location from: $_SERVER["QUERY_STRING"] and use the dirname() function on it. bvr. On Sat, 2 Mar 2002 10:29:09 +0100, Andy wrote: >Hi there, > >I am trying to find out which dir the user is browsing. How can I get the >URL into a var? I t

Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread bvr
>best regards, > >eduardo melo >copmuter programmer Any cops on this list: watch out for this guy! bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable function call (Re: [PHP] unset a function?)

2002-01-31 Thread bvr
Hoi Bas, $func = "make_" . $wat; $temp = $$func($this); bvr. On Thu, 31 Jan 2002 11:55:12 +0100, Bas Jobsen wrote: >Hello, > >> Thanks all. I will rename the second function. > >Now if have: > >if($wat=="naam")$temp=make_naam($this); >else if

Re: [PHP] gd library with GIF support

2002-01-31 Thread bvr
/~tam/GD/index.en.html bvr. On Wed, 30 Jan 2002 21:21:53 -0800, Ed Lazor wrote: >I'm trying to play with the gif functions this program supports. I'm >having trouble finding it. Could someone e-mail it to me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] strnpos() (was: Re: preg_replace() 'space' the final frontier)

2002-01-31 Thread bvr
Here's a recursive approach using strpos() and it's offset parameter. bvr. On Thu, 31 Jan 2002 00:03:23 -0800, hugh danaher wrote: >Mike, >Thanks for your input on this. I'm getting better at php, but it does take >time. >Thanks again, >Hugh > >-

RE: [PHP] Fwd: PhpSmsSend remote execute commands bug

2002-01-29 Thread bvr
I agree, but it may be usefull to tell those newbies that when you execute a command from PHP that will get some parameters from an external source (like a form or a get variable) ALWAYS use the escapeshellcmd() function to prevent users from executing arbitrary commands. bvr. >There

Re: [PHP] MySQL Newbie

2002-01-28 Thread bvr
login that has permission to CREATE, which is granted separately from INSERT or UPDATE. bvr. On Mon, 28 Jan 2002 14:49:11 -0800, Ben Clumeck wrote: >How do I use MySQL through the web. I currently have MySQL running on my >personal PC on WinXP. I use a command prompt to add tables, add re

Re: [PHP] PHP and XHTML

2002-01-28 Thread bvr
Then why not do this : "); ?> bvr. On Mon, 28 Jan 2002 18:49:18 -0500, Erik Price wrote: > >On Saturday, January 26, 2002, at 05:49 PM, ,,, wrote: > >> When I have an inside my php script it wont work >> since >> php parses it as php code. >>

Re: [PHP] get process id of a script?

2002-01-28 Thread bvr
Hi, I remember doing this once under linux: $pid = readlink("/proc/self"); but there seems to be a special function for it : $pid = getmypid(); bvr. On Tue, 29 Jan 2002 13:26:48 +1300, Matthew Delmarter wrote: >Is there any way to get the process id of a script runn

[PHP] Syntax highlighting through Apache (Re: [PHP] Got a problem I cant figure out)

2002-01-28 Thread bvr
://localhost/index.phtml you can use http://localhost/src/index.phtml bvr. On Mon, 28 Jan 2002 08:27:05 -0400, Miles Thompson wrote: >A goog first step is to rename the page with a .phps extension and display >it in the browser. The coloring of the text often gives you an idea where &g

Re: [PHP] Trying to remove bad charactors.

2002-01-28 Thread bvr
Special characters must be escaped with a backslash: $q = preg_replace("\!", "", $q); or $q = preg_replace( preg_quote("!@#$%^&*()"), "", $q); bvr. On Mon, 28 Jan 2002 11:24:30 +1300, Philip J. Newman wrote: >I'm trying to replace !@#$%^

Re: [PHP] delete a file from the server

2002-01-24 Thread bvr
That is indeed very tricky. You may try this routine: http://www.php.net/delete";); ?> bvr. On Thu, 24 Jan 2002 12:56:09 +0100, Tommy Straetemans wrote: >Hi, >I'm new in PHP and i have a question: > >How can i delete a file from the server in PHP > > >

Re: [PHP] Split files

2002-01-24 Thread bvr
there must be some readily >available file splitter utility. No point doing more work than necessary by >writing your own file splitting routine :) Think about a multi-volume archiver, like tar. Also pkzip, rar and ace have an option to archive without using compression. bvr.

Re: [PHP] multi-threading within php?

2002-01-24 Thread bvr
You may want to use 'wget' spider function, then parse the files with PHP if necessary. http://wget.sunsite.dk/ bvr. On Thu, 24 Jan 2002 14:52:54 +0100, Mattias Andersson wrote: >Hello! > >I was making a spider for a simple searchengine and all was well until I >

Re: [PHP] Checking ps aux

2002-01-23 Thread bvr
What is your question ? bvr. On Wed, 23 Jan 2002 11:30:58 -0500, Alan Todd wrote: >I need to help makeing a script that will ps aux | grep and file to see if >it is running -- if not start it up >i have a pl file running in the back ground and i wanted to check it .. > &

Re: [PHP] Edit program

2002-01-20 Thread bvr
Or go to download.com, search for 'PHP' Sort list by 'number of downloads'. bvr. >>> Plesae forgive me for asking and OT question. Can you please recommend an >>> edit program, (Freely downloadable). -- PHP General Mailing List (http://www.ph

Re: [PHP] open/read file/directory and file test

2002-01-20 Thread bvr
gory, like Filesystem functions. About question 3, I think it depends on what you want, but it's possible to get the access time of a file; also see chapter Filesystem functions. Also search the manual for preg (if you didn't figure yet) to see how to use perl style regular expressions. bvr. On

Re: [PHP] RTFM

2002-01-18 Thread bvr
Maybe anyone volunteers as moderator ?? thought so ;) bvr. On Sat, 19 Jan 2002 01:16:17 +, Shane Wright wrote: >Hi > >Maybe this list should be split - kindof into a php-newbies and a >php-advanced ? > -- PHP General Mailing List (http://www.php.net/) To unsu

Fwd: Re: [PHP] Regex error

2002-01-18 Thread bvr
split() takes a regular expression, this means you have to escape the | char with a \ like this: $rgTemp = split("\|",$szTag); bvr. On Fri, 18 Jan 2002 14:40:25 -0800, PHP List wrote: >Hi, >Can someone please tell me why the this is happening: > >1) $szTag = &