Re: [PHP] chill out

2003-04-04 Thread Steve Edberg
e contents of the FAQ before they are allowed to post. However, as others have said, the signal-to-noise ratio of this list is pretty high, easiest thing is just to tolerate/ignore the inappropriate questions... -steve At 2:21 PM +0500 4/4/03, Haseeb Iqbal wrote: hi all, just like to add some

Re: [PHP] dynamic IF statement

2003-04-04 Thread Steve Keller
At 4/4/2003 11:50 AM, Tim Haskins wrote: > How does one create a statement that basically says: > > " ) > { ?> You make a string with your dynamic statement and then EVAL it. http://www.php.net/manual/en/function.eval.php -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organ

[PHP] greater than question

2003-05-27 Thread Steve Buehler
in Advance Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php working with iis

2003-05-28 Thread Steve Barlow
Ok, I'm having problems with configuring all the things together. I have loaded on Php 4.3.1, Mysql, IIS 5.1 and Dreamweaver MX, but I can't get php to work from dreamweaver, well i can't say it works at all having used a piece of code to check php works in html. I have installed php but I get a

Re: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 01:55 PM, Edward Peloke wrote: > Isn't php4.3.2 compiled with the gd library Not necessarily. Run a phpinfo() and look in the configuration for --with-gd. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 90

Re: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 01:55 PM, Edward Peloke wrote: > I now have php 4.3.2 I'm sorry, I read the version wrong. Feel free to ignore me. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Emai

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 02:42 PM, Edward Peloke wrote: > Nevermind, I got it working with a few ini changes... All rightee. Glad I could help. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax)

Re: [PHP] static vars question

2003-05-31 Thread Steve Keller
At 5/30/2003 04:49 PM, Martin Helie wrote: > function test() { > static $i = 0; > if( $i < 10 ) { > $i++; > test(); > } > echo "I'm here"; > } > > I am a little surprised to find that even when $i < 10 and test() is invoked > again, the current function call execute

Re: [PHP] static vars question

2003-05-31 Thread Steve Keller
At 5/30/2003 05:53 PM, Martin Helie wrote: > In my test() function, I called test() again inside the if statement (which > checks true for 10 iterations) Yes. So you've called the statement 10 times. > and I thought that the current function would immediately be terminated > by calling itself (or

Re: [PHP] static vars question

2003-05-31 Thread Steve Keller
At 5/30/2003 06:27 PM, Martin Helie wrote: > Thanks for explaining that once the function is called and > completed, the rest of the first call continues executing > normally. That is what surprised me. Yup. It's what makes building function libraries a thing of art in PHP, you can create smaller

Re: [PHP] UBB to HTML

2003-06-03 Thread Steve Keller
At 6/1/2003 09:05 PM, zavaboy wrote: > How can I strip ALL HTML tags, then turn UBB code to HTML. And I also want > to know how to turn the HTML back to UBB? http://us3.php.net/manual/en/function.strip-tags.php http://promoxy.mirrors.phpclasses.org/browse.html/package/818.html Google is your fri

Re: [PHP] I guess I'll give the list a shot

2003-06-03 Thread Steve Keller
At 5/30/2003 09:47 PM, David McGlone wrote: > Basically what Im trying to do is when lets say "black" is selected from the > dropdown, then the price for a black shirt is grabbed from the database and > inserted into a hidden field. If you want this to happen dynamically, as the user is on the p

[PHP] Mail Harvester Warning (was Re: [PHP] I guess I'll give the list a shot [T2003060200WW])

2003-06-03 Thread Steve Keller
Just wanted to pass a little warning on to the list. I sent a reply to David McGlone ([EMAIL PROTECTED]) and my email got forwarded to an address at Bonzi.com. I'm not sure if they're using list replies to harvest email addresses or not, but I'll definitely be watching my in-box. From: TechSu

Re: [PHP] Dynamic value lookups

2003-06-03 Thread Steve Keller
At 6/2/2003 02:44 PM, Vijay Avarachen wrote: > I know I gotta do somethign with onchange="" That's Javascript, not PHP. > I was thinking perhaps I can just do somthing like onchange="PHP_SELF?product=". No I > know thats not the syntax but you get the idea =) That won't "dynamically load" any

Re: [PHP] submitting to differient php scripts based on button -O T-

2003-06-04 Thread Steve Keller
At 6/3/2003 04:24 PM, Ryan A wrote: > I simply want to submit my form to either one.php or two.php or thr.php > depending on which BUTTON is pressed (I am using html buttons type='submit' value='blah'>) I have 3 buttonshow do i set it? You can do this one of three ways: 1. Instead of actuall

[PHP] fetch then put record?

2003-06-09 Thread Steve B.
Hello, In ASP you can set records fields then call a dbupdate function. It appears mysql only supports update with the UPDATE query? Here is my code: How would you do a dbrec.update (which updates just the row you changed with the variables) thanks Steve __ Do

[PHP] Table issue

2003-06-10 Thread Steve Marquez
more than 5 paragraphs at the most.) Is there anyone that has run into this problem before? Any suggestions? -Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Table issue

