[PHP] Re: contents from a database

2002-07-16 Thread Ralph
You need to use the concatenating assignment operator .= after $sub. The way you had it the variable $sub was getting assigned a new value each time through the while loop. The .= oprerator will add to the existing value of $sub each time through the loop. Try this: $query = SELECT * FROM

[PHP] Netbilling Gateway

2003-06-06 Thread Ralph
Anybody know of a Netbilling Gateway that I can plug into my shopping cart? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Capturing HTTP Response

2003-06-06 Thread Ralph
Hi, I'm currently setting up a form for CC processing. At the moment I am able to send the required flags to authorize the CC transaction, but then I do not know how I go about parsing the returned headers. After processing the transaction the merchant returns either HTTP 200 (ok) along with

[PHP] Netbilling Connect Script or Class...

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com, does anybody know of a PHP based Netbilling connect script or class? Your help is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP redirect

2003-05-29 Thread Ralph
Use the header function: http://www.php.net/manual/en/function.header.php -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:46 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php

[PHP] Netbilling PHP Script

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com, does anybody know of a PHP based Netbilling gateway script or class? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Will Pay for Netbilling PHP Script

2003-05-29 Thread Ralph
/direct/ -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:44 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Netbilling PHP Script On Thursday 29 May 2003 17:36, Ralph wrote: I have to setup credit card verification/processing with Netbilling.com

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
Try this: Let say you have these three fields in your form: INPUT TYPE=text VALUE=num[1] INPUT TYPE=text VALUE=num[2] INPUT TYPE=text VALUE=num[3] then use the following to iterate through each field: foreach($_POST['num'] as $key = $value){ preg_match ( '(foo)' , $_POST[num][$key] ); }

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
Not sure if I'm misunderstanding, but I know that foreach() will do this. -Original Message- From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:58 AM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] preg_match array question The problem is, that I have

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
PROTECTED] Sent: Friday, May 30, 2003 1:04 PM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] preg_match array question perhaps I am misunderstanding... I have snipit of my foreach. I have a preg_match that checks for a valid email address. basically it just checks for an @ and a . When I place

[PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
I'm querying prices off a database then storing these in an array, I want to add these up to get the grand total, how would I go about adding up all the prices stored in the array? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
Right... I never thought of this. But can I use this if what I'm trying to get the (price * quantity). -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 12:43 AM To: Ralph Cc: PHP General Mailing List Subject: Re: [PHP] Add Up Prices in Array

RE: [PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
Disregard my last post, I went with what you suggested and I got it to work. Thanks again. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 12:43 AM To: Ralph Cc: PHP General Mailing List Subject: Re: [PHP] Add Up Prices in Array

[PHP] Shipping Rates

2003-06-01 Thread Ralph
Maybe it's just that it's late, but can't seem to figure this out. I want to show a shipping price depending on the amount of purchase. I thought about using a lot of if() statements, but I know this is not the best way to go about this. Can anybody enlighten me on this one and give me a better

RE: [PHP] Shipping Rates

2003-06-01 Thread Ralph
Rates this, maybe? http://www.php.net/switch From: Ralph [EMAIL PROTECTED] To: PHP General Mailing List [EMAIL PROTECTED] Subject: [PHP] Shipping Rates Date: Sun, 01 Jun 2003 01:48:30 -0700 Maybe it's just that it's late, but can't seem to figure this out. I want to show a shipping price

[PHP] TABLE COLUMNS

2003-06-02 Thread Ralph
I'm querying a database then printing the results in a TABLE. What I want to do is format the results in a TABLE with 4 columns per row. Any suggestions? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session to Secure Form

2003-06-03 Thread Ralph
I'm setting up a payment form on same server but different domain name, and I need to pass the customers id that I have stored in a session so that I can use it on the secure form to query the database for the customers order. What would be the best way for me to go about this? -- PHP

RE: [PHP] Planning a new job

2003-06-03 Thread Ralph
- Workflow the Works By Kelly Goto Emily Cotler http://www.amazon.com/exec/obidos/tg/detail/-/0735710627/qid=1054614092/ sr=8-1/ref=sr_8_1/102-6577267-6528106?v=glances=booksn=507846 Hope this helps. Good luck. Ralph -Original Message- From: Tim Burgan [mailto:[EMAIL PROTECTED] Sent

[PHP] Secure Page Problem

2003-06-03 Thread Ralph
I currently have a secure form from which I am querying a mysql database but I am unable to print out the results to the page. Is there something I have overlooked in working with secure pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Round Off $ prices

2003-06-04 Thread Ralph
How do I round off prices to the like rounding off $24.80 to $25? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Count on Multiple Tables

2003-06-05 Thread Ralph
I've been stuck on this one all morning. Can't seem to figure it out. I have 2 tables, one with affiliate sales and another with affiliate clickthroughs. I have to query both tables, so that I can get clickthrough dates, hits, and then query affiliate sales table to get number of orders for each

[PHP] fsockopen and SSL

2003-06-07 Thread Ralph
i'm trying to make a POST request to my merchant's https server using the following: foreach($HTTP_POST_VARS as $key = $value){ $value = urlencode(stripslashes($value)); $req .= $key=$value; } $header

RE: [PHP] PHP using Linter...

2003-06-09 Thread Ralph
What is Linter? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP using Linter... Hi Everyone! Have anyone here ever use the Linter software? What is your opinion on this? Have anyone

RE: [PHP] PHP using Linter...

2003-06-10 Thread Ralph
at www.relexus.com but Linter is kind of confusing to use at first because it's a very different software. Scott Ralph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is Linter? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:43 PM

RE: [PHP] adding confirmation to an existing upload form

2003-06-11 Thread Ralph
If you want them to preview then commit, simply give the SEND PHOTO TO SERVER button a name like: input type=button NAME=send_photo value=SEND PHOTO TO SERVER then in your code you can simply check for $_POST['send_photo'] before calling the function that saves the image like:

RE: [PHP] How do I capture a POST responce

2003-06-13 Thread Ralph
You have to use socket connection. Take a look at: http://us4.php.net/fsockopen In the User Contributed Notes look for a post by info at agriya dot com 02-Feb-2003 12:38 there you will see a script that shows you how to do it. Hope this helps. -Original Message- From: Joaco

RE: [PHP] $_SESSION as $key=$value

2003-06-13 Thread Ralph
Daniel, Rather than sending them to a new page to validate the form and then sending them back if a field is invalid, do the error checking from the same script. Here's an example, a bit simple but just to give you an idea. For a better explanation, you should read this article which elaborates

RE: [PHP] General question...

2003-06-13 Thread Ralph
Read the following: http://us2.php.net/fsockopen http://www.zend.com/manual/ref.stream.php -Original Message- From: Jason Paschal [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] General question... ppl,

RE: [PHP] $_SESSION as $key=$value

2003-06-13 Thread Ralph
4:28 PM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] $_SESSION as $key=$value I read the document 4 times. I understand how it works and now Im excited about applying this to my application, however Im running into a problem. Im recieving an error on my page. I have this in my form. input

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
?php if(strstr = ($HTTP_USER_AGENT, Mozilla/4)){ header(Location: http://www.mydomain.com/moz4_page.php;) } elseif(strstr = ($HTTP_USER_AGENT, MSIE)){ header(Location: http://www.mydomain.com/ie_page.php;) } etc... ? HTML HEAD TITLEMy Page/TITLE /HEAD etc.. -Original

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

2003-06-17 Thread Ralph
Alternative, using concatenation: $sql = SELECT * FROM db WHERE apple = '. $_POST['foo'] . '; -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 7:57 AM To: [EMAIL PROTECTED]; Chris Hayes Subject: Re: [PHP] Re: Difference between

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
] Sent: Tuesday, June 17, 2003 1:12 PM To: Jay Blanchard; Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] Redirecting to index.php from index.html With that I get: Parse error: parse error, unexpected T_STRING in /path/to/file_named/main.php on line 4 Michael On Tuesday 17 June 2003 02:50 pm, Jay

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
Well it does appear to be working because according to this error, the problem is with main.php on line 4. -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:27 PM To: Ralph; 'Jay Blanchard'; [EMAIL PROTECTED] Subject: Re: [PHP] Redirecting

RE: [PHP] Getting at $_POST values using a loop

2003-06-22 Thread Ralph
echo hr$fieldname:input name='FieldName[]' maxlength='25'; for ($i=0, $n=sizeof($_POST['FieldName']); $i$n; $i++){ // do whatever you need to do with each field echo $_POST['FieldName'][$i]; } -Original Message- From: Dave Alger [mailto:[EMAIL PROTECTED] Sent: Sunday, June 22,

RE: [PHP] OOT Payflow Urgent

2003-06-22 Thread Ralph
I've never done this using CURL however I have done this using socket connections. If you haven't already you may want to look into this, I'm sure payflow will allow you to post data using socket connection. Take a look at: http://us4.php.net/fsockopen In the User Contributed Notes look for a

[PHP] Sorting Country List

2003-06-24 Thread Ralph
I am getting a list of all countries from mysql database, and then I am sorting by country name. However since most orders will be from US I want the US to appear first over the rest of the countries. How can I go about doing this? Currently, this is my query: SELECT countries_id, countries_name

RE: [PHP] Sorting Country List

2003-06-25 Thread Ralph
-Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 12:13 AM To: Ralph; PHP General Mailing List Subject: RE: [PHP] Sorting Country List Why don't you just add a hard coded line like this: OPTION VALUE=USAUSA/OPTION as the 1st option in your select box

[PHP] HTML_QuickForm

2003-06-25 Thread Ralph
Anybody used PEAR: HTML_QuickForm or Manuel Lemos Forms Generation and Validation class? I'm looking to use one of these for my forms, so I was wondering if anybody had any experience in working with either. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Minimizing Database Hits

2003-07-01 Thread Ralph
I wrote class that contains a function that retrieves users shopping cart items from database and then returns an array with qty, item number , item name, etc. So now whenever I want to retrieve the users cart I use the following: $cart_contents = $cart-get_cart_contents(); I then iterate

RE: [PHP] Eregi filtering..

2003-07-07 Thread Ralph
Here is one of doing this: if(strrpos($v_tel_filter,' ') 0 || strspn($v_tel_filter, 0123456789-) != strlen($v_tel_filter)){ echo '$v_tel_filter' Telephone Number Contains words; } else { } -Original Message- From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] php arrays into flash

2003-07-07 Thread Ralph
Here is a site you might want to look at: http://polar-lights.com/en/ -Original Message- From: Jim McNeely [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 4:29 PM To: [EMAIL PROTECTED] Subject: [PHP] php arrays into flash I know a lot more about php than about flash (which is

RE: [PHP] Table trouble

2003-07-07 Thread Ralph
Here's a tutorial on doing this: http://codewalkers.com/tutorials.php?show=15 -Original Message- From: phpu [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 3:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Table trouble Hello I need help. I'm querying a database then printing the

RE: [PHP] Table trouble

2003-07-07 Thread Ralph
fetchinto? On Mon, 2003-07-07 at 14:42, phpu wrote: 10x but i am new to php and i do not know how to dump all of the results into an array can you help me with this one please? $sql=select * from cate order by name asc; $resurs=mysql_query($sql); while ($row=mysql_fetch_array($resurs))

RE: [PHP] New to PHP

2003-07-07 Thread Ralph
Here are some sites for you to get started: http://www.zend.com/developers.php http://www.phpcomplete.com/tutorials.php http://www.evilwalrus.com/articles.php And for books, here are some excellent books I've come across: Programming PHP By Rasmus Lerdorf Web Application Development with PHP

RE: [PHP] Image verification problem..

2003-07-07 Thread Ralph
You should register session for 'new_string' after assigning a value to it. So try placing session_start(); session_register('new_string'); after the rest of your first.php code. That should work. -Original Message- From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] [posibleOT] Forcing entering te site thru index.php

