RE: [PHP] Variables within a string

2002-03-10 Thread Chris Cocuzzo

I would imagine the problem has something to do with those escaped quote
marks, but in any case, you could probably get around it by doing this:

$foo = Entry for  . $HTTP_POST_VARS[name];

some correct me if I'm wrong

-chris

 -Original Message-
 From: webapprentice [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 10, 2002 10:09 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Variables within a string
 
 Hello,
 
 When I try to do this:
 $foo = Entry for for $HTTP_POST_VARS[\name\];
 
 I receive this error:
 Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
 `T_NUM_STRING' on line X
 
 Why does it do this, and how do I get around this, besides assigning
the
 value of $HTTP_POST_VARS[\name\] to variable $bar?
 
 Thank you for your time and help.
 
 --Stephen
 
 
 --
 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] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Chris Cocuzzo

Godamnit. Shut-up about this already for godsakes and answer the
original question!!



-Original Message-
From: Sterling Hughes [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 02, 2002 6:05 PM
To: Manuel Lemos
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Sending an e-mail to 1,000 people

On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote:
 Hello,
 
 Lars Wilhelmsen wrote:
  
  Ben Clumeck [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   I would like to send an e-mail (the same e-mail) to 1,000
different
  people.
   I want each persons name to be in the To: field.  Is there a way
to
   customize it to where it can say Dear (having a different
persons name
   corresponding to an e-mail address) so that it looks customized.
  
   Thanks,
  
   Ben
  
  
  What you are describing is called SPAMMING, something
  we really, really dislike.
 
 You are confused. Spamming is sending the same message to the same
 person more than once.
 
 What I think you mean is unsolicited e-mail. The original poster did
not
 mention whether the people he wants to mail want to receive his
 messages, so you can't assume that is necessarily unsolicited.
 

I think you are confused...  Unsolicited e-mail is in fact the
definition of spam!

Secondly, reasonable assumptions can often be made, for example, when I
see a message from you, its almost guaranteed that you'll be plugging
PHPClasses, or Metabase, or both.  Assumptions are why killfiles were
invented.

From the users original post, the likely assumption is that he is using
it to send out some sort of spam/product announcement.

-Sterling

-- 
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] This makes NO SENSE!!!!!

2001-12-27 Thread Chris Cocuzzo

hey-

ok. I have the following code.
?php

if($submit) {
$arradate = explode(/,$date);
$uxdate = mktime(0,0,0,$arradate[0],$arradate[1],$arradate[2]);
print $uxdate;
}
else {
?
 form action=strtotime.php method=POST //name of file is
strtotime.php
 input type=text name=date size=30
 input type=submit name=submit value=submit
?
}
?
the problem: it's printing out -1 when i submit. I know it means something
is wrong, however I can't find an error with this when i have the following
code below working perfectly: [sidenote]: i enter the date into the form
field like this: 1/11/2002

$date1 = 1/11/2002;
$ardate = explode(/,$date1);
$unixdate = mktime(0,0,0,$ardate[0],$ardate[1],$ardate[2]);
print $unixdate . br;

can somebody explain to me why this isn't working??

thanks
chris
p.s. it should return this unix timestamp: 1010725200


-- 
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] This makes NO SENSE!!!!!

2001-12-27 Thread Chris Cocuzzo

Other Vital Info that probably would be helpful?

the code below is on:
Apache 1.3 on Win2K
PHP 4.0.6

the machine this is intended for I believe runs on Linux(not sure what
version), apache 1.3, php 4.0.1pl1

- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 27, 2001 7:29 AM
Subject: Re: [PHP] This makes NO SENSE!


 What PHP version do you use(4.1.0?)

 Regards,
 Andrey Hristov
 - Original Message -
 From: Bogdan Stancescu [EMAIL PROTECTED]
 To: Chris Cocuzzo [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, December 27, 2001 2:18 PM
 Subject: Re: [PHP] This makes NO SENSE!


  Most probably you have some kind of slashing in there. Check it out by
also
  echoing $date from php and if nothing looks wrong, take a look at the
source
  code.
 
  HTH
 
  Bogdan
 
  Chris Cocuzzo wrote:
 
   hey-
  
   ok. I have the following code.
   ?php
  
   if($submit) {
 
echo(Input date: $datebr\n);
 
  
   $arradate = explode(/,$date);
   $uxdate = mktime(0,0,0,$arradate[0],$arradate[1],$arradate[2]);
   print $uxdate;
   }
   else {
   ?
form action=strtotime.php method=POST file://name of file
is
   strtotime.php
input type=text name=date size=30
input type=submit name=submit value=submit
   ?
   }
   ?
 
 
 
  --
  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] PHP/MYSQL ..what the hell is wrong here...

2001-12-25 Thread Chris Cocuzzo

hey-

Ok so my plan with this stuff is to enter in a few fields for a gig into the database.

Here's the code for the page where i enter the info in:

form action=/lib/submit.php method=POST target=_new
  Date:nbsp;input type=text name=date size=30br
  Location:nbsp;input type=text name=location size=30br
  Venue:nbsp;input type=text name=venue size=30br
  Info:br
  textarea name=info/textarea
  input type=hidden name=table value=gigs
  input type=submit value=submit
 /form

here's the submit.php page ..which is the one that I suspect is giving me problems:

case 'gigs':
 print $datebr;
 $date = strtotime($date);
 print $datebr;
 $query = INSERT INTO gigs VALUES('0','$date','$location','$venue','$info');
 break;

I'm almost positive it has nothing to do with the quotes, because it never ran into a 
problem before with the quotes in the SQL statement. is there something wrong with 
that line that has the strtotime() function in it? ...Both of the print statements 
there are printing the correct values. 

here's the database description of that table:
+--+---+--+-+-++
| Field| Type  | Null | Key | Default | Extra  |
+--+---+--+-+-++
| showid   | mediumint(5)  |  | PRI | NULL| auto_increment |
| date | timestamp(10) | YES  | | NULL||
| location | varchar(40)   |  | | ||
| venue| varchar(40)   |  | | ||
| info | mediumtext|  | | ||
+--+---+--+-+-++

and when i query it i get this:
+++-+--+---+
| showid | date   | location| venue| info  |
+++-+--+---+
|  1 | 00 | Framingham, Ma. | Denison Hall | -TBA- |
+++-+--+---+

the date field is empty, but it should be filled. When i enter in the value for the 
date field in the form, I enter it as such: Jan 11, 2002  . I tested this beforehand 
and it worked. What the hell is wrong??

-chris





Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread Chris Cocuzzo

my apologies.

my question is, how do i solve the problem of having the source show up in
my browser when i call a php page based on the information i provided, or
didn't provide that I should've modified in the .conf file

chris

- Original Message -
From: The Big Roach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 8:42 AM
Subject: Re: [PHP]I know I know, but quick Apache/PHP question


 Chris,

 I'm a bit lost... what exactly is your question?

 Chris Cocuzzo [EMAIL PROTECTED] wrote in message
 010e01c17e0d$d28e72b0$ae687780@webs224">news:010e01c17e0d$d28e72b0$ae687780@webs224...
 hey-

 I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to
 getting this installed correctly. I've edited my httpd.conf file to the
 point where if I call the php file I want, I get the source in the browser

 here's what my .conf file says?

 ScriptAlias /php/ c:/php/

 and then further down in the file...

 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps
 Action application/x-httpd-php C:/php/php.exe

 can someone point me in the right direction ..?

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



-- 
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]I know I know, but quick Apache/PHP question

2001-12-05 Thread Chris Cocuzzo

hey-

I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to getting this 
installed correctly. I've edited my httpd.conf file to the point where if I call the 
php file I want, I get the source in the browser

here's what my .conf file says?

ScriptAlias /php/ c:/php/

and then further down in the file...

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php C:/php/php.exe

can someone point me in the right direction ..?

-chris-



[PHP]Packing file data into a variable???

2001-09-22 Thread Chris Cocuzzo

hey-

my main goal here is to be able to stream an mp3 through any player that can accept 
m3u files. My idea was to use the format of an m3u file, which looks like this:

#EXTM3U
#EXTINF:324,cs-1.mp3
http://www.fplg.net/audio/cs-1.mp3

and pack it into a variable to be sent out using a header command...as such:

$buffer = #EXTM3U\n;
$buffer .= #EXTINF:-1,cs-1.mp3\n;
$buffer .= http://www.fplg.net/audio/cs-1.mp3;

I'm not sure of the exact header command I should use, or rather the format of the 
command I'd send using the header function, but is this possible or do I need to do 
this some other way??

chris



[PHP]Urgent Question

2001-08-16 Thread Chris Cocuzzo

hey-

this has ABSOLUTELY no relation to php in any way, however I wanted to ask.
I'm about to order a computer for school. I need opinions on Gateway vs.
Dell and vice versa. So far, I'm leaning towards gateway(more bang for the
buck)

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




[PHP]Problem with Error/Mail/something...

2001-08-13 Thread Chris Cocuzzo

hey-

I wrote this form checker/mailer for my website. I feel like I may have
written it wrong, however there are a few things I wanted to ask about. I
think I may be having a problem with how I'm checking if the mail was sent,
or maybe something with the if statement to see if the submit button was
pressed. Maybe it's a problem with the way I'm using variables in all of my
functions, I have no idea...I'm getting a 500 error pretty much all the
time, except when the page first loads, in which case the action is set to 1
and it works fine, but after that, nothing works...can someone help figure
out what's wrong?

-chris
here's the code--
?
include(/home/fplg/lib/functions.php);

echo starting pagebr;
if(!isset($action)) {
 $action = 1;
}
echo finished isset action ifbr;

echo starting if for submit checkbr;
if($submit) {
 file://$action = 2;
 echo inside ifbr;
 $match = ereg(^[^@ ]+@[^@ ]+\.[^@ \.]+$, $sender);
 echo set match to eregbr;

 echo entering mailto ifbr;
 if(!isset($mailto)) {
  echo inside mailto ifbr;
  array_push($error_fields, Mail To Field(select name from list);
  $action = 3;
 }

 echo entering sender ifbr;
 if(!isset($sender)) {
  echo inside sender ifbr;
  array_push($error_fields, From Field(fill in your email
address));
  $action = 3;
 }
 echo else statement for sender ifbr;
 else {
  echo entering match ifbr;
  if(!match) {
   echo inside match ifbr;
   array_push($error_fields, Invalid Email Address(please
reenter your email address));
   $action = 3;
  }
  echo done with match ifbr;
 }

 echo entering subject ifbr;
 if(!isset($subject)) {
 echo inside subject ifbr;
 array_push($error_fields, Empty Subject(please fill in the subject
field for your message));
 $action = 3;
 }

 echo entering body ifbr;
 if(!isset($body)) {
 echo inside body ifbr;
 array_push($error_fields, Empty Body field(please type some text
in your for message));
 $action = 3;
 }

 echo entering if for empty error fields arraybr;
 if(empty($error_fields)) {
  echo inside empty array ifbr;
  $send_to = $people[$mailto];
  $sender = chop($sender);
  $subject = chop($subject);
  $body = chop($body);
  $body = htmlspecialchars($body);
  $mail_headers = '';
  $mail_headers .= From:$sender\r\n;
  $mail_headers .= Reply-to:$sender\r\n;
 }

 echo entering else for empty arraybr;
 else {
  echo inside elsebr;
  $action = 3;
 }

 echo entering if for mailbr;
 if(!mail($send_to,$subject,$body,$mail_headers)) {
  echo inside mail ifbr;
  $action = 4;
 }

}
echo outside of submit ifbr;

echo entering switch statementbr;
switch($action) {
 case 1:
  echo in case 1br;
  header_start(FPLG: CONTACT US!);
  display_form();
  break;
 case 2:
  echo in case 2br;
  header_start(FPLG: Mail status.);
  display_conf();
  break;
 case 3:
  echo in case 3br;
  header_start(FPLG: Form error.);
  display_error($error_fields);
  display_form();
  break;
 case 4:
  echo in case 4br;
  header_start(FPLG: Sending Error.);
  display_m_err();
  break;
}

echo outside of switchbr;

function display_form() {
 global $send_to,$sender,$subject,$body;
?
 center
 form method=POST action=contact.php
 table width=692 cellspacing=1 cellpadding=0
  tr align=center
   td colspan=2 bgcolor=#ff6600
font size=2 face=verdana color=#ff
   /td
  /tr
  tr align=center
   td width=35% bgcolor=#808080 valign=top
font face=verdana size=2 color=#ffTo:/fontbr
select name=mailto size=1 style=BACKGROUND-COLOR: rgb(0,0,0);
BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px
solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP:
rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none;
FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT:
normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN:
center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle;
scrollbar-arrow-color:#ff; scrollbar-base-color:#808080;
scrollbar-Highlight-Color:#ff
 option selectedSelect from this list/option
 option value=bandBand/option
 option value=bookingBooking/option
 option value=jamieJamie Balmer/option
 option value=chrisChris Cocuzzo/option
 option value=jaredJared Salavatore/option
 option value=maxMax Baehr/option
 option value=benBen Brenner/option
 option value=marcusMarcus Sholar/option
/select
   brbrbrbr
   font 

Re: [PHP] if(!$submit)

2001-08-07 Thread Chris Cocuzzo

try.

if(isset($submit))
{
}

chris


- Original Message -
From: Tarrant Costelloe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 10:47 AM
Subject: [PHP] if(!$submit)


 When using if (!$submit)  I get an error saying:
 Warning: Undefined variable: submit in C:\Inetpub\webpub\default.php on
line
 1
 Fair enough, so then I add if (isset(!$submit)) and I then get an error;
 Parse error: parse error, expecting `T_VARIABLE' or `'$''
 Could someone please tell me the more than likely simple sollution.

 Thanks

 Taz

 --
 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]REPOST: DB logic help...