2003-06-10 Thread Steve Marquez
s into the DB, however, the multi line does not. If I write the article in the multi-line field, it works (as far as I know, I have only attempted about 40 lines), but when I copy and paste the article in, it does not. This is really strange... -Steve > [snip] > I am attempting to insert

Re: [PHP] What does this do?

2003-06-10 Thread Steve Keller
At 6/10/2003 02:56 PM, Stephen Goddard wrote: > Can anyone tell me what this does ${varname} > I cant find any information as to what the braces do. Which is odd because searching for "braces" at PHP.net takes you the "strings" section, which explains in detail several functions of curly braces.

[PHP] Any experience (good or bad) with domehost.com?

2003-06-10 Thread Steve Magruder
make me aware of? On top of this, is there any site out there where hosting customers can rate the various hosting companies? Thanks, Steve -- Steve Magruder Consulting - http://consulting.stevemagruder.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] magic_quotes_gpc

2003-06-10 Thread Steve Marquez
Anyone know how to change the magic_quotes_gpc? I need it to be on in PHP. Running PHP 4.1.2 Thanks, Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is this possible?

2003-06-11 Thread Steve Marquez
e? Thanks, -Steve Marquez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form name and submit test

2003-06-11 Thread Steve Keller
At 6/11/2003 09:42 AM, Amanda McComb wrote: > If I have multiple forms on a page, and each form has it's own name, how > can I tell which form has submitted? By its contents. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508

[PHP] Zend Optimizer not active?

2003-06-12 Thread Steve Yates
no errors during the Optimizer install, and everything looks like it's correct to me...the two lines are in php.ini, and they point to the right ZendOptimizer.so file. There is only one php.ini on the system. Any hints? Thanks, - Steve Yates - Termite in pub: "Is the bar t

[PHP] Re: Zend Optimizer not active?

2003-06-13 Thread Steve Yates
opyright (c) 1998-2003 Zend Technologies Running the CLI on a phpinfo() call also does not show Optimizer. Also phpinfo() says "Debug Build => no" so that's not it. - Steve Yates - I have 5 nanosecond memory. Duration - not access time. ~ Taglines by Taglinator - www.srt

[PHP] Re: Zend Optimizer not active?

2003-06-13 Thread Steve Yates
Ah, how clear things are afterwards. :) I found out my problem was that PHP was looking in the "wrong" folder for php.ini, and it apparently fails silently, taking the default settings instead. - Steve Yates - A chicken is just an egg's way of continuing the species.

[PHP] Characters

2003-06-10 Thread Steve Marquez
I am inserting a file via a PHP form. It works great, however, if there is a word that has quotes in it, then it does not work at all. Is there a way to make it so that MySQL will receive a word with "quotes?" Thanks -Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] String containing PHP Code

2003-06-16 Thread Steve Keller
At 6/16/2003 05:45 PM, Suhas Pharkute wrote: > I have a php script which generates a string which has php code in it. I need to run that code. http://www.php.net/eval -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 9950

RE: [PHP] shopping cart and login system

2003-06-17 Thread Steve Jackson
om my previous cart session. Should be easy by the looks of it. (watch for wrap): http://www.paypal.com/cgi-bin/webscr?cmd=_help-ext&eloc=762&unique_id=02 413&source_page=_home&flow= Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EM

Re: [PHP] Strange roblems with sessions

2003-06-18 Thread Steve Keller
At 6/18/2003 03:22 PM, Logan McKinley wrote: > the error checking include file just handles php errors, the javascript > handles form validation. I believe the problem i am having is with the > session not the error handling, because i removed all validation and it did > the same thing. Yes, that

