Re: [PHP] Book

2001-09-13 Thread Data Driven Design

If you own it you should read it.

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Kurth Bemis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 10:40 AM
Subject: [PHP] Book


 I just got the book entitled PHP and MySQL web development by Luke
 Wellington and Luara Thomson.

 I wondering how others liked the book...I haven't gotten a chance to look
 at it yet..and I'm wondering if i should :-)

 ~kurth


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

2001-09-11 Thread Data Driven Design

The lists from the html writers guild are good.

www.hwg.org


Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Seb Frost [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 4:49 PM
Subject: [PHP] Other lists


 I've found this list so helpful - can anyone recommend a similar thing for
 javascript/html/etc?

 cheers,

 - seb
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


 --
 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 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] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Data Driven Design

The ups tools are quite complicated. You have to open a pipe and the send
and retrieve xml documents. Not for the weak of heart.

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Joe Sheble (Wizaerd)
[EMAIL PROTECTED]; General PHP List
[EMAIL PROTECTED]
Sent: Thursday, September 06, 2001 4:05 PM
Subject: RE: [PHP] Tracking shipments UPS, FEDEX, etc...


 Doesn't UPS provide tools to do this? Not necessarily
 using PHP but I thought 

  -Original Message-
  From: Dan Harrington [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 06, 2001 3:45 PM
  To: Joe Sheble (Wizaerd); General PHP List
  Subject: RE: [PHP] Tracking shipments UPS, FEDEX, etc...
 
 
  No kidding :-)
 
  or calculating shipping costs.
 
 
   -Original Message-
   From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, September 05, 2001 11:47 PM
   To: General PHP List
   Subject: [PHP] Tracking shipments UPS, FEDEX, etc...
  
  
   has anybody written any routines or functions they'd care to share for
   parsing the tracking information out of UPS, FEDEX, or other shipping
   carriers tracking pages?
  
  
   --
   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 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 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 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] networking

2001-08-31 Thread Data Driven Design

I know this is off topic, but I hope someone can point me in the right
direction. I have a network of three win98 machines and I just installed
corel linux on a fourth machine. Is there a tutorial somewhere that will
show me how to set up samba, or whatever else I need to access my network,
and the internet from the linux machine?

Thanks

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You


-- 
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] How do I read the first n lines from a file?

2001-08-28 Thread Data Driven Design

You might be better off using the file() function which reads a file into an
array, then you can use the indexes to get whatever lines you want

http://www.php.net/manual/en/function.file.php

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: "Tauntz" [EMAIL PROTECTED]
To: "php" [EMAIL PROTECTED]
Sent: Tuesday, August 28, 2001 7:59 AM
Subject: Re: [PHP] How do I read the first n lines from a file?


 hey.. thank you..
 but is it possible to read the last lets say 10 lines from a file ?


 - Original Message -
 From: "Niklas Lampn" [EMAIL PROTECTED]
 To: "Tauntz" [EMAIL PROTECTED]; "Php-General" [EMAIL PROTECTED]
 Sent: Tuesday, August 28, 2001 3:28 PM
 Subject: RE: [PHP] How do I read the first n lines from a file?


  You can do this:
 
  $i = 0;
  $fp = fopen("list.txt", "r");
  while (!feof($fp)  $i  10) {
  $i++;
  $Text = fgets($fp, 4096); // Reads first 4096 characters from a row.
  print "$Textbr\n";
  };
 
 
  Niklas
 
  -Original Message-
  From: Tauntz [mailto:[EMAIL PROTECTED]]
  Sent: 28. elokuuta 2001 14:13
  To: [EMAIL PROTECTED]
  Subject: [PHP] How do I read the first n lines from a file?
 
 
  hi !
 
  I have a simmple question :)..
 
  Lets say that I have a file called:
  list.txt
  and I want to take the first 10 lines from it  echo it to the browser ?
 
  thank you
  [EMAIL PROTECTED]
 


 --
 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 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] loose variables when url parsed through Netscape

2001-08-16 Thread Data Driven Design

You're not sending CC numbers in the url as plain text are you? That's a
REALLY BAD idea. You should store the information in your database before
you go to processing the CC (name, address, etc.) and don't store CC
numbers, the liability is much more than you're being paid. If you store it
ahead of time all you need to pass in the url from the processing company is
an id# to look up the info in your database.

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Tom Beidler [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 1:01 PM
Subject: [PHP] loose variables when url parsed through Netscape


 I'm trying to integrate a payment processing service for a client. The
 client would like to store the values passed from the payment processing
 service in a database on the clients server. I'm using a Meta Tag redirect
 from the payment processing service to my client to pass the variables.

 Unfortunately I loose the variables when using Netscape 4.7 on the Mac if
 the variable has a space in it. Here's a url for an example;


http://www.smyclient.com/relay.php?trans_id=0sub_acct=10delay=nodelaynode
 lay=revshare_id=first=Timlast=Jorgensonaddress1=710 Clearview
 Roadaddress2=city=San Francisco...

 I loose everything after the first blank space in the url. In this example
 at address1=710 Clearview Road

 The payment processing service does not run PHP so I can't alter the
 variables on their side to include html formatted spaces, i.e. %20.

 Any suggestions would be greatly appreciated.

 Tom


 --
 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 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] File uploads in PHP

2001-08-16 Thread Data Driven Design

This is a very good tutorial on the subject.