2001-08-01 Thread Chris Cocuzzo

hey-

ok, so I've worked on my problem a bit, and here's what I came up, and note
this is the whole page.


?php

include(/home/fplg/lib/functions.php);
include(/home/fplg/db/db_config.php);

$conn = db_connect(fplg);

$bandquery = SELECT linkid,title FROM links WHERE cat='band';
$sitequery = SELECT linkid,title FROM links WHERE cat='site';
$miscquery = SELECT linkid,title FROM links WHERE cat='misc';

$bandresult = mysql_query($bandquery,$conn);
$siteresult = mysql_query($sitequery,$conn);
$miscresult = mysql_query($miscquery,$conn);

header_start(FPLG:Links);
?

table width=692 cellspacing=0 cellpadding=0
 tr align=center
  td width=230 bgcolor=#ff6600 align=center
   font face=verdana,arial size=2 color=#ffBands/font
  /td
  td width=230 bgcolor=#ff6600 align=center
   font face=verdana,arial size=2 color=#ffSites/font
  /td
  td width=230 bgcolor=#ff6600 align=center
   font face=verdana,arial size=2 color=#ffOther/font
  /td
 /tr
 tr align=center
  td width=230 bgcolor=#a9a9a9 align=center
  ?php
  while($band_data = mysql_fetch_array($bandresult));
  {
  ?
   a href=/jump.php?linkid=?php echo $band_data[linkid];?
class=hov1 target=_newfont size=2 face=verdana,arial
color=WHITE?php echo $band_data[title];?/font/a
   brbr
  ?php
  }
  ?
  /td
  td width=230 bgcolor=#a9a9a9 align=center
  ?php
  while($site_data = mysql_fetch_array($siteresult));
  {
  ?
   a href=/jump.php?linkid=?php echo $site_data[linkid];?
class=hov1 target=_newfont size=2 face=verdana,arial
color=WHITE?php echo $site_data[title];?/font/a
   brbr
  ?php
  }
  ?
  /td
  td width=230 bgcolor=#a9a9a9 align=center
  ?php
  while($misc_data = mysql_fetch_array($miscresult));
  {
  ?
   a href=/jump.php?linkid=?php echo $misc_data[linkid];?
class=hov1 target=_newfont   size=2 face=verdana,arial
color=WHITE?php echo $misc_data[title];?/font/a
   brbr
  ?php
  }
  ?
  /td
  td width=230 bgcolor=#a9a9a9 align=center
 /tr
/table
/body
/html

this is supposed to display link information from my db in three columns,
one for bands, one for sites, and one for misc. only problem is that it's
not displaying correctly, as you can see: www.fplg.net/links.php

any ideas on what the problem is?

chris