Re: [PHP] Strange roblems with sessions

2003-06-18 Thread Steve Keller
At 6/18/2003 02:51 PM, Logan McKinley wrote: > <-- the code in question > > I have attached the actual files if that would be of more help, > Thanks in advance for any help, The first thing that I noticed is that you're doing error checking in "registration_form.php", but your form i

[PHP] .htaccess files

2003-06-18 Thread Steve Marquez
Hello everyone, Could someone point me in the direction of some info on .htaccess files? Could someone send me one, tell me where to put it in my server? I hope this is not a stupid question. I am running Apache on a Mac with Jaguar OSX. Thanks for your help, -Steve Marquez [EMAIL PROTECTED

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Steve Keller
At 6/19/2003 02:10 PM, Sparky Kopetzky wrote: > 2. How do you put 2 items that you want to save in the cookie and retrieve?? Smuch 'em together into a single variable with a delimiter you're sure won't show up in either value, something like "#@@#", between them. Then, when you read the cookie

Re: [PHP] securing a graphic

2003-06-19 Thread Steve Keller
At 6/20/2003 02:33 AM, Haseeb Iqbal wrote: > yeah there is a way No there is not a way. The way the web works is by sending your content to someone else' computer. Once it's there, they have a copy, whether it's in their cache or actually saved as a file. There's no way to prevent a determined

Re: [PHP] explode, split, or what?

2003-06-19 Thread Steve Keller
At 6/19/2003 10:41 PM, Kyle Babich wrote: > Inside of another file I'm trying to read setup.txt into $rawSetupData and explode that with \r\n's > into an array called $setupData. Why on earth? http://us4.php.net/file > > if (file_exists("setup.txt")) { >$rawSetupData = readfile("setup.txt

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Steve M
On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote: > Okay, I think I'll have to kill myself... > I can't believe I am this stupid, but it turned out I was working on a copy > of the file, not the real one. D'OH!!! > Sorry, guys! > Daniel That's no reason no

Re: [PHP] Expensive WEB HOST NEEDED!!!!!

2003-06-24 Thread Steve Magruder
eone not to make a living? Kinda unreasonable. > Anyways, I try and avoid these threads as they waste mucho bandwith > but here I am :) I don't work for them (), but I recently found a web hosting service that all but provides the moon for only $49.95 a year (and they're located in t

[PHP] php.ini

2003-06-25 Thread Steve Marquez
I am running MacOSX and can not find my php.ini file. Does anyone know where it is located on a mac? I looked at my phpinfo file, and it says /usr/lib/ but does not have the php.ini file in it. Can anyone help? Steve Marquez Marquez Design [EMAIL PROTECTED] www.marquez-design.com -- PHP

Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
nothing came up. I could find .ini files, or php. files, but no php.ini files. Can the file be called anything else? Thanks, Steve > [snip] > I am running MacOSX and can not find my php.ini file. Does anyone know > where > it is located on a mac? > > I looked at my phpinfo file

Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
I did a search for php.ini-dist and found nothing. This is really strange to me. It does have to exist, right? I have done all the searches possible. Could it be under a different name? Thanks -Steve > Hi > > I had this problem when i installed php on my linux box. Because I hadn&#

Re: [PHP] quotes

2003-06-25 Thread Steve Marquez
I had the same problem. I had my ISP turn magic quotes on in the php.ini file on their server. As soon as they did that, everything worked just fine. -Steve Marquez Marquez Design [EMAIL PROTECTED] www.marquez-design.com > it doesnt work, i just tried it. the text is still cut off after

Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
Thanks guys, I downloaded the source and created a php.ini file. It worked great! Thanks for all your help and patience. -Steve >> Does the php.ini file always go in the same place no matter the OS? I >> did a >> locate in the shell, and nothing came up. I could find .in

Re: [PHP] Please help can anyone figure whats wrong with this?

2003-06-25 Thread Steve Keller
At 6/25/2003 10:26 AM, Kevin Stone wrote: > You're missing a starting bracket. > > You know this was WAY too easy to find. What kind of editor are you using > that would miss something this obvious? A little indenting goes a long way... -- S. Keller UI Engineer The Health TV Channel, Inc. (a non

Re: [PHP] cannot get php through apache to write to my home dir on shared server

