Re: [PHP] drop down list not populating

2004-01-27 Thread memoimyself
Hello Dan, On 27 Jan 2004 at 14:31, Montagna, Dan wrote: echo OPTION VALUE=.$row['community']./OPTION; Uh-oh, this won't work: you have an unclosed tag here. Try this: echo 'option value='.$row['community'].''.$row['community'].'/option'; Good luck, Erik

Re: [PHP] drop down list not populating

2004-01-27 Thread John W. Holmes
Montagna, Dan wrote: I've got the code for a drop down list and the drop down box displays--but with no info in it. The underlying table is populated so I could use some advice on what might be wrong from here SELECT ? include(includes/db.php); MYSQL_CONNECT(HOST,USER,PASS) OR

Re: [PHP] Re: Regex Help

2004-01-27 Thread Ben Ramsey
Why do you need to remove the delimeters? If you remove them, then it makes it quite difficult to get the data you need. If you want to display the date and race type without the square brackets around them, then use $matches[0][1] and $matches[1][1] instead of $matches[0][0] or

Re: [PHP] drop down list not populating

2004-01-27 Thread John Nichel
John W. Holmes wrote: snip echo OPTION VALUE=.$row['community']./OPTION; If you view the HTML source of the page, do you see a bunch of empty option elements? If so, then $row['community'] isn't valid. Maybe it's a case issue and you should be using $row['Community']? Can't tell because

[PHP] Unsetting multiple globals?

2004-01-27 Thread BOOT
Hello. I can unset multiple variables easily, however I can't see how to unset multiple globals without: unset($GLOBALS['1']); unset($GLOBALS['2']) unset($GLOBALS['3']) and so forth I have tried a few variations with no success. Thanks for any help! -- PHP General Mailing List

[PHP] I need to unset BOTH $GLOBALS and $_SESSION vars?

