Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-26 Thread Torben Wilson
2009/8/26 Paul Gardiner : > Paul Gardiner wrote: >> >> I want to write a simple indexing script to display a >> directory full of photos as a gallery of thumbnails. >> (There are various solutions out there for this, but >> they're all a bit more complicated than I need). >> >> I've added a file in

Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-27 Thread Torben Wilson
2009/8/27 Paul Gardiner : > Torben Wilson wrote: >> >> 2009/8/26 Paul Gardiner : >>> >>> Paul Gardiner wrote: >>>> >>>> I want to write a simple indexing script to display a >>>> directory full of photos as a gallery of

Re: [PHP] Newbie: Array of objects iteration

2009-10-10 Thread Torben Wilson
2009/10/10 MEM : >> >> MEM, >> >> http://www.php.net/language.oop5.reflection >> >> >> Regards, >> Tommy >> >> > > > And brand new world opens in from of my eyes... O.O. > > I will search more info on this on the net... just for the records, as > properties names is concern, I couldn't find any bet

Re: [PHP] Probs with a form

2003-07-05 Thread Lars Torben Wilson
7;ll get tons of info. Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com - Boycott Starbuck

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Lars Torben Wilson
n value? They are separated by a comma. Right now, it only grabs the > last file even though all files are highlighted before submission. > > thanks http://ca2.php.net/manual/en/faq.html.php#faq.html.select-multiple Hope this helps, Torben -- Torben Wilson <

Re: [PHP] looping through values from a field? Need hellp.

2003-07-05 Thread Lars Torben Wilson
) Anyway, if that code is cut-and-pasted, then 'foreach' should have no space in it. That would cause a parse error. Otherwise, you could be getting a Notice if you're actually passing something in via method="GET" but checking the $_POST array instead. -- Torben Wi

Re: [PHP] error on array loop through foreach?

2003-07-07 Thread Lars Torben Wilson
nd tell you that you can't redeclare an already defined function (and it was defined on the first loop). I haven't checked the rest of it; try the above ideas and see if they help. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709

Re: [PHP] what licence for documentation ?

2003-07-07 Thread Lars Torben Wilson
--------- Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com

Re: [PHP] error on array loop through foreach?

2003-07-08 Thread Lars Torben Wilson
.php on line 43 > > > Anyone have an idea of what may be causing this? > > thanks Are you 100% sure that $filename is an array when you give it to foreach? Check to make sure that $filename exists and is an array first. That should help. Good luck, Torben -- T

Re: [PHP] Retaining formatting problem

2003-07-08 Thread Lars Torben Wilson
he > database the line returns dissapear, eg > > "this > > little amount of > > text" > > will enter like > > "this little amount of text will enter like" > > Please help me it is p!!$$!ng me right off :P > > Cheers in ad

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Lars Torben Wilson
ccurs in the "$singleProfileHTML.." line. I'm > completely don't get it; I see absolutely nothing wrong with this, > what did I miss? > > Phil I don't see anything wrong. Perhaps you have a non-printable control character em

Re: [PHP] Array key names - can they be called as strings?

2003-07-17 Thread Lars Torben Wilson
alue) { $query = "update table set $key = '$value'"; } Also, unless you have constants named 'headerimage' and 'backgroundimage', you should quote the array subscripts: $SAVEVARS['headerimage'] = $_POST['headerimage'];

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Lars Torben Wilson
bute values for all of the necessary stuff. Other than that, it's not a huge issue. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com

RE: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Lars Torben Wilson
about programming--I think last week or the week before. Try a search on the archives. Anyway, there are lot of great books on programming which should help--and excellent and easy-to-read book which covers a lot of things which you *don't* want to have to figure out yourself is 'Code Complete&

Re: [PHP] list server problem

2003-07-20 Thread Lars Torben Wilson
ing the > Reply-To for each email I send so that replies to other unrelated mail > don't end up on php list? The list should second-guess members of the list > want to reply to the list 99% of the time without being wrong. I disagree. Oddly, I've known people who have been

Re: [PHP] Global variable question question