http://www.thickbook.com/extra/php_fileupload.phtml

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message - 
From: Dr. Evil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 10:06 PM
Subject: [PHP] File uploads in PHP


 
 My PHP script needs to receive some files.  I've seen sites which
 accept them; they have a Browse button which lets the user select a
 file to send.  That's what I want to do.
 
 I have a few questions about this.  First of all, this is with
 php4.06.  Secondly, the files are all going to be images, and not very
 large: no more than 50k.
 
 What's the best way to do this?  I notice that PHP can store these
 files on disk, but I'm going to be storing them in a DB.  I would
 rather receive them directly into a PHP variable.  Is this possible?
 Or should I take them in a file, and then read them back in to a
 variable?
 
 Also, if they need to go into a file, which directory is safest for
 this?  /tmp contains some important files.  And finally, how do I
 limit the maximum file size that PHP will accept?
 
 Thanks
 
 -- 
 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 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] auto-input data into form boxes

2001-08-15 Thread Data Driven Design

The problem is with your input page. You're putting the variable values
where the names go

inputpg.php
?php
include(datafile.php);
print form action=test2.php method=get;
print centerinput type=text name=.$alpha. size=5/centerbr;
print centerinput type=text name=.$numb. size=5/centerbr;
print centerinput type=submit value=Do_It!/center;
print /form;
?

Try this

inputpg.php
?php
include(datafile.php);
print form action=test2.php method=get;
print centerinput type=text name=\alpha\ value=\$alpha\
size=5/centerbr;
print centerinput type=text name=\numb\ value=\$numb\
size=5/centerbr;
print centerinput type=submit value=\Do_It!\/center;
print /form;
?

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Hugh Danaher [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Wednesday, August 15, 2001 4:23 PM
Subject: [PHP] auto-input data into form boxes



I need professional help!

I need to make a form that will display old data in the form boxes, wait for
user input (if they want to change something), and then go on to another
page.  This is what I have now, and it doesn't work:

datafile.php
?php
$alpha=Alpha;
$numb=46;
?

inputpg.php
?php
include(datafile.php);
print form action=test2.php method=get;
print centerinput type=text name=.$alpha. size=5/centerbr;
print centerinput type=text name=.$numb. size=5/centerbr;
print centerinput type=submit value=Do_It!/center;
print /form;
?

test2.php
html
body
?php
print This is alpha.$alpha;
print brthis is numb.$numb;
?
/body
/html



-- 
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] Re: Problems with exec

2001-08-12 Thread Data Driven Design

I've used system() instead of exec() on windows systems with success before.

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 12, 2001 4:52 PM
Subject: [PHP] Re: Problems with exec


  i have some problems with exec. i am using win2000, apache and latest
 php
  version. always 'unable to fork' . what´s the problem?

 As I understand it:

 Windows is not thread-safe.

 As an implication, exec-ing something would just crash anyway.

 Thus, exec() and friends won't work on Windows in PHP4 and up.

 If that's wrong, somebody email me off-list.

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm



 --
 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 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] Question about security: writing images to a directory (chmod 777)

2001-08-10 Thread Data Driven Design

Using the ftp functions is an alternative

http://www.php.net/manual/en/ref.ftp.php

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: SED [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 9:07 PM
Subject: [PHP] Question about security: writing images to a directory (chmod
777)


 For a job I'm working on I need to let PHP-code write images to a
 directory. To be able to do that I need to make this directory read- and
 writeable. Concerned about the security, is this directory open for
 anyone to write into it? (Let say PHP-code form another server?) If so,
 how can I solve this without this security-risk?

 Thanks,
 SED


 --
 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 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] Php on Windows not running!!! Any help ???

2001-08-10 Thread Data Driven Design

I used to use PWS, but now I use Apache, maybe I can help. Did you:
. move the php.ini and php4ts.dll to your system folder
. put the correct path in the registry editing file and double click it
. check the box for 'Execute' in your PWS administration

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 10, 2001 7:43 AM
Subject: [PHP] Php on Windows not running!!! Any help ???


 Hello Everyone

 I have installed php on my windows computer running with PWS.
 PHP files are in c:\php folder.
 I have placed test.php file in c:\inetpub\wwwroot folder on which I have
 given execute permission.
 When I call it in internet explorer as http://localhost/test.php  it gives
 an error as File not found --- Error 500 ?Internal Server Error. However,
 my ASP files are running perfectly well.
 What does it mean?
 However, when run c:\php\php.exe ?i   it shows some html codes which I
 presume it is in order.

 What should I do to run my PHP files.


 Ajay K. Ratra
 Ludhiana (INDIA)
 [EMAIL PROTECTED]


 --
 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 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] Display the weather on my site

2001-08-06 Thread Data Driven Design

The weather channel used to offer this service, for a single site it 'was'
free, a year or so ago, I'm not sure of the cost for getting this info for
multiple cities.

I think they are www.weather.com

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 06, 2001 2:38 PM
Subject: RE: [PHP] Display the weather on my site



 Put a webcam in your window. Put the city names in a database. Rotate
through the city names randomly. They will be None The Wiser.

 --=_NextPart_000_0206_01C11E86.5B5FCAE0
 Content-Type: text/plain;
  charset=iso-8859-1
 Content-Transfer-Encoding: quoted-printable
 Hello,
 I would like to display the wheather on a page depending on the city of =
 my user.
 (or the capital of their province/state)
 Do you know a service/db/web site I could query in order to extract what
=
 I need ?
 py
 --=_NextPart_000_0206_01C11E86.5B5FCAE0--


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

2001-08-04 Thread Data Driven Design

Why does this code produce a page cannot be displayed error?

?php 
 mysql_connect(localhost,username,password);
 mysql_select_db(database);
 $query = SELECT file_path from photos where photos_id=$photos_id;
 $result = @mysql_query($query);
 $row = mysql_fetch_row($result);
 $path = $row[0];
 $parts = split(/,$path);
 $file_name = $parts[count($parts)-1];

