[PHP] Can i get the full HTTP-Header without patching PHP?

2001-07-11 Thread Rainer Kohnen
Hi, is there a way to get the full HTTP Header without patching PHP? I use a debugger coded in PHP a lot. Now i need to debug some intershop enfinity pages. However, enfinity uses a lot of fields with the same names. So my debugger overwrites the variables and i get only the last one. As i cant

[PHP] Apache + PHP 3.0.18 + UW-Imap.Z + LDAP + Oracle + IMP = Apache childs coredumps :(

2001-07-11 Thread Santiago Romero
I have an "small" problem on my Apache Stronghold 3 Server (a simple Apache 1.3.12 + mod_ssl) using a statically compiled PHP3 module. PHP version is latest (3.0.18) and is compiled against UW-Imap libc-client, openldap 1 and oracle librarys to provide IMAP, LDAP and Oracle support for HORDE/IMP

RE: [PHP] charset

2001-07-11 Thread Adrian Ciutureanu
http://www.w3.org/TR/WD-html40-970708/charset.html > -Original Message- > From: Mark Lo [mailto:[EMAIL PROTECTED]] > Sent: 12 iulie 2001 08:46 > To: [EMAIL PROTECTED] > Subject: [PHP] charset > > > Hi, > >What will the problem if i don't specific what charset to > use in the > metal t

RE: [PHP] Rename a File?

2001-07-11 Thread Adrian Ciutureanu
http://php.net/rename > -Original Message- > From: Randy Johnson [mailto:[EMAIL PROTECTED]] > Sent: 13 iulie 2001 20:53 > To: Randy Johnson; Chris Lambert - WhiteCrown Networks; > [EMAIL PROTECTED] > Subject: [PHP] Rename a File? > > > How do I rename a file on Linux in PHP? > > Thanks

Re: [PHP] Journal.php

2001-07-11 Thread [EMAIL PROTECTED]
on 7/12/01 12:17 AM, Joe Ace at [EMAIL PROTECTED] wrote: > I made that script, but it doesn't seem to be working. I was at > www.devshed.com learning PHP, when I came to the tutorial > PHP101_5/page4.html. I wanted to make my own files with a form instead of > pre-determining the filename and w

Re: [PHP] Journal.php

2001-07-11 Thread [EMAIL PROTECTED]
on 7/12/01 12:17 AM, Joe Ace at [EMAIL PROTECTED] wrote: > I made that script, but it doesn't seem to be working. I was at > www.devshed.com learning PHP, when I came to the tutorial > PHP101_5/page4.html. I wanted to make my own files with a form instead of > pre-determining the filename and w

Re: [PHP] Alternative to phpMyAdmin

2001-07-11 Thread Steph
Andrea , Thanks for the feedback. Actually it doesnt work as far as how my host set it up. I just get page cannot be displayed, and have been told by my host that they dont have it working on the server yet. But Chris Lott (fellow PHP lister) suggested I install it myself, which I may just go ahe

Re: [PHP] Alternative to phpMyAdmin

2001-07-11 Thread Andras Kende
Steph, This one is cgi based and works well too.. http://www.gossamer-threads.com/scripts/mysqlman/index.htm Why phpMyAdmin doesn't work on the new server? maybe you need newer development versions? Andras - Original Message - From: "Steph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] charset

2001-07-11 Thread Mark Lo
Hi, What will the problem if i don't specific what charset to use in the metal tag. And also, what is the CHARSET of "UTF-8". What charset to use if i want my web page to display chinese and english. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

[PHP] charset

2001-07-11 Thread Mark Lo
Hi, What will the problem if i don't specific what charset to use in the metal tag. And also, what is the CHARSET of "UTF-8". What charset to use if i want my web page to display chinese and english. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

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

2001-07-11 Thread Matthew Loff
The build date in phpinfo() is the date that configure was run from scratch on the build... Try deleting config.cache in the PHP directory, then rerun configure. -Original Message- From: Kyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:44 PM To: [EMAIL PROTECTED] Subj

Re: [PHP] What the heck is this

2001-07-11 Thread Christian Reiniger
On Wednesday 11 July 2001 08:20, Chris Anderson wrote: > The way you have it leads me to believe you are talking about for..each > loops That would be "=>", not "->" :) > - Original Message - > From: "Brian White" <[EMAIL PROTECTED]> > To: "Adam" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

[PHP] Journal.php

2001-07-11 Thread Joe Ace
www.dbzlegends.net/journal.php I made that script, but it doesn't seem to be working. I was at www.devshed.com learning PHP, when I came to the tutorial PHP101_5/page4.html. I wanted to make my own files with a form instead of pre-determining the filename and what its going to say, I figured t

[PHP] Alternative to phpMyAdmin

2001-07-11 Thread Steph
Hi all! I love phpMyAdmin, just makes life so easy :) But I just moved my site, and phpMyAdmin isnt working on my server yet, so does any one have any solid alternatives that I can install?? Thanks, Steph

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

2001-07-11 Thread Kent Sandvik
> > Just I have another question, does anyone know where PHP > puts everything > > when it installs? I keep recompiling PHP and Apache, and > every time I run > > phpinfo() it still has the original build date. I tried deleting: If installed as RPM package: $ rpm -ql php This give

Re: [PHP] php ad banner rotation

2001-07-11 Thread Kurt Lieber
There's quite a few ad banner systems over at sourceforge. Might give them a look. http://sourceforge.net/ (just search for php ad banner) --kurt - Original Message - From: "Jack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 8:17 AM Subject: [PHP] php ad ba

[PHP] php ad banner rotation

2001-07-11 Thread Jack
All folks, Is there anyone out there can advice me about the php ad banner rotation module ( especially the free one) ? If there is anyone is using it now and recommend it to me, would be nice. Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts"

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

2001-07-11 Thread Kyle
Tried both of those. Tommorrow I'll try to redownload the source to another directory and install. "Kyle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Somebody mentioned that PHP checks to see if sendmail was installed when it > was installing. > > Just I

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

2001-07-11 Thread Francis Fillion
Did you restart your web server? If he is not, it will be they old build that will show, because it will be they old server that will be running. Kyle wrote: > > Somebody mentioned that PHP checks to see if sendmail was installed when it > was installing. > > Just I have another question, does

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

2001-07-11 Thread Kurt Lieber
I believe it varies depending on distribution and install parameters. However, try: find / -name php and that should show you all the places with php files squirreled away. --kurt - Original Message - From: "Kyle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 200

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

2001-07-11 Thread Kyle
Somebody mentioned that PHP checks to see if sendmail was installed when it was installing. Just I have another question, does anyone know where PHP puts everything when it installs? I keep recompiling PHP and Apache, and every time I run phpinfo() it still has the original build date. I tried de

[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

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"); >

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

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

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

[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

[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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

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:

[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

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

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

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

[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

[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

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

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

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

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

[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

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

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

[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

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

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

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

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

[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

  1   2   3   >