2004-01-28 Thread Ralph
The only other way I can think of doing this without sessions is to use $_SERVER['HTTP_REFERER'] to check if page request is coming from an existing page within your site or not. But I don't think this method will work 100% of times. Another approach would probably be to use single entry point

RE: [PHP] PHP EDITORS

2004-01-28 Thread Ralph
I agree that Zend Studio is phenomenal. Another editor that I like is NuSphere's PhpEd. You might want to look at this one too: http://www.nusphere.com/ -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 2:04 PM To: [EMAIL PROTECTED]

[PHP] PHP Social Software

2004-01-30 Thread Ralph
Anybody know of any PHP based Social Software projects? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How many days between two dates

2004-02-16 Thread Ralph
Use KronoClass: http://lafucina.holosoft.it/kronoclass/index.html example: // Now calc how days are between date_from and date_to echo 'bHow many days are between 03/20/2003 and 04/21/2003 ?: /bi'; echo $k-days_diff('03/20/2003','04/21/2003'); echo '/ibrbr'; -Original Message- From:

RE: [PHP] small business inventory management package

2004-03-10 Thread Ralph
OSSUITE: http://sourceforge.net/projects/ossuite/ or just browse through sourceforge projects: http://sourceforge.net/softwaremap/trove_list.php?form_cat=129discrim=183 -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 1:38 AM To:

RE: [PHP] session.bug_compat_42

2004-03-24 Thread Ralph
It's great to see you on the list Rasmus! Anxiously awaiting for official release of PHP5...I haven't been this excited since the release of PHP4!!! :-) Many thanks go out to you and the others who make PHP possible. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]

RE: [PHP] Good Reads

2001-01-27 Thread Ralph Roberts
At the risk of appearing immodest (a risk I am willing to acceptg), I think my current book project, PHP4 FOR DUMMIES (out this summer) will prove helpful in learning PHP. --Ralph Roberts -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27

[PHP] PHPub: A Zend IDE/DEBUGGER Alternative

2001-01-31 Thread Ralph Guzman
I am glad to see others working on alternatives to the highly cost Zend products. I came across PHPub, a PHP IDE/Debugger which I've never seen mentioned on this list. Even though it is still not ready for final release, it's seems pretty stable. Great Features. One of it's cool features is a

[PHP] cursor focus

2002-03-02 Thread Ralph Jarvis
on the text box to begin typing How do I get the cursor to focus on this text box? Many thanks in advance Ralph -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] Re: cursor focus

2002-03-03 Thread Ralph Jarvis
. It is a JavaScript issue. You need to add this code to the bottom of your page: script document.forms[0].text_box_name.focus(); /script -- Gaylen PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/ Ralph Jarvis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

[PHP] Re: Random number Question