2003-07-23 Thread Lars Torben Wilson
t; Jason Giangrande Without going into why you didn't read the manual or just try it, the answer is 'wrong'. ;) If register_globals is off, $_SERVER['PHP_SELF'] is what you will need. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Lars Torben Wilson
hould take 30 > seconds to complete. > > If anyone has some concrete suggestion on how to get this to work It > would be greatly appreciated. In the mean time I have given up on it as > I am just totally pissed off at it. > > TIA -- Torben Wilson <[EMAIL PROTECTE

RE: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Lars Torben Wilson
On Thu, 2003-07-24 at 15:12, Beauford.2005 wrote: > action="post" name="seasons"> Try ACTION="/season_write.php" instead. What happens? -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com

RE: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Lars Torben Wilson
27;re mistaken. If you're correct, it's a bug. I'm pretty sure we would have heard about it by now. :) But give it a try and post your results (I don't have a Win PHP box set up right now, myself). -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.

RE: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Lars Torben Wilson
ctive every day for years over many different version of PHP in many different environments. The good news is that the problem is not with PHP. That means it's the code, which is easy to fix. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506

Re: [PHP] I'm really getting annoyed with PHP

2003-07-24 Thread Lars Torben Wilson
On Thu, 2003-07-24 at 04:18, Comex wrote: > <[EMAIL PROTECTED]> > Lars Torben Wilson: > > On Wed, 2003-07-23 at 18:21, Daryl Meese wrote: > >> Well, I know I am not running the latest version of PHP but I don't > >> believe this is accurate. I believe PHP

Re: [PHP] PHP should know my data!

2003-07-24 Thread Lars Torben Wilson
atically know what goes into the database, but if you post a detailed description of the problem you're facing, chances are that someone (or several someones, more likely) will provide suggestion to help you out. Feel free to post details if you would like a hand with it. -- Torb

Re: [PHP] PHP should know my data!

2003-07-24 Thread Lars Torben Wilson
t; >punchline ;) > > > >Cheers, > >Rob. Oh fer Pete's sake. lol--got me. The sad thing is that sometimes things get to a point on the list where this sort of thing would seem likely... -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.05

RE: [PHP] List Administrator

2003-07-30 Thread Lars Torben Wilson
; Chris. 'Until' is a bit optimistic. They've been doing that for quite some time now. :) -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com

Re: [PHP] List Administrator

2003-07-30 Thread Lars Torben Wilson
kind of thing. For instance, marc.theaimsgroup.com, phpbuilder.com, and anybody who runs an NNTP web interface which includes this list--just to name a few--have web-accessible archives of this list, and are unaffiliated with the PHP group. -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] Using register_globals

2003-06-05 Thread Lars Torben Wilson
k on systems that have register_globals > turned on. > > Regards > Stefan At the risk of sending a 'me too' message to the list, I would just like to say that I think these are excellent points. Torben -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] Morph an object

2003-06-05 Thread Lars Torben Wilson
d information is known...that way, you always have the option to alter the output, or send a redirect header, or whatever. Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com

RE: [PHP] Using register_globals

2003-06-06 Thread Lars Torben Wilson
y of those ideas posted, check the archives. > > HTH! > > Jay I think he was just saying the using $_GET and $_POST is a better way to make sure that your script is compatible across as many installations and version than using register_globals = on, since it will always

Re: [PHP] Need help with display of results

2003-06-06 Thread Lars Torben Wilson
'added'], $row['q40']); ...or, better yet, something like this, so you aren't printing out the whole table for each row in the results: echo " DATECOMMENTS\n "; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo " {$row[

Re: [PHP] Need help with display of results

2003-06-06 Thread Lars Torben Wilson
On Fri, 2003-06-06 at 18:45, Lars Torben Wilson wrote: [snip] > while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { > echo " > {$row['time_stamp']}{$row['heading']}\n"; > } Whoops...replace 'time_stamp' with 'added&

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-04 Thread Lars Torben Wilson
follows... > > > > > > mysql_select_db($db, $sql_connection); > > > $result = mysql_query("SELECT * FROM $table WHERE $query LIMIT > > > $limit",$sql_connection); > > > $output = " > > width=\"370\">\n"; > > > f

Re: [PHP] OK guys, thank you so far

2003-06-04 Thread Lars Torben Wilson
ea for a production machine, but for your development environment, turning down error reporting is not a good idea. :) You will kill yourself trying to track down subtle errors when they aren't displayed. Try checking your variables before using them: if (isset($_GET[&#x

