[PHP] Virtual Directory Support

2003-02-07 Thread Rw
On my phpinfo() it shows Virtual Directory Support to be DISABLED .. does anyone know 
what the switch setting is called in the php.ini file to ENABLE this setting?

Thanks!



Re: [PHP] URLencode issues - halp!

2003-01-23 Thread rw
Some code please!

RW

Quoting SpyProductions Support Team [EMAIL PROTECTED]:

### 
### I am having some issues, apparently, with URL encode.
### 
### I've got people signing up for a membership on a site, but some of their
### memberships fail because the username, which in encoded, sometimes goes
### through fine and sometimes does not.
### 
### Are there any special reasons this may happen?
### 
### I decided to use this because people are allowed to use *any* key as part
### of
### their name, so a name like rt'$%^*'rt is perfectly allowable.
### 
### The strange thing is, more normal names like 'star99' or just 'logmein'
### are
### failing, but the weirder character typed names are making it through
### fine.
### 
### Any ideas?
### 
### Oh, and BTW, I do use urldecode().  :)
### 
### Thanks,
### 
### -Mike
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Fwd: Re: [PHP] Mass Mailing with PHP MySQL

2003-01-19 Thread rw


- Forwarded message from [EMAIL PROTECTED] -
Date: Sun, 19 Jan 2003 22:07:34 -0700
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Mass Mailing with PHP  MySQL
  To: Justin French [EMAIL PROTECTED]

Is Peter McNulty out there anywhere?

Don't have a lot of experience with mailing scripts, but I use the one found at
codingclick.com

Anyone else?

RW

Quoting Justin French [EMAIL PROTECTED]:

### A while() loop will, at some point, break.  this is because the script
### will
### timeout on the server before you send to any large lists... when I say
### large, this could be 100 address', or could be 10,000 -- it all depends
### on
### your server/ISP and server load at certain times.
###
### A better/simpler solution would be to build a Bcc header field using the
### while loop, then only send ONE email to 1000's of email address' via the
### Bcc
### field, just like you would from Outlook.
###
### BUT, your host may impose restrictions on how many emails you can send in
### one Bcc... my host has a limit of 100.
###
### So, I tend to send a few emails of 50-ish people per email to my list,
### balancing the two above issues.
###
###
### There are also some simple/complex classes on phpclasses.org (esp the one
### by
### manuel lemmos) which can overcome both these problems, with various
### methods.
###
### I haven't used them yet, basically because I don't see the need yet,
### given
### my small lists.
###
###
### Justin
###
###
###
###
###
###
###
###
###
### on 20/01/03 3:21 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote:
###
###  Hi,
### 
###  I'm working on a mailing solution for a client.  His site collects
### email
###  address from a 'Send this site to a friend' page (user enters their
### email
###  address and up to 10 other addresses - a message is then sent to the 10
###  addresses from the users own email address).  The addresses are then
### stored
###  in a MySQL database - a column for the users email address, and then a
###  column each for the additional 10 addresses.
### 
###  Now the client would like to have the ability to send an email to all
###  addresses collected at once - to inform the addresses of a sale, etc.
### I'm
###  guessing for this to be done, I'd have to select all the DISTINCT email
###  addresses from the 11 columns (users email, and the 10 addresses), then
### use
###  a loop to send the mail out.
### 
###  I had planned on using PHP's mail() function - does anyone know of any
###  limitations imposed by this method?  Normally, I'd contact the ISP and
### ask
###  them directly, however it's been several weeks since they've answered
### the
###  phones.
### 
###  Does anyone have any other/better options that I should pursue?  This
### will
###  be my first mass mailing typed job so I'm not really sure where to begin
### or
###  if I'm on the right path at all.
### 
###  Thanks
###  -Tim
### 
### 
###
###
### --
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
###
###



- End forwarded message -




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] File perms when dir already exists

2003-01-18 Thread rw

Hello all!

I have a number of scripts that upload 5 files at a time each.
The first one creates the dir using umask(000)and mkdir($dir,0777)
which gives the first five files perms 777, which is what I want.

I have the subsequent scripts check if the dir exists and if not does the same
thing with umask and mkdir.  The problem is the uploaded files in scripts 2
through 5 do not inherit the perms 777.