header(Content-Type: application/download\n); 
header(Content-Disposition: attachment; filename=$file_name); 
header(Content-Transfer-Encoding: binary); 
$fn=fopen($path , r); 
fpassthru($fn);
? 


Data Driven Design
1506 Tuscaloosa Ave
Holly Hil, FL 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net


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

2001-08-04 Thread Data Driven Design

I made the changes you suggested and it's still a no go. I'm sure of the
query because

print img src=\$path\;

Will display the image I'm trying to download.

This is my environment.
PHP Version 3.0.16
Apache/1.3.3 Cobalt
safe_mode 1

?php
 mysql_connect(localhost,user,pass);
 mysql_select_db(db);
 $query = SELECT file_path from photos where photos_id=$photos_id;
 $result = @mysql_query($query);
 $row = mysql_fetch_row($result);
 $path = $row[0];
 $file_name = basename($path);
//print img src=\$path\;
//print div align=\center\$file_name/div;

header(Content-Type: application/download\n);
header(Content-Disposition: attachment; filename=$file_name);
header(Content-Transfer-Encoding: binary);
readfile($path);

?

This should work shouldn't it?

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Data Driven Design [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, August 04, 2001 11:57 AM
Subject: Re: [PHP] file downloads


  Why does this code produce a page cannot be displayed error?




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

2001-08-04 Thread Data Driven Design

I usually put or die(mysql_error())  and make it work before I put in the @,
that's been done already. This will display the image

$result = @mysql_query($query);
$row = mysql_fetch_row($result);
$path = $row[0];
print img src=\$path\;

What I want is to display a 'save as' box to download the image whose file
path is stored in the variable $path. Am I doing something wrong in the
header section? The print statement would be commented out if I used this.

$file_path = basename($path);
header(Content-Type: application/download\n);
header(Content-Disposition: attachment; filename=$file_name);
header(Content-Transfer-Encoding: binary);
readfile($path);

Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Data Driven Design [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, August 04, 2001 1:01 PM
Subject: Re: [PHP] file downloads


  I made the changes you suggested and it's still a no go. I'm sure of the
  query because
 
  print img src=\$path\;
 
  Will display the image I'm trying to download.

 How does that make the SQL query valid?  You didn't implement the
 mysql_query() error checking I suggested.  That's likely what is causing
 you problems.

 -Rasmus




-- 
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: Re: [PHP] dumb mysql_connect issue

2001-07-31 Thread Data Driven Design

Is the error coming from a mysql_query() line or a mysql_select_db() line?

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: CGI GUY [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 6:47 PM
Subject: Fwd: Re: [PHP] dumb mysql_connect issue


 Okay, well I used the mysql_error() print-out, and it
 returned something weird:

  Access denied for user: 'username@hostname' to
 database 'tablename' 

 This is incongruous because:

 1. The uid/password set I am using has full
 privileges.
 2. *tablename* is not a database (the code I listed in
 my previous email is syntactically identical to the
 script)-- it's a table.

 Why is this happening to me?!?! ;)

 Note: forwarded message attached.


 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/






 --
 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 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] Open window2 (javascript), enter info in a form, then close window2 and refresh window1. help.

2001-07-26 Thread Data Driven Design

It's possible that adding target=_top to your form tag in the popup might
solve your problem.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Matthew DeChant [EMAIL PROTECTED]
To: 'PHP list' [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 12:46 PM
Subject: [PHP] Open window2 (javascript), enter info in a form, then close
window2 and refresh window1. help.


 I've gotten this far:

 URL to open an advanced search window(window2) from window1:

 a href=\javascript:newWindow =

window.open('db_viewMD.php?dsn=$dsndb=$dblm=$lmadvsrch=true','advsrch','h
 eight=$vsize,width=310,scrollbars=$bln,resizeable=yes');
 newWindow.focus()\)Advanced Search/a


 Enter text in a form (snippet from form, close window if cancel is
clicked,
 redirect window1 to new url, close window):

 print form name=advsrch method=post action=db_viewMD.php;
 print td class=sansboldfield1/td\n;
 print td class=sansboldinput type=text name=field1/td/tr\n;
 print input type=submit value=Submit
 onclick=window.opener.location='db_viewMD.php?';self.close()\n;
 print input type=button value=Cancel onclick=self.close()\n;

 Now the problem is that redirecting window1 isn't really helpful because
the
 form variables don't get loaded to window1 unless they are part of the URL
 (ie. dbview_md.php?field1=textentered1field2=textentered2) but they can't
 be part of the URL because you don't know the text entered in the form
until
 it submits the form.)

 Is there a way to just refresh window1 after changing the PHP variable
 (HTTP_SERVER_VARS[argv]??) that holds the arguments for window1?

 -m


 --
 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 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] Using an image as a reset button on a PHP script

2001-07-14 Thread Data Driven Design

You have to use javascript

form name=the_form ...

a href=javascript:document.the_form.reset()img /a
/form

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Brandon Orther [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Friday, July 13, 2001 5:46 PM
Subject: [PHP] Using an image as a reset button on a PHP script


 Hello,
  
 I am making a script at the moment and want to use images instead of the
 usual buttons.  Does anyone know how I can use the image as a reset
 button?
 Thank you,
 
 
 Brandon Orther
 WebIntellects Design/Development Manager
 [EMAIL PROTECTED]
 800-994-6364
 www.webintellects.com
   
  
 


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

2001-06-30 Thread Data Driven Design

I didn't see anything built in but you might try   (date(z)/7) +1


Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Matt TrollBoy Wiseman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 28, 2001 3:33 PM
Subject: [PHP] Week Number


 Does know of anyway to get PHP to return the week number?  
 As in there are 52 weeks in a year and this is week x?
 If there is no internal feature, perhaps something built into PHPLib?
 
 Lemme know,
 Matt TrollBoy Wiseman
 Webmaster: Shoggoth.net
 Site Designer: phpslash.org
 The oldest and strongest emotion of mankind is fear,
 and the oldest and strongest kind of fear is fear of the unknown.
 -H.P. Lovecraft
 -
 Please do not resell my e-mail address
 to anyone or send me unsolicited e-mail
 -
 
 
 -- 
 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 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] system() call to payflow pro