RE: [PHP] Validating user input

2003-06-04 Thread Lars Torben Wilson
ecimal up to 2 > places, and that the number is less than 24? > > Thanks for your help > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] Change object state

2003-06-04 Thread Lars Torben Wilson
content fails to satisfy some kind of requirement for valid content input?) Torben > R/T > -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://w

Re: [PHP] Doing simple math

2003-06-04 Thread Lars Torben Wilson
t; math things so that I can do these bigger ones? What is the relation between the sqrt(81) and the (5+4)-1? i.e. there is no operator there...which operator *should* be there? Torben > Thanks, > Chris > > -- > Chris Cameron > UpNIX Internet Administrat

Re: [PHP] Doing simple math

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 20:02, Chris Cameron wrote: > On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > > > An example that looks like it -should- work: > > > > > > $Math = sqrt(8

Re: [PHP] Calling HTML pages

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 13:15, Daniel J. Rychlik wrote: > I was looking for a function that will take you to a html page. For instance. > > I have a function that checks for !empty values in $_POST; What I would like to do > is if the field is empty then > > go back to the form. I have a funct

Re: [PHP] Re: Migration once again

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 12:51, Øystein Håland wrote: > I'm sorry Dan, but it don.t make any difference. Here's almost the complete > code: The easiest way to fix it is to enclose the $_SERVER['PHP_SELF'] in curly braces when you embed it into a string. See the manual: http://www.php.net/manual/en/l

Re: [PHP] Re: Using register_globals

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 10:43, Rouvas Stathis wrote: > Armand Turpel wrote: > > > > > On Wed, 4 Jun 2003, Jay Blanchard wrote: > > > > [snip] > > > > Have register globals set to ON is one way of leaving your script open > > > > to being exploitable. > > > > [/snip] > > > > > > > > Please explain th

Re: [PHP] Morph an object

2003-06-05 Thread Lars Torben Wilson
ter all your tests have passed and the script knows what it needs to display? Pardon if I've misunderstood the problem. Torben > It is not working and I am wondering is anyone can give me some insight into > morphing an object? > > > Thanks!/T -- Torben Wilson <[EMAIL PR

Re: [PHP] Need a safe way to get user supplied data into a varaible.

2003-06-08 Thread Lars Torben Wilson
the text. So > reading that in from a file is hard. > > Thanks Single quotes will do this; http://ca.php.net/manual/en/language.types.string.php#language.types.string.syntax.single $body = ' Some text here. '; Hope this helps, Torben --

Re: [PHP] stripping newlines from a string

2003-06-09 Thread Lars Torben Wilson
On Sun, 2003-06-08 at 22:44, Charles Kline wrote: > Hi all, > > How would i go about stripping all newlines from a string? > > Thanks, > Charles Something like this: Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] Question about current() and key()

2003-06-09 Thread Lars Torben Wilson
think that it would be overhead to use current() and key() in the > above example. > > Can anybody point out why the first one would be better to use and why. No, you're right. There are situations where you might want to use these two functions, but this isn't one of them. D

Re: [PHP] Is It Possible to Tell PHP To Output x Decimal Places PerFloat?

2003-06-09 Thread Lars Torben Wilson
me_price is $1.50, it outputs: > > $1.5 > > Thanks in advance, > > Dan http://ca2.php.net/manual/en/function.number-format.php ...i.e.: Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.co

Re: [PHP] Warning Spammer

2003-06-10 Thread Lars Torben Wilson
Anyone could have gotten your email address if you have ever posted to the list. There is no reason for you to suppose that it is a list member. It's spam. Either track it down and hunt it, or ignore it and delete it. -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] Questions, questions, questions...

2003-06-10 Thread Lars Torben Wilson
opies down, and use accessor methods. > Feel free to email me directly if this will generate a firestorm in the > maillist. Well, at least you didn't mention emacs or vi. ;) Regards, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.6

RE: [PHP] Questions, questions, questions...

2003-06-11 Thread Lars Torben Wilson
ious. My point is that there has been no conclusive argument made that Hungarian notation is a quantitatively better method than any other. Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.in

Re: [PHP] undefined variable: action

2003-06-11 Thread Lars Torben Wilson
put the if() check into an auto-prepended file or something. Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themain

Re: [PHP] array sort help...