The script:

if (!is_dir(/mnt/ls6/17/169//htdocs/2003/uploads/$mls)){
umask(000);
mkdir($dir,0777)or die(couldn't create directory);
}
$path1=$dir . /1.jpg; 
move_uploaded_file( $upload1, $path1)or die(couldn't upload photo);   
$sql = ( UPDATE gallery SET img1 = '1' WHERE mls = '$mls';); 

Is there a parameter I can include in move_uploaded_file() to set the perms on
the remaining files?

Any help is greatly appreciated.

RW

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Images : Store in dB or disk?

2003-01-15 Thread rw
Have a look at:

http://vrscenes.com/2003/gallery.php?mls=230944

and tell me what you think - all images are stored in the filesystem

Don't worry about what it looks like - I extracted this from the frameset it goes in

Cheers!

RW

Quoting Bobby Patel [EMAIL PROTECTED]:

### Hello,
### I have the Images table setup with columns (width, height, size, type,
### etc...) the question is should I have the image data stored in this table
### or
### disk?
### 
### I know, alot of people have said it is faster in disk, which is 1 page
### I/O.
### But I need these images for displaying product pages, and I believe that
### it
### would be faster to just pluck the properties from the dB (including the
### image file) .
### 
### Usually I will need to pull 6 or 10 images per page, this is my rational
### for
### this situation:
### 
### If all stored on db:
### One query  - will take about 4-5 page I/O (assumiing index on filename)
### 
### If just properties stored on dB and image on disk:
### One query to grab the rows of properties - 2-3 page I/O
### to grab 6 or 10 images - 6 or 10 page I/O
### Total - 8 - 13 Page I/O's
### 
### If all images stored on disk, no dB whatso ever:
### to grab 6 or 10 images - 6 or 10 page I/O
### cpu time to run getimagesize()  for each image - CPU time unknown?
### 
### I assume that page I/O is that same as disk access.
### 
### I AGREE that storing images strored on disk is a valid approach PROVIDED
### that you only need 1 image per page, but if you need to grab a bunch at a
### time, I do beleieve that storing the actual file on the dB is faster.
### 
### I would like to hear from the list, of people that have worked with
### images
### and PHP. I just started with images, so I just want to take the right
### path.
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Php's future with Asp .NET?

2003-01-15 Thread rw
What is asp.net?

It's something to catch a snake with!

Quoting Dhaval Desai [EMAIL PROTECTED]:

### Hello ppl,
### 
### I was just wondering what is php's future with something like Asp .Net 
### coming up...I have read many articles by Php guys who think Asp.Net is the
### 
### future. If that's the true case...is it really worth sticking to Php at
### all?
### 
### Thanx!
### -Dhaval
### 
### 
### 
### 
### 
### _
### MSN 8 with e-mail virus protection service: 2 months FREE* 
### http://join.msn.com/?page=features/virus
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Advanced Search

2003-01-14 Thread rw

Hello!

Any quick solutions to this:

if (!$city  !$sub_name  !$address  !$pool  !$waterfront  !$waterview
 !$golf  !$type  !$beds)
{$result = mysql_query(SELECT p.* FROM properties p ORDER by price asc;);}
elseif (!$city  !$sub_name  !$address  !$pool  !$waterfront 
!$waterview  !$golf  !$type)
{$result = mysql_query(SELECT p.* FROM properties p WHERE beds = $beds ORDER
by price asc;);}

I don't want to have to write 50 different ifelse statements unless I have to.

Please show me the way to make the search more efficient.

TIA

RW


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Can I Copy a directory using PHP?

2003-01-13 Thread rw
Careful!

use cp instead of mv

Quoting Timothy Hitchens (HiTCHO) [EMAIL PROTECTED]:

### If you are using Unix simply call out the shell using back ticks `mv xxx
### xxx` or check out.
### 
### http://www.php.net/manual/en/function.exec.php
### 
### 
### 
### Timothy Hitchens (HiTCHO)
### Open Platform Consulting
### e-mail: [EMAIL PROTECTED]
### 
###  -Original Message-
###  From: Alex Ciurea [mailto:[EMAIL PROTECTED]] 
###  Sent: Monday, 13 January 2003 7:53 PM
###  To: [EMAIL PROTECTED]
###  Subject: [PHP] Can I Copy a directory using PHP?
###  
###  
###  Hello,
###  
###  I want to write a script that makes a backup of a database directory.
###  
###  Actually, to copy all database files to another directory.
###  I've figured that I have to use the copy function of the 
###  PHP, but the function doesn't works only with files?
###  
###  
###  
###  Is it possible to copy the entire directory to another 
###  location, using PHP? I presume that is more 
###  resource-friendly than to copy the directory file-by-file.
###  
###  
###  Thanks and best regards,
###  Alexoiul
###  
###  
###  -- 
###  PHP General Mailing List (http://www.php.net/)
###  To unsubscribe, visit: http://www.php.net/unsub.php
###  
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] i want to send 2 variables????

2003-01-09 Thread rw
Quoting Ysrael Guzmán [EMAIL PROTECTED]:

###  
### i like send two variables using:
###  
### href=mi page.php??
###  
### please one idea
### 
### Ysrael Guzmán Meza
### 
###  
### 
### --
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 

Here's one idea!
a href=mi_page.php?arg1=?print $arg1var;?arg2=? print $arg2var;?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mkdir(blah,0777)

2003-01-07 Thread rw

I have an interesting situation!

I get a dir to be made - no problem, but I want it to have the permissions 0777.
When I look in the directory that was just created (blah  drwxr-x---) are the
permissions.

This is not acceptable!

Lucy, you got some splainin to do!

Thanks for your help

RW


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mkdir(blah,0777)

2003-01-07 Thread rw
Thank you, Jason!

Quoting Jason Wong [EMAIL PROTECTED]:

### On Wednesday 08 January 2003 12:05, [EMAIL PROTECTED] wrote:
###  I have an interesting situation!
### 
###  I get a dir to be made - no problem, but I want it to have the
### permissions
###  0777. When I look in the directory that was just created (blah 
### drwxr-x---)
###  are the permissions.
### 
### Look at umask().
### 
### -- 
### Jason Wong - Gremlins Associates - www.gremlins.biz
### Open Source Software Systems Integrators
### * Web Design  Hosting * Internet  Intranet Applications Development *
### 
### /*
### An age is called Dark not because the light fails to shine, but because
### people refuse to see it.
### -- James Michener, Space
### */
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] unlink ($files);

2003-01-07 Thread rw

Ok, Jason, here's another one!

I think I've read how to delete a file.
I need to delete 25 files, then do a rmdir(blah);

Line 16:  $directory = path/*.*;
Warning: Unlink failed (No such file or directory) in
/mnt/ls6/17/169//htdocs/2003/_admin/del_listing_action.php on line 16

Warning: RmDir failed (File exists) in
/mnt/ls6/17/169//htdocs/2003/_admin/del_listing_action.php on line 17

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread rw
Quoting Cesar Aracena [EMAIL PROTECTED]:

### Try by adding a backslash to the : there (...\: B...)
### 
### Cesar L. Aracena
### [EMAIL PROTECTED]
### [EMAIL PROTECTED]
### (0299) 156-356688
### Neuquén (8300) Capital
### Argentina
### 
### 
### -Mensaje original-
### De: Adam French [mailto:[EMAIL PROTECTED]] 
### Enviado el: viernes, 03 de enero de 2003 3:18
### Para: [EMAIL PROTECTED]
### Asunto: [PHP] DUMB QUESTION I'M SURE
### 
### I'm just starting out, this is my script...
### 
### ?
### $name = $_POST['username'];
### $name = $name;
### $db = mysql_connect(localhost);
### mysql_select_db(vinyldealers,$db);
### $query = SELECT shops.name FROM shops WHERE name = .$name.;

you might also want to format the above like this:

$query = SELECT shops.name FROM shops WHERE name = $name;

you're gonna get an error in your sql syntax otherwise

### $result = mysql_query($query);
### while ($record = mysql_fetch_assoc($result)) {
###  while (list($feildname, $feildvalue) = each ($record)) {
###   echo $feildname. : B .$feildvalue. /BBR;
###   }
###  echoBR;
###  }
### ?
### 
### This is the error I get...
### 
### Parse error: parse error, unexpected ':' in
### C:\Xitami\webpages\php\result1.php on line 12
### 
### I dunno what I'm doing wrong. Help please???
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 
### --
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] problems with uploading files

2002-12-22 Thread rw
You need to set your php memory limit to twice the amount of any given file you
upload.  If your memory limit (default 8M) is not twice the size of the file(s)
being uploaded it will not work.

look in php,ini

HTH

Quoting Oliver Witt [EMAIL PROTECTED]:

### Hi,
### I have a problem with a php script that enables people to upload files
### on my server. I don't know if this is a general problem or if you need
### to see the script. It works fine with small files, but as soon as I try
### to upload files with a size of a couple of MB, if
### (is_uploaded_file($file)) returns false. I wonder why that is!
### Kind regards,
### Oliver
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] problems with uploading files

2002-12-22 Thread rw
You need to set your php memory limit to twice the amount of any given file you
upload.  If your memory limit (default 8M) is not twice the size of the file(s)
being uploaded it will not work.

look in php.ini

HTH

Quoting Oliver Witt [EMAIL PROTECTED]:

### Hi,
### I have a problem with a php script that enables people to upload files
### on my server. I don't know if this is a general problem or if you need
### to see the script. It works fine with small files, but as soon as I try
### to upload files with a size of a couple of MB, if
### (is_uploaded_file($file)) returns false. I wonder why that is!
### Kind regards,
### Oliver
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP catalog software

2002-12-17 Thread rw
Have you considered OsCommerce?

http://oscommerce.com

Quoting Christian Calloway [EMAIL PROTECTED]:

### Hey everyone,
### 
### Im looking for some type of ecatalog/inventory software written PHP thats
### fairly good and that I can extend. Any suggestions? Or should I just I
### write
### my own from the ground up. The site I am working on sells fairly
### specialized
### and unique items, antiques and etc.  Thanks
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] URL field receiving Array for others

2002-12-16 Thread rw

Hello All!

I have a script which inserts a users info into mysql via PHP.

Here is the code which does so:

$sql = (INSERT INTO `business` (`id`, `bt_id`, `bus_name`, `bcity`, `phone`,
`cell`, `email`, `url`, `details`, `duration`, `s_id`, `license`, `datime`,
`comments`,`ip`,`user_id`,`user_pass`)
VALUES
('', '$bus_type_id', '$bus_name', '$city_id', '$phone', '$cell',
'$email', '$url', '$details', '$duration', '$state_id', '$license',
'$date','$comments', '$REMOTE_ADDR', '$user_id', password('$userpass2')));

and it sends a mail to me, however crude:


100% ASAP Plumbing and Rooter Specialist, City ID: 2647
 1-866-FIX- GUARD,
  l

 Array  (this is supposed to be a url)

PlumberASAP.com Specializing in Drains, Faucets, Filters, Repairs, Sprinkers,
Installations, Water Heaters, Disposals, Copper Plumbing, Leak Detection. Fast,
Clean and Courteous Service Danny McGowan Owner/Operator
,
12 months,


I can't duplicate the problem.

Any idea what is happening here?

Thanks 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URL field receiving Array for others

2002-12-16 Thread rw

But what could the user be typing into the field to return an array?

I'm completely at a loss.

Quoting Joseph W. Goff [EMAIL PROTECTED]:

### Whatever variable that is suppose to contain the URL is an array.  If you
### try to print a variable that is an array the value you get is 'Array'. 
### You
### will either have to step through it, or implode it, or something of that
### nature to get what the array contains.
### - Original Message -
### From: [EMAIL PROTECTED]
### To: [EMAIL PROTECTED]
### Sent: Monday, December 16, 2002 11:50 AM
### Subject: [PHP] URL field receiving Array for others
### 
### 
### 
###  Hello All!
### 
###  I have a script which inserts a users info into mysql via PHP.
### 
###  Here is the code which does so:
### 
###  $sql = (INSERT INTO `business` (`id`, `bt_id`, `bus_name`, `bcity`,
### `phone`,
###  `cell`, `email`, `url`, `details`, `duration`, `s_id`, `license`,
### `datime`,
###  `comments`,`ip`,`user_id`,`user_pass`)
###  VALUES
###  ('', '$bus_type_id', '$bus_name', '$city_id', '$phone',
### '$cell',
###  '$email', '$url', '$details', '$duration', '$state_id', '$license',
###  '$date','$comments', '$REMOTE_ADDR', '$user_id',
### password('$userpass2')));
### 
###  and it sends a mail to me, however crude:
### 
### 
###  100% ASAP Plumbing and Rooter Specialist, City ID: 2647
###   1-866-FIX- GUARD,
###l
### 
###   Array  (this is supposed to be a url)
### 
###  PlumberASAP.com Specializing in Drains, Faucets, Filters, Repairs,
### Sprinkers,
###  Installations, Water Heaters, Disposals, Copper Plumbing, Leak
### Detection.
### Fast,
###  Clean and Courteous Service Danny McGowan Owner/Operator
###  ,
###  12 months,
### 
### 
###  I can't duplicate the problem.
### 
###  Any idea what is happening here?
### 
###  Thanks
### 
### 
###  --
###  PHP General Mailing List (http://www.php.net/)
###  To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Need to place a comma into a string of 4 or 5 digits

2002-12-12 Thread rw
Hello All!

I am racking my brain and scouring the books and I can't seem to find a solution
to this simple problem.

Any help is appreciated.

Thanks

Ruusvuu 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Need to place a comma into a string of 4 or 5 digits

2002-12-12 Thread rw
Thank you!

 I knew it would be a snap!
The problem no longer exists.

Quoting [EMAIL PROTECTED]:

### 
###  IF you're looking to break digits into thousands by use of a comma
### search
### the manual for number_format.
### 
### Ed
### 
### 
### On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote:
### 
###  Hello All!
###  
###  I am racking my brain and scouring the books and I can't seem to find a
### solution
###  to this simple problem.
###  
###  Any help is appreciated.
###  
###  Thanks
###  
###  Ruusvuu 
###  
###  -- 
###  PHP General Mailing List (http://www.php.net/)
###  To unsubscribe, visit: http://www.php.net/unsub.php
###  
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dynamic results link generated in another frame

2002-11-21 Thread rw

I'm coming up on a challenge.
I need to display results from a search in the main frame - not a problem.
I also need to copy the generated get query to another frame, make it a link
so the visitor can return to the original results with one click after surfing
through myriad pages in the main frame.

Any ideas are greatly appreciated.

Thanks

Ruusvuu


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Help with variables in email

2002-11-18 Thread rw
Seems to me that you are missing the opening and closing PHP tags (??)


Quoting Clint Tredway [EMAIL PROTECTED]:

### I am trying to send an email with form vars inside it but I cannot seem
### to get the vars to be parsed.
### 
### Here is my code:
### /* message */
### $message = '
### html
### head
###  titleProducts Purchased:/title
### /head
### body
### pCustomer Information:/p
### table
###  tr
###   tdName/td
###   td{$name}/td
###  /tr
###  tr
###   tdTitle/td
###   td.$title./td
###  /tr
###  tr
###   tdEmail/td
###   td.$email./td
###  /tr
###  tr
###   tdCompany/td
###   td.$company./td
###  /tr
###  tr
###   tdPhone/td
###   td.$phone./td
###  /tr
###  tr
###   tdFax/td
###   td.$fax./td
###  /tr
###  tr
###   tdAddress/td
###   td.$address./td
###  /tr
###  tr
###   tdCity/td
###   td.$city./td
###  /tr
###  tr
###   tdState/td
###   td.$state./td
###  /tr
###  tr
###   tdPostal Code/td
###   td.$postalcode./td
###  /tr
###  tr
###   tdCountry/td
###   td.$country./td
###  /tr
###  tr
###   td colspan=2nbsp;/td
###  /tr
###  tr
###   td colspan=2Billing Information/td
###  /tr
###  tr
###   tdCard Type/td
###   td.$methodofpay./td
###  /tr
###  tr
###   tdCard Name/td
###   td.$cardname./td
###  /tr
###  tr
###   tdExp Date/td
###   td.$cardexp./td
###  /tr
### /table
### /body
### /html
### ';
### 
### This outputs this:
### Customer Information:
### 
### Name {$name} 
### Title .$title. 
### Email .$email. 
### Company .$company. 
### Phone .$phone. 
### Fax .$fax. 
### Address .$address. 
### City .$city. 
### State .$state. 
### Postal Code .$postalcode. 
### Country .$country. 
###   
### Billing Information 
### Card Type .$methodofpay. 
### Card Name .$cardname. 
### Exp Date .$cardexp. 
### 
### Please help me figure this out. I know its simple, but I cannot see it
### ;)
### 
### Thanks,
### Clint
### 
### 
### -- 
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] testing