2001-06-29 Thread Data Driven Design

I had a site that was working fine and now gives this error.

Warning: Unable to fork [C://winnt//system32//pfpro connect.signio.com 443
TRXTYPE=STENDER=CUSER=usernamePWD=passwordACCT=56532325168784512EXPDAT
E=0102AMT=11.95NAME=Jeff RossiSTREET=1506 Tuscaloosa AveCITY=Holly
HillSTATE=FloridaZIP=32117[EMAIL PROTECTED]] in
e:\www\roffice.net\ssl\bouncersbible\sec_order.php on line 104

I'm assuming that my host moved or deleted the executable in question. Is
there another possible cause?

Username/password changed.

Thanks

Data Driven Design
1506 Tuscaloosa Ave
Holly Hil, FL 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net


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

2001-06-20 Thread Data Driven Design

You might try something like this.

while(list($key,$val) = each($HTTP_POST_VARS)) {
$$key = addslashes($val);
}

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Wilbert Enserink [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 4:51 AM
Subject: [PHP] mailform loop


 Hi all,
 
 
 does anybody know if it is possible to loop through all  the fields in a
 mailform. I want to perform the addslashes function  and htmlspecialchars
 function to each entered value so i can put it in my db.
 
 Or should I make use of a standard good mailform script? and if so, does
 anyone know such a good script?
 
 
 wilbert
 
 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -
 


-- 
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: Lists are back up

2001-06-18 Thread Data Driven Design

Thank You.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 3:15 PM
Subject: Lists are back up


 We have re-enabled the PHP mailing lists.  They are now running from a
 temporary machine sitting on the floor of my spare bedroom.  A more
 permanent home is in the works.
 
 -Rasmus
 
 




Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Data Driven Design

Link to another frameset page if you choose not to use javascript. But IMO
there's no such thing as a proper use of frames. Frames should never be used
for anything.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Brandon Orther [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Monday, May 07, 2001 7:19 PM
Subject: [PHP] Refreshing multiple frames?


 Hello,

 I am using php with frames for a menu bar.  In one frame I have a menu.
 When the link is clicked on the menu I would like two frames to be
updated.
 Is there a way to do this?

 Brandon


 --
 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 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] PHP on PWS not working!

2001-05-05 Thread Data Driven Design

Maybe somebody who REALLY knows can help, because it appears to me that
you've done everything right.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Thomas Edison Jr. [EMAIL PROTECTED]
To: Data Driven Design [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, May 05, 2001 3:30 PM
Subject: Re: [PHP] PHP on PWS not working!


 would you believe it, i did!! still not working. still
 giving the 500 Internal Server Error. I uninstalled
  then reinstalled PWS. cooked up the settings
 again...and no response!!

 T. Edison jr.

 --- Data Driven Design [EMAIL PROTECTED]
 wrote:
  Did you copy the php4ts.dll to your windows/system
  directory? I think I had
  to do that even though it wasn't in the directions
 
  Data Driven Design
  P.O. Box 1084
  Holly Hill, Florida 32125-1084
 
  http://www.datadrivendesign.com
  http://www.rossidesigns.net
  - Original Message -
  From: Thomas Edison Jr. [EMAIL PROTECTED]
  To: Data Driven Design [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Saturday, May 05, 2001 2:44 PM
  Subject: Re: [PHP] PHP on PWS not working!
 
 
   nothing does seem to work...i don't know what the
  hell
   is the problem!! i did put this :
  
C:\\php\\sapi\\php4isapi.dll
  
   in the regedit file and it looks great. everything
  is
   just so by the book. where the hell am i going
  wrong!!
   can't understand what's different here that was
  not
   before coz it was working before!!!
  
   did you define any path in the
  
   doc_root =
  
   in php.ini? because i didn't!
  
   Cheers,
   T. Edison jr.
  
  
  
  
   =
   Rahul S. Johari (Director)
   **
   Abraxas Technologies Inc.
   Homepage : http://www.abraxastech.com
   Email : [EMAIL PROTECTED]
   Tel : 91-4546512/4522124
   ***
  
   __
   Do You Yahoo!?
   Yahoo! Auctions - buy the things you want at great
  prices
   http://auctions.yahoo.com/
  
   --
   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]
  
  
 


 =
 Rahul S. Johari (Director)
 **
 Abraxas Technologies Inc.
 Homepage : http://www.abraxastech.com
 Email : [EMAIL PROTECTED]
 Tel : 91-4546512/4522124
 ***

 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/



-- 
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] hdml simulator?

2001-05-04 Thread Data Driven Design

I'm writing some wireless content in PHP and I've found several wml
simulators but none for hdml. The up.sdk says it works for hdml but displays
my wml content. Anybody know where to find a hdml simulator?

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net


-- 
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] PHP on PWS not working!

2001-05-04 Thread Data Driven Design