- Original Message -
From: Jon Haworth [EMAIL PROTECTED]
To: 'Chris Cocuzzo' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 11:57 AM
Subject: RE: [PHP]REPOST: DB logic help...


 What about something like:

 ?php

 $sql_bands = SELECT Link FROM Table WHERE Category='band';
 $sql_sites = SELECT Link FROM Table WHERE Category='site';
 $sql_other = SELECT Link FROM Table WHERE Category='other';

 $query_bands = mysql_query($sql_bands);
 $query_sites = mysql_query($sql_sites);
 $query_other = mysql_query($sql_other);

 echo table;
 echo trtdBands/tdtdSites/tdtdOther/td/tr;

 do {
 $data = false;
 echo tr;
 if ($row_bands = mysql_fetch_array($query_bands)) {
 echo td. $row_bands[Link]. /td;
 $data = true;
 } else {
 echo tdnbsp;/td;
 }
 if ($row_sites = mysql_fetch_array($query_sites)) {
 echo td. $row_sites[Link]. /td;
 $data = true;
 } else {
 echo tdnbsp;/td;
 }
 if ($row_other = mysql_fetch_array($query_other)) {
 echo td. $row_other[Link]. /td;
 $data = true;
 } else {
 echo tdnbsp;/td;
 }
 echo /tr;
 } while ($data == true);

 echo /table;

 ?

 It's untested, and fairly inelegant in that you get an empty row at the
 bottom, so you could count the rows for each set beforehand as part of the
 SQL instead of using $data as I have - but it may be a good starting
point.

 HTH
 Jon


 -Original Message-
 From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
 Sent: 31 July 2001 16:36
 To: [EMAIL PROTECTED]
 Subject: [PHP]REPOST: DB logic help...


 hey-

 I have a few pages on my website which need to be divided up into
different
 columns and rows based on a category in a table. for example, on a links
 page, I have three different columns, one for bands, one for sites, and
one
 for other things. I'm storing those things in the table with a category
 field, so that when I output the data, it goes to the right place. However
 I'm a little unsure of the actual code to do this...

 can someone lend me an example or give me some ideas?

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

 --
 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]Getting rows in a db...

2001-08-01 Thread Chris Cocuzzo

hey-

if I do this:

$query = SELECT user FROM table WHERE cat='band';
$result = mysql_query($query,$conn);
$rows = mysql_num_rows($result);

will I get something back from the $rows variable, or am I using the
mysql_num_rows() function incorrectly. What I'm trying to do is get the
number of rows returned as a result of that specific sql statement and
query.

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




[PHP]REPOST: DB logic help...

2001-07-31 Thread Chris Cocuzzo

hey-

I have a few pages on my website which need to be divided up into different
columns and rows based on a category in a table. for example, on a links
page, I have three different columns, one for bands, one for sites, and one
for other things. I'm storing those things in the table with a category
field, so that when I output the data, it goes to the right place. However
I'm a little unsure of the actual code to do this...

can someone lend me an example or give me some ideas?

thanks
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]REPOST: DB logic help...

2001-07-31 Thread Chris Cocuzzo

thanks jon. I think that's a step in the right direction. I've included a
sample of the HTML of the links page so you can get a better idea as to how
i want things to look. Your code below looks awesome, the only thing I was
curious about though was that it would create a table with only one column
when it's running through the loop. maybe I'm wrong, what are your
thoughts?..

here's the html:
tr
  td width=160 valign=top bgcolor=#08296b
   font face=verdana size=1
a href=http://www.soulive.com; class=hov1
target=_blankSoulive/a
brbr
a href=http://www.addisongroove.com; class=hov1
target=_blankAddison Groove Project/a
brbr
a href=http://www.deepbananablackout.com; class=hov1
target=_blankDeep Banana Blackout/a
brbr
a href=http://www.theslip.com; class=hov1 target=_blankThe
Slip/a
brbr
a href=http://www.miracleorchestra.com; class=hov1
target=_blankMiracle Orchestra/a
brBr
a href=http://www.ulu.net; class=hov1 target=_blankulu/a
brbr
a href=http://www.jemstatic.com; class=hov1 target=_blankJem
Static/a
brbr
a href=http://members.aol.com/weezer1029/; class=hov1
target=_blankPremiere/a
brbr
a href=http://www.tgqonline.com; class=hov1 target=_blankTodd
Gaynor Quartet/a
   /font
  /td
  td width=160 valign=top bgcolor=#08296b
   font face=verdana size=1
a href=http://www.mp3.com; class=hov1 target=_blankMP3.com/a
brbr
a href=http://www.soundclick.com; class=hov1
target=_blankSoundclick/a
brbr
a href=http://www.jambase.com; class=hov1
target=_blankJambase/a
brbr
a href=http://www.jambands.com; class=hov1
target=_blankJambands.com/a
brbr
a href=http://www.gigcity.com; class=hov1
target=_blankGigCity/a
brbr
a href=http://www.thesoundboard.com; class=hov1
target=_blankthesoundboard/a
   /font
  /td
  td width=160 valign=top bgcolor=#08296b
   font face=verdana size=1
a href=http://www.velourmusic.com; class=hov1 target=_blankVelour
Music/a
brbr
a href=http://www.gamelan.tv; class=hov1 target=_blankGamelan
Productions/a
brbr
a href=http://www.supersonicrecording.com; class=hov1
target=_blankSupersonic Studios/a
brbr
a href=http://www.ccnow.com; class=hov1 target=_blankCCNow/a
brbr
a href=http://www.unionst.com; class=hov1 target=_blankThe
Attic/a
   /font
  /td
 /tr
/table

I realize all that is very long, but I wanted you to see it all. that's how
I need it to come out from the db.

thanks a lot, and I'll be working on it myself.

chris



- Original Message -
From: Jon Haworth [EMAIL PROTECTED]
To: 'Chris Cocuzzo' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 11:57 AM
Subject: RE: [PHP]REPOST: DB logic help...


 What about something like:

 ?php

 $sql_bands = SELECT Link FROM Table WHERE Category='band';
 $sql_sites = SELECT Link FROM Table WHERE Category='site';
 $sql_other = SELECT Link FROM Table WHERE Category='other';

 $query_bands = mysql_query($sql_bands);
 $query_sites = mysql_query($sql_sites);
 $query_other = mysql_query($sql_other);

 echo table;
 echo trtdBands/tdtdSites/tdtdOther/td/tr;

 do {
 $data = false;
 echo tr;
 if ($row_bands = mysql_fetch_array($query_bands)) {
 echo td. $row_bands[Link]. /td;
 $data = true;
 } else {
 echo tdnbsp;/td;
 }
 if ($row_sites = mysql_fetch_array($query_sites)) {
 echo td. $row_sites[Link]. /td;
 $data = true;
 } else {
 echo tdnbsp;/td;
 }
 if ($row_other = mysql_fetch_array($query_other)) {
 echo td. $row_other[Link]. /td;
 $data = true;
 } else {
 echo tdnbsp;/td;
 }
 echo /tr;
 } while ($data == true);

 echo /table;

 ?

 It's untested, and fairly inelegant in that you get an empty row at the
 bottom, so you could count the rows for each set beforehand as part of the
 SQL instead of using $data as I have - but it may be a good starting
point.

 HTH
 Jon


 -Original Message-
 From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
 Sent: 31 July 2001 16:36
 To: [EMAIL PROTECTED]
 Subject: [PHP]REPOST: DB logic help...


 hey-

 I have a few pages on my website which need to be divided up into
different
 columns and rows based on a category in a table. for example, on a links
 page, I have three different columns, one for bands, one for sites, and
one
 for other things. I'm storing those things in the table with a category
 field, so that when I output the data, it goes to the right place. However
 I'm a little unsure of the actual code to do this...

 can someone lend me an example or give me some ideas?

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


-- 
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]DB Logic help...

2001-07-30 Thread Chris Cocuzzo

hey-

I have a few pages on my website which need to be divided up into different
columns and rows based on a category in a table. for example, on a links
page, I have three different columns, one for bands, one for sites, and one
for other things. I'm storing those things in the table with a category
field, so that when I output the data, it goes to the right place. However
I'm a little unsure of the actual code to do this...

can someone lend me an example or give me some ideas?

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




[PHP]Formatting problem...

2001-07-25 Thread Chris Cocuzzo

hey-

