[PHP] Re: Mail function....

2001-09-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kyle Smith) wrote: > Can someone please just run me through the different sections of the mail > function please cause i understand you can change the from address etc aswell It's in the docs, examples and all.

[PHP] downloadable annotated PHP manual?

2001-09-12 Thread Eugene Lee
Like the subject says, is there a downloadable version of the Annotated PHP Manual? I'm not always connected to the Internet, so this would be a great help. Thanks in advance. -- Eugene Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

RE: [PHP] downloadable annotated PHP manual?

2001-09-12 Thread Jack Dempsey
http://php.net/download-docs.php -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 9:47 PM To: [EMAIL PROTECTED] Subject: [PHP] downloadable annotated PHP manual? Like the subject says, is there a downloadable version of the Annotated PHP

Re: [PHP] downloadable annotated PHP manual?

2001-09-12 Thread Eugene Lee
On Wed, Sep 12, 2001 at 10:14:29PM -0400, Jack Dempsey wrote: : Eugene Lee [mailto:[EMAIL PROTECTED]] asked: : > : > Like the subject says, is there a downloadable version of the Annotated : > PHP Manual? I'm not always connected to the Internet, so this would be : > a great help. Thanks in adv

[PHP] mail problem

2001-09-12 Thread Peter Houchin Sun Rentals STR Manager
hiya I have several scripts that send mail from web pages made in php.. now these pages all work fine. now all of a sudden php has stopped sending mail and I don't know why System info Unix box running Solaris 2.6 apache 1.3.12 php 4.0.4pl1 using sendmail for the emails php.ini mail related

Re: [PHP] mail problem

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 12:04, Peter Houchin Sun Rentals STR Manager wrote: > hiya > > I have several scripts that send mail from web pages made in php.. now > these pages all work fine. > > now all of a sudden php has stopped sending mail and I don't know why > > System info > > Unix box running Sola

[PHP] SEARCHER

2001-09-12 Thread chinmay varma
I want to searcg another site for a keyword.If its found I want all the details of that page to be shown in my site page. How is it done. ? Kindly inform me if you know the way.( I am rather new to php) Chinmay Varma [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] mail problem

2001-09-12 Thread Peter Houchin Sun Rentals STR Manager
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >list-help: >list-unsubscribe: >list-post: >Delivered-To: mailing list [EMAIL PROTECTED] >From: David Robley <[EMAIL PROTECTED]> >To: Peter Houchin Sun Rentals S

[PHP] Re: Nesting / Associating Multiple Classes

2001-09-12 Thread CC Zona
In article <022301c13bcc$d489eaa0$3201a8c0@kadath>, [EMAIL PROTECTED] (Roy Wilson) wrote: > What is the best method to allow for nesting or > associating these two classes, so the second can refer to the first? http://php.net/manual/en/keyword.extends.php -- CC -- PHP General Mailing List (

Re: [PHP] mail problem

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 13:10, Peter Houchin Sun Rentals STR Manager wrote: > >On Thu, 13 Sep 2001 12:04, Peter Houchin Sun Rentals STR Manager wrote: > >> hiya > >> > >> I have several scripts that send mail from web pages made in php.. > >> now these pages all work fine. > >> > >> now all of a sudd

Re: [PHP] mail problem

2001-09-12 Thread Peter Houchin Sun Rentals STR Manager
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >list-help: >list-unsubscribe: >list-post: >Delivered-To: mailing list [EMAIL PROTECTED] >From: David Robley <[EMAIL PROTECTED]> >To: Peter Houchin Sun Rentals S

[PHP] Invalid MySQL result resource

2001-09-12 Thread Dan Harrington
Hello, What is the best way to accomplish the following?: Connect to MySQL database Execute a query Fetch a row from that query (mysql_fetch_array) Based on the data from the original query, generate a second query Execute the second query Fetch a row from the second que

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread speedboy
> "Supplied argument is not a valid MySQL result resource in . on line 52" > > Line 52 is the line where I fetch the row from the second query. Don't keep doing a mysql_connect on each loop. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

[PHP] Perl to PHP