I use PWS what errors are you getting?

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Thomas Edison Jr. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 04, 2001 2:00 PM
Subject: [PHP] PHP on PWS not working!


 don't know why still my PHP 4.0.5 is NOT working on my
 PWS 4.0!! the PHP module is now working perfectly on
 my Apache server (At Last)!! but what is wrong with
 PWS??? 
 
 I have left the doc_root field blank in php.ini 
 And the extension_dir points to C:\php4 which actually
 contains php.exe and only 1 dll file, that is,
 php4ts.dll 
 Do i have to point extension_dir to some other
 location? like the extension folder in my php4
 folder?
 Should i replace the old browscap.ini with this new
 one that i got with php4?
 
 any other suggestions? please help...
 
 Cheers,
 T. Edison jr.
 
 
 =
 Rahul S. Johari (Director)
 **
 Abraxas Technologies Inc.
 Homepage : http://www.abraxastech.com
 Email : [EMAIL PROTECTED]
 Tel : 91-4546512/4522124
 ***
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/
 
 -- 
 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 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] PHP on PWS not working!

2001-05-04 Thread Data Driven Design

Did you check the execute box uder the home directory properties? I think
that's when I got that error.  Also you need to reboot after you make the
registry entries, even though the instructions don't say so.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Thomas Edison Jr. [EMAIL PROTECTED]
To: Data Driven Design [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 04, 2001 2:21 PM
Subject: Re: [PHP] PHP on PWS not working!


 i'm not getting errors, when i do open my page
 (http://localhost/test.php3) or any php3 page on my
 PWS, i get an HTTP 500 - Internal server error. All
 the HTML files and stuff are running on my PWS. Only
 php3 is not!!
 i did not make any changes to my PWS while installing
 this new php4.0.5 file today. had to make some changed
 in registry for new paths and give the same stuff in
 php.ini, but i didn't do anything in PWS. the earlier
 PHP4 was running fine on my PWS till yesterday. This
 new one is not!!
 and like i wrote before :

  PWS 4.0!! the PHP module is now working perfectly
  on my Apache server (At Last)!! but what is wrong
  with PWS???
  I have left the doc_root field blank in php.ini
  And the extension_dir points to C:\php4 which
  actually contains php.exe and only 1 dll file, that
 is, php4ts.dll
  Do i have to point extension_dir to some other
  location? like the extension folder in my php4
  folder?
  Should i replace the old browscap.ini with this
  new one that i got with php4?

 tell me what do i do?
 T. Edison jr.




 =
 Rahul S. Johari (Director)
 **
 Abraxas Technologies Inc.
 Homepage : http://www.abraxastech.com
 Email : [EMAIL PROTECTED]
 Tel : 91-4546512/4522124
 ***

 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/

 --
 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 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] PHP on PWS not working!

2001-05-04 Thread Data Driven Design

In the regedit file where you put the path assuming the path is

C:\php\sapi\php4isapi.dll

You would enter

C:\\php\\sapi\\php4isapi.dll

Into the places where it says to put the path. Then save that file, then
double click it, and click ok. Then reboot windows.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Thomas Edison Jr. [EMAIL PROTECTED]
To: Data Driven Design [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, May 05, 2001 1:44 AM
Subject: Re: [PHP] PHP on PWS not working!


 Ummm...you could be onto something my dear friend..

  know when I set it up once I had not taken into
  account that the .dll files
  are in the /sapi/ folder.

 they in fact are in the /sapi/ folder..do i have to
 declare this somewhere? in php.ini or something?
 because i have not referenced to this anywhere!!! in
 the extension_dir = in the php.ini, i have given
 C:\php4 only, which has only php.exe  php4ts.dll
 among some other few files. Should i change this to
 c:\php4\sapi ?

 cheers,
 T. Edison jr.

 --- Data Driven Design [EMAIL PROTECTED]
 wrote:
  Sometimes windows just breaks, I've done clean
  installs lately. Reinstalling
  might fix your problems, who knows. Is the path in
  you regedit correct. I
 
  Data Driven Design
  P.O. Box 1084
  Holly Hill, Florida 32125-1084
 
  http://www.datadrivendesign.com
  http://www.rossidesigns.net
  - Original Message -
  From: Thomas Edison Jr. [EMAIL PROTECTED]
  To: Data Driven Design [EMAIL PROTECTED]
  Sent: Friday, May 04, 2001 2:33 PM
  Subject: Re: [PHP] PHP on PWS not working!
 
 
   Did both Sir. checked the execute box and
  rebooted. i
   don't know where it is going wrong. suddenly i did
   find out that none of my ASP scripts are working
   either. Do you think my PWS has developed an
  internal
   problem? i'm thinking of re-installing it.
   suggestions?
  
   T. Edison jr.
  
   --- Data Driven Design [EMAIL PROTECTED]
   wrote:
Did you check the execute box uder the home
directory properties? I think
that's when I got that error.  Also you need to
reboot after you make the
registry entries, even though the instructions
  don't
say so.
   
Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084
   
http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Thomas Edison Jr.
  [EMAIL PROTECTED]
To: Data Driven Design
  [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 04, 2001 2:21 PM
Subject: Re: [PHP] PHP on PWS not working!
   
   
 i'm not getting errors, when i do open my page
 (http://localhost/test.php3) or any php3 page
  on
my
 PWS, i get an HTTP 500 - Internal server
  error.
All
 the HTML files and stuff are running on my
  PWS.
Only
 php3 is not!!
 i did not make any changes to my PWS while
installing
 this new php4.0.5 file today. had to make some
changed
 in registry for new paths and give the same
  stuff
in
 php.ini, but i didn't do anything in PWS. the
earlier
 PHP4 was running fine on my PWS till
  yesterday.
This
 new one is not!!
 and like i wrote before :

  PWS 4.0!! the PHP module is now working
  perfectly
  on my Apache server (At Last)!! but what is
  wrong
  with PWS???
  I have left the doc_root field blank in
  php.ini
  And the extension_dir points to C:\php4 which
  actually contains php.exe and only 1 dll
  file,
that
 is, php4ts.dll
  Do i have to point extension_dir to some
  other
  location? like the extension folder in my
  php4
  folder?
  Should i replace the old browscap.ini with
  this
  new one that i got with php4?

 tell me what do i do?
 T. Edison jr.




 =
 Rahul S. Johari (Director)
 **
 Abraxas Technologies Inc.
 Homepage : http://www.abraxastech.com
 Email : [EMAIL PROTECTED]
 Tel : 91-4546512/4522124
 ***


  __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at
  great
prices
 http://auctions.yahoo.com/

 --
 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 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]
   
  
  
   =
   Rahul S. Johari (Director)
   **
   Abraxas

Re: [PHP] create bar chart

2001-04-24 Thread Data Driven Design

You can use some coding and a few 1 pixel gifs to do this also

img src=reddot.gif width=?php echo $width ? height=10

assuming you had made a red one pixel gif and called it reddot.gif that
would draw a bar 10 pixels high with a width of $width. With a short script
you can make bar graphs with a lot less overhead than using GD.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Ali [EMAIL PROTECTED]
To: 'Php-General (E-mail)' [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 10:37 AM
Subject: [PHP] create bar chart


 Hello,

 how it is possible to create a bar chart in php? I appreciate any hint.

 Ali


 --
 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 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] pumping database dump in mysql

2001-04-21 Thread Data Driven Design

Isn't that what load data infile does?

http://www.mysql.com/doc/L/O/LOAD_DATA.html

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Peter Van Dijck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 21, 2001 9:39 AM
Subject: [PHP] pumping database dump in mysql


 Hi,
 I want to write a script that takes a mysql dump file and pumps it into
the
 database.
 I got the dump in a variable and then did
 $res = mysql_query($dumpvariable);
 but that doesn't work? I know how to do it on the command line, I just
want
 to do it in a php script...
 thanks for any hints!
 Peter
 ~~
 http://liga1.com building multiple language/culture websites
 http://poorbuthappy.editthispage.com online ethnology, updown


 --
 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 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] sending mail.. PLEASE HELP!

2001-04-12 Thread Data Driven Design

I couldn't get it to work by changing php.ini either, I guess my isp mail
server wouldn't relay. I downloaded a mailserver from www.tnsoft.com , its
not free but it is an option if you get too frustrated trying to make it
work.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Jude Sanglitan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 10:16 AM
Subject: [PHP] sending mail.. PLEASE HELP!



 If I was to send mail could I possibly send it using mail() function or I
 need to setup some things to make it work properly? Everytime I run my PHP
 script, it always gives me an Error: Failed to Connect to
 c:\inetpub\wwwroot\ and it was pointing to my mail() function.

 I just followed what the book says and I guess there is a part of it that
I
 missed or whatever. Could someone help me? Thanks!!!


 Jithy


 --
 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 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] BUG - Someone else please verify B4 I file

2001-04-04 Thread Data Driven Design

I've noticed that and had to rewrite several scripts when hosts upgraded
from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty.

Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Krznaric Michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 04, 2001 11:02 AM
Subject: [PHP] BUG - Someone else please verify B4 I file


 There seems to be a bug in php 4.0.4pl1, would someone please verify
 this script below.  If you paste this script into a file called bug.php
and
 you just call it you will see "Http post Vars Set".  However you will not
 find that variable  it in the output of PHPINFO.  I tried this under
 php4.0.2 and the behavior is as expected "Http Post Vars Not Set".

 Can anyone confirm or disprove this?

 Mike

 bug.php
 ?
 if (isset ($HTTP_POST_VARS)){
 echo "Http Post Vars Set";
 }
 else {
 echo "Http Post Vars Not Set";
 }
 phpinfo();
 ?

 My environment:
 PHP-4.0.4pl1 DSO
 Solaris 8
 Apache 1.3.14

 --
 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 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] Tab Index Functionality

