[PHP] Anyone used Luke Welling & Laura Thompsons shopping cart?

2002-10-27 Thread Steve Jackson
I am developing a shopping cart based on the above authors shopping cart fom their book. (Book is a must by the way). I am still pretty new to PHP and MySQL and need some help with the cart. Basically I need to add a form to adjust the quantity in the cart instead of just incrementing by one and th

[PHP] Adding to cart function.

2002-10-25 Thread Steve Jackson
[$new]) $cart[$new]++; Instead of incrementing by one how do I increment by a variable which would be the form input? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Weight function.

2002-10-17 Thread Steve Jackson
I'm using both variables called in another page. Taking globals off causes weight not to be calculated in the shipping cost? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From:

RE: [PHP] Weight function.

2002-10-17 Thread Steve Jackson
Thanks. I have just this minute got it working. Basically the same function I used for determining price of the cart items could be used for determining weight. All I needed to do was assign my DB with a field called weight and call that instead of price from the DB so my calculate weight function

[PHP] Weight function.

2002-10-16 Thread Steve Jackson
$itemCode which defines the actual item which would probably be more reasonable? Thoughts? Regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] lynx and crontab

2002-10-15 Thread Steve Buehler
d the word "dump". Your command should be: lynx -dump http://www.mysite.com/test.php Steve At 01:11 PM 10/15/2002 +0100, you wrote: >my isp lets me control crontab so i've been trying to >run a php script every 30 mins. > >the command is like this: >lynx - dump http:

[PHP] Shipping problem...

2002-10-15 Thread Steve Jackson
t as my shop is currently working I'm scared of messing with the code too much! I also need to have a combination of the two products so the customer might buy 1 of category 2 and 35 of cat 1 etc. Ideas to tackle this please? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystem

[PHP] Function to remember costs.

2002-10-11 Thread Steve Jackson
to our site. to the amount hidden field in the form. Any ideas? This is not all my code which is why I am having problems. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] Re: Undefined variable

2002-10-09 Thread Steve Yates
, how would you know if that was POSTed to your script or I added secretpage.php?validuser=true to the URL? Bet you wouldn't have checked... - Steve Yates - Can taglines have sequels? Hmmm. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Steve Yates
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]] > register_globals to on, so i don't have to go through 15 pages of code > and change all my variables to $_POST['foo'] Try extract($HTTP_POST_VARS) which will create $foo for you. - Steve Yates - Your karma just

[PHP] Shopping cart? Ahh!

2002-10-08 Thread Steve Jackson
deas? If not I'm off for a cry! Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session 3

2002-10-08 Thread Steve Vernon
Solved it! Didn't add a temp directory for sessions! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session 3

2002-10-08 Thread Steve Vernon
! The following code refuses to work. Always outputs "Had to set it manually": Thanks, Steve

[PHP] Scrollbars?

2002-10-06 Thread Steve Jackson
This might be off topic but I thought I'd give the list a try... Does anyone know of any PHP or CSS or something which allows you to change the appearance of scrollbars in Explorer and navigator? Kind regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [

[PHP] Sessions

2002-10-05 Thread Steve Vernon
following code to check the session passwords etc are valid.. Thanks, Steve XX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looping?

2002-10-05 Thread Steve Jackson
Anyone help me? this is probably quite simple but I'm pretty new to PHP. All I want to do it loop through some DB records and display them in the format written in this PHP file: Anyone see where I'm going wrong? the error I get says: Warning: Unable to jump to row 0 on MySQL result index 2 "; ec

[PHP] help me please.

2002-10-04 Thread Steve Jackson
quot;; echo ""; echo ""; blueFont( "Arial", "Send this file: "); echo ""; echo "This file MUST be a JPEG (jpg) image."; //adminFooter($Relative); ?> Process the form: Steve Jackson Web Developer Viola Systems Ltd. http://w

Re: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-03 Thread Steve Yates
s > 2. any good suggestion to avoid this problem, such as that is it possible > to configure 4.2.2 to compatible downward. extract($HTTP_POST_VARS) will create all variables from that array. - Steve Yates - An unbreakable toy is only useful for breaking other toys. ~ Do you like my tagl

[PHP] Re: .php to .html?

2002-09-30 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message news:... > "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? > &g

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

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

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

[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] 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

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] 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] 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] 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

[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] 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,

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] 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] 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

[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] 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

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] 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
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

[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] 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] 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] 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

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] 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] 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] 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] 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 +-

[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

[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] 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

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] 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] 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] 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] 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 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] 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] 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

[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

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] 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

[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

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] 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] 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'

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

[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] 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] 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] 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
} 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

[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] 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] 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

RE: [PHP] After PHP-Apache wont Start

2002-07-24 Thread Campbell, Steve V.
help would be appreciated. Steve Campbell OU Physicians -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

2002-07-22 Thread Steve Meyers
Can you post this to php.announce as well? Marko Karppinen wrote: > >PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1 > > > Issued on: July 22, 2002 > Software: PHP versions 4.2.0 and 4.2.1 > Platforms: All > > >The PHP Group has learned of a serious security vu

Re: [PHP] Check for Associative Array