2001-09-12 Thread programmer
Here is a chunk of code: while( /hidden name=(.*?)>/gs ) { # see if there was some kind of error if(index($1, "ERROR") == 0) { $errstring = $1; $errstring =~ ( /value="(.*)"/ ); print "Error on preview

[PHP] Extracting Data

2001-09-12 Thread programmer
Here is a line of data: hidden name=PAYMENT_UNITS value="1"> How could I extract data from the above to get the following $PAYMENT_UNITS=1 Thanks, Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Invalid MySQL result resource

2001-09-12 Thread Dan Harrington
> -Original Message- > From: speedboy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 12, 2001 10:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Invalid MySQL result resource > > > > "Supplied argument is not a valid MySQL result resource in . on line 52" > > > > Line 52

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 13:53, Dan Harrington wrote: > Hello, > > What is the best way to accomplish the following?: > > Connect to MySQL database > Execute a query > > Fetch a row from that query (mysql_fetch_array) > Based on the data from the original query, generate a second query > Ex

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 14:15, Dan Harrington wrote: > > -Original Message- > > From: speedboy [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 12, 2001 10:27 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] Invalid MySQL result resource > > > > > "Supplied argument is not a valid

RE: [PHP] Invalid MySQL result resource

2001-09-12 Thread Rasmus Lerdorf
> $productresult = mysql_query($productquery); > $productinfo = mysql_fetch_array($productresult); //THIS line produces the error Well, you don't check for errors. Always always always perform proper error checking: $productresult = mysql_query($productquery) or die(mysql_error()); Do that an

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 14:22, David Robley wrote: > > Here's what's going on. > > > > > > $connection = mysql_connect($server, $user, $pass); > > mysql_select_db($db); > > > > $query = "select * from shoppingcart where PHPSESSID = '$PHPSESSID'"

[PHP] Re: dumping a session

2001-09-12 Thread Richard Lynch
You'd somehow need to keep the session around, but "mark" it as "revoked" You then just check that flag/marker and print out a message: if ($revoked){ echo "Session Revoked"; exit; } -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out

[PHP] Re: Accessing pdf file thru php

2001-09-12 Thread Richard Lynch
> $header=" > Content-type: application/pdf > Content-type: application/x-octet-stream > Content-Disposition: inline; filename=D:\\Pdf\\0226138097(57-77).pdf > Content-Length: $len"; You need a separate header() call for each header. You *DEFINITELY* do *NOT* want a newline in front of the first

[PHP] Re: Question about how to handle something....

2001-09-12 Thread Richard Lynch
You can use just the one table with a parent for each sub-category: alter table category add parent int(11); idparentname 1NULLfruit 21apple 31banana 41coconut Now, suppose you need the sub-categories of the record with ID #1 (IE, all the frui

[PHP] Re: SEARCHER

2001-09-12 Thread Richard Lynch
http://php.net'; $key = 'php'; $html = file($url); $html = implode('', $html); if (strstr($html, $key){ echo htmlentities($html); } ?> -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http

[PHP] Re: HTTP_X_FORWARDED_FOR

2001-09-12 Thread Richard Lynch
I'm not sure there is any kind of standard for HTTP_X_FORWARDED_FOR... I think all the X headers are "user-defined" I believe you're at the mercy of whomever defined the masquereding server. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out

[PHP] Re: Extracting hidden Fields

2001-09-12 Thread Richard Lynch
HIDDEN fields aren't all that hidden... You just need to view the source of the HTML... You can probably do a eregi of some sort -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunte

[PHP] Re: How to Retrieve All Selected Values of CheckBox Group in Form?

2001-09-12 Thread Richard Lynch
http://php.net/FAQ.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Hon-Chi Ng <[EMAIL P

[PHP] Re: reading a pop3 without imap functions

2001-09-12 Thread Richard Lynch
Getting your ISP to support IMAP should be your first attempt... After that, you can *PROBABLY* suss out a way to "talk" to the POP server the same way an email client would using http://php.net/fsockopen and finding out what the protocal for POP3 is. You'll need to use http://php.net/fputs and h

[PHP] Re: FTP Chron Mysql and PHP

2001-09-12 Thread Richard Lynch
Do you have telnet/SSH access? You can simple fopen() the FTP file and read it, or use PHP's FTP functions (not sure which will be easier to provide username/password) and then use http://php.net/explode to extract the fields. You'll also want to read: man 5 crontab which is the one that gives

[PHP] Re: Remote File system size

2001-09-12 Thread Richard Lynch
I don't think GetImageSize() has had the URL-fopen wrappers folded into it. You're simply going have to read the file (or at least part of it) and find the image size that way. Not that GetImageSize digs into the file to find width and height encoded in the file format, not the actual number of

[PHP] Re: libphp4.so...

2001-09-12 Thread Richard Lynch
You need --with-zlib and you need zlib installed. http://php.net/zlib -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Or

Re: [PHP] double values in array

2001-09-12 Thread Andrew Perevodchik
Hello! You wrote: TB> What am I doing wrong? You should use this line: $y = mysql_fetch_array ($getrec_result, MYSQL_ASSOC); -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: [PHP] mail problem

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 13:43, Peter Houchin Sun Rentals STR Manager wrote: > >On Thu, 13 Sep 2001 13:10, Peter Houchin Sun Rentals STR Manager wrote: > >> >On Thu, 13 Sep 2001 12:04, Peter Houchin Sun Rentals STR Manager wrote: > >> >> hiya > >> >> > >> >> I have several scripts that send mail f

[PHP] terror

2001-09-12 Thread nafiseh saberi
hi. do all people in our group safe from terror in America ?? - Best regards. Nafiseh Saberi Iran - Shiraz Try to always happy and hopefull. The smooth sea never made a skillful mariner. Love your enemies , it will cause to try more.

[PHP] limiting rows and pages like google -- again

2001-09-12 Thread Adrian D'Costa
Hi, I am trying to find out the the best way to do the following: I have a script that select records from a table. The problem is that I need to limit the rows to 20. I know that I can use limit 20. But what I want to do is give the view a link to the next 20 till all the records are shown.

Re: [PHP] limiting rows and pages like google -- again

2001-09-12 Thread Helen
> The logic would be to check if the script is called the first time, then > the sql statement would be select travel.*, city.city from travel, city > where travel.cityid=city.id limit 0,20. > The second time or based on what has been selected on the page (1-20, > 21-40, etc) add that to the sql s

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
Hi Sean, Sorry for the delay with this.. Been a rather busy month.. However your help on this project has been very useful.. Sean C. McCarthy wrote: > Mike Gifford wrote: >>Sean C. McCarthy wrote: >>>If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what >>>inserts in the

Re: [PHP] limiting rows and pages like google -- again

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 14:55, Adrian D'Costa wrote: > Hi, > > I am trying to find out the the best way to do the following: > > I have a script that select records from a table. The problem is that > I need to limit the rows to 20. I know that I can use limit 20. But > what I want to do is give the

RE: [PHP] Invalid MySQL result resource

2001-09-12 Thread Dan Harrington
Alright, I can't believe I'm so blind. And yes, I will always always perform error checking from this point on and to eternity. :-) I'm out of my mind for some reason or another. Can't think straight. Maybe because I've got CNN on the TV turned on. ick. Thanks > -Original Message-