2002-03-13 Thread Ralph Friedman
= = $number) { incorrect syntax here. that should be: if ($guess == $number) { better would be: if (trim($guess) == $number { this will assure that there's no whitespace in $guess -- Rgds Ralph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] multiple variables

2002-03-15 Thread Ralph Jarvis
Hi; An obvious question for some, but I am stumped: I want to use multiple optins in an if statement... if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) What would be the proper syntax for this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: which php book 2 buy ?

2002-03-26 Thread Ralph Friedman
In article [EMAIL PROTECTED], Septic Flesh wrote: I wanna buy a book from amazon . . .but don't know which one.. Do you know where I will find examples of shopping carts ? (which book ?) Creating Dynamic Web Pages Using PHP and MySQL by David Tansley. -- Rgds Ralph -- PHP General

RE: [PHP] $PHP_SELF

2002-04-01 Thread Ralph Guzman
Try ?php if this works, then most likely you have php short tags disabled. To enable ? Short tags check your php.ini file. -Original Message- From: Kirk Babb [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 6:24 PM To: [EMAIL PROTECTED] Subject: [PHP] $PHP_SELF SysInfo:

RE: [PHP] named anchors and query strings

2001-10-03 Thread Ralph Guzman
Never had to do this, however I would think the correct way to be: a href=page.php#bottom?location=01 try it. -Original Message- From: Scott Mebberson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 4:53 PM To: [EMAIL PROTECTED] Subject: [PHP] named anchors and query strings

RE: [PHP] Creating mailaccounts

2001-10-03 Thread Ralph Guzman
This is somewhat dependant on the email server (MTA) you are running and how it is set to authenticate users. If using linux/unix, sometimes all that is required is for you to create an account is to add the entry in the /etc/passwd, and create a home directory. This you can easily do with a PHP

RE: [PHP] Simple Question, I think

2001-10-03 Thread Ralph Guzman
: http://www.domainname.com/dir_03;); break; } Ralph -Original Message- From: Ratfish [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 7:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple Question, I think All I want to do is what an ASP page I have is doing. I just want

RE: [PHP] php not reading php.ini

2001-10-03 Thread Ralph Guzman
Unless you modified the default path to the configuration file when compiling, your Configuration Path setting should be set to something like this: /usr/local/lib/php.ini in this case, you say it is set to /www/conf. I'm assuming by this that it looking for a configuration file called 'conf'

RE: [PHP] Creating POP3 account

2001-10-03 Thread Ralph Guzman
This is related to the email I responded to a few minutes ago. See below: -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 12:25 AM To: Bjornie; [EMAIL PROTECTED] Subject: RE: [PHP] Creating mailaccounts This is somewhat dependant

RE: [PHP] Simple Question, I think

2001-10-03 Thread Ralph Guzman
: http://www.domainname.com/dir_03;); break; } Ralph -Original Message- From: Ratfish [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 7:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Simple Question, I think All I want to do is what an ASP page I have is doing. I just want

RE: [PHP] php not reading php.ini

2001-10-03 Thread Ralph Guzman
- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300 From: Ralph Guzman [EMAIL PROTECTED] To: Caleb Carvalho [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] php not reading php.ini Date: Wed, 03 Oct 2001 01:05:07

[PHP] Proposal

2001-10-04 Thread Ralph Guzman
I currently thinking on doing some freelance PHP programming and web design for somebody. I have a pretty good idea on how much I will be chargin, however I am looking at putting this in writing. I was wondering if anybody had any example proposals/bids or web liks to where I can find such

[PHP] PEAR DB Results

2001-10-31 Thread Ralph Guzman
I am trying to do a joined query using PEAR DB? My code looks something like this: $sql = SELECT wwwpages.pid,wwwpages.name,media.pid,media.name FROM wwwpages, media WHERE wwwpages.pid = '$pid'; if(DB::isError($result = $db-query($sql))){ echo ERROR: . DB::errorMessage($result); } else {

RE: [PHP] PHP newbie alert

2001-12-04 Thread Ralph Guzman
I'd suggest Homesite: http://www.macromedia.com/software/homesite/ -Original Message- From: shaun murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 2:25 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP newbie alert Hello! Being one not to refuse a challenge, I have been

RE: [PHP] PHP_SELF

2001-07-31 Thread Ralph Guzman
? If($HTTP_POST_VARS){ // check required fields if(!age || !$name){ $formerror = You did not fill in all required fields; } ... // if form passed all error checks continue processing if(!$formerror){ // continue processessing... } } ? ?

RE: [PHP] Example high-profile PHP sites

2001-07-31 Thread Ralph Guzman
here are a few: http://www.marketplayer.com: they provide the real-time stock market simulations for sites like etrade.com and smartmoney.com that have these games. http://www.chek.com/ -Original Message- From: Maurice Rickard [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001

[PHP] Content Management Systems

2001-07-31 Thread Ralph Guzman
Hello, I am looking for new alternatives in web development and maintenance. Anybody have any suggestions or comments on any open source/commercial PHP+mySQL based CMS programs? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] MAgic Quotes

2001-07-31 Thread Ralph Guzman
How do you turn on/off magic quotes through .htaccess? Is it this posible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Example high-profile PHP sites

2001-07-31 Thread Ralph Guzman
Incase you still need it. Here is a big one I forgot to mention: http://www.dialpad.com/ Not sure how much of their site is PHP, but their user registration and member backend is PHP driven. -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 1

RE: [PHP] Being a SERVER (you cant kill me, im.... DAMN!!)

2001-08-02 Thread Ralph Guzman
Download a NuSphere release. Depending on which you release you choose, for the most part these include mySQL, PHP, Apache, and I think Perl. I've found the setup to be seamless and very simple even for beginners. http://www.nusphere.com -Original Message- From: Kyle Smith

RE: [PHP] PHP_SELF

2001-08-02 Thread Ralph Guzman
Subject: Re: [PHP] PHP_SELF Ok, I would like to thank Ralph Guzman Richard Lynch for your help. I combined your ideas into my own working example. Just posting here for archiving/discussion purposes... // Input some data // echo form action=\$PHP_SELF\ method=\POST\ enctype=\multipart/form-data

RE: [PHP] Search for PHP Motivation Studies

2001-08-18 Thread Ralph Guzman
IN the book Web Application Development with PHP 4.0 There is an entire chapter towards the end of the book that describes such case studies. Hope this helps. -Original Message- From: Björn Schotte [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:36 PM To: [EMAIL PROTECTED]

[PHP] Re: force download in IE

2001-08-24 Thread Ralph Deffke
I went through the same problem. the simplest solution with browsers like IE 5.5 is to click with the right buttom on the link an choose save this location. You could mention this on the your page in a if you have trouble dwonloading sentence. a very stable solution would be to make a

[PHP] Re: force download in IE

2001-08-24 Thread Ralph Deffke
I went through the same problem. the simplest solution with browsers like IE 5.5 is to click with the right buttom on the link an choose save this location. You could mention this on the your page in a if you have trouble dwonloading sentence. a very stable solution would be to make a

[PHP] Re: PHP based authentification -----------

2001-08-24 Thread Ralph Deffke
send an 401 unauthorized header. see php manuall under function header() as an example Alex Sofronie schrieb: Hi all! How can I logout from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW and appropriate headers sent at the beginning)? It seems like unset($PHP_AUTH_USER) does not wotk

[PHP] how can i cache php scripts enterpretet

2001-08-24 Thread Ralph Deffke
I have developed a web portal for big compamies with a lot of traffic on their pages. main functions, like member authentication etc. are called on every page request. it would make sence to have them ready enterpretet to skip enterpretation on each request. i know that there are tools arround

[PHP] Re: IP security

2001-08-26 Thread Ralph Deffke
use the $REMOTE_ADDR variable for the remote address see php manual chapter 7 Variables - Variables from outside PHP Nafiseh Saberi schrieb: hi. how can I control the ip that with ID and password ,all of user cant enter to site and if one person want to enetr should have special IP that I

[PHP] Re: zlib1.1.3 and ob_gzhandler

2001-08-26 Thread Ralph Deffke
Are you shure u sending the right http header? your discription sound like the browser receives the wrong header information, respactively the wrong mime type. if you use the right mouse button and say show image, all browsers don't care about the mime type and try to evaluate the data content

[PHP] Re: relative filename /home/www... in stead of /www/.....

2001-08-26 Thread Ralph Deffke
use $SCRIPT_FILENAME and extract the parts of the path as u need. or better $PATH_TRANSLATED see also php manual chapter 7 predefined variables. Chris Hayes schrieb: dear group, I use the $DOCUMENT_ROOT to make a complete file name.

[PHP] Re: show number of search results

2001-08-26 Thread Ralph Deffke
make a sql just with your where clause like this select count(*) from table where your where clause the relsulting result set will give u the number of records for your where clause [EMAIL PROTECTED] schrieb: Good day, I'm trying to figure out how I can show the following on my search

[PHP] Re: Program to check for cookies

2001-08-26 Thread Ralph Deffke
see php Manual chapter 18 cookies Sunil Jagarlamudi schrieb: Is there a program which will check for cookies before it allows access into the web site ? I want the user to enter the userid/password on a secure web server and pass the cookie information to the regular server. I don't want

[PHP] Re: limit 1

2001-08-26 Thread Ralph Deffke
i would try this: $sql = SELECT DISTINCT users.names FROM users, selection Where users.name = selection.name and selection.setting = 'on' ; because you joining two tables and you get as many results per users.name = selection.name as entries in bouth tables per

[PHP] APC and WIN 32

2001-08-26 Thread Ralph Deffke
does anybody know a resource where i can get apc for windows? or does anybody have experienced how to compile APC under wimdows and include it i.e. in Merlin Desktop? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Re: Wide Image Scroller

2001-08-26 Thread Ralph Deffke
but the frameset could be done with php ! Eric Persson schrieb: Craig Westerman wrote: I have a very wide panoramic image I want to display on a page. I don't want to side scroll the page, only the image. Is there a way to make a image side scrollable using PHP? This can not be done

[PHP] Server Setup

2001-08-29 Thread Ralph Guzman
I am working on setting up a Red Hat Linux Web Server. Is there a benefit to installing PHP/MySQL/Apache by compiling them from source vs. installing these using RedHat's Binary/RPM distributions? What are the pro's and con's of these two methods? Can anybody suggest any pointers considering

RE: [PHP] begginer needs help

2001-08-31 Thread Ralph Guzman
If you choose to install Apache/PHP and perhaps even mySQL and you want to avoid downloading each individually, then configuring them to work together. You can download at straight-forward easy installation distribution that includes all three. Check out Nu-Sphere, and download one of their free

RE: [PHP] Re: [PHP-DEV] Anagram Type Puzzle

2001-09-10 Thread Ralph Guzman
[mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 1:40 AM To: PHP Developer Mailing List; Ralph Guzman Cc: [EMAIL PROTECTED] Subject: [PHP] Re: [PHP-DEV] Anagram Type Puzzle This should really be sent to [EMAIL PROTECTED], this is the list for the developers OF PHP not developing WITH PHP

[PHP] Anagram Solution in PHP

2001-09-10 Thread Ralph Guzman
Im trying to figue out the following anagram using PHP. Here is the problem: Using letters of the alphabet represented by a number, I have to come up with words that add up to exactly 100. Numbers are in reverse where A=26 and Z=1, so for example: A B C...X Y Z 26 25 24..3 2 1 So let's

RE: [PHP] Get Info From Database Without Refreshing the Page! PrettyNeat!

2001-09-13 Thread Ralph Guzman
What you are trying to do here sounds like it is done on the client end. I'd be willing to bet this requires the use of Javascript/Jscript/VBScript and DHTML. -Original Message- From: Coenraad Steenkamp [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 2:29 AM To: [EMAIL

[PHP] test

2001-05-09 Thread Ralph Guzman
... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Test 2

2001-05-09 Thread Ralph Guzman
This is only a test. I apologize. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Variables in variable names

2001-05-09 Thread Ralph Guzman
As an alternative you can use associative arrays $i = 0; $i = 1; $i = 2; $i = 3; $name[$i]; -Original Message- From: seriousj [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 4:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Variables in variable names Hello, I need some help

RE: [PHP] PC MAG article - what a crap!

2001-05-10 Thread Ralph Guzman
Why don't we write to zdnet and tell them what a lousy article this was? -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 8:36 PM To: 'Tyrone Mills'; PHP List Subject: RE: [PHP] PC MAG article - what a crap!

RE: [PHP] Shopping with variables

2001-05-16 Thread Ralph Guzman
Might want to reconsider the way you are doing this, since this may not be the most efficient way. An alternative might be to do this as follows: In your web form set a field for Quantity and another for Item Name, so for example: FORM ACTION=script_name.php METHOD=post ... Quantity: INPUT

RE: [PHP] Is this a joke?!

2001-06-26 Thread Ralph Guzman
I don't think this is a joke, infact it's good that a PERL site would feature PHP in sections of their site. PHP borrows much from PERL, this is why many PERL programmers including myself, began using PHP in the first place. Not to say that one is better than the other, since they all have their

  1   2   3   4   >