2003-06-26 Thread Steve Buehler
Another option might be to create a directory in your web space to hold your file and open up just that directory as 777. Steve At 08:17 AM 6/26/2003 -0400, you wrote: From: "frank reeves" <[EMAIL PROTECTED]> > I have an account on shared server and am trying to > write a

[PHP] if and...

2003-06-30 Thread Steve Marquez
I am trying to get php to use two conditions. My question Is, I am not sure if the "and" is correct, it does not work. Is there another way to do this? I have tried a plus (+), a (,) and nothing seems to work. Could someone please help? Thanks! Steve Marquez Marquez Design [EMAIL

[PHP] PHP-GD and JPEG+PNG - Which versions is required?

2002-07-24 Thread Steve Alberty
: library thinks size is 372, caller expects 376 Hmmm, maybe the bundled gd has more bugs as the 'normal' 2.0.1 (Beta) Version?! Regards, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] web page function

2002-07-24 Thread Steve Minter
I am tring to refer to a web page using a function. What function refers to a web page? example: if (page=index.php) { print $something } What function should "page" be? Thanks Steve

[PHP] filling an array(2)

2002-07-26 Thread Steve Buehler
rd to search for it if I don't know what it is called. Thanks Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] filling an array

2002-07-26 Thread Steve Buehler
} From Martin: for($i =0; $i < 5; $i++) { $offset = $m + 1; $divid[$m] = $div_id{$offset}; } At 10:55 PM 7/26/2002 +0300, you wrote: >- Original Message - >From: "Steve Buehler" <[EMAIL PROTECTED]> >To: "PHP" <[EMAIL PROTECTED]> >Sent: Fr

Re: [PHP] filling an array(2)

2002-07-26 Thread Steve Buehler
Ok. That makes since. Thanks Steve At 04:20 PM 7/26/2002 -0500, you wrote: >var names can only be letters, numbers, and underscores. > >Jim Grill >Support >Web-1 Hosting >http://www.web-1hosting.net >- Original Message - >From: "Steve Buehler" <

[PHP] filling an array

2002-07-26 Thread Steve Buehler
;$m++){ $div_id[$m]=$divid$m; } Can anybody tell me how to do this in a "for" statement? Thanks In Advance Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Steve Buehler
Install PHP on your desktop. You will need a web server too. I use PHP/MySQL/Apache on my Laptop, Desktop, Servers and workstations. Steve At 07:56 AM 7/27/2002 -0700, you wrote: >I guess I should reiterate; > >"What is the easiest way to test locally (on my desktop) wit

[PHP] Re: filling an array(2)

2002-07-29 Thread Steve Buehler
That did the trick. Thank you SO MUCH. Steve At 03:48 AM 7/29/2002 -0500, Richard Lynch wrote: > >h. Ok. Can somebody explain this one? Why won't it work correctly? > > > >for($m=1;$m<=5;$m++){ > > $div_idd[$m]=${'row->sub' . $m . 'd

Re: [PHP] Disturbing parsing problems

2002-07-29 Thread Steve Edberg
the alternative syntax, I recall several messages about people having problems nesting both forms of syntax. Try using all one style or the other. Lastly, quadruple check that you haven't accidentally quoted or double-quoted a { or ( or something that you THOUGHT was par

Re: [PHP] Vars passed via URL disappearing

2002-08-02 Thread Steve Edberg
e error message. With >register_globals ON, it works fine. > >I thought register_globals only affected session, cookie and get type >variables? Why is PHP ignoring the variables passed via the URL? 'variables passed via the URL' = 'GET variables'

[PHP] GD Error

2002-08-08 Thread Steve Vernon
quot;" and then set the line "extension = php_gd.dll" to "extension=c:\PHP\extensions\php_gd.dll" but that don't work! What am I doing wrong? The error attatched comes up... Please don't send me to a URL because I can't find one that is helpful! Ste

RE: [PHP] Open 10 http connections in parallel

2002-08-08 Thread Steve Edberg
e http://php.he.net/manual/en/function.socket-set-blocking.php and http://php.he.net/manual/en/ref.network.php -steve At 1:28 PM +1000 8/9/02, Martin Towell <[EMAIL PROTECTED]> wrote: >use C and fork() >php (AFAIK) can't do parallel programming > >-Original Message

[PHP] Advice

