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

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 >

[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

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

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-

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

[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.

[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.

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

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: [

[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

[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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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'"

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

[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

[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

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

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

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

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

[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

[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.

Re: [PHP] Re: More thoughts about PHP: Taglibs

2001-09-12 Thread Eugene Lee
On Tue, Sep 11, 2001 at 11:14:30AM -0400, Michael Kimsal wrote: : : Perhaps you should just use cold fusion then, if you're that : hot and heavy into tag-based languages. : : tagservlet.com has a Java/CF hybrid which may hold some interest. : : PHP's strength, IMO, is that it's NOT a tag-based

RE: [PHP] combining variables

2001-09-12 Thread Jack Dempsey
i might be misunderstanding you, but anytime you need dynamic variable names, you'll want variable variables... $count = '123'; $name = "count$count"; # results in $name being 'count123' $$name = 'something'; # results in $count123 = 'something' jack -Original Message- From: Tyler Longr

[PHP] FTP Chron Mysql and PHP

2001-09-12 Thread Wade Berlin
I'm looking for a way to automatically ftp a tab-delimited text file from a private ftp location and update my Mysql table every 24 hours. I don't have root access to the php/mysql server. Anyone have an idea? Thanks, Wade Berlin, Backstreet Production Group Inc. ---

Re: [PHP] news display

2001-09-12 Thread nayco
->> $result1 = mysql_query("SELECT * FROM news,authors ORDER BY `id` DESC",$db); I think something like "WHERE news.id=author.id" is missing . And I made a few scripts like this one, and i think you should "ORDER BY date" . (°-Nayco, //\[EMAIL PROTECTED]

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

2001-09-12 Thread Hon-Chi Ng
Hi How I read the all values selected for checkboxes of same name that are submitted to HTML form? I tried to translate the example on CGI.pm homepage to PHP below. What's your name? What's the combination? eenie meenie minie moe Y

Re: [PHP] I am making a mailing list but....

2001-09-12 Thread Adam
amen. a database solved my data storage for good and i could never get along without it now. also scripst like these can currupt files that it writes to if a person does certains things while browsing. (ex. refreshing realy fast) get a DB it's way easier to manage. -Adam -- PHP General Maili

[PHP] Re: double values in array

2001-09-12 Thread Charlie Killian
Hi Tom. First check to see what $y looks like: print ""; print_r($y); print ""; Then you'll see the whole array. I'm guessing your mysql_fetch_array() is returning the id twice. What does your query look like. Also, you can use the foreach but I don't think the while is the problem: $y = mysql_

Re: [PHP] Dynamic Form

2001-09-12 Thread Andrew Hill
Here is my take on it, cobbled together with the help of a js wizard friend of mine: Dynamic Dropdown Menus

[PHP] ecTemplate !!!

2001-09-12 Thread Jeroen Olthof
try it out and let me know what u think of it please ?! http://www.millipede.nl/ectemplate kind regards Jeroen Olthof -- 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 administra

Re: [PHP] Dynamic Form

2001-09-12 Thread Jason Brooke
> Hell0, > > I have a MySql database with 3 columns. The first column is "id" second > is "name" and third is "value", I have two drop-down lists, with the > first filled with an array from the column "name". I would like for the > second drop-down list be changed according to the "value" of wha

RE: [PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
I have tried using "onChange" in my script but have faild to load the values of the first drop-down list. Can I place an array inside an array. Or is there a better way of doing this? -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 4:4

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
Oops... My bad. I misread the question... Ignore my previous reply. -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 6:47 PM To: Jared Mashburn; PHP Users Subject: Re: [PHP] Dynamic Form PHP does not know what the user has selected

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
echo "\n"; while($row = mysql_fetch_assoc($yourquery) echo "{$row['name']}\n"; echo "\n"; Just insert a ternary operator in there, and check if the submitted value is equal to the database row's value... If so, add "SELECTED" to the OPTION tag. --Matt -Original Message- From:

Re: [PHP] Dynamic Form

2001-09-12 Thread Jason Bell
PHP does not know what the user has selected in the first drop down. You can either reload the page with the new value once the user has selected the value for the first drop down list, and go from there, or use Javascript. - Original Message - From: "Jared Mashburn" <[EMAIL PROTECTED]>

[PHP] FW: Bug #13273 Updated: session_register naming bug

2001-09-12 Thread kasper
I orignally sent this in as a bug report and received this response -- anyone seen anything like this before? ~[EMAIL PROTECTED] PS-Please CC: me on replies, as I'm not subscribed to the list. Thanks -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Sept

[PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
Hell0, I have a MySql database with 3 columns. The first column is "id" second is "name" and third is "value", I have two drop-down lists, with the first filled with an array from the column "name". I would like for the second drop-down list be changed according to the "value" of what has been

Re: [PHP] Verify email client can read html email?

2001-09-12 Thread Jason Brooke
> When sending out email is it possible to know if their email client > program will be able to read a html email? If it can't read a html > email then it would show a text email. I know it's conventional wisdom > that this isn't possible but has anyone even heard of someone figuring > this out?

RE: [PHP] Verify email client can read html email?

2001-09-12 Thread Jeff Pearson
Yes. It is possible. Jeff Pearson > -Original Message- > From: Bob [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 12, 2001 2:57 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Verify email client can read html email? > > > When sending out email is it possible to know if their ema

[PHP] Verify email client can read html email?

2001-09-12 Thread Bob
When sending out email is it possible to know if their email client program will be able to read a html email? If it can't read a html email then it would show a text email. I know it's conventional wisdom that this isn't possible but has anyone even heard of someone figuring this out?

[PHP] double values in array

2001-09-12 Thread Tom Beidler
I have a form that I would like to send an email once it's validated. I'm using the following code that builds the body of the email. $y = mysql_fetch_array ($getrec_result); while (list($key,$value) = each($y)) { $body .= "$key: $value\n"; } My body looks like this 0: 3 id: 3 1: 2001-09-1

RE: [PHP] Ip Address to binary

2001-09-12 Thread Robert Covell
You could use MySql's built in functions: INET_NTOA() INET_ATON() Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]]

Re: [PHP] Ip Address to binary

2001-09-12 Thread Jason Bell
I want to add I have seen bindec() , and I think it's a cruel cruel joke for it to only work with 31 bits, given that ip4 addresses are 32 bits. :} - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Wednesday, September 12, 2001 2:29

[PHP] corrupted definitions

2001-09-12 Thread Doug Farmer
I have definitions (i.e. define ("a", "b");) that are being corrupted in php-4.0.6 in apache 1.3.20 on Redhat linux from Jan. 11. Anyone seen this? Any solutions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP] Extracting hidden Fields

2001-09-12 Thread programmer
I use curl to do a form submit and then the data is submitted back to me. I now need to know how to extract the hidden variables from the webpage and put one the name of the hidden field in one field and the value of the hidden field in another. there is 5 hidden fields that i need to extra

[PHP] Ip Address to binary

2001-09-12 Thread Jason Bell
does anyone know of a way to convert an IP address to Binary using PHP? My plan is to store the IP address in MySQL so that I can manage a mass amount of IP subnets, and easily make sure I'm not assigning duplicate subnets. the best way I can think of is to use binary. any other ideas, though

[PHP] Nesting / Associating Multiple Classes

2001-09-12 Thread Roy Wilson, Jr.
Ok, So I have one particular class, that should be usable by other classes in an application. For example: class db_class { var name var name_2 function() { } function_2() { } } The class above is a general database class that's functions are needed by the other API c

[PHP] combining variables

2001-09-12 Thread Tyler Longren
Hello, I have this: for ($i=1; $i<=$num_answers; $i++) { print "Answer $i: "; } The user will enter the possible answers up there. When that form is submitted, I want to take the value from answer$i ($answer$i). I can't do this though. Here's what I've done: for ($i=1

RE: [PHP] I am making a mailing list but....

2001-09-12 Thread Jack Dempsey
You should really think about storing things in a db...mysql's free and easy to use and install, and will save you lots of time (especially with this kind of question) If you're only trying to add something to line one, you could open a file, read it, open a new one, print whatever you need to ad

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

2001-09-12 Thread Matthew Loff
What version of PHP are you running? There were a few bugs in the file upload code that have been fixed in recent relases of PHP... --Matt -Original Message- From: Jani Rautiainen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 3:51 PM To: [EMAIL PROTECTED] Subject: [PH

Re: [PHP] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread Alexander Skwar
So sprach »David Otton« am 2001-09-12 um 13:47:53 +0100 : > On Wed, 12 Sep 2001 14:37:59 +0200, you wrote: > > >I would like to insert the HTML code in a TXT document. How do I do this? > >On a normal website I'd make an SHTML site with the > > Can't you still do this? No, it's either SHTML or

Re: [PHP] Verify E-Mail Address

2001-09-12 Thread Alexander Skwar
So sprach »Jeff Grossman« am 2001-09-12 um 12:16:29 -0700 : > Hello, > > I have a page which is a form for people to fill in. There is one input > line where the user enters in an e-mail address. Currently the page is > using java to verify that e-mail address. It looks like the java code >

[PHP] I am making a mailing list but....

2001-09-12 Thread Kyle Smith
. how do i make php add something to a text document on the smae line cause i need the text document to look like this [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]; so well, how do i get it to add on to line 1 and would i need it to make the ";" go on the last line cause php cat

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

2001-09-12 Thread Jani Rautiainen
I have been fighting with an annoying problem for couple days.. If I try to upload more than 22 files (no matter what size), the last file doesn't upload correctly.. I don't know PHP very well, so I don't know whether there is a way to configure the server to get around the problem... In the beg

[PHP] database

2001-09-12 Thread andreas \(@work\)
hi, where can i get a database with the postal codes from germany ? i need to doublecheck the entries posted on our website andre

Re: [PHP] Accessing pdf file thru php

2001-09-12 Thread Sean C. McCarthy
Hi, I have the same problem going on. I have tried IE on Windows 98, 2000 and Netscape on Linux, 98 without any difference. I can't check it because using https and sessions, but can anyone try to use wget with the -s option to see what is going on the headers? Also might be useful to see what PH

RE: [PHP] Accessing pdf file thru php

2001-09-12 Thread Matthew Loff
Are you using Internet Explorer? I've found that broken installations of Acrobat will cause that... Try reinstalling acrobat on your computer, and also try using Netscape... See if they work. --Matt -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

[PHP] Verify E-Mail Address

2001-09-12 Thread Jeff Grossman
Hello, I have a page which is a form for people to fill in. There is one input line where the user enters in an e-mail address. Currently the page is using java to verify that e-mail address. It looks like the java code is only checking for an "@" side, but I want it to also check for a "."

[PHP] libphp4.so...

2001-09-12 Thread Fernando M Hildebrand
Once I´ve installed php (DSO), and try to restart apache I´ve get: libexec/libphp4.so : unresolved symbol :uncompress apache could not be started (something like this) Does anyone can help? Thanks Fernando [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Mail function....

2001-09-12 Thread Kyle Smith
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 -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] dumping a session

2001-09-12 Thread Jason Dulberg
If an admin deletes a user's session while they are online, is it possible to show that user a message saying that their session has been revoked? I can seem to think of a way to determine if the user logged out or if the agent kicked them out. Thanks in advance and please excuse my "newbieness".

Re: [PHP] displaing news

2001-09-12 Thread Tom Carter
first (quick) glance looks fine... what error are you getting? you didn't specify username/password for your mysql connection. you may be required to do that.. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 12, 2001 6:12 PM Subject:

[PHP] Dc/Ac Motor sale

2001-09-12 Thread [EMAIL PROTECTED]
Hing Lung Motor Mfy, New Offer Aug-2001 http://www.hinglungmotor.com.hk [EMAIL PROTECTED] [EMAIL PROTECTED] Fax: 852-24817148 NO: HL101-D-D8xH6 VIBRATER MOTOR SIZE: 20 x 15.5 x H25 MM PRICE: US$ 0.13/PCNO: HL307 MOTOR SIZE: D12 x 19.5 MM PRICE: US$ 0.38/PC NO: HL1011-DC SCOOTER

Re: [PHP] displaing news

2001-09-12 Thread nate
Thanks Tom, I'm still a newbie at this stuff though, so can you (or anyone) look this over and tell me what I did wrong... mailto:"; . $myrow["email"] . ">" . $myrow["author"] . " at " . $myrow["time"] . $myrow["$tod"] . "" . $myrow["news"] . ""; } else { echo "" . $myrow["date"] .

Re: [PHP] Call to undefined function problem

2001-09-12 Thread Doug Farmer
Typo in my explanation. I had "defined" in my code. Nice catch though. However, I'm running into more define issues. When I get to a file through a redirect via header("Location: /newfile.php"), my defines are existing as tested by "defined" but the values are all corrupt. However, if I the

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Sean C. McCarthy
Mike Gifford wrote: > > Hi Sean, > > Sean C. McCarthy wrote: > > If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what > > inserts in the DB is just the image's name, but not the file itself. > > I had trouble opening up the upload.php3 file in list six, so I couldn't verify >

[PHP] How to output/ generate doc/xls/ or access file?

2001-09-12 Thread Zenith
Right, there is a COM module in the PHP. But it must be used with win32 platform. Is there any alternatives for linux platform? -- 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 ad

[PHP] cleaning up word html

2001-09-12 Thread Peter
Hi, I am looking to clean up the HTML generated by some of the in-browser WYSIWYG editors, especially if you paste in content from Word. Can I install HTMLTidy on my server easily, and call it from PHP easily? Are there other good classes available that clean up HTML? And how would I make a fu

Re: [PHP] displaing news

2001-09-12 Thread Tom Carter
rough outline of what you would need to do. this is pseudocode.. I'm too tired to write correct php :) $is_first=true; whlie(get next result entry) { if($is_first) { $last-date=date of this entry; $this-date=date of this entry; $is_first=false; } if($this

[PHP] displaing news

2001-09-12 Thread nate
Hey all! I have a slight problem I was hoping you could help me with. I wrote earlier but no response (so one last try). I'm writing a little news script for my site, and well here is the scenario: The SHORT: I have news,headline,author,date,time,etc. all in a table in a mysql db, that I use

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
oh, i forgot to mention, i create new session id on each login, and pass it on in the url, something like /page.php?sess=$sess_id If you want, you could also assign the user's ip with the current session for a little higher security, i havent bothered as i feel this is safe enough. /Martin > --

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
> hello everyone, > > how can i set the expiration of my sessions with or without > the cookies enabled? say if a user idles for some time, the > session will now expire. > > TIA! > jessie I'm using a solition that's something like this: first, each time a user logs in to the site, a

[PHP] how to set session expiration

2001-09-12 Thread power jessie
hello everyone, how can i set the expiration of my sessions with or without the cookies enabled? say if a user idles for some time, the session will now expire. TIA! jessie void signature () { cout << "Jessie Natividad-- [EMAIL PROTECTED]" << endl ; cout << "Cell: +63 9

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
Hi Sean, Sean C. McCarthy wrote: > If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what > inserts in the DB is just the image's name, but not the file itself. I had trouble opening up the upload.php3 file in list six, so I couldn't verify by looking at the code. Not sure if

RE: [PHP] Is it a mysql AND/OR php BUG???

2001-09-12 Thread Mark Roedel
> -Original Message- > From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 12, 2001 9:46 AM > To: Schill, Johannes > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Is it a mysql AND/OR php BUG??? > > > the function isn't decoding right. > > > > function dec

  1   2   >