2002-11-17 Thread rw


not sure how to post

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] sending html email from a web-based form

2002-11-17 Thread rw
Here is the code that is supposed to do what I want:

$headers = From: \$name $last\ $email\n . Reply-To: $email\n\n;
$headers .= Content-Type: text/html; charset=iso-8859-1; 
mail($to, $subject, $msg, $headers) or die (Mail not sent.!);

Instead, I get all of the raw code in the email.

Any suggestions?

Thanks

RW


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] sending html email from a web-based form

2002-11-17 Thread rw
Well now, that was easy!

Thank you!

Quoting John W. Holmes [EMAIL PROTECTED]:

###  Here is the code that is supposed to do what I want:
###  
###  $headers = From: \$name $last\ $email\n . Reply-To:
### $email\n\n;
### 
### Try taking out the extra newline (\n) you have in the above line.
### Actually, the headers are supposed to be separated by \r\n, instead of
### just \n, also.
### 
### ---John Holmes...
### 
### 
### 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Newbie Logical opertaor question

2002-07-11 Thread Rw

I have been trying this to no avail.

Tryng to say the equivalent of:

IF  (var1 = 1 AND var2 = a or b or c)

i.e. yield true if 1 and a
OR
1 and b
OR 1 and c

:-)

Thanks!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Newbie continued..wrong datatype