2003-06-11 Thread Lars Torben Wilson
7;last_name' => 'whole'), array('loan_info' => 105, 'first_name' => 'alice', 'last_name' => 'fam'), array('loan_info' => 103, 'first_name

Re: [PHP] undefined variable: action

2003-06-11 Thread Lars Torben Wilson
blem. A better idea is to crank up error reporting all the way on your dev box, write your code so that it doesn't generate any NOTICES etc, and then turn off display_errors on the production box. It's a good idea to log the errors or write a handler or something for when errors aren'

Re: [PHP] Sending TCP/IP string using PHP??

2003-06-11 Thread Lars Torben Wilson
.php http://www.php.net/manual/en/ref.stream.php Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonma

Re: [PHP] getting file contents

2003-06-11 Thread Lars Torben Wilson
path/to/origname.txt', '/path/to/newname.txt'); ...should do it. http://www.php.net/copy Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http

Re: [PHP] 4 hours staring - can't see clear.

2003-06-11 Thread Lars Torben Wilson
line); if (isset($var[$key]['Option'])) { // Flag that we got one this time round. $found = true; // Get the translated name from $var. $record[$var[$key]['Option']] = trim($val); } }#end of foreach($newlines as $

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread Lars Torben Wilson
d['AUS'])}','{addslashes($record['GEO'])}','{addslashes($record['AN'])}','{addslashes($record['RB'])}','{addslashes($record['CO'])}','{addslashes($record['RR'])}')&qu

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Lars Torben Wilson
fields. Im working on an error function > > that will take the data that was entered and pass it back to the form so > > that the user will not have to input the data again. If an error is > > found I use the header function to go back to the form. Im having > > trouble

RE: [PHP] php editor?

2003-06-14 Thread Lars Torben Wilson
be made if we start a new flamewar over it. :) Just suggesting one or two editors you like is more useful. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com

Re: [PHP] reverse DNS lookup with PHP

2003-06-14 Thread Lars Torben Wilson
e IP addresses. Is this possible > > with PHP and if so, how is it done? I've been looking through Google, > > and the very few real results I've come across are large perl programs > > which make little to no sense to me. > > > > Any help would be great

Re: [PHP] is my server working

2003-06-15 Thread Lars Torben Wilson
In any event, the choice will have no impact here. It simply appears that the original poster has not got PHP installed properly, or else the system is not configured to pass that page of through PHP. http://www.php.net/print http://www.php.net/printf -- Torben Wilson <[EMAIL

Re: [PHP] Test message

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 13:28, jb wrote: > Testing news reader Please use a test group for your testing. misc.test is a good bet. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.

Re: Fwd: Re: [PHP] is my server working

2003-06-15 Thread Lars Torben Wilson
ight be an option to save to plain text (*.txt) but it's been a couple of years since I've used it and I'm not sure. Torben P.S. Please turn off HTML email when emailing this list. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.05

Re: [PHP] PHPFI? How to build on Win32?

2003-06-15 Thread Lars Torben Wilson
that PHP/FI was never really recommended for use on Win32 except as kind of an experiment. Unless you need to do it for a very good reason, I'd say stick with PHP 4. :) Cheers, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps

Re: [PHP] php editor?

2003-06-16 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 22:34, M-Ali Mahmoodi wrote: > if no newer editors? > so the old messages suggest the older! I wasn't suggesting that people not suggest new editors. People just don't need to argue about it (at least, not on the list). Cheers, Torben > "Lar

Re: [PHP] need config file parsing code.