this is a little bit off topic, but it relates. I'm pulling a field called
info from my db. When I entered the info into the db in the first place, I
added the '\n' character so that the HTML result wouldn't be all on one
line. The problem is that when the page displays...the text in that
particular part of the table doesn't look right...there's a significant
space in between the bottom of the cell where there is some text, and all of
the other text. I have a feeling it's because of the way the text is written
in between the tags..

here's the example:
Here's the code that results in the odd formatting...
td width=292 bgcolor=#a9a9a9 valign=top
   font face=verdana,arial size=1 color=#ff?php echo
stripcslashes($gdata[info]);?/font
/td

here's html from when i did this same page without any php elements(nearly
the same)...
td width=292 valign=top
   font face=verdana size=1We're playing once again at the Corner area
of the Middle East.
   Show starts at 10pm, free admission. This one is apparently 18+, but if
you're a risky person
   you can try to get in to eat/drink before we play and then stay for the
show.
   /font
  /td

notice that the text in the second one is spaced out on a few lines, but
there isn't a line break anywhere...that text in the second example looks
correct in the browser...

here's the page with the problem: www.fplg.net/gigs.php

anyone else have this problem??

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]




[PHP] Need some help with this idea!

2001-07-24 Thread Chris Cocuzzo

hey-

I want to select the oldest show from a database to display on my main page,
since the oldest show is also the show happening closest to any current
time(if that makes sense...). I included a timestamp field in my table of
shows in anticipation of checking that to find out what was the oldest.
however, I'm wondering how I should go about doing that exactly. my idea was
the scan through just that column of timestamps, find the lowest one, and
then make a selection from the db based on the timestamp. Can any give me
some examples of code to scan through a column like i mentioned, or give me
better ideas on how to do this??

thanks
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] Need some help with this idea!

2001-07-24 Thread Chris Cocuzzo

you bring up something I've been wondering about, can I fetch just a single
row to output?

chris


- Original Message -
From: Remo Pini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 11:13 AM
Subject: RE: [PHP] Need some help with this idea!


 select * from whatnot order by timestampcolumn desc limit 1

 if the limit 1 doesn't work with your db, just fetch the first result
 only...

 greets,
 remo

  -Original Message-
  From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 24, 2001 8:28 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Need some help with this idea!
 
 
  hey-
 
  I want to select the oldest show from a database to display on my
  main page,
  since the oldest show is also the show happening closest to any current
  time(if that makes sense...). I included a timestamp field in my table
of
  shows in anticipation of checking that to find out what was the oldest.
  however, I'm wondering how I should go about doing that exactly.
  my idea was
  the scan through just that column of timestamps, find the lowest one,
and
  then make a selection from the db based on the timestamp. Can any give
me
  some examples of code to scan through a column like i mentioned,
  or give me
  better ideas on how to do this??
 
  thanks
  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]
 
 


 --
 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]Question about escaping a character

2001-07-24 Thread Chris Cocuzzo

hey-

I have a textarea field for an admin page which does allow me to enter in
basically anything, including HTML. The information is written to a
text-file, from which info is pulled on a different page. When the info is
read on that page(this is not the admin page right here)...all the single
quote marks are escaped with a backslash. how do i fix that so that the
quotes look normal when the file is read?

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]Question about escaping a character

2001-07-24 Thread Chris Cocuzzo

a ha!

I'll actually correct you by saying that I need to run stripslashes() when
I'm reading the file, not writing it, as I just did, and now it works.   :)

chris

- Original Message -
From: Bob Scott [EMAIL PROTECTED]
To: Chris Cocuzzo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 6:32 PM
Subject: Re: [PHP]Question about escaping a character


 Run the string through stripslashes() before you write
 it to the file...

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

 Cheers
 -bob

 --
 Bob Scott   Web / DB Developer
 http://www.covalent.netCovalent Technologies, Inc.

 On Tue, 24 Jul 2001, Chris Cocuzzo wrote:

  hey-
 
  I have a textarea field for an admin page which does allow me to enter
in
  basically anything, including HTML. The information is written to a
  text-file, from which info is pulled on a different page. When the info
is
  read on that page(this is not the admin page right here)...all the
single
  quote marks are escaped with a backslash. how do i fix that so that the
  quotes look normal when the file is read?
 
  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]
 
 


 --
 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]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo

hey-

I have a piece of code which does a simply INSERT query into an mp3 table.
I've tested it out, and it completes the query, however there is one bug
that I just have no clue about.

this code does not work when i try to connect to the db:
include(lib/db_config.php);

$connection = db_connect(fplg);
if(!connection) {
 die(sql_error());
}
the include fails and so the db_connect function is undefined.

this code works:
include(db_config.php);

$connection = db_connect(fplg);
if(!connection) {
 die(sql_error());
}

I DO have a directory called lib in my root folder. am I calling the include
wrong in that first piece. Note that I also tried the first one with a
foward slash in front of the 'lib', but had no luck.

help!
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]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo

the lib directory is under the root directory, or the www directory, where
all the normal files have been put. i figured out that the include worked
better when I specified the entire system path.

chris


- Original Message -
From: Unni [EMAIL PROTECTED]
To: Chris Cocuzzo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 3:52 PM
Subject: Re: [PHP]include question, WHY doesn't this work...


 Is the lib direcotory under the working directory, I mean, if your
 program is excuting  under temp directory, the lib directory has to be
 below temp directory. If you are running this program from the root
 directory then lib has to be below root directory.
 Your code looks good to me.
 One more thing I can think of is, do you read access to lib directory,
 just curious.

 Chris Cocuzzo wrote:

  hey-
 
  I have a piece of code which does a simply INSERT query into an mp3
table.
  I've tested it out, and it completes the query, however there is one bug
  that I just have no clue about.
 
  this code does not work when i try to connect to the db:
  include(lib/db_config.php);
 
  $connection = db_connect(fplg);
  if(!connection) {
   die(sql_error());
  }
  the include fails and so the db_connect function is undefined.
 
  this code works:
  include(db_config.php);
 
  $connection = db_connect(fplg);
  if(!connection) {
   die(sql_error());
  }
 
  I DO have a directory called lib in my root folder. am I calling the
include
  wrong in that first piece. Note that I also tried the first one with a
  foward slash in front of the 'lib', but had no luck.
 
  help!
  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]




[PHP]MySQL error, what's wrong here..

2001-07-23 Thread Chris Cocuzzo

?php
  $id = rand(1,2);
  $query = SELECT songname FROM mp3 WHERE sgid =  .$id;
  $result = mysql_query($query,$connection);
  $mp3d = mysql_fetch_array($result);
  ?

the server is telling me line 43(which starts with $mp3d) is not a valid
mysql result resource. what am i doing wrong??

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]MySQL error, what's wrong here..

2001-07-23 Thread Chris Cocuzzo

alright, new problem, no more errors, but there's just nothing...here's the
code:

?php
  $id = rand(1,2);
  $query = SELECT name FROM mp3 WHERE songid = ' .$id.';
  $result = mysql_query($query,$connection);
  while($mp3d = mysql_fetch_array($result))
  {
   $mp3d = mysql_fetch_array($result);
  ?
  a href=http://www.fplg.net/stream.php?songid=?php echo $id;?
class=hov1?php echo $mp3d[name];?/a
  ?php
  }
  ?
  /td
 /tr

and here's what the HTML code looks like from the page when i test it out..
a href=http://www.fplg.net/stream.php?songid=2; class=hov1/a

what's going on with that...
chris

- Original Message -
From: James Bogosian [EMAIL PROTECTED]
To: Chris Cocuzzo [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 7:25 PM
Subject: RE: [PHP]MySQL error, what's wrong here..


 Try:

   $query = SELECT songname FROM mp3 WHERE sgid = ' .$id.';

 an SQL query requires you to quote strings.

 james

 -Original Message-
 From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 23, 2001 6:57 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP]MySQL error, what's wrong here..


 ?php
   $id = rand(1,2);
   $query = SELECT songname FROM mp3 WHERE sgid =  .$id;
   $result = mysql_query($query,$connection);
   $mp3d = mysql_fetch_array($result);
   ?

 the server is telling me line 43(which starts with $mp3d) is not a valid
 mysql result resource. what am i doing wrong??

 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]



 --
 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]MySQL error, what's wrong here..

2001-07-23 Thread Chris Cocuzzo

maybe my sql syntax is completely wrong, but the $id part was a random
number i generated, and then I was saying WHERE songid(which is the database
field) is equal to $id. is that the wrong way?