2004-01-27 Thread BOOT
Sorry for so many questions, thanks to all those who have helped. I am finding that in order to completely unset some of my variables, I need to use both unset($GLOBALS. and unset($_SESSION) Does this make sense? Thanks! -- PHP General Mailing List (http://www.php.net/) To

[PHP] path problems

2004-01-27 Thread Scott Taylor
I have the following file: http://domain.com/archive/newsletters/Dec03.pdf For some reason this works: filesize('archive/newsletters/Dec03.pdf'); but this does not: filesize('/archive/newsletters/Dec03.pdf'); nor does this filesize('http://domain.com/archive/newsletters/Dec03.pdf'); For some

Re: [PHP] Unsetting multiple globals?

2004-01-27 Thread Matthew Vos
2 ways to do it: Simple, no control: foreach($GLOBALS as $key = $value) unset($GLOBALS[$key]); Or $vars_to_clear = array(1,2,3,4,a,b,C1,D2); foreach($vars_to_clear as $keyname) unset($GLOBALS[$keyname]); Matt On Tue, 2004-01-27 at 15:26, BOOT wrote: Hello. I can unset multiple variables

Re: [PHP] path problems

2004-01-27 Thread Stuart
Scott Taylor wrote: I have the following file: http://domain.com/archive/newsletters/Dec03.pdf Lovely. For some reason this works: filesize('archive/newsletters/Dec03.pdf'); Relative path from the current directory. Is your script in the web root? but this does not:

[PHP] Register Globals is_upload_file

2004-01-27 Thread bill
I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I missing.. Help me please !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread Daniel Guerrier
http://us3.php.net/features.file-upload --- bill [EMAIL PROTECTED] wrote: I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I missing.. Help me please !! -- PHP

Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread John Nichel
bill wrote: I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I missing.. Help me please !! ...the Handling file uploads section of the manual.

RE: [PHP] How to prevent duplicated values?

2004-01-27 Thread Ralph Guzman
What I would do would instead be to put an index on that column, then with a simple select check if that username is free or not. Based on what I get in return I can then either insert the data or return the form to the visitor with information about it. Much more simple in the long run. I

[PHP] Re: PDF and dynamic PNG

2004-01-27 Thread Ammar Ibrahim
if nothing worked out, simply right the dynamic png to a temp file (e.g tempimg.png) then include this png file in your PDF document :) hope this helps, Ammar Dominik Heeb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I succeed in creating PDF files dynamically with PHP

Re: [PHP] Re: help with mysql

2004-01-27 Thread Tom Flood
Martin, Thank you for the insight when I ran the php file you suggested, nothing appeared to be related to mysql. I installed both the php and mysql packages onto my Linux box through a rpm installer. Where can I obtain mysql support for php? Tom Martin Luethi [EMAIL PROTECTED] wrote in

Re: [PHP] Re: help with mysql

2004-01-27 Thread daniel
My honest advice, dont use rpm's, you need to compile php via source if you want to do anything out of the ordinary like adding extensions, yes adding mysql is out of the ordinary for a standard rpm lol. Thats just my experience anyway. so ./configure --with-mysql=/usr/local/mysql or whereever

Re: [PHP] Register Globals is_upload_file

2004-01-27 Thread Marek Kilimajer
You are working with Register globals turned off, so try is_upload_file($_FILES['tmp_name']['filename']) bill wrote: I'm converting old code to work with Register globals turned off in php.ini. With it on, is_upload_file($filename) works fine but when turned off doesn't work at all. What am I

[PHP] null value and isset

2004-01-27 Thread daniel
Hi there regarding out discussions before about using isset, i set function params which are false intitalially as null ie function foo ($bar = null) , anyway $bar remains true both ways if i do isset($bar), i didnt notice this assuming it was ok, now the scripts are buggered, it was originally

Re: [PHP] Googlebot

2004-01-27 Thread Raditha Dissanayake
As others have already pointed out to you, what better place to find information about google than google? Frank Tudor wrote: That's not very helpful. I am also curious about this. Anyone have a more thought provoking answer? Frank --- Raditha Dissanayake [EMAIL PROTECTED] wrote: If you

Re: [PHP] Googlebot

2004-01-27 Thread Mike Migurski
Is Googlebot (or any other bot) able to follow links that are php? As others have already pointed out to you, what better place to find information about google than google? That, or your server logs - googlebot is great about identifying itself. RTFM's aside, a little understanding of how HTTP

Re: [PHP] path problems

2004-01-27 Thread Scott Taylor
I understand all of the file size ones. What I really don't understand is why neither of the following examples work: /* example 1 */ /* where $_SERVER['DOCUMENT_ROOT'] = /usr/local/psa/home/vhosts/domain.com/httpdocs */ $file = $_SERVER['DOCUMENT_ROOT'] . '/archive/newsletters/Dec03.pdf';

[PHP] Making Graph / Chart

2004-01-27 Thread unkno me
Hi, Does anyone know what function is needed to make graphic chart like those line / pipe char? Any example? Thanks! __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- PHP General Mailing List

[PHP] CGI ERROR

2004-01-27 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale -- PHP General Mailing List

[PHP] error_reporting(0)..

2004-01-27 Thread Robert Restad
I am attempting to write my own little error-logging function... however, for some reason, whatever I do I can not seem to override the error display setting on the server. Starting at the most simple thing, you should think that when you write . ? Error_reporting(0); ? . should pretty much

[PHP] error_reporting(0)..

2004-01-27 Thread Robert Restad
I am attempting to write my own little error-logging function... however, for some reason, whatever I do I can not seem to override the error display setting on the server. Starting at the most simple thing, you should think that when you write . ? Error_reporting(0); ? . should pretty much

Re: [PHP] Making Graph / Chart

2004-01-27 Thread John W. Holmes
unkno me wrote: Does anyone know what function is needed to make graphic chart like those line / pipe char? Any example? The easy, simple way is to just have PHP control the width of an image and stretch it. So if you had a 1x1 blue pixel image, you could stretch it 100 pixels for 100% and 50

RE: [PHP] Making Graph / Chart

2004-01-27 Thread Williams, Olwen - SAL
You could also look at http://sourceforge.net/projects/phplot/ I'm playing with that at the moment and it's doing quite a nice job. Olwen Williams [EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 3:30 PM To: unkno me

Re: [PHP] error_reporting(0)..

2004-01-27 Thread E. Stuart Hicks
Parse errors are scanned for and displayed before the PHP parser even starts trying to execute the code itself. I doubt you can usefully intercept them because anything you may have written into the file to handle them will never be run. - Original Message - From: Robert Restad [EMAIL

[PHP] naming a directory after a user-submitted string

2004-01-27 Thread Joey Manley
Thanks for the thoughts on .sit files. I still don't quite know what I'll do (maybe I'll just force'em to make .zips -- it's not like it's IMPOSSIBLE for a Mac to make .zips). Here's another question, possibly easier. Possibly even bone-headed. What kind of checking/filtering/changing do I

[PHP] strtotime Question

2004-01-27 Thread gohaku
Hi everyone, I made the mistake of using strtotime(day) instead of strtotime(today) to get the current time. I was just curious, what is strtotime(day) represent? Below is what I used to test the day and today parameters: Testing One Minute Differencebr ? echo min_diff(); function min_diff() {

[PHP] MySQL query

2004-01-27 Thread Jason Giangrande
I have the following query. UPDATE link SET hits = hits+1 WHERE website_link = '$link' $link is the website link that was clicked on. The query works fine. The problem is if $link is a website that does not exist in the database mysql_query(); still returns true even though nothing was

Re: [PHP] naming a directory after a user-submitted string

2004-01-27 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients which posting(s) your posting refers

Re: [PHP] strtotime Question

2004-01-27 Thread - Edwin -
Hi, On Tue, 27 Jan 2004 23:05:09 -0500 gohaku [EMAIL PROTECTED] wrote: Hi everyone, I made the mistake of using strtotime(day) instead of strtotime(today) to get the current time. I was just curious, what is strtotime(day) represent? Below is what I used to test the day and today

Re: [PHP] CGI ERROR

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:41:39 -0800 Dale Hersh [EMAIL PROTECTED] wrote: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page

Re: [PHP] null value and isset

2004-01-27 Thread - Edwin -
Hi, On Wed, 28 Jan 2004 11:17:52 +1100 (EST) [EMAIL PROTECTED] wrote: Hi there regarding out discussions before about using isset, i set function params which are false intitalially as null ie function foo ($bar = null) , anyway $bar remains true both ways if i do isset($bar), i didnt notice

Re: [PHP] MySQL query

2004-01-27 Thread John W. Holmes
Jason Giangrande wrote: UPDATE link SET hits = hits+1 WHERE website_link = '$link' $link is the website link that was clicked on. The query works fine. The problem is if $link is a website that does not exist in the database mysql_query(); still returns true even though nothing was updated.

Re: [PHP] MySQL query

2004-01-27 Thread Jason Wong
On Wednesday 28 January 2004 12:05, Jason Giangrande wrote: I have the following query. UPDATE link SET hits = hits+1 WHERE website_link = '$link' $link is the website link that was clicked on. The query works fine. The problem is if $link is a website that does not exist in the database

Re: [PHP] path problems

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 20:22:46 -0500 Scott Taylor [EMAIL PROTECTED] wrote: I understand all of the file size ones. What I really don't understand is why neither of the following examples work: /* example 1 */ /* where $_SERVER['DOCUMENT_ROOT'] =

Re: [PHP] Re: help with mysql

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:01:40 -0500 Tom Flood [EMAIL PROTECTED] wrote: Martin, Thank you for the insight when I ran the php file you suggested, nothing appeared to be related to mysql. I installed both the php and mysql packages onto my Linux box through a rpm installer. Where can I

RE: [PHP] Making Graph / Chart

2004-01-27 Thread Ralph Guzman
Take a look at jpgraph: http://www.aditus.nu/jpgraph/ -Original Message- From: unkno me [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Making Graph / Chart Hi, Does anyone know what function is needed to make graphic chart like

[PHP] PHP EDITORS

2004-01-27 Thread John Jensen
Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or Free) Php Editor is? -- ** John Jensen KB9KQN Woodstock, IL Wxwarn1 - http://www.wxwarn1.com Personal Page - http://john.wxwarn1.com Scannerbuff.net -

Re: [PHP] PHP EDITORS

2004-01-27 Thread John Nichel
John Jensen wrote: Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or Free) Php Editor is? Google. http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=php+editorsbtnG=Google+Search Archives. http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=php+editorsq=b Newbie

Re: [PHP] PHP EDITORS

2004-01-27 Thread - Edwin -
Hello, On Wed, 28 Jan 2004 00:10:11 -0600 John Jensen [EMAIL PROTECTED] wrote: Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or Free) Php Editor is? Maybe you missed this: http://marc.theaimsgroup.com/?l=php-generalm=107396769431732w=2 or

Re: [PHP] PHP EDITORS

2004-01-27 Thread Renan G. Galang
If you are already using eclipse, you could try the a PHP plugin, which can be downloaded free from www.xored.com It's got the basics: outlining, highlighting and error detection and some more. I guess the only thing this has over the other full featured editors out there is that you don't have

[PHP] [Newbie Guide] For the benefit of new members

2004-01-27 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

[PHP] PHP 1.0?

2004-01-27 Thread DvDmanDT
Hello everyone! Does anyone have a copy of PHP 1.0? Today I managed to get PHP 2 working, and I already had 3, 4 and 5 on my system.. So I want 1.0, just to have them all.. So, anyone? Please? I really want it.. Any pointers / comments / files appriciated! -- // DvDmanDT MSN:

<    1   2