2001-03-30 Thread Data Driven Design

You can specify taborder by inserting a tabindex attribute into your input
tags

input type="text" name="foo" tabindex="1"
input type="text" name="foo3" tabindex="3"
input type="text" name="foo2" tabindex="2"

In this example tabing order would be 1, 3, 2

There's also an Internet Explorer only attribute  called notab


Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Wayne Joyner [EMAIL PROTECTED]
To: Php-General@Lists. Php. Net [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 12:02 PM
Subject: [PHP] Tab Index Functionality


 I am interested in finding out how to use TAB INDEX. I have a form that I
would like to order the sequence of field selection. The form consist of
HTML with embedded PHP commands that retrieve data from a database to auto
populate (or provide) drop down list boxes for the form. Is there any way I
can specify the sequence of field selection for users wanting to tab through
fields. Unfortunately, I have set the field label descriptions with help
sensitive A HREF to a external help file  and these become stops in the
tabbing sequence. I basically want to skip over the help locations when
pressing the TAB key.

 Any help you can provide would be greatly appreciated.


 Wayne Joyner
 CSG Systems, Inc.
 2525 N. 117th Avenue
 Mail Stop 1-TSC
 Omaha, NE
 (402) 431-7138









 --
 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 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] HTML to Text

2001-03-28 Thread Data Driven Design

Isn't that what strip_tags() does?

http://www.php.net/manual/en/function.strip-tags.php

Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Boget, Chris [EMAIL PROTECTED]
To: Php (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 2:36 PM
Subject: [PHP] HTML to Text


 I've looked various places (the PX, Hotscripts, etc) for
 a function that will take a HTML file, strip out all of
 the HTML and return just plain text.
 Does anyone know if such an animal exists?  Does any
 one have a copy of a function that does this?
 
 Thanks for any help you can provide!
 
 Chris
 


-- 
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] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Data Driven Design