the reason why it's songid in that second a tag is because I wanted the
random number to indentify the song pulled from the database..so the
database uses that number in the part where it
says...stream.php?songid=?php echo $id;?

tell me if I need to clarify!
chris

- Original Message -
From: Christopher Ostmo [EMAIL PROTECTED]
To: Chris Cocuzzo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 10:38 PM
Subject: Re: [PHP]MySQL error, what's wrong here..


 Chris Cocuzzo pressed the little lettered thingies in this order...

  alright, new problem, no more errors, but there's just nothing...here's
the
  code:
 
$query = SELECT name FROM mp3 WHERE songid = ' .$id.';
 
  a href=http://www.fplg.net/stream.php?songid=2; class=hov1/a
 

 Uhh... maybe I'm missing something here, but the URL supplies
 $songid and the query is getting $id.  Unless your getting $id from
 somewhere other than the URL, you're going to be getting only results
 with an empty songid field.  Another thing to try is to or die your
query
 to check to see if the SQL syntax is OK:
 $result=mysql_query($query,$connection) or die(mysql_error());

 Good luck...

 Christopher Ostmo
 a.k.a. [EMAIL PROTECTED]
 AppIdeas.com
 Innovative Application Ideas
 Meeting cutting edge dynamic
 web site needs since the
 dawn of Internet time (1995)

 Business Applications:
 http://www.AppIdeas.com/

 Open Source Applications:
 http://open.AppIdeas.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]logic question

2001-07-22 Thread Chris Cocuzzo

hey-

I'm in the process of writing a links page for a website. I want to have all
the links seperated by category, and those categories would be placed in
different columns. This means also that different categories of links could
be on the same row in the table used to lay it all out. i'm pulling the
category out of the mysql db, does anyone have an example i can look at on
how I might go about doing this??

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]




[PHP]OT I know, but WTF...

2001-07-15 Thread Chris Cocuzzo

hey-

I know this is off topic, but I figured i'd ask to see if other people were
experiencing similar problems. I'm having trouble accessing web sites/pages
that are secure(https...obviously). I tried changing everything around in IE
6, but so far nothing is working...any ideas?

the error is the normal, annoying, page can't be found or dns error bull.

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]OT I know, but WTF...

2001-07-15 Thread Chris Cocuzzo

platform: win 98 se
browser: IE 6 public beta
proxie: not using one or whatever
connection: LAN-mediaone

-Original Message-
From: DAve Goodrich [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 15, 2001 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]OT I know, but WTF...


Browser?
Platform?
Proxie?
Connection type?

DAve

on 7/15/01 9:08 AM, Chris Cocuzzo at [EMAIL PROTECTED] wrote:

 hey-

 I know this is off topic, but I figured i'd ask to see if other people
were
 experiencing similar problems. I'm having trouble accessing web
sites/pages
 that are secure(https...obviously). I tried changing everything around in
IE
 6, but so far nothing is working...any ideas?

 the error is the normal, annoying, page can't be found or dns error bull.

 chris


--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655
[EMAIL PROTECTED]
http://www.rblc.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]OT I know, but WTF...

2001-07-15 Thread Chris Cocuzzo

alright.

i reinstalled the more stable IE5, however I'm still experiencing problems
accessing https sites. any ideas(I went through all the settings too,
nothing seems to work).

chris

-Original Message-
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 15, 2001 10:38 PM
To: Chris Lambert - WhiteCrown Networks; [EMAIL PROTECTED]
Subject: Re: [PHP]OT I know, but WTF...


: )

- Original Message -
From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 15, 2001 7:10 PM
Subject: Re: [PHP]OT I know, but WTF...


 That the IE6 beta is a beta.

 /* Chris Lambert, CTO - [EMAIL PROTECTED]
 WhiteCrown Networks - More Than White Hats
 Web Application Security - www.whitecrown.net
 */

 - Original Message -
 From: Chris Anderson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; PHP General List (E-mail)
 [EMAIL PROTECTED]
 Sent: Sunday, July 15, 2001 5:35 PM
 Subject: Re: [PHP]OT I know, but WTF...


 | I've actually had an MS representative tell me not to use the IE6 beta.
 | What's that tell you?
 | - Original Message -
 | From: Chris Cocuzzo [EMAIL PROTECTED]
 | To: PHP General List (E-mail) [EMAIL PROTECTED]
 | Sent: Sunday, July 15, 2001 12:08 PM
 | Subject: [PHP]OT I know, but WTF...
 |
 |
 |  hey-
 | 
 |  I know this is off topic, but I figured i'd ask to see if other people
 | were
 |  experiencing similar problems. I'm having trouble accessing web
 | sites/pages
 |  that are secure(https...obviously). I tried changing everything around
 in
 | IE
 |  6, but so far nothing is working...any ideas?
 | 
 |  the error is the normal, annoying, page can't be found or dns error
 bull.
 | 
 |  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]
 | 
 | 
 |
 |
 | --
 | 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]I'm puzzled. TEXTAREA related.

2001-07-11 Thread Chris Cocuzzo

hey-

i have a page containing a form with a textarea field. The first part of the
page is a quick IP check to make sure the request is coming from my
computer. Here's the code I'm confused about:


textarea rows=25 cols=80 name=news_info style=BACKGROUND-COLOR:
rgb(31,31,31); BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0)
1px solid; BORDER-RIGHT: rgb(0,0,0) 1px solid; BORDER-TOP: rgb(0,0,0) 1px
solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana;
FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT:
0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: left; TEXT-INDENT:
0px; VERTICAL-ALIGN: middle

?php
readfile(lib/news_file.dat);
?
/textarea
brbr
input type=submit name=submitnbsp;nbsp;
input type=reset name=resetbr

-this part above reads in data from the news file and it's put in between
the textarea tags, so editing it is easier, then there is this part:

?php
}

if($submit)
{
$fileh = fopen(lib/news_file.dat, w);
fwrite($fileh, $news_info);
fclose($fileh);
}
?

- that checks if the submit button was pressed, and if so, it writes the
data from the textarea to the file
- the problem I noticed was that if I submit with something in the textarea,
it doesn't display when the page loads again, which is weird, because the
action of the form is directed to the same page. but, if I press submit an
addditional time, the data I entered in the first time comes up...I don't
understand why it's not immediately showing up, since it does write to the
file when submit is pressed

please help!


-- 
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]somebody help me out here!

2001-07-09 Thread Chris Cocuzzo

hey-

I know I've seen an article/tutorial on the zend website very recently about
parsing urls. It was about being able to use urls which are search engine
friendly and only use the forward slashes, and it also included the code to
interpret all of that. Does anyone know of this article who can direct me to
WHERE it was on that site, or if not, to a site that has a similar article?

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




[PHP]need an opinion on this idea of mine...!!

2001-07-09 Thread Chris Cocuzzo

hey-

I'm writing my band's website mostly in PHP. My original idea was to use a
switch statement to compensate for all the different functions i would need
to use, for example a function to stream songs, download songs, display
links, display shows, etc...

I wanted to have all these functions on one master page called index.php,
and then have one of the functions within my switch statement be used for
display each individual page. So this function would include each separate
php file, and then basically the master file has all of the functions that
each page needs to function correctly. Is this a good idea?

also. related question. if I have a file called index.php, and I include the
file bio.php on that page, will the $PHP_SELF variable be set to bio.php, or
to index.php?

thanks
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]need an opinion on this idea of mine...!!

2001-07-09 Thread Chris Cocuzzo

ok, so it may be weak, but that's not really my question. If you think it's
not so good, what steps have you taken beyond just the basic fusebox code
architecture, and what OTHER methods would you think of using if you were in
my situation.

I figured it would make sense to have all functions on one master page, but
I don't have a problem making separate pages. I'm just looking for what
people think is the best, or rather the better way of doing this, or if none
of that applies, simply a DIFFERENT way?

thanks
chris

-Original Message-
From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 5:54 PM
To: [EMAIL PROTECTED]
Cc: PHP General List (E-mail)
Subject: Re: [PHP]need an opinion on this idea of mine...!!


Chris Cocuzzo wrote:

hey-

I'm writing my band's website mostly in PHP. My original idea was to use a
switch statement to compensate for all the different functions i would need
to use, for example a function to stream songs, download songs, display
links, display shows, etc...