2002-07-18 Thread Steve Edberg
k if the $key is just a number or just a string > >C) $key += 1 Lastly, you _could_ just step through the array using each() in a loop, and use only every OTHER array entry...but this is really funky and you shouldn't

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
l Message- From: Chris Crane [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:40 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Classes vs. Functions Wow...this is pretty cool. Do you HAVE to declareall your varibles ahead of time? "Steve Bradwell" <[EMAIL PROTEC

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
e method that does all the work so $db1->setTransactionSwitch("false"); //you don't have to recode it. If it fails roolback. if($db1->getTransactionSwitch()=="false");{ $db1->rollback(); }else{ $db1->commit(); } Classes al

RE: [PHP] Submit code

2002-07-16 Thread Steve Bradwell
cking a button. Check this link. http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onsubmit.html Hope this helps, -Steve. -Original Message- From: MindHunter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 2:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Submit code

[PHP] Multi-Part PostToHost?

2002-07-15 Thread Steve Keller
t;... contents of myFile.xml ...\n"); fputs($fp, "--AaB03x--\n"); And again, I've only been doing PHP a week, so if I'm following a totally wrong track here, feel free to smack me around. As always, any help is greatly appreciated. ~Steve-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] configure failed after autoconf update

2002-07-13 Thread Steve Alberty
fine. Can anyone please help? Thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help a n00b with Server-to-Server file transfers?

2002-07-12 Thread Steve Keller
way of a pointer to where I can go to read up on how I can accomplish this. Is there a particular tutorial I can read that's relevent? Perhaps a sample script available that I can peruse to see how someone did something similar? Any help would be appreciated. ~Steve-o -- PHP Gener

RE: [PHP] RE: ############

2002-07-09 Thread Steve Bradwell
agreed. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: lets all spam Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD Lib

2002-07-09 Thread Steve Edberg
Are you compiling php with the --with-gd=shared option? Personally (Solaris 8, gcc 2.95.3 , php 4.1.1 and later) I've never been able to get the gd shared object to work (gd.so load errors), so I've always ended up compiling it into PHP. -steve At 1:23 PM -0400 7/9/02,

Re: [PHP] Odd Request: Image 2 HEX

2002-07-09 Thread Steve Edberg
; substr() or maybe regexps) to do that. For more info, see: http://www.php.net/manual/en/function.fopen.php http://www.php.net/manual/en/function.fread.php http://www.php.net/manual/en/function.bin2hex.php -steve At 9:08 AM -0700 7/9/02, JSheble wrote: >I'm using a Zebra label

Re: [PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
Thanks Justin, your solution is spot-on! Regards Steve Justin French wrote: > > ?>> > > > ?>> > } ?>> > ?>> > > > > > Obviously this is labourios to code... you can do this a lot smarter/quicker > w

[PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
value ='' This works fine except if the input type is a drop down box, in which case the default is shown. Is there any way around this? How can I show the user their previous choice in these boxes? Any insights would be appreciated. Steve -- PHP General Mailing List (http://www.ph

[PHP] Re: preg_match or not?

2002-07-06 Thread Steve Fitzgerald
Thanks, thats hit the nail on the head, and my headache is a whole lot better! Steve Cc Zona wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Steve Fitzgerald) wrote: > > > I have been struggling for a couple of hours now trying to write a > > preg_mat

[PHP] preg_match or not?

2002-07-06 Thread Steve Fitzgerald
em to get right. This is what I have at the moment: if (!preg_match("/[\d]+([\.]{1}[\d]{2})?/", $form_data[amount])) // wrong amount but it still allows invalid input. Can anyone help or is there a better way to do it? Thanks Steve

[PHP] strtr with array of transforms - how many passes thru string?

2002-07-05 Thread Steve Magruder, D2 Director
one total (I hope)? If it's not just one pass, is there another way I can accomplish this same thing just going through the string in one pass? Thanks, Steve -- Steve (www.stevemagruder.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Picture Cache

2002-07-04 Thread Steve Vernon
not cache the picture in the web browser? I don't know how the cache works but my friend says it asks the server for the data the file was generated and the size, so I suppose with this is dosent? Help! Thanks, Steve -- PHP General Mailing List (http://www.php.net

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Steve Yates
nning of a script to create those variables. I presume $_SERVER works as well. - Steve Yates - Peace. (subject to change without notice) / Taglines by Taglinator - www.srtware.com / -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FW: Help please!

2002-07-02 Thread Steve Vernon
No, I did think of it, but the page may end up with quite a few pics, and I download of a modem... Prefer if server has the load... Steve |-Original Message- |From: Lazor, Ed [mailto:[EMAIL PROTECTED]] |Sent: 02 July 2002 21:34 |To: '[EMAIL PROTECTED]

[PHP] FW: Help please!

2002-07-02 Thread Steve Vernon
. Thanks you! Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] securing an 'includes' dir

2002-06-30 Thread Steve Yates
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Steve Yates wrote: > >If you name them *.php then put anything in them inside a function, then > >when the user browses to that file he/she won't see a

Re: [PHP] securing an 'includes' dir

2002-06-30 Thread Steve Yates
"Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 1. Name all included files .inc If you name them *.php then put anything in them inside a function, then when the user browses to that file he/she won't see

Re: [PHP] PHP with online cedit card processing

2002-06-30 Thread Steve Yates
which can return all values back to a script on your site to finish. Pretty well documented too. We use it for web site hosting and domain name registration orders. http://www.teamITS.com/internet/credit_cards.html - Steve Yates - A Penny saved is a congressional oversight. / Tagli

Re: [PHP] Two cases going to same case?

2002-06-30 Thread Steve Edberg
do_something(); break; case 2: ... do_something(); break; case 3: do_something(); break; } function do_something() { # this is the stuff that you want to do that is common to your # cases 1, 2 and 3 } This accomplishes the same

Re: [PHP] Usiing FOREACH to loop through Array

2002-06-29 Thread Steve Edberg
At 7:35 PM -0700 6/29/02, Brad Melendy wrote: >Steve, >Thanks very much. You're welcome! >This make total sense to me. Now, I was pretty sure that >I was getting an array back from mysql_fetch_array because when I do a >'print $myCourses' without specifyin

<    5   6   7   8   9   10   11   12   13   14   >