I think you mean distict, as in

$query = "SELECT DISTINCT band_name FROM table WHERE ...";

Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Rami Krayem [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 11:49 AM
Subject: [PHP] Newbie - MySQL Question - Finding Unique Names in Column


 I have a listing of photos in a table as follows (not actual column
names):

 Image Name, Image Width, Image Height, Band Name, Venue, City, State, Date


 I would like to have a list of the different bands with photos in the
 archive.  There may be 120 photos of any one band, but I would like to
 select the name of the band only one time and have it printed in the list.
 Is there a MySQL function that would do this, or should I just put the
 different bands into a separate table?

 Any help would be appreciated.


 --
 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 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] drop down used to redirect?

2001-03-25 Thread Data Driven Design

You can do it with javascript like this.

script language="javascript"
function go(selectBox) {
var where = selectBox.options[selectBox.selectedIndex].value;
if (where != "") window.location = where;
}
/script

form
select onchange="go(this)"
option value="page.html"Page/option
...

Or you can use PHP like this.

form action="nav.php" method="post"
select name="loc"
option value="page.html"page/option
...

--- nav.php ---
?php
header("Location:$loc");
?

- Original Message -
From: duirfire [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Sunday, March 25, 2001 2:39 PM
Subject: [PHP] drop down used to redirect?



 Hi, can anyone point me towards an example of how to use a drop down
select
 as a navigation jump, maybe by sending a redirect header?

 thanks!
 duirfire




 --
 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 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] Hello $variable, whats your name?

2001-03-22 Thread Data Driven Design

You can cycle through the $HTTP_POST_VARS or $HTTP_GET_VARS arrays depending
on whether you use 'post' or 'get' for the methos in you form

while(list($key,$val)=each($HTTP_POST_VARS)) {
print "$key:$valbr\n";
}


- Original Message -
From: JCampbell [EMAIL PROTECTED]
To: Main PHP List [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 4:05 PM
Subject: [PHP] Hello $variable, whats your name?


 I would like to know if there is a way to determine the name of a
variable.

 Example:
 I have the variable $firstname, with a value of Jon

 I want to be able to

 echo name_of_variable : value_of_variable;

 So the user would see

 firstname : Jon

 I want to be able to do this without knowing what variables will be passed
 to the PHP script in advance.

 Any help is appreciated in advance.

 Jon
 ===
 And shepards we shall be
 For thee, my lord, for thee
 For thou hath descended forth from thy hands
 That our feats may swiftly carry out thy command
 We will flow a river forth unto thee
 And teaming with souls shall it ever be...
 ===
 http://jcampbell.blacklightning.net


 --
 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 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] get filename?

2001-03-20 Thread Data Driven Design

$PHP_SELF will be the filename including $QUERY_STRING and $PATH_INFO
variables, $SCRIPT_NAME should be just the filename.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 20, 2001 5:19 AM
Subject: [PHP] get filename?


 Hi

 Whats the best method to get the filename of the file I am using. E.G if
the
 file is called tom_woz_here.php and would I go about stickin that into
 $FileName= ???

 Thanks

 --
 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 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] Using php4.02 on IIS5

2001-03-19 Thread Data Driven Design

If you're talking about windows PWS that's probably your path that you set
in the .reg file needs to point directly at the .dll file you chose, whether
it was the isapi or exe. Move the .dll file out of the 'sapi' folder into
the main php folder and you'll probably be ok.

- Original Message -
From: James Cox [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 5:46 PM
Subject: [PHP] Using php4.02 on IIS5


Hey ,

I have been trying to set up some php applications on my local webserver, as
part of a transition from asp to php. I have unzipped the php distro into
it's own dir, added in the ini file, (left it at default setting) and then
added the engine into IIS as described in the install document.

Now, I have 500 Internal Server Errors on the php page.. any ideas?

I will happily RTFM, if I can find one that'd help ;)

Thanks,

James



-- 
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] get name of file

2001-03-19 Thread Data Driven Design

?php echo $SCRIPT_NAME ?

- Original Message - 
From: Matthew Delmarter [EMAIL PROTECTED]
To: PHP Mailing List [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 6:51 PM
Subject: [PHP] get name of file


 How do I return the name of a file without any extensions or path info.
 
 Eg how do I return "about" from "http://www.domainz.com/about.htm".
 
 Regards,
 
 Matthew Delmarter
 
 -- 
 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 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] Expire data from form

2001-03-18 Thread Data Driven Design

You can use javascript and set the history length to 0

script language="javascript"
!--
history.length=0;
// --
/script

- Original Message -
From: Sheni R. Meledath [EMAIL PROTECTED]
To: PHP Masters [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 11:47 PM
Subject: [PHP] Expire data from form


 Hi,

 I have set up a form to register the users to the site. The users are
 allowed to register only once. When the user submits the form the same
 script will check the validity of the form and displays error messages and
 if okay, updates the database.
 I want to set up an option in the form in which when the user once submits
 and after that if they click on the back button (browser back) it should
 say the 'page expired' as I have seen with some Perl scripts. The users
 should not be allowed to go back to the page and resubmit. Can any body
 suggest a way to accomplish this.

 thanks
 Sheni R Meledath
 [EMAIL PROTECTED]


 --
 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 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] header:(location) error

2001-03-17 Thread Data Driven Design

Do you have any white space outside of your ?php ? tags? That is
considered as output by the parser.

- Original Message -
From: Stas Newdel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 6:56 AM
Subject: Re: [PHP] header:(location) error


 Brett, I only have conditional logic above my header() call... this page
is
 processing form input and does a redirect based on the result? Will this