I wanted to have all these functions on one master page called index.php,
and then have one of the functions within my switch statement be used for
display each individual page. So this function would include each separate
php file, and then basically the master file has all of the functions that
each page needs to function correctly. Is this a good idea?

also. related question. if I have a file called index.php, and I include
the
file bio.php on that page, will the $PHP_SELF variable be set to bio.php,
or
to index.php?

thanks
chris


In a nutshell, you've just described the 'fusebox' method.  Originated
under Cold Fusion, there are
movements to port this style to PHP and ASP, and probably other platforms.

It's not bad, but personally, I think it's a bit weak in some cases -
we've taken it a step further in house,
but the idea is similar.

fusebox.org has more info on this style.


Michael Kimsal
http://www.tapinternet.com/php/
PHP Training Courses
734-480-9961



-- 
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] Question about how to do this...

2001-07-08 Thread Chris Cocuzzo

hey-

so I want to have my site so that the urls are like /index.php?page=bio 
the way I made the index.php so far is just one gigantic switch
statement...is there a better way to do it?


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] Question about how to do this...

2001-07-08 Thread Chris Cocuzzo


what if I'm storing HTML into the database, or even PHP code itself for that
matter, is this method that you mentioned still better than the switch
statement method?

chris

-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 4:59 PM
To: [EMAIL PROTECTED]; 'PHP General List (E-mail)'
Subject: RE: [PHP] Question about how to do this...


Use a database.  With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text field of
some sort.

Then, do mysql_query(SELECT pagetext FROM website WHERE page=$page;);

=

Dive into it.  It's easier than it looks.

Ben

-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 1:44 PM
To: PHP General List (E-mail)
Subject: [PHP] Question about how to do this...

hey-

so I want to have my site so that the urls are like /index.php?page=bio

the way I made the index.php so far is just one gigantic switch
statement...is there a better way to do it?


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]



--
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 how to do this...

2001-07-08 Thread Chris Cocuzzo

so the switch statement idea works I guess. sounds good. 

-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:05 PM
To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)'
Subject: Re: [PHP] Question about how to do this...


This is probably not a good idea if the data is mostly static. There's no
real reason to use the power of a db engine for something this trivial, and
static serving will be faster than a DB system.

Mark C.

- Original Message -
From: Ben Bleything [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; 'PHP General List (E-mail)'
[EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 3:59 PM
Subject: RE: [PHP] Question about how to do this...


 Use a database.  With mysql, you can store the text into a table with
 primary key called 'page' or something like that, and a text field of
 some sort.

 Then, do mysql_query(SELECT pagetext FROM website WHERE page=$page;);

 =

 Dive into it.  It's easier than it looks.

 Ben

 -Original Message-
 From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 08, 2001 1:44 PM
 To: PHP General List (E-mail)
 Subject: [PHP] Question about how to do this...

 hey-

 so I want to have my site so that the urls are like /index.php?page=bio
 
 the way I made the index.php so far is just one gigantic switch
 statement...is there a better way to do it?


 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]



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




RE: [PHP] Question about how to do this...

2001-07-08 Thread Chris Cocuzzo

ok so if I use this method below, or a hash table, etcand it has an
include/require statement...in those files to be included...do I need to
start it off with the ?phpor can I just write all the code and it'll be
set?

chris

-Original Message-
From: Chris Lambert - WhiteCrown Networks [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Question about how to do this...


Or even better, create a system where you can create new pages without
adding to the switch statement:

?
$page = /home/full/path/to/site/page_includes/.str_replace(.., ,
$page);
if (file_exists($page))
require($page);
?

Note that you _need_ to have the full path, else you're creating a security
issue.

/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/

- Original Message -
From: Ben Bleything [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; 'PHP General List (E-mail)'
[EMAIL PROTECTED]
Sent: Sunday, July 08, 2001 5:17 PM
Subject: RE: [PHP] Question about how to do this...


| Yup =  Try splitting the pages out into separate files.  I'm betting
| you'll find it easier to work with.
|
| Ben
|
|
| -Original Message-
| From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, July 08, 2001 2:02 PM
| To: PHP General List (E-mail)
| Subject: RE: [PHP] Question about how to do this...
|
| so the switch statement idea works I guess. sounds good.
|
| -Original Message-
| From: Mark Charette [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, July 08, 2001 5:05 PM
| To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)'
| Subject: Re: [PHP] Question about how to do this...
|
|
| This is probably not a good idea if the data is mostly static. There's
| no
| real reason to use the power of a db engine for something this trivial,
| and
| static serving will be faster than a DB system.
|
| Mark C.
|
| - Original Message -
| From: Ben Bleything [EMAIL PROTECTED]
| To: [EMAIL PROTECTED]; 'PHP General List (E-mail)'
| [EMAIL PROTECTED]
| Sent: Sunday, July 08, 2001 3:59 PM
| Subject: RE: [PHP] Question about how to do this...
|
|
|  Use a database.  With mysql, you can store the text into a table with
|  primary key called 'page' or something like that, and a text field of
|  some sort.
| 
|  Then, do mysql_query(SELECT pagetext FROM website WHERE
| page=$page;);
| 
|  =
| 
|  Dive into it.  It's easier than it looks.
| 
|  Ben
| 
|  -Original Message-
|  From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
|  Sent: Sunday, July 08, 2001 1:44 PM
|  To: PHP General List (E-mail)
|  Subject: [PHP] Question about how to do this...
| 
|  hey-
| 
|  so I want to have my site so that the urls are like
| /index.php?page=bio
|  
|  the way I made the index.php so far is just one gigantic switch
|  statement...is there a better way to do it?
| 
| 
|  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]
| 
| 
| 
|  --
|  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 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] [php]using sendmail with php

2001-06-19 Thread Chris Cocuzzo

hey-
i noticed a recent post about the weird email that someone was getting from
a script that emails form data. I was curious on whether or not I could use
sendmail with php, to possibly get around this problem(I've run into it
myself). How might i do this?...

chris




RE: [PHP] [php]using sendmail with php

2001-06-19 Thread Chris Cocuzzo

the problem is that you get an email saying unauthorized user or something
like that, as the from field of the email, or you get the email in the
regular way, and then ANOTHER email with the unauthorized user crap


-Original Message-
From: Jamie Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 7:31 AM
To: PHP General List (E-mail)
Subject: RE: [PHP] [php]using sendmail with php


What is this problem you speak of? I have never come across any problems
with mail().maybe i'm not trying hard enough ;)

-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: 19 June 2001 05:04
To: PHP General List (E-mail)
Subject: [PHP] [php]using sendmail with php


hey-
i noticed a recent post about the weird email that someone was getting from
a script that emails form data. I was curious on whether or not I could use
sendmail with php, to possibly get around this problem(I've run into it
myself). How might i do this?...

chris




[PHP]OT, but dual-boot operating system question

2001-04-28 Thread Chris Cocuzzo

Hey,

completely OT i know...

In a few months when I put together for college, I'm considering doing a
dual-boot type system, with some windows OS, and also a unix OS. However, I
don't know that much about any free unix OS' that are out there. The two I
can think of to use would be Solaris and Linux. Can anyone give me some
advice on which to use, and also if possible point me to a site where I can
get information on doing this type of thing?

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] looking for a good shopping cart - catalog system

2001-04-23 Thread Chris Cocuzzo

check out:
www.fishcart.org

I would also suggest searching sourceforge for shopping cart apps.



-Original Message-
From: Roee Rubin [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 3:26 PM
To: Php-General
Subject: [PHP] looking for a good shopping cart - catalog system


Hello,

I am looking for a good shopping cart / catalog system open source solution
to be implemented for an ecommerce web site.

Any recommendation will be appreciated.

Thanks in advance.

Roee Rubin
Irubin Consulting
www.irubin.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] Regular Expressions?

2001-04-20 Thread Chris Cocuzzo

Maybe I'm wrong on this, but could this regex also be used like this?

if(eregi("^[a-zA-Z0-9]+\.[a-zA-Z0-9]+$", $myArray[x]))


--Chris

-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 1:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Regular Expressions?


I'm looking to compare if my array values match any digits or alpha
characters with a dot between them... so, if I think I understand Regular
Expressions (from what I could gather from PHP.net and Core PHP Programming
by Leon Atkinson.)

I want to match any of the following:

1.1 or a.a