2003-06-16 Thread Lars Torben Wilson
heir > own servers... > > by the way, does anyone know why "arp -n" (what i'm using) shows > machines that are NOT even turned on? like my notebook shows up despite > having been off for several hours? Is there a way to get a real time > list of the machines on my netw

Re: [PHP] str_replace() problems actually *_replace() problems to bemore accurate

2003-06-16 Thread Lars Torben Wilson
ect that using regexps for this would be overkill. $trans = array("\n\n" => '', "\n" => '', "\r\r" => '', "\r" => '', "\

Re: [PHP] How to avoid Socket Post output?

2003-06-16 Thread Lars Torben Wilson
is anyway to avoid this output and have a completely > invisible manual socket POST? I'm assuming with the above that you want to get the returned text from the POST into a string for use instead of outputting it directly to the browser; these changes should do that. Note: I haven

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread Lars Torben Wilson
is running as has permission to drop tables. The MySQL manual page for DROP TABLE: http://www.mysql.com/doc/en/DROP_TABLE.html Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www

RE: [PHP] need config file parsing code.

2003-06-16 Thread Lars Torben Wilson
output (commented out) to give some insight into what's going on inside if you want it. Cheers, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com

Re: [PHP] String containing PHP Code

2003-06-16 Thread Lars Torben Wilson
can do it? I know I can do it by writing it to file but > then it is no more secured. > > Please let me know, > > Thanks > Suhas You want eval(). It should all be explained here: http://www.php.net/eval Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]

Re: [PHP] functions, opinion...

2003-06-17 Thread Lars Torben Wilson
t to having your functions doing their own output--beyond the initial convenience. For one thing, it can make effective use of templates a bloody pain. Just some thoughts, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttle

Re: [PHP] Email Valadation

2003-06-17 Thread Lars Torben Wilson
suggest checking on ps.sklar.com, Zend.com, phpclasses.org, etc for some rfc822 checkers. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com htt

Re: [PHP] Email Valadation

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 02:54, Lars Torben Wilson wrote: [snip] > I would suggest checking on ps.sklar.com, Zend.com, phpclasses.org, etc > for some rfc822 checkers. I meant 'px.sklar.com', of course. :/ Torben -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] Password generator

2003-06-17 Thread Lars Torben Wilson
tell it not to use anything beyone the first 26 characters of your allowable characters string. Below is one way to do it. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.co

Re: [PHP] error with null $HTTP_GET_VARS['field']

2003-06-17 Thread Lars Torben Wilson
not likely to help in the long run. :) Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com ---

Re: [PHP] bcmod()

2003-06-17 Thread Lars Torben Wilson
3, PHP 4 ) > bcmod -- Get modulus of an arbitrary precision number > Description > string bcmod ( string left_operand, string modulus) > > Get the modulus of the left_operand using modulus. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http:

Re: [PHP] Re: refreshing fopen

2003-06-17 Thread Lars Torben Wilson
and check this out for a ready-made script: http://web.they.org/software/php-push.html Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com

Re: [PHP] Ini_set with mutiple include directories

2003-06-17 Thread Lars Torben Wilson
ove > > Does anyone know how this can be done? Thanks :) Separate the paths with semicolons or colons depending on your OS. You can also check existing values using ini_get() and modify based on that. I like to use something like the following: Hope t

Re: [PHP] MySQL Connection

2003-06-17 Thread Lars Torben Wilson
" IDENTIFIED BY "cludiana"; > ERROR 1045: Access denied for user: '@127.0.0.1' (Using password: NO) > mysql> > > what could be wrong. Help please . > > Regards > > Moses -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.050

Re: [PHP] MySQL Connection

2003-06-17 Thread Lars Torben Wilson
've done so far, where on the network the database server is, and your username when logged in. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybr

Re: [PHP] Re: Help with my code

2003-06-18 Thread Lars Torben Wilson
On Wed, 2003-06-18 at 08:23, Terje Torkelsen wrote: > To echo multiple lines you have to write > > echo << > > > > > > ... > .. > > END; No offense, but this is completely false. Double-quotes will work just fi

Re: [PHP] print all variables

2003-06-18 Thread Lars Torben Wilson
print_r($_POST); // or print_r($_GET); This information, for the record, is readily available in the manual. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com

Re: [PHP] mySQL: Rows and columns

2003-06-18 Thread Lars Torben Wilson
ions are documented here: http://www.php.net/mysql You can find a PHP/SQL tutorial here: http://phpdev.gold.ac.uk/tutorial/sql/ There are likely a bunch more on Google. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.theb

Re: [PHP] Need someone with a fresh mind on tacking this arrayproblem...

2003-06-18 Thread Lars Torben Wilson
he literal string '$ODBC_RESULT'--when you probably want to be using the contents of $ODBC_RESULT. I haven't tested it, but it's the first thing I see. Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.t

Re: [PHP] Sessions?

2003-06-18 Thread Lars Torben Wilson
> It seem to me like all those questions got to have answers for them > somewhere, I just look in the wrong place > Help is appreciated :-) > > lee All of this information is in the manual: http://www.php.net/session Good luck, Torben -- T