2002-07-11 Thread Rw

This is a continue from this morning (thanks so much for the responses)..
yielding a data type mismatch:

  $CheckArr = array(Periodic, Sale, Return);
  IF (SUBSTR($approvalcode,0,1) == Y  in_array($CheckArr, $type))
   {
   PRINT BR$approvalcode;
   PRINT  ;
   PRINT $type;
   }

This line:   IF (SUBSTR($approvalcode,0,1) == Y  in_array($CheckArr,
$type))

Causes this error:
Warning: Wrong datatype for second argument in call to in_array in
/home/www/globalspacesolutions/php3/billingtrx.php on line 47


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie continued..wrong datatype

2002-07-11 Thread Rw

That did it!

Thanks!

- Original Message -
From: Martin Clifford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 1:32 PM
Subject: Re: [PHP] Newbie continued..wrong datatype


As far as I'm aware, the first argument to the in_array() function is the
needle (what you're searching for) and the second is the array to be
searched through (the haystack).

So if $type represents what you're searching for, then it would be written
as:

in_array($type, $CheckArr);

If you supply the third argument as TRUE, then the search becomes case
sensitive, I believe.

HTH!

 Rw [EMAIL PROTECTED] 07/11/02 02:25PM 
This is a continue from this morning (thanks so much for the responses)..
yielding a data type mismatch:

  $CheckArr = array(Periodic, Sale, Return);
  IF (SUBSTR($approvalcode,0,1) == Y  in_array($CheckArr, $type))
   {
   PRINT BR$approvalcode;
   PRINT  ;
   PRINT $type;
   }

This line:   IF (SUBSTR($approvalcode,0,1) == Y  in_array($CheckArr,
$type))

Causes this error:
Warning: Wrong datatype for second argument in call to in_array in
/home/www/globalspacesolutions/php3/billingtrx.php on line 47


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Date formatting

2002-07-10 Thread Rw

Had trouble getting this posed at the newsgroup - will try on the maillist
here:

I have a date field passed in a form like this:

01-02-2003

Is there a handy function to convert that to other ways of expressing the
date such as:

01/02/03

OR

2003-01-02

I know the syntax of the date formatting expressions ... just not for the
converting.

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php