or . or .-- any number of digits (0-9) or alpha (a-z)
on either side of the dot.

if(eregi("^([0-9][a-z]\.[0-9][a-z]", $myArray[x]))

Is this correct?  I think I'm missing something.

Thanks.
Jason




-- 
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] PHP/M3U Questions!!!

2001-04-17 Thread Chris Cocuzzo

Hey,

First I'll ask my OT question. I've been thinking lately of implementing a
system on my band's website where people can log in, and maintain a playlist
of all the mp3's I have on the site. Obviously when they want to play it, or
a single file, they can hit play and the m3u file will automatically
download to whatever mp3 player their using. If you used winamp, you
probably know the idea I'm getting at. Anyways...I'm confused on one part.

this is what the m3u file looks like:
#EXTM3U
#EXTINF:183,Greyboy Allstars - Jack Rabbit
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Jack Rabbit.mp3
#EXTINF:96,Greyboy Allstars - Let the music take your mind
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Let the music take your
mind.mp3
#EXTINF:184,Greyboy Allstars - Soul Dream
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Soul Dream.mp3
#EXTINF:105,Greyboy Allstars - Fried grease
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Fried grease.mp3
#EXTINF:119,Greyboy Allstars Who's Gonna Be The Junkie
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars Who's Gonna Be The Junkie.mp3
#EXTINF:117,Greyboy Allstars - Gravee
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Gravee.mp3

I understand all of this except for those numbers after the #EXTINF. Does
anyone know what they mean?

my php question is, what functions might I use to do something like this.
I've been checking out some code, and I've seen things like people using
buffers and http functions to get the whole thing working. Any ideas?

--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] PHP/M3U Questions!!!

2001-04-17 Thread Chris Cocuzzo

Ok that makes sense definitely. I guess I wonder. How would I code something
so I could find out the number of frames in a particular mp3 so I could
generate the m3u file? I've seen a lot of this stuff implemented in PERL,
however I'm not familiar with PERL that much, so it wouldn't matter.
PHP-wise, any ideas on how to find that number of frames?

--chris


-Original Message-
From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 4:54 PM
To: [EMAIL PROTECTED]; PHP General List (E-mail)
Subject: Re: [PHP] PHP/M3U Questions!!!


At 04:43 PM 4/17/2001, Chris Cocuzzo wrote:

as far as I know the EXTINF is just data that win amp puts in play
lists.  its just the number of frames i believe then teh song title.  this
allows winamps play list editor to read the data for the files in the play
list without opening them all...on a large (450) or so that can take a long
time

hope this helps..

~kurth

Hey,

First I'll ask my OT question. I've been thinking lately of implementing a
system on my band's website where people can log in, and maintain a
playlist
of all the mp3's I have on the site. Obviously when they want to play it,
or
a single file, they can hit play and the m3u file will automatically
download to whatever mp3 player their using. If you used winamp, you
probably know the idea I'm getting at. Anyways...I'm confused on one part.

this is what the m3u file looks like:
#EXTM3U
#EXTINF:183,Greyboy Allstars - Jack Rabbit
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Jack Rabbit.mp3
#EXTINF:96,Greyboy Allstars - Let the music take your mind
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Let the music take your
mind.mp3
#EXTINF:184,Greyboy Allstars - Soul Dream
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Soul Dream.mp3
#EXTINF:105,Greyboy Allstars - Fried grease
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Fried grease.mp3
#EXTINF:119,Greyboy Allstars Who's Gonna Be The Junkie
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars Who's Gonna Be The Junkie.mp3
#EXTINF:117,Greyboy Allstars - Gravee
\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Gravee.mp3

I understand all of this except for those numbers after the #EXTINF. Does
anyone know what they mean?

my php question is, what functions might I use to do something like this.
I've been checking out some code, and I've seen things like people using
buffers and http functions to get the whole thing working. Any ideas?

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


--
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/M3U Questions!!!

2001-04-17 Thread Chris Cocuzzo

nevermind!

I'm all set I believe. I took a look at an m3u file in notepad that had
stream files(as in I told it to play a URL). Apparently the number after the
#EXTINF is always -1 for a streamed file. So thanks for all the help.

--Chris


-Original Message-
From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 5:21 PM
To: [EMAIL PROTECTED]; PHP General List (E-mail)
Subject: RE: [PHP] PHP/M3U Questions!!!


At 05:12 PM 4/17/2001, Chris Cocuzzo wrote:

theres a formula for figuring out how many frames based on file size and
timehowever if your making a playlist with 20 or so entries the
EXTINF's aren't really nessary

~kurth

Ok that makes sense definitely. I guess I wonder. How would I code
something
so I could find out the number of frames in a particular mp3 so I could
generate the m3u file? I've seen a lot of this stuff implemented in PERL,
however I'm not familiar with PERL that much, so it wouldn't matter.
PHP-wise, any ideas on how to find that number of frames?

--chris


-Original Message-
From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 4:54 PM
To: [EMAIL PROTECTED]; PHP General List (E-mail)
Subject: Re: [PHP] PHP/M3U Questions!!!


At 04:43 PM 4/17/2001, Chris Cocuzzo wrote:

as far as I know the EXTINF is just data that win amp puts in play
lists.  its just the number of frames i believe then teh song title.  this
allows winamps play list editor to read the data for the files in the play
list without opening them all...on a large (450) or so that can take a long
time

hope this helps..

~kurth

 Hey,
 
 First I'll ask my OT question. I've been thinking lately of implementing
a
 system on my band's website where people can log in, and maintain a
playlist
 of all the mp3's I have on the site. Obviously when they want to play it,
or
 a single file, they can hit play and the m3u file will automatically
 download to whatever mp3 player their using. If you used winamp, you
 probably know the idea I'm getting at. Anyways...I'm confused on one
part.
 
 this is what the m3u file looks like:
 #EXTM3U
 #EXTINF:183,Greyboy Allstars - Jack Rabbit
 \\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Jack Rabbit.mp3
 #EXTINF:96,Greyboy Allstars - Let the music take your mind
 \\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Let the music take your
 mind.mp3
 #EXTINF:184,Greyboy Allstars - Soul Dream
 \\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Soul Dream.mp3
 #EXTINF:105,Greyboy Allstars - Fried grease
 \\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Fried grease.mp3
 #EXTINF:119,Greyboy Allstars Who's Gonna Be The Junkie
 \\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars Who's Gonna Be The
Junkie.mp3
 #EXTINF:117,Greyboy Allstars - Gravee
 \\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Gravee.mp3
 
 I understand all of this except for those numbers after the #EXTINF. Does
 anyone know what they mean?
 
 my php question is, what functions might I use to do something like this.
 I've been checking out some code, and I've seen things like people using
 buffers and http functions to get the whole thing working. Any ideas?
 
 --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]


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




RE: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Chris Cocuzzo

scott,

try the entire SQL statement without single quotes around those variables.
except for when your setting the WHERE part. Try:

$sql ="UPDATE members SET ".
  "name=$name, ".
  "email=$email, ".
  "icq=$icq, ".
  "password=$password, ".
  "loginid=$loginid, ".
  "countryid=$countryid, ".
  "gtlogin=$gtlogin, ".
  "gtpass=$gtpass, ".
  "swirvelogin=$swirvelogin, ".
  "swirvepass=$swirvepass ".
  "WHERE id='$id'" ;

I could be wrong though, but just my two cents.

chris
www.variancecreations.net



-Original Message-
From: Scott VanCaster [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 5:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL Query syntax error... Help?


I've only been trying to learn this stuff for a few days and thought I was
on a roll, but now have run into a problem I don't get at all.  In my script
I have the following sql query and am receiving the following error when it
executes "You have an error in your SQL syntax near '' at line 1."

Any idea what my problem is?  I removed the WHERE id=$id and it works, but
updates every record of course :(

I'm lost here.  Thanks for any help.

$sql ="UPDATE members SET ".
  "name='$name', ".
  "email='$email', ".
  "icq='$icq', ".
  "password='$password', ".
  "loginid='$loginid', ".
  "countryid='$countryid', ".
  "gtlogin='$gtlogin', ".
  "gtpass='$gtpass', ".
  "swirvelogin='$swirvelogin', ".
  "swirvepass='$swirvepass' ".
  "WHERE id=$id" ;



--
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] SQL Query syntax error... Help?

2001-04-15 Thread Chris Cocuzzo

NEVERMIND! :)



