RE: [PHP] Function call from a hyperlink

2001-07-11 Thread Shrout, Ryan
Why not just pass a variable: and then in the PHP file do: if ($function) { function(); } Ryan Shrout Amdmb.com -Original Message- From: Geer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Function call from a hyperlink

[PHP] Mail Bcc to a $variable?

2001-07-11 Thread Marcus James Christian
Hello, Ok I've got a script going to a Bcc but can't seem to get it to work when it's like this? \nBCC:$recipients"; include("password.inc"); if($mailusername == $username && $mailpassword == $password); { mail($to, $subject, $bodytext, $headers); }; ?> So how do I get mail to Bcc a variabl

RE: [PHP] Speed of loding PHP pages

2001-07-11 Thread Brian S. Dunworth
Are IE and Netscape both set the same as far as caching? - Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 <[EMAIL PROTECTED]>

RE: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Chadwick, Russell
Try a newline at the end of $headers -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Mail Bcc to a $variable? Hello, Ok I've got a script going to a Bcc but can't seem to get it to

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread scott [gts]
you can't. you have to write handler code to read in the information being passed to the script and properly execute a function. (if anyone could arbitrarily execute any function they wanted just by passing in the function name, havoc would be wreaked on PHP programs everywhere :) > -Origin

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
I like this idea but it's giving me a parse error on this code: if (!{$C_Last_Name}{$y}) I'm looking at the other ideas also. Jeff Oien > > if (!$C_Last_Name$y) { > > The form submitting information to this code has field name like > > C_Last_Name1 C_Last_Name2 depending on how many Child

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread Chadwick, Russell
another way is to do eval () on $function but that kinda stuff is really bad for security. Also bad to get carried away with making one file that passes tons of different function names so your whole website's in one file :) There should be some criminal punishment for doing that. -Original

[PHP] XSLT compiler for PHP

2001-07-11 Thread Steven Roussey
Hi all, I was curious if anyone was aware of a XSLT compiler that outputs PHP source? XSLTC which Sun donated to Apache Foundation creates Java source and is part of the Xalan project. Java is slow and we are all PHP here. Thanks! Sincerely, Steven Roussey Network54.com http://network54.com/?p

[PHP] PArsing xml document with php

2001-07-11 Thread Francis Fillion
I'm trying to parse a xml document in php and to get in an array, but it sometime give me really strange result. Like if I have: $simple=" test "; $parser = xml_parser_create(); xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1); xml_parse_into_struct($parser,$simple,$vals,$index); xml_par

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Chadwick, Russell
I think you want if (!(${"C_Last_Name$y"})) { or if (!(${"C_Last_Name".$y})) { -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:22 AM To: PHP Subject: RE: [PHP] Variable Next To Variable? I like this idea but it's giving me a parse error

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread Inércia Sensorial
No. It also depends on the internal engine used by the browser to 'contruct' the elements. On Windows plataforms, Netscape are slower to render cached pages. But IE has an advantage, it is built around some native windows functionalities, one of the reasons it is faster. I don't know for other

AW: [PHP] Speed of loding PHP pages

2001-07-11 Thread Sebastian Stadtlich
recently heard of a review which measured that IE 6(on win) was 3 times faster with 'tricky'-pages then everything else on win & linux. looking at HTML specifications it also won with 93% of supported html-standard the review as in a linux mag/webpage ( even opera which runs VERY nice in

FW: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
What I'm doing is having a form page ask, "How many children do you want to sign up?" Then it spits out form fields for as many children as they asked for. So each field has name="C_Last_Name$x" and $x in incremented for each child. Should I make it name="C_Last_Name[$x]" ? Jeff Oien > you should

Re: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Mike Gifford
I added DISTINCT to the code (as per below): Kamil Choma wrote: > Mike Gifford wrote: >>However, when I run this query: >>mysql_query("SELECT DISTINCT >> WLPbib.bibID, >> WLPbib.title, >> WLPbib.publisher, >> WLPbib.publicationDate, >> WLPaddress.city,

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread scott [gts]
i agree that putting it all into one file is usually bad form, but for small sites that dont change much, it's usually OK to do something like: file.php?page=Main file.php?page=News file.php?page=Contact anything above 5-10 pages probably requires a separate-page-per-section or fusebox-style de

RE: [PHP] Duplication Results When LEFT JOIN is Used Between MultipleTables

2001-07-11 Thread Chadwick, Russell
Sounds like you want a GROUP BY bibID, then you'll have to put group by functions on all the items you are selecting. -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:00 AM To: Kamil Choma Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Duplicat

RE: [PHP] Speed of loding PHP pages

2001-07-11 Thread scott [gts]
well... ahem... netscape 4.x is 1996-97 technology. 4-5 years since the last major release of netscape is an eternity of internet time in those years, microsoft has been pouring money and time into their browser no duh it kicks the crap outta netscape 4.x :) > -Original Message

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Chadwick, Russell
you should make the form names C_Last_Name1, C_Last_Name2, C_Last_Name3 and then have a hidden variable saying the maximum, then make a small routine on the receiving page which loops 1 to the max and uses array_push to make an array of children names. Check for empty() so that way is someone f

Re: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Marcus James Christian
Like this... $headers = "From: Me <[EMAIL PROTECTED]>\nBCC:$recipients\n"; Or somewhere else? Thanks, Marcus Russell Chadwick wrote: > Try a newline at the end of $headers > > -Original Message- > From: Marcus James Christian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 200

RE: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Chadwick, Russell
Yeah, and it might even be picky about the spacing BCC: $recipients\n whenever I've had a mail problem, its solved by viewing the headers. See if your BCC is making it into the headers and then make sure its spaced like the other fields or the mail server/client may not be using the field. >Fr

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Matthew Luchak
how about : if ((isset($number ))&&($number <= $max)){ while ($number > 0;$number -- ) { echo 'Last Name';} } if you're not crazy about having the fields labled in reverse order you could push to an array and then arsort the array. Ma

[PHP] HTML tags in database fields

2001-07-11 Thread rodrigo
Hello. I wrote a comments application that allows the use of some HTML tags for text formatting (). I ran into a problem of users not closing the tags (), so when I display a page with all the comments, if the user did not close the tag then all the text in the other comments is bold. Is there a

RE: [PHP] HTML tags in database fields

2001-07-11 Thread Matthew Luchak
sure. Quick and dirty is to count all the '' tags and compare this to the number of '' tags. If the number doesn't match up spit out a message saying "Sorry, I can't complete your request you have $countopen - $countclose $whatever tags not closed". Also check for the reverse; closed but not

RE: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Matthew Loff
Ahh! I forgot to meantion the \n at the end of the headers in my original post... -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:37 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Mail Bcc to a $variable? Like this... $heade

[PHP] Running for loop and concat. variables...

2001-07-11 Thread Jeff Lewis
I have a page with about 80 checkboxes on it. The values are names and my users are to select names. Now on the next step I want to be able to list all names processed. I thought a for loop would be best but am having problems. $ffromx is the number of checkboxes generated in the previous s

RE: [PHP] Running for loop and concat. variables...

2001-07-11 Thread Matthew Luchak
I think using isset should do it. try: for ($i = 0; $i <= $ffromx; $i++) { if (isset($ffrom.$i)){ echo $ffrom.$i."";} } Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]]

[PHP] Averaging columns in two tables?

2001-07-11 Thread Jeff Lewis
Is it possible to get the average of two tables. I have an age column in two tables. I can get the age average for one table both can the average of both tables be found in one statement? One table is for hitters, the other for pitchers. Jeff

Re: [PHP] Running for loop and concat. variables...

2001-07-11 Thread Jeff Lewis
That gives the following error which is the isset line: Parse error: parse error, expecting `','' or `')'' - Original Message - From: "Matthew Luchak" <[EMAIL PROTECTED]> To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 2:14 PM Subject: RE: [PHP]

[PHP] Re: Mail Bcc to a $variable?

2001-07-11 Thread Lasse
I don't think variable substitution works within quotes when not used with echo... Try (I think you also a space after BCC:) > $headers = "From: Me <[EMAIL PROTECTED]>\nBCC: ".$recipients; instead of > $headers = "From: Me <[EMAIL PROTECTED]>\nBCC:$recipients"; and you should be fine Ar

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread scott [gts]
personally, that's what i would do. dealing with arrays usually makes the code a lot cleaner and easier to follow than using awkward constructs like ${$C_Last}{$i} and besides, if you ever wanted to expand your code, you could easily pass the entire array to a function like so: children( $C_La

RE: [PHP] Averaging columns in two tables?

2001-07-11 Thread Chadwick, Russell
SELECT round((hitters.age+pitchers.age) / 2) as avg_age ... -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Averaging columns in two tables? Is it possible to get the average of two tables. I h

Re: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Reuben D Budiardja
your $recipients only containt the string "mailinglist.inc", it does not contain the e-mail addresses, so the bcc is sent to the mailinglist.inc, which is a non-existent address. Basically, your header should looks like: From:[EMAIL PROTECTED]\nBcc:[EMAIL PROTECTED],[EMAIL PROTECTED]\n etc. ec

RE: [PHP] HTML tags in database fields

2001-07-11 Thread scott [gts]
or throw in the needed number of closing tags at the end of that specific message... > -Original Message- > From: Matthew Luchak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 2:09 PM > To: php php > Subject: RE: [PHP] HTML tags in database fields > > > > sure. Quick and

[PHP] Re: HTML tags in database fields

2001-07-11 Thread Lasse
"Rodrigo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello. I wrote a comments application that allows the use of some HTML > tags for text formatting (). I ran into a problem of users not > closing the tags (), so when I display a page with all the > comm

[PHP] .htaccess php_value

2001-07-11 Thread Aaron Bennett
Hi There, I currently use .htaccess files to override the include path, which works great for me... One of my concerns was the portability of the code, and the possibility of not having control of http.conf I'm now in the process of porting some of the sites onto a winnt architecure (but st

RE: [PHP] Running for loop and concat. variables...

2001-07-11 Thread scott [gts]
this is like the last post on form submissions with individually numbered elements... if you can use an array, you should... it'll make things easier for you in the long run. > -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 2:15 PM > To

[PHP] re: File Download IE behavior

2001-07-11 Thread Bill Rausch
"Warren Vail" <[EMAIL PROTECTED]> said: > >When generating a download file from PHP to IE (Netscape is not used by my >client base) the browser prompts with an option to download the file or open >the file where it is. Opening the file fails and I am forced to download >the file to my local drive

RE: [PHP] .htaccess php_value

2001-07-11 Thread scott [gts]
making them relative is probably the best option for portability and maintainability... that way, you can change the underlying directory structure and not have to change any of the actual code... it's great if you ever have to change servers, or if the directory structure undergoes any structura

[PHP] Cookie Problems with Netscape

2001-07-11 Thread david jarvis
Hi all, I have a line that deletes a previously set cookie: setcookie("membership","",time()-86400); That line works fine in IE, but doesn't delete the cookie in Netscape (both Mac and Linux). On a side note, both IE and Netscape do not pop up a warning when the cookie is being sent. Since it

[PHP] compiling 4.0.6 imap problem

2001-07-11 Thread Scott G Mcdaniel
Dear Everyone, I'm sure you have already seen this problem a thousand times before; however, I can't find the answer. I'm trying to compile php 4.0.6 with imap support and get the module to work with apache. Everything compiles fine; however, a restart of apache gives... Starting httpd: Synt

[PHP] Back/Forward

2001-07-11 Thread Devin Atencio
I have a page that brings up the info on a rock, I wanted to add the functionality of doing like a and option to go thru all the rocks in my database. I can't figure out how to exactly do this, could someone give me some help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Variable next to variable question...

2001-07-11 Thread Jeff Lewis
Looks like I should have been keeping a close eye on that thread... I am pulling fields from a database and displaying them on my page. I am adding a checkbox next to the name and storing the name in the checkbox value. Anyway, on submission I want to process them but am having problems... p

RE: [PHP] Back/Forward

2001-07-11 Thread scott [gts]
how do you have the data stored? by ID number? if you have it stored by ID number, just put next/back links something like this: 0)? $id-1 : 0 ); $next = (($id<$max)? $id+1 : $max ); ?> previous next > -Original Message- > From: Devin Atencio [mailto:[EMAIL PROTECTED]] > Sent: Wednes

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread Aral Balkan
>> Netscape is notoriously slug-like when it comes to loading large tables (i.e. the output of phpinfo()). A way around this is to break up large tables into numerous smaller ones (or at least have one table at the top that displays something so that the user doesn't think that things have gone a

[PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread Tom Beidler
I'm working with an new ISP and I'm having trouble connecting to MySQL through PHP 4. Here's some server specifics; PHP Version 4.0.4pl1 Apache/1.3.14 DBA supportenabled Supported handlersgdbm db2 db3 I'm getting the following error; Fatal error: Call to undefined function: mysql_pconn

Re: [PHP] HTML tags in database fields

2001-07-11 Thread Michael J. Seely
HI I know this isn't elegant but it will work. Just put in extra close tags after the field input. etc. Browsers will ignore the extra close tags. >Hello. I wrote a comments application that allows the use of some HTML >tags for text formatting (). I ran into a problem of users not >closing

RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
Since IDs can disappear when records are delted, I think it's best to do a COUNT() first, then retrieve your listings with SELECT * FROM table WHERE blah LIMIT offset,number_to_retrieve; -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 2:

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread Matthew Loff
Have you tried a non-persistant connection? Does that work? mysql_connect()? -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:12 PM To: php list Subject: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ... I'm worki

RE: [PHP] Back/Forward

2001-07-11 Thread scott [gts]
ah yes... that was my quick-n-dirty way ;) you could also do it this way: file.php?id=1&act=next if ($act eq 'next') { $sql = "SELECT id FROM table WHERE id > '$id' LIMIT 1"; } elsif ($act eq 'prev') { $sql = "SELECT id FROM table WHERE id < '$id' LIMIT 1"; } but that's also a quick-n-dir

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread scott [gts]
perhaps they didnt compile PHP with mysql support... > -Original Message- > From: Matthew Loff [mailto:[EMAIL PROTECTED]] > Subject: RE: [PHP] Fatal error: Call to undefined function: > mysql_pconnect() in ... > > Have you tried a non-persistant connection? Does that work? > > mysql_co

[PHP] Trouble with php 4.06 and Apache

2001-07-11 Thread Heiko Maiwald
Hi, I am trying to install PHP 4.0.6 as a DSO with Apache 1.3.x. I get thru the configuration and installation without any error messages, but when I try to restart Apache with the new configuration, I get this erroe message: Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread Francis Fillion
Did you try a to see if mysql is compiled in Matthew Loff wrote: > > Have you tried a non-persistant connection? Does that work? > > mysql_connect()? > > -Original Message- > From: Tom Beidler [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 3:12 PM > To: php list > Subj

[PHP] Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread SED
I'm making a map (image) which you can click on and the script finds the area-code based on where you click on the map. Before I spend time on writing my own code to find if xy values are within a certain coordinates of a polygon, do you know of any build in function to do it? I have browsed ligh

[PHP] using GetImageSize in a directory of images

2001-07-11 Thread Rory O'Connor
recent posts introduced me to the handy GetImageSize, and it's just what I need! What I want to do is write a script that will go through a directory of images and write [image name];[image dimensions] to a file so I can query that into my products database for dynamic use on my site. BUT, i'm a

Re: [PHP] Trouble with php 4.06 and Apache

2001-07-11 Thread Tyler Longren
I would also like to know what's going on with that error. I have gotten that while compiling on FreeBSD. Tyler - Original Message - From: "Heiko Maiwald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 3:06 PM Subject: [PHP] Trouble with php 4.06 and Apache

RE: [PHP] using GetImageSize in a directory of images

2001-07-11 Thread scott [gts]
try this: $files = opendir($dir) or die("Cannot opendir $dir"); while ($file = readdir($files)) { // do whatever } > -Original Message- > From: Rory O'Connor [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 3:09 PM > To: [EMAIL PROTECTED] > Subject: [PHP] using GetImageSize i

RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
Oh! My mistake... I thought he was retrieving several listings at a time... If he's doing a single record each page, your method is definitely the best that I can think of. :) -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:58 PM To: p

RE: [PHP] using GetImageSize in a directory of images

2001-07-11 Thread Matthew Loff
(This is assuming you'll have all images in the directory, and no other file types...) $directory = opendir("./"); $dirEntry = readdir($directory); // Skip "." $dirEntry = readdir($directory); // Skip ".." while($dirEntry = readdir($directory)) { // GetImageSize Code for Each $dirEnt

[PHP] Where can I download GD 2.0 or later? (php_gd.dll for Win)

2001-07-11 Thread SED
Where can I download GD 2.0 or later? (php_gd.dll for Win) SED -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] referring url

2001-07-11 Thread Joseph Bannon
Is there a way in PHP to get the referring url when a link is click to get to that page? Thanks. J -- 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 P

Re: [PHP] referring url

2001-07-11 Thread Alexander Wagner
Joseph Bannon wrote: > Is there a way in PHP to get the referring url when a link is click > to get to that page? $HTTP_REFERER getenv('HTTP_REFERER') regards Wagner -- Madness takes its toll. Please have exact change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] referring url

2001-07-11 Thread Boget, Chris
> > Is there a way in PHP to get the referring url when a link is click > > to get to that page? > $HTTP_REFERER > getenv('HTTP_REFERER') Note that this isn't supported on all browsers and can be turned off or faked/munged. Chris

[PHP] RE: [correction] Where can I download GD 2.0 or later? (php_gd.dll for Win)

2001-07-11 Thread SED
What I really wanted ask about was if any knows about GD 2.x version with build in GIF-support (I need both GIF-support and all the new GD-JPEG function to work on the same time). SED -Original Message- Where can I download GD 2.0 or later? (php_gd.dll for Win) SED -- PHP General Ma

Re: [PHP] Fatal error: Call to undefined function:mysql_pconnect() in ...

2001-07-11 Thread Tom Beidler
I have tried mysql_connect() with the same result "Fatal error: Call to undefined function: mysql_connect()..." > From: "Matthew Loff" <[EMAIL PROTECTED]> > Organization: Willetts Systems > Date: Wed, 11 Jul 2001 16:01:13 -0400 > To: "'Tom Beidler'" <[EMAIL PROTECTED]>, "'php list'" > <[EMAIL

Re: [PHP] RE: [correction] Where can I download GD 2.0 or later? (php_gd.dll for Win)

2001-07-11 Thread Alexander Wagner
SED wrote: > What I really wanted ask about was if any knows about GD 2.x version > with build in GIF-support (I need both GIF-support and all the new > GD-JPEG function to work on the same time). This is probably impossible, for legal reasons. Gif-Support had to be dropped from GDlib because of

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread rm
use phpinfo to see if they even compiled php with mysql support, probably didn't --- Tom Beidler <[EMAIL PROTECTED]> wrote: > I'm working with an new ISP and I'm having trouble > connecting to MySQL > through PHP 4. > > Here's some server specifics; > PHP Version 4.0.4pl1 > Apache/1.3.14 >

Re: [PHP] Fatal error: Call to undefined function:mysql_pconnect() in ...

2001-07-11 Thread Chris Anderson
Is php compiled with mysql support? - Original Message - From: "Tom Beidler" <[EMAIL PROTECTED]> To: "Matthew Loff" <[EMAIL PROTECTED]>; "php list" <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 5:22 PM Subject: Re: [PHP] Fatal error: Call to undefined function:mysql_pconnect() in ...

[PHP] Warning: mail() is not supported in this PHP build

2001-07-11 Thread Kyle
Warning: mail() is not supported in this PHP build in testmail.php on line 1 I don't remember disabling it when I compiled, and I can't find anything to specifically enable it when compiling. I'm running PHP 4.0.6. My sendmail_path is correct in my php.ini. I tried recompiling php4 and apache

RE: [PHP] date change for unix platforms on sept 9th

2001-07-11 Thread Don Read
On 11-Jul-01 scott [gts] wrote: > Has anybody heard if this will affect PHP in any way? > > Copied from the "Unix Guru mailing list": > > -=-=-=-=-=-=-=-=-=-=-=- > The unix time() value becomes > 10 digits for the first time on > Sun Sep 9 01:46:40 2001 > > For the first time in modern >

[PHP] php mail form with predefined subject

2001-07-11 Thread Ed Peddycoart
I am in need of a mail form script which has the subject line filled in for the userHere's what I mean Let's say I have a webpage. On the web page is a picture of a truck, maybe a 1999 Ford F150. If the user clicks the pic, he/she is taken to a brief description of the truck. On the de

[PHP] Popquiz...

2001-07-11 Thread Lasse
...Or call it a riddle.. Whatever... :-) What did the following code look like in it's original form? function bitdef($prefix, $name, $bitnum) { define($prefix."B_".$name, $bitnum); define($prefix."F_".$name, 1 << $bitnum); } -- Lasse -- PHP General Mailing List (http://www.php.net

[PHP] Re: Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread Lasse
"Sed" <[EMAIL PROTECTED]> wrote in message 009301c10a46$3db4eba0$0100a8c0@mamma">news:009301c10a46$3db4eba0$0100a8c0@mamma... > I'm making a map (image) which you can click on and the script finds the > area-code based on where you click on the map. > > Before I spend time on writing my own code

Re: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Lasse
"Reuben D Budiardja" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > your $recipients only containt the string "mailinglist.inc", it does not > contain the e-mail addresses, so the bcc is sent to the mailinglist.inc, > which is a non-existent address. DOH! Mis

[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:    -this part above reads in data from the news file and it's put in between the textarea ta

Re: [PHP] .htaccess php_value

2001-07-11 Thread Brian White
I am still learning about .htaccess files - what you suggested could be useful to me. The approach I have taken is to use the auto_prepend feature, namely php_value auto_prepend_file "/path/to/autoprepend.php" This is then a single hook, and the contents of autoprepend.php can then be as comple

[PHP] How do I get PHP's User-Agent?

2001-07-11 Thread Nathan
I need to create an authentication hash based on the user agent, to connect to a server but I need PHP’s User Agent, which is usually something like PHP/4.0.X. Is there a variable or way to get this? Thank you.

[PHP] Re: Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread SED
Thanks to Lasse I found a good solution, you can view it here: http://softlab.od.ua/algo/other/alg/node158.html Thanks! SED -Original Message- From: Lasse [mailto:[EMAIL PROTECTED]] Sent: 11. júlí 2001 22:02 To: [EMAIL PROTECTED] Subject: [PHP] Re: Function? How to find if xy

Re: [PHP] PHP Conference in California

2001-07-11 Thread Uri Even-Chen
It looks like the Microsoft vs RedHat Open Source Debate is part of the summit (http://conferences.oreillynet.com/cs/os2001/pub/w/os2001/sessions_summit.html), in this case the price can be something around $1495 ($1295 if you have already registered early). Looks like Mr. O'Reilly is going to mak

[PHP] PHP Training Course available

2001-07-11 Thread Michael Kimsal
Hello all, I wanted to pass the word about our PHP Training Course to those of you on this list. Our most recent class, in June, was quite successful - our participants came away with a solid grounding in PHP, and those who were already familiar with PHP learned new techniques and concepts.

[PHP] Re: How do I get PHP's User-Agent?

2001-07-11 Thread Philip Hallstrom
You could have PHP open a URL that contained the phpinfo(); function and then just look through that... -philip On Wed, 11 Jul 2001, Nathan wrote: > I need to create an authentication hash based on the user agent, to > connect to a server but I need PHP’s User Agent, which is usually > somethin

Re: [PHP] Re: How do I get PHP's User-Agent?

2001-07-11 Thread Francis Fillion
Just that: $HTTP_USER_AGENT Philip Hallstrom wrote: > > You could have PHP open a URL that contained the phpinfo(); function and > then just look through that... > > -philip > > On Wed, 11 Jul 2001, Nathan wrote: > > > I need to create an authentication hash based on the user agent, to > >

Re: [PHP] Re: How do I get PHP's User-Agent?

2001-07-11 Thread Philip Hallstrom
No... that would give you your own browser (say Netscape or IE). He wants what PHP uses... On my system it's: PHP/4.0.4pl1 See http://www.adhesivemedia.com/~philip/bar.php which is just "phpinfo();" and http://www.adhesivemedia.com/~philip/foo.php which is just "readfile('http://www/~philip/ba

[PHP] mail() function 30minute delay??

2001-07-11 Thread Ben Rigby
hi. i'm using the mail() function to send email from a PHP script on a UNIX system. sample code is: $result=mail ($mail_to, $mail_subject, $mail_body, $mail_headers); and it seems to be placing the mail in the sendmail queue which gets sent every 30 mintues. is there a PHP mail() option or anoth

Re: [PHP] How do I get PHP's User-Agent?

2001-07-11 Thread Francis Fillion
Oops, I mean get php to open a page that get $HTTP_USER_AGENT and to send it back to you, or to show it to you. Nathan wrote: > > I need to create an authentication hash based on the user agent, to > connect to a server but I need PHP?s User Agent, which is usually > something like PHP/4.0.X. I

[PHP] Re: Rename a File?

2001-07-11 Thread Alex Black
in article [EMAIL PROTECTED], Randy Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM: > How do I rename a file on Linux in PHP? > > Thanks > > Randy $err = `mv moo.php foo.php` _a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: [PHP] Re: Rename a File?

2001-07-11 Thread Jason Murray
> > How do I rename a file on Linux in PHP? > > $err = `mv moo.php foo.php` Or, to be safe: http://www.php.net/manual/en/function.rename.php ... `` doesn't work in Safe Mode. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

[PHP] Re: Rename a File?

2001-07-11 Thread Philip Hallstrom
You can also do rename("moo.php", "foo.php"); provided that both are on the same filsystem. On Wed, 11 Jul 2001, Alex Black wrote: > in article [EMAIL PROTECTED], Randy > Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM: > > > How do I rename a file on Linux in PHP? > > > > Thanks > > >

[PHP] Re: XSLT compiler for PHP

2001-07-11 Thread Alex Black
I know that someone is working on an xslt->c compiler, which you could construct hooks in php for. but I know of no xslt->php compiler (though that would be groovy, bigtime groovy) :) _a in article [EMAIL PROTECTED], Steven Roussey at [EMAIL PROTECTED] wrote on 7/11/01 10:25 AM: > Hi all, >

[PHP] Re: Speed of loding PHP pages

2001-07-11 Thread Alex Black
that has nothing to do with php. it's that netscape is crap at rendering large tables, whereas IE is amazingly good. :) -a in article [EMAIL PROTECTED], Don at [EMAIL PROTECTED] wrote on 7/11/01 9:47 AM: > Hi, > > Has anyone tries any test loading PHP pages into IE 5.x and Netscape > 4.7x? >

RE: [PHP] Re: Rename a File?

2001-07-11 Thread Kent Sandvik
> rename("moo.php", "foo.php"); Also, works cross-platform. In most cases try to find a function that is part of PHP rather than using the shell, especially if you are interested in making sure the code works across platforms. There's also most likely a performance hit when starting a shell

RE: [PHP] IE cookies don't expire!

2001-07-11 Thread Jason Murray
> ... but when the page expires, IE simply reloads it! IE is probably loading it from its cache. Try setting these: This should force IE to reload it properly. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- PHP General Mailing List (http:

RE: [PHP] mail() function 30minute delay??

2001-07-11 Thread Matthew Loff
Sendmail should (by default) attempt to send the mail immediately... If it can't deliver it on that attempt, then it should be queued to send again later (30 mins?)... Unless you've configured sendmail differently, it should attempt to deliver as soon as the mail is sent from PHP. You can re

[PHP] Security and Cookies

2001-07-11 Thread Steph
A friend of mine needs help, we are both PHP newbies. Here's her prob: I have user authentication program that uses mySQL to store the username/password and other information that they entered when they registered. The secured pages use ?userid=$userid at the end of the page name to designate

[PHP] Re: Security and Cookies

2001-07-11 Thread Steph
Addendum: to original post I can change the ?userid=$userid if there's an easier way to do it but I haven't been able to figure that out yet. - Original Message - From: Steph To: [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 5:45 PM Subject: Security and Cookies A f

Re: [PHP] Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread David Robley
On Thu, 12 Jul 2001 05:45, SED wrote: > I'm making a map (image) which you can click on and the script finds > the area-code based on where you click on the map. > > Before I spend time on writing my own code to find if xy values are > within a certain coordinates of a polygon, do you know of any

RE: [PHP] Security and Cookies

2001-07-11 Thread Craig Vincent
A more secure choice would be using a basic authentication scheme. If you're using apache there are several apache based modules for MySQL username/password authentication. With a little finess a similar scheme can be done for PHP. However if that's not an option my recommended PHP choice is to

[PHP] Re: Downloading Data from Database

2001-07-11 Thread David Robley
On Sat, 14 Jul 2001 00:40, Randy Johnson wrote: > I am adding a feature to my site where members can download their > information from the database. What is the best way to accomplish > this? > > Create a text file every time a member wants to download their info? > I thought about this ..how

Re: [PHP] php mail form with predefined subject

2001-07-11 Thread David Robley
On Thu, 12 Jul 2001 09:17, Ed Peddycoart wrote: > I am in need of a mail form script which has the subject line filled in > for the userHere's what I mean > > Let's say I have a webpage. > > On the web page is a picture of a truck, maybe a 1999 Ford F150. > > If the user clicks the pic, he

Re: [PHP]I'm puzzled. TEXTAREA related.

2001-07-11 Thread David Robley
On Thu, 12 Jul 2001 08:09, Chris Cocuzzo wrote: > 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: > > > > > readfile("lib/news_file.dat"); >

[PHP] Problems with mail() function

2001-07-11 Thread rodrigo
Hello. I wrote a routine that queries a table (Mysql) to pull about 300 records and record their emails. I iterate over this recorset invoking the mail() function to send an email for each record in this recordset. The problem is that on my providers server, there is a big delay before the script

<    1   2   3   >