not
 work?

 Thank you



 [EMAIL PROTECTED] ("Brett") wrote in
02b401c0aea2$34676460$e1214ed8@bcnu:

 
  I am receiving the following error from my app, and I'd be gratefull if
  somebody would point out the usual cause of   it. I am doing a redirect
  based on a form validation routine. Thank you.
 
  Warning: Cannot add header information - headers already sent in
  /usr/home/stas/html/cathedral/scripts/act_save_resume.php on line 175
 
 Make sure you have no whitespace above your ? ? tags.  If any output is
 sent to the browser then you can not add a header, session, cookie.
 
 Brett
 
 


 --
 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 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] Shopping Carts and Sessions

2001-03-16 Thread Data Driven Design

Can this be used via .htaccess in a shared hosting situation?

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 16, 2001 10:15 AM
Subject: Re: [PHP] Shopping Carts and Sessions


 In a message dated 3/16/01 9:39:16 AM Eastern Standard Time,
 [EMAIL PROTECTED] writes:


  I thought Search engines couldnt spyder dynamic pages such as
  "1.php?foo=bar"
 

 True - but with the magic of Apache's mod_rewrite -- you can make a URL
 appear to a browser as: http://www.yourdomain.com/bar -- but on your
server,
 it can be rewritten as: http://www.yourdomain.com/1.php?foo=bar.

 mod_rewrite is extremely cool. you can read more about it at:
 http://httpd.apache.org/docs/mod/mod_rewrite.html

 don



-- 
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] Good Free PHP Editor?

2001-03-12 Thread Data Driven Design

It sounds like you just described Homesite.

- Original Message -
From: Harshdeep S Jawanda [EMAIL PROTECTED]
To: Andrew Halliday [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 12, 2001 7:54 AM
Subject: Re: [PHP] Good Free PHP Editor?


 Hi,

 Andrew Halliday wrote:

  Does anyone know of a good PHP enabled editor that fits the following
  criteria:?
 
  (in order of importance)
  - Is free
  - Runs under Windows
  - Has colors (syntax highlighting)
  - Can edit multiple files (ie multi threaded)
  - Reports line numbers
  - Has good search  replace functionality

 Have you tried GNU emacs yet? It has all of the above and much more. You
may
 need to separately download and install a package for PHP, though.

 --
 Regards,
 Harshdeep Singh Jawanda.



 --
 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 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] how can i extract from such an array??

2001-03-02 Thread Data Driven Design

$email_list = implode(",",$emailto);

The name in your select probably doesn't need the $

Data Driven Design
PO Box 1084
Holly Hill, Florida 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: "Sandeep Hundal" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 11:28 AM
Subject: [PHP] how can i extract from such an array??


 hi all, just a quick question.
 
 i've made a personal addressbook, the code for which i'm going to
 release soon (best probably for newbies). anyway, i want to make it
 so that i can pass multiple email address from one page to another.
 
 basically it'll be a form select function like :
 select name="$emailto[]";
   option name="email1"name1
   option name="email2"name2
   option name="email3"name3
   option name="email4"name4
 /select
 
 now say i select name 1 and 4. i want to extract the emails on the
 page the variables are passed to, seperated by a comma.
 
 any piece of code??
 
 thanks!
 
 /sunny
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/
 
 -- 
 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 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] $PATH_INFO

2001-02-27 Thread Data Driven Design

I've got a page that I'm currently working on that grabs a couple of
variable from $PATH_INFO and uses them for db queries. The page is currently
called content.php. My question is this, when I replace my index file with
this will

http://www.mydomain.com/somevar/someothervar

be the same as

http://www.mydomain.com/index.php/somevar/someothervar

It could make things easier for me if it is.

Data Driven Design
PO Box 1084
Holly Hill, Florida 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net


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

2001-02-27 Thread Data Driven Design

I already know that the second example works, I just wanted to know if the
first would before I try it on a live site.

Data Driven Design
PO Box 1084
Holly Hill, Florida 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: "Sam Masiello" [EMAIL PROTECTED]
To: "Data Driven Design" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 12:33 PM
Subject: Re: [PHP] $PATH_INFO



 I would have to be inclined to say that you couldn't do that.  None of the
 examples that I have ever seen do it that way, and from a perspective of
 how a URL is built, how would the browser ever know that you are trying to
 access index.php/somevar/somevalue as opposed to thinking that "somevalue"
 is supposed to be the name of a page?

 I am sure someone will chime in if this is wrong, but I would doubt that
it
 isof course, I guess the best way to find out is to try it :)

 --
 Sam Masiello
 Systems Analyst
 Chek.Com
 (716) 853-1362 x289
 [EMAIL PROTECTED]

 On 2001.02.27 11:10:57 -0500 Data Driven Design wrote:
  I've got a page that I'm currently working on that grabs a couple of
  variable from $PATH_INFO and uses them for db queries. The page is
  currently
  called content.php. My question is this, when I replace my index file
  with
  this will
 
  http://www.mydomain.com/somevar/someothervar
 
  be the same as
 
  http://www.mydomain.com/index.php/somevar/someothervar
 
  It could make things easier for me if it is.
 
  Data Driven Design
  PO Box 1084
  Holly Hill, Florida 32117
 
  http://www.datadrivendesign.com
  http://www.rossidesigns.net
 
 
  --
  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 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] File upload error

2001-01-26 Thread Data Driven Design

I have a script that works fine on my server but gives this error on the
server where I need it.

Warning: File Upload Error - Unable to open temporary file [./php06339aaa]
in /home/sites/site9/web/photo_admin/upload.php3 on line 138

Could someone point me in the right direction?

Thanks.

Data Driven Design
PO Box 1084
Holly Hill, Florida 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net


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