[PHP] "Search Engine friendly" URLs (/ instead of ? or &) not working in CGI mode

2001-09-12 Thread Jobarr
Hello, I am running windows 2000, apache 1.3.20, and php 4.0.6. I am trying to set it up so that I could access my webpage as http://www.site.com/script/1/2 as opposed to http://www.site.com/script.php?var1=1&var2=2. I am using a method similar to the one descriped here: http://www.evolt.org/artic

[PHP] segmentation fault - core dump

2001-09-12 Thread Jack Dempsey
hi all, could someone give me a description of what this really means? i know what it means in general, but in php, what are the likely candidates? i thougth i had it narrowed down to a warning in fopen and a bad fp, but i've taken care of that, and its still core dumping...i'm using the cgi vers

[PHP] Sorting an array

2001-09-12 Thread Dotan Cohen
I'm trying to sort a listing of albums alphabetically for LyricsList.com, the problem is that I want the initial 'The' and 'A' in some albums (A Hard Days Night, The Wall) to be ignored. So that the list will look like: Abbey Road Dark Side Of the Moon The Final Cut A Hard Days Night Kill 'e

[PHP] Re: limiting rows and pages like google -- again

2001-09-12 Thread Adam
i spent a good day learning how to do this from scratch. I'll post my code and you can decypher it yourself. «previous '; }else{ echo '«previous '; } } else { echo '«previous '; } while ($select_numrows > 0) { if ($page != $i) { if ($i==1){ echo ''.$i.' '; } else{ echo ''.$

[PHP] Validate CSV file With Table in Database!!

2001-09-12 Thread Coenraad Steenkamp
I need to compare a csv file to a table in the database but only one field in the database with one field in the CSV file! Comparing only one field will make it much easier! When there is any change in the Database compared to the CSV file , the database must then be updated or if there are no suc

Re: [PHP] Validate CSV file With Table in Database!!

2001-09-12 Thread David Robley
On Thu, 13 Sep 2001 16:37, Coenraad Steenkamp wrote: > I need to compare a csv file to a table in the database but only one > field in the database with > one field in the CSV file! Comparing only one field will make it much > easier! When there is any change in the Database compared to the CSV >

Re: [PHP] Problem with Uploading Many Files (>22)

2001-09-12 Thread Jani Rautiainen
On Windows it should be the latest, because I just downloaded it 2 weeks ago... On Linux (my client's server) I assume it's one of the latest also... "Matthew Loff" <[EMAIL PROTECTED]> wrote in message 007501c13bc8$520f7fd0$0ce60281@bang">news:007501c13bc8$520f7fd0$0ce60281@bang... > > What versi

<    1   2