-Original Message-
From: Scott VanCaster [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] SQL Query syntax error... Help?


Nevermind everyone, I'm an idiot :)

I had the case wrong.  I needed $ID, not $id  !

Thanks for the assistance though.  Nice to know ya'll are here.

Scott


""Scott VanCaster"" [EMAIL PROTECTED] wrote in message
9bd394$ikn$[EMAIL PROTECTED]">news:9bd394$ikn$[EMAIL PROTECTED]...
 I've only been trying to learn this stuff for a few days and thought I was
 on a roll, but now have run into a problem I don't get at all.  In my
script
 I have the following sql query and am receiving the following error when
it
 executes "You have an error in your SQL syntax near '' at line 1."

 Any idea what my problem is?  I removed the WHERE id=$id and it works, but
 updates every record of course :(

 I'm lost here.  Thanks for any help.

 $sql ="UPDATE members SET ".
   "name='$name', ".
   "email='$email', ".
   "icq='$icq', ".
   "password='$password', ".
   "loginid='$loginid', ".
   "countryid='$countryid', ".
   "gtlogin='$gtlogin', ".
   "gtpass='$gtpass', ".
   "swirvelogin='$swirvelogin', ".
   "swirvepass='$swirvepass' ".
   "WHERE id=$id" ;



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




RE: [PHP] Serializing/unserializing objects

2001-03-26 Thread Chris Cocuzzo

wow. I really don't think you can pull this off in a day. In any case, I'd
recommend checking out www.phpbuilder.com and looking through the articles

-Original Message-
From: Kevin Beckford [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Serializing/unserializing objects


What I want to do is to use an object to create a site.I plan on
initiaizing the object on my page index.php, and just recycling
index.php with different variables, so that I get different pages.
Ideally, I want the object to read a site config file, so that I can
modify the site config file for different sites which use the same
backend, and have each  sites page read that. What is the process of
object creation in php4? What happens when you call new objectname?
Where could I find this out (short of reading the source - I need to do
this by tomorrow...)


--
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] A few questions...

2001-03-25 Thread Chris Cocuzzo

hey-

Alright I noticed that question about URL parsing. I could've sworn I saw
some article on PHPBuilder.com that said that instead of doing all that
modifying with apache, you could simply write something to change the URL
with '?' and '' and '=' so that they symbols could be represented using a
simple /, does anyone remember seeing it?...

In any case, I'll ask, what would be the best way to do this with
scripting, something like str_replace() or perhaps a regular expression to
both modify the URL and then allow pages using that modified URL to
recognized the variable/value pairs? Or is that even possible?

My other question is this: Sometimes I notice URL's where it looks like
this, http://www.whatever.com/?blah=blahd=d, or
http://www.whatever.com/local?name=named=d. How is that done, where there
is no file extension after the file name, or no file name at all, just a
question mark directly after the slash?

thanks
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] A few questions...

2001-03-25 Thread Chris Cocuzzo

I think I just slightly unsure of how that explode() function works in this
situation...could you clarify further?

chris



-Original Message-
From: Jaxon [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 25, 2001 6:06 PM
To: [EMAIL PROTECTED]; PHP General List (E-mail)
Subject: Re: [PHP] A few questions...


Chris,

a few answers :)

On 3/25/01 5:43 PM, "Chris Cocuzzo" [EMAIL PROTECTED] wrote:

 hey-

 Alright I noticed that question about URL parsing. I could've sworn I saw
 some article on PHPBuilder.com that said that instead of doing all that
 modifying with apache, you could simply write something to change the URL
 with '?' and '' and '=' so that they symbols could be represented using a
 simple /, does anyone remember seeing it?...

dunno - think it's in the php.ini?

 In any case, I'll ask, what would be the best way to do this with
 scripting, something like str_replace() or perhaps a regular expression to
 both modify the URL and then allow pages using that modified URL to
 recognized the variable/value pairs? Or is that even possible?

You could... I'm hacking through using:

$path_array = explode('/', $REQUEST_URI);

$last_item  =   array_pop($path_array);
$next_to_last_item  =   array_pop($path_array); / item

only drawback is the positional stuff is fixed.
now I am trying to figure out how to generate my hrefs in the page to have a
matching structure

 My other question is this: Sometimes I notice URL's where it looks like
 this, http://www.whatever.com/?blah=blahd=d, or
 http://www.whatever.com/local?name=named=d. How is that done, where there
 is no file extension after the file name, or no file name at all, just a
 question mark directly after the slash?

probably the a .htaccess  or apache.conf directive:

Location /local
ForceType application/x-httpd-php3
/Location

This would send everything to a script called "local".
This is from: http://phpbuilder.com/columns/tim19990117.php3

hth,

regards,
jaxon

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


-- 
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] A few questions...

2001-03-25 Thread Chris Cocuzzo

right. ok I understand that explode function. But what I'm asking is not so
much once I have a URL in the form of /something/something/something
...etc.., but more if I have a URL like /something?d=af=g, to make it like
/something/d/a/f/g  ... do you know what I mean?


Chris

-Original Message-
From: Jaxon [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 25, 2001 6:32 PM
To: [EMAIL PROTECTED]; PHP General List (E-mail)
Subject: Re: [PHP] A few questions...


Chris,

 I think I just slightly unsure of how that explode() function works in
this
 situation...could you clarify further?


 $path_array = explode('/', $REQUEST_URI);

 $last_item  =   array_pop($path_array);
 $next_to_last_item  =   array_pop($path_array); / item

$REQUEST_URI contains the non-domin path (the URI) - it's a predefined
variable like $PHP_SELF, etc

http://www.php.net/manual/en/language.variables.predefined.php

in this explode() example, the '/' is the devider, so if you have

http://www.somedomain.com/dir1/dir2/dir3/somepage3.php

The URI is: /dir1/dir2/dir3/somepage3.php

and 'exploding' divides that into array elements (dir1, dir2, dir3,
somepage.php)

regards,
jaxon


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

2001-03-12 Thread Chris Cocuzzo

I'm slightly confused as to why you would not want it parsed and
executed...or I should say...what would be the differences in using the
include function vs. reading it in like a file??

Chris

-Original Message-
From: Rick St Jean [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 10:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] includes


I am looking for a simple way to include a file and not have it parsed.
But I also do no want to strip out the html and php.  Is there a way
to do a nice and simple include and set parsing to false?

Right now I use a fopen and fgets to read from the file.

include() will parse it and execute it.

All I want to do is include it raw... any ideas?

Rick
##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##


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

2001-03-12 Thread Chris Cocuzzo

I realize you certainly could have the intention of showing the contents of
the file without actually using it. However the impression I got was that
Rick wants to use the contents of the file in execution for other parts of
the script, yet without including it the normal way...correct me if I'm
wrong. I definitely agree thought that it could be used to show the file.
Rick, what did you intend to use the "raw" included file for?

Chris

-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 11:10 PM
To: PHP General List (E-mail)
Subject: Re: [PHP] includes


On Tue, 13 Mar 2001 13:54, Chris Cocuzzo wrote:
 I'm slightly confused as to why you would not want it parsed and
 executed...or I should say...what would be the differences in using the
 include function vs. reading it in like a file??

 Chris

 -Original Message-
 From: Rick St Jean [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 12, 2001 10:15 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] includes


 I am looking for a simple way to include a file and not have it parsed.
 But I also do no want to strip out the html and php.  Is there a way
 to do a nice and simple include and set parsing to false?

 Right now I use a fopen and fgets to read from the file.

 include() will parse it and execute it.

 All I want to do is include it raw... any ideas?


Well, if one wanted to show the actual content of the file, for whatever
reason. Say one were building a routine to do a showsource, for instance.
That's not what you are doing, is it Rick?

--
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

--
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] MAIL And PHP Question

2001-03-12 Thread Chris Cocuzzo

I can't give you an exact answer, such as an implementation...but I would
think it would have to do with opening a POP/SMTP socket connection. I know
there is a class that can connect directly to SMTP on this website:
http://phpclasses.upperdesign.com/

hope that helps,
Chris

-Original Message-
From: James Lamb [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 1:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MAIL And PHP Question


Hello All,
Can PHP talk directly to the SMTP server, i know that there is a mail()
function but this cannnot specify the reply-to and from addresses easily.
How could PHP do this type of function?
thanks
James Lamb


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