2002-08-11 Thread Steve Jackson
anks. Steve Jackson Phone +358503435159 Email [EMAIL PROTECTED] Web http://www.webpage.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Form variables not passing: globals IS on

2002-08-12 Thread Steve Clay
_globals is : ".ini_get('register_globals'); Something might be wrong with your PHP install if it's a recent version and $_POST isn't there.. Try print_r($_POST); PA> echo " HTTP_POST_VARS :".$_HTTP_POST_VARS["test"].""; The deprecat

RE: [PHP] PHP - class question

2002-08-14 Thread Steve Bradwell
I would suggest you write a method (called mydb() for example) that connects to your database, and if needed, call it from your constructor like: $this->mydb(); This way you can always reuse the method from other code. hth, Steve. -Original Message- From: Mark Armendariz [mailto:[EM

[PHP] Moving Files - Stupid Error

2002-08-16 Thread Steve Keller
Hey all, I need a little help with moving a file on the server after an upload. Our company site is hosted, so I don't have full access to the configuration files, but I can do a PHP_info dump if you need more clarification. Using 4.0.1pl2. What I'm doing is uploading a file from a form, and

[PHP] Re: halloween documents

2002-08-20 Thread Steve Mallett
A plea for help Would anyone be willing to code the Halloween Documents so we could print them as PDF files http://opensource.org/halloween/ -- Steve Mallett | [EMAIL PROTECTED] http://open5ource.net "The more I contemplate death and my mortality, the more it inspires me to

RE: [PHP] php Transaction question

2002-08-20 Thread Steve Bradwell
Ya that's pretty much it. Just do: mysql_query("BEGIN"); $sql = "Update bla..."; $result = mysql_query($sql); if($result) mysql_query("COMMIT"); else mysql_query("ROLLBACK"); HTH Steve. -Original Message- From: Randy Johnson [mailto:[EMA

[PHP] phpMyAdmin is this possible

2002-08-20 Thread Steve Jackson
7;d rather have seperate ones for seperate functions.. Ideas or advice? is the way I am suggesting better or worse than the way my hosting company expects me to work? Thanks in advance. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] phpMyAdmin is this possible

2002-08-20 Thread Steve Bradwell
tabases if configured correctly. To create a new database just type the name in the box on the home page and click create, from there you can create new tables etc. hth Steve. -Original Message----- From: Steve Jackson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 3:12 PM To: MYSQL; P

[PHP] phpMyAdmin

2002-08-20 Thread Steve Jackson
L and PHP so would like some advice, is the way I describe (databases for each website function) a good way to design or should I have all my functions in one large database? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 --

Re: [PHP] Virtual includes

2002-08-26 Thread Steve Keller
At 11:12 AM 8/26/2002 +0200, you wrote: > I'm trying include .php files which reside in alternative directories or > sub-directories. Such as a file which reside in www/chat/page.php, and for > this page I would like to include a file which resides in www/forum/include/ Using $DOCUMENT_ROOT h

[PHP] php_flag not valid?

2002-08-27 Thread Steve Fox
ues how this could happen? Is Red Hat's PHP package messed up or am I missing some config thing somewhere? Any help would be appreciated. Thanks. -- Steve Fox IBM Linux Technology Center http://www.ibm.com/linux/ltc http://k-lug.org -- PHP General Mailing List (http://www.php.net

Re: [PHP] php_flag not valid?

2002-08-27 Thread Steve Fox
On Tue, 2002-08-27 at 14:45, Rasmus Lerdorf wrote: > Known Apache 2.0 related bug. Not sure anybody is looking at it. :( At least I can quit banging my head against my keyboard now :) Thanks much Rasmus. -- Steve Fox IBM Linux Technology Center http://www.ibm.com/linux/ltc http://k-lug.

[PHP] time stamp

2002-08-27 Thread Steve Buehler
I am using PHP with MySQL and have a timestamp field in my db table. What would be the easiest way to get the newest timestamp out of the db? Thanks in Advance Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -- PHP

[PHP] RE: time stamp

2002-08-28 Thread Steve Buehler
gt;updated; } } $date=$b; $year=substr($date,0,4); $month=substr($date,4,2); $day=substr($date,6,2); $hour=substr($date,8,2); $min=substr($date,10,2); if($hour >= 12){$ap = "pm";}else{$ap = "a

[PHP] Odd URL problem

2002-08-29 Thread Steve Lane
pp) that says "Attempt to access http://foo.bar.org/goto.php?goto=area%3Dpersonnel%26sub%3Dpersonnel%26person nel%3D1002566%26option%3Dedit failed". So it seems that the browser in the failing case is trying to deal with the URL in its encoded form. Anyone have any idea