Re: [PHP] Need someone with a fresh mind on tacking thisarrayproblem...

2003-06-18 Thread Lars Torben Wilson
als, but that might not be all that obvious. I've been fixing the array type page today, so I'll take a look at the wording on this. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflata

Re: [PHP] Need someone with a fresh mind on tacking thisarrayproblem...

2003-06-18 Thread Lars Torben Wilson
ge.types.array.php I have just done some fairly hefty work on this last page; however, it won't appear online until the next time the manual is generated. Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.

RE: [PHP] Agh! Driving me crazy!

2003-06-18 Thread Lars Torben Wilson
, '$iice'... > > ..michael.. No, his syntax with that part is fine. For more information on how variables work in PHP strings: http://www.php.net/manual/en/language.types.string.php -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://w

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-18 Thread Lars Torben Wilson
type page, so hopefully some of this will be a bit clearer (at least, after the docs get generated). There is also definitive information on the string variable interpolation topic here: http://www.php.net/manual/en/language.types.string.php Hope this helps, Torben -- Torben Wilso

Re: [PHP] picture help

2003-06-18 Thread Lars Torben Wilson
$newimg=imagecreate($nw,$nh); > imagecopyresized($newimg,$img,0,0,0,0,$nw,$nh,$ow,$oh); > imagejpeg($newimg, $nn); > return true; > } > > #thumbnail(filetouse,newwidth,newpath,newname); > thumbnail($imgname,100,"/imges/","t_".$imgname); > t

Re: [PHP] .htaccess files

2003-06-18 Thread Lars Torben Wilson
pache.org/docs-project/ Good luck, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com - Boycott

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Lars Torben Wilson
urce without strutting up and down like some unsolicited mailing list Rent-A-Cop. This list is about helping people learn to use PHP. Please use it as such. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com htt

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Lars Torben Wilson
On Wed, 2003-06-18 at 21:42, Leif K-Brooks wrote: > Lars Torben Wilson wrote: > > >I have no idea where you folks have gotten the idea that asking how to > >get Javascript to interact with PHP would be particularly off-topic > >here. Were it the vile transgression this t

Re: [PHP] forms addslashes ?

2003-06-19 Thread Lars Torben Wilson
e case, you could either disable magic_quotes in php.ini, or else test whether it's turned on and then decide whether to call addslashes(). Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://w

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Lars Torben Wilson
> ?> > > This seemed to do the trick for me. Thank you. > > / Mark Even better, you don't even need the fopen() and fclose() calls; readfile() is doing this with just the filename. http://www.php.net/readfile -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Lars Torben Wilson
ce'. Seems pretty unequivocal. However, if there is something wrong with the presentation or if you have suggestions for improvements, I can take a look at it for you. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
it for you: http://www.php.net/rtrim Good luck! Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.co

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
> Sparky > - Original Message - > From: "Lars Torben Wilson" <[EMAIL PROTECTED]> > To: "Sparky Kopetzky" <[EMAIL PROTECTED]> > Cc: "PHP General" <[EMAIL PROTECTED]> > Sent: Friday, June 20, 2003 16:47 > Subject: Re: [PHP] Chom

RE: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
php.net/chop Cheers, Torben -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com - Boycott Starbucks! http://www.

Re: [PHP] Not incrementing?

2003-06-20 Thread Lars Torben Wilson
le variables: $$index = $HTTP_POST_VARS[$index]; ...although even easier would be: $$index = $value; http://www.php.net/manual/en/language.variables.variable.php [snip] > Thanks, > -- > Kyle Hope this helps, Torben -- Torben Wilson <[EMAIL PROTECTED]>

Re: [PHP] securing a graphic

2003-06-21 Thread Lars Torben Wilson
opyright and > terms of use notice are prominent on the page, but the nature of the web is > that they ALREADY HAVE downloaded a copy. > > Justin Yup. If my computer can display it, I can save it. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506

Re: FW: [PHP] How do I get the exit code of an external program?

2003-06-22 Thread Lars Torben Wilson
> } > > > function active_ping_exit() > { > //http://us3.php.net/manual/en/function.system.php > $test = system("ping -n -c 1 -w 1 -q $this->IP", $code); > if ( $code == 0 ) >

  1   2   3   4   >