Re: [PHP] placing values in html teaxtarea

2004-07-12 Thread Keith Greene
textareas do not use the value attribute. instead, the value is placed between the textarea/textarea tags: textarea name=zoutput rows=20 cols=70 wrap /? echo $test; ?/textarea At 08:09 AM 7/12/2004, Hull, Douglas D wrote: After doing calculations etc on my data I am wanting to place it in a

Re: [PHP] OO woes

2004-07-12 Thread Keith Greene
$query = 'INSERT into aeMail set test=\''.$_POST[test].'\''; Your quotes look screwy to me. You seem to be missing both trailing single quotes. try this: $query = 'INSERT into aeMail set test=\'''.$_POST[test].'\'''; At 01:07 PM 7/12/2004, Matthew Sims wrote: PHP version 5.0.0RC3 (cgi) (built:

Re: [PHP] Malicious SQL

2004-07-07 Thread Keith Greene
For example, if you are not quoting your criteria: sql = mysql_query(select * from users where name=.$name); if someone enters the following in the name field, you're toast: Jim; delete from users; on the contrary: sql = mysql_query(select * from users where name='.$name.'); will simply look for a

Re: [PHP] binary data over UDP with PHP?

2004-07-07 Thread Keith Greene
I use the following without problem: $fp = fsockopen(udp://www.server.com, 24250, $errno, $errstr, .2); if (!$fp) { $status = Server not available; } else { $trigger = chr(hexdec('FF')).chr(hexdec('FF')).chr(hexdec('01')).chr(hexdec('00'));

Re: [PHP] images outside of document root

2004-07-06 Thread Keith Greene
I use a system like that described below, however I added some checks to thwart attack. first, the image serving script checks to make sure the user has a session id. This prevents people just loading the script to get the images, and also deters hot linking. second, I have a script that runs

Re: [PHP] include question

2004-06-21 Thread Keith Greene
Aaron, I copied your code to a test file called test.php and created the following pages as dummy includes: verify_faculty_info.php, functions.php and accesscontrol.php in functions.php, I created a dummy search function: function search(){ return Found!BR; } in verify_faculty_info.php,

Re: [PHP] Re: What's this

2004-06-17 Thread Keith Greene
This stuff is common in PHPbb. Usually you will find the constants like that located in the template files. The definitions for those constants are usually found in the php file associated with that template file. For example, if you found form method=post action={S_MODE} in

RE: [PHP] src=test.php

2004-06-16 Thread Keith Greene
I don't think there is a standard for the extensions of these files. In fact, this page: http://www.w3c.org/TR/CSS1#basic-concepts uses a url of http://style.com/cool; as an example of an external style sheet. Also, I use a .php file as a javascript include on my site. The script is included on

Re: [PHP] What is white space

2003-11-15 Thread Keith Greene
It's not a bug. Anything (including spaces, newlines etc) that is not inside ? and ? is output directly to the browser. At 03:49 PM 11/15/2003, you wrote: Robert Cummings wrote: FYI, if you're woprried about the header cannot be sent due to output... error, then if your file only has code and

Re: [PHP] Re: Alternet row colors

2003-11-15 Thread Keith Greene
It's so much easier to use the mod (%) operator: using the mod operator, you can check if a variable is divisible by some other number without leaving a remainder. For this example, we want to change every other row, so we would compare our $count against 2 to see if it leaves a remainder: $bg

Re: [PHP] What is white space

2003-11-15 Thread Keith Greene
Yep. It allows you to only use php where needed, and use HTML for the rest. At 04:02 PM 11/15/2003, you wrote: On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote: Robert Cummings wrote: FYI, if you're woprried about the header cannot be sent due to output... error, then if your file only has

Re: [PHP] What is white space

2003-11-15 Thread Keith Greene
with headers. Keith At 04:41 PM 11/15/2003, Leif K-Brooks wrote: Keith Greene wrote: That's not a bug either. Leaving out the ? is simply telling the php parser that it has to parse the rest of the script. Where's the manual page saying that's allowed? -- The above message is encrypted

[PHP] php Losing apache environment vars

2003-11-10 Thread Keith Greene
Greetings list, I have run into a problem that has me at my wits end. We run an affiliate program, and have forum software (phpBB) wrapped in our menu system. There are 2 sides to the site, Affiliates and Admin, and I have 2 installs of the board using the same database. This all works fine.

Re: [PHP] php Losing apache environment vars

2003-11-10 Thread Keith Greene
After restarting apache, the error is gone. Still not sure what was causing it. The site was running fine to begin with, and the environment vars have been in use for over a year throughout the site. Keith At 12:56 PM 11/10/2003, Keith Greene wrote: Greetings list, I have run into a problem