Re: [PHP] Average Number For Math Functions

2002-08-29 Thread Steve Edberg
though the set, or (if you have version >= 4.0.5) you can use array_reduce() in conjunction with the count() function. If these values are coming from a database, most databases have aggregate functions to do sums, averages, etc. -steve +-

Re: [PHP] request what a user clicked

2002-08-30 Thread Steve Edberg
At 03:12 PM 8/30/02 , stu9820 wrote: >what is php's request object? >like in ASP - Request("variable") Short answer: $_REQUEST['variable'] (for PHP version >= 4.1.0) Long answer: http://www.php.net/manual/en/language.variables

RE: [PHP] question

2002-09-04 Thread Steve Bradwell
) && !isset($b) ){ while ($a){ likeStatements(); //you could also pass any needed info to the function. } }elseif( isset($b) && !isset($a) ){ while ($b){ likeStatements(); } }elseif( isset($a) && isset($b) ){ while ($a && $b){ likeStatements(); } } HTH, Steve.

RE: [PHP] check for a number

2002-09-04 Thread Steve Bradwell
is_int($f) will return true if $f is an integer, false otherwise. Check http://www.php.net/manual/en/function.is-int.php HTH, Steve. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP] check

Re: [PHP] whitespace...

2002-09-04 Thread Steve Edberg
...read in $file = preg_replace( array('/[ \t]{2,}/', '/(\n|\r|\r\n){2,}/'), array('/ /', '\r'), $file ); ...write out See http://www.php.net/manual/en/function.preg-r

Re: [PHP] PHP and Apache

2002-09-06 Thread Steve Edberg
w.webmin.com/ Looks very comprehensive, and I've seem a number of good recommendations for it. I've been planning on doing a little testing of it on my test server, but haven't had the time. -steve At 4:48 PM +0100 9/6/02, Tim Haynes wrote: >Is there any easy way of

[PHP] MySQL and Array's REALLY simple question but I'm not GETTING it.. Ugh..

2002-09-06 Thread Steve Gaas
Can anyone tell me what's wrong with my code? All I get output from this is the LAST row of data from my Database. There are 2 rows, how do I make it pull data from all of the rows? It's not going through the loop like it should I need to be able to tell the mysql_fetch_array which row I w

RE: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh..

2002-09-06 Thread Steve Gaas
OK, this works.. This is wonderful.. But I don't get it.. I assigned two separate variables to that array function.. I don't understand why this works now, but thanks a lot for the help. I hope I don't inadvertently run into this again... -steve $sql2 = mysql_connect(&qu

[PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
Hello, My code below always dies! I've tried just about every iteration of the values, etc.. Can anybody show me how to insert into MySQL a value? "INSERT INTO events ('user','detaildesc') VALUES ('$user','$details')" I just don't get it! if ($update_type == update_Williams) { mysql_query("

RE: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
Parse error: parse error, unexpected T_ECHO in /var/www/html/actionreg/doupdate.php on line 24 Forgot I had that function.. I don't understand the error though.. Steve Gaas Sr. Systems Engineer, Carrier Markets Riverstone Networks 972.668.8329 (follow-me) 877.713.7063 (pager analog

RE: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
7;,\'\',\'$row_num\',\'$last_update\'", $sql4) or print mysql_error(); } this is the output You have an error in your SQL syntax near ''user', 'detaildesc', 'index', 'reference', 'date_added') VAL

RE: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
or print mysql_error(); } inserts perfectly.. Steve Gaas Sr. Systems Engineer, Carrier Markets Riverstone Networks 972.668.8329 (follow-me) 877.713.7063 (pager analog dial) [EMAIL PROTECTED] (interactive pager) http://www.rstn.net / Nasdaq: RSTN "Wisdom begins in wonder.&quo

Re: [PHP] turn register_globals on

2002-09-08 Thread Steve Yates
te all the POST variables for you. Works for GET and others, too. - Steve Yates - Psychology: the study of the id by the odd. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today! -- PHP General Mai

[PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-08 Thread Steve Yates
"Cirstoiu Aurel Sorin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I tried to use $HTTP_SERVER_VARS['HTTP_HOST'] but the result is null. I believe your web server has to set that variable. Does phpinfo() show a val

RE: [PHP] RE: A straightforward user login coding

2002-09-09 Thread Steve Bradwell
Hey there, This is a page I wrote that does that with sessions, sorry its a little messy but it should help you with the general idea. HTH, Steve. //Copy the below into a php file and change all the variables and sql statement to reflect your own data. Error'; echo '1:Con

Re: [PHP] Need more memory... possible to set?

2002-09-10 Thread Steve Edberg
via the -d command option: php -d memory_limit=20M -f yourprogram.php (3) Set it in your program with the ini_set() command: http://php.he.net/manual/en/function.ini-set.php -steve At 11:29 PM -0500 9/9/02, Damian Harouff wrote: >Fatal error: Allowed memory size of 8388

RE: [PHP] PHP and Microsoft Office

2002-09-18 Thread Steve Bradwell
Yes you can, check http://www.php.net/manual/en/ref.com.php for examples. HTH, Steve. -Original Message- From: Matthew Tapia [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 9:43 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Microsoft Office Can you use PHP to add

RE: [PHP] editor php

2002-09-19 Thread Steve Bradwell
Lol. Here, Here! -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:06 AM To: Gian Michele Cc: [EMAIL PROTECTED] Subject: Re: [PHP] editor php /bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: > Hi,

[PHP] How do you stop certain headers from going out?

2002-09-20 Thread Steve Ramage
I'm having problems with headers being sent out that cause generated images to become garbled, Does anypone have any ideas on how to stop certain headers, such as Connection, Keep-Alive and Transfer-Encoding from going out to the browser, or filtering them out of the output? Im running apache 1.3

RE: [PHP] MySQL vs. basic text file

2002-09-23 Thread Steve Bradwell
ou can do this other ways but the simplicity is nice. Although I am still a newbie, I would also have to say there would be a speed issue, if you only wan't one row returned versus reading enire file into memory then walking through it one at a time, mysql's indexing can greatly spe

Re: [PHP] MySQL vs. basic text file

2002-09-23 Thread Steve Werby
or in a book and playing with one of the more popular open source databases such as MySQL or PostgreSQL. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ADOdb

2002-09-24 Thread Steve Bradwell
One thing that has helped me was to write a db class and use it to connect to mysql, then all you have to do is change the class, and not all your code when you change the db. -Steve -Original Message- From: Brendon G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 4:03 AM

RE: [PHP] Getting started with PHP

2002-09-26 Thread Steve Bradwell
Welcome Steve, You'll need to do two things to get started, download apache and php for windows, and configure 2 files - httpd.conf (apache), and php.ini. A good tutorial can be found here : http://softwaredev.earthweb.com/script/article/0,,12014_912381,00.html After that create a .php fi

RE: [PHP] Re: Multiple Inheritance Emulation

2002-09-27 Thread Steve Bradwell
LOL, thanks for the laugh on a friday afternoon =]. -Original Message- From: Julio Nobrega [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 3:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Multiple Inheritance Emulation Julio Nobrega em Friday 27 September 2002 15:40 foi agra

[PHP] Annoying Install Problem

2002-09-30 Thread Steve Keller
can tell me how not to do it in the future, or someone tells me they need more information, in which case I'll do my best. Thanks for the help, ~Steve-o -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200

Re: [PHP] Including Text File in PHP/HTML Template

2002-09-30 Thread Steve Keller
At 9/30/2002 04:39 AM, Rick Beckman wrote: >On line "6", I have the list of musicians in the song. >Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass >vocal" >Is there a way to make it so that, when I include line 6 in my PHP template, >the ";" will be replaced with a l

Re: [PHP] vulnerabilities??

2002-09-30 Thread Steve Keller
At 9/30/2002 06:17 PM, you wrote: >Is there any version of php and apache for which there are no known >vulnerabilities?? It's the vulnerabilities you don't know about that get you. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage

[PHP] Re: .php to .html?

2002-09-30 Thread Steve Yates
"Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can I make my pages come out as .html instead of .php? Rename your pages to .html, and configure Apache to send all .html pages through PHP: -- PHP General Mailing List (http:

<    1   2   3   4   5   6   7   8   9   10   >