RE: [PHP] User Authentication

2002-06-04 Thread John Holmes
Sessions use cookies as it is...so what do you really want to do...what do you want to protect? ---John Holmes... -Original Message- From: Jule Slootbeek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 9:49 PM To: php-general Subject: [PHP] User Authentication Hey guys

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread John Holmes
your result set. Then, use those numbers in your query. SELECT * FROM table WHERE ... AND ID IN($display_ids) ORDER BY new_sort_order Hopefully PG supports IN(). My $0.02, I'm sure there are other ways...or maybe this isn't even what you're looking for. :) ---John Holmes... On Thu, 6 Jun

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread John Holmes
Actually that only highlights PHP code, not HTML, if I remember right. It would be nice if this did highlighting for HTML, too, but I think it just comes out all gray. ---John Holmes... -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread John Holmes
. Unless you're looking to maintain the same 30 results in the new result set, like my previous email mentioned... ---John Holmes... -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:19 PM To: Miguel Cruz Cc: [EMAIL PROTECTED] Subject: Re

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread John Holmes
the defaults. It would be nice if you could break down this just a little more to apply to HTML tags, strings, etc. Search google and sourceforge, maybe something is written already. ---John Holmes... -Original Message- From: Jarrad Kabral [mailto:[EMAIL PROTECTED]] Sent: Wednesday

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread John Holmes
to page 4 (well, you can, but it's going to be a whole new page four because of the new sort order). Example page will really help here; maybe I'm just slow in visualizing this. We can take this off the list if necessary, too. ---John Holmes... -Original Message- From: Andre Dubuc

RE: [PHP] date problem

2002-06-06 Thread John Holmes
don't have any more queries based on time or date... ---John Holmes... -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 2:02 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] date problem Hi there, I would like to count the users out

RE: [PHP] date problem

2002-06-06 Thread John Holmes
MySQL_num_rows()? You should use COUNT(*) in your query instead of MySQL_num_rows(), if the count is all your after. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP-MySQL AND Case Sentivity

2002-06-07 Thread John Holmes
-insensitively you can always convert the blob to upper case before doing the comparison: SELECT 'A' LIKE UPPER(blob_col) FROM table_name; We plan to soon introduce casting between different character sets to make string comparison even more flexible. ---John Holmes... -Original Message- From

RE: [PHP] convertion from string to time substracting

2002-06-07 Thread John Holmes
Is there a reason you insist on using a CHAR field, instead of a TIME field, which would make this all easier and allow you to use the multitude of MySQL Date and Time Functions in your query... ??? ---John Holmes... -Original Message- From: juaid [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] convertion from string to time substracting

2002-06-07 Thread John Holmes
Umm...How about using UNIX_TIMESTAMP() in your query, then you won't need any of that PHP code you just wrote... ---John Holmes... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:22 PM To: juaid Cc: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] convertion from string to time substracting

2002-06-07 Thread John Holmes
to get exactly what you need if you use the correct column types. ---John Holmes -Original Message- From: juaid [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:20 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] convertion from string to time substracting From: Chris

RE: [PHP] convertion from string to time substracting

2002-06-07 Thread John Holmes
Okay, sorry. I stand corrected. :) Either way, the query still failed for some reason. The recommendation to use MySQL_error() is still a good one... ---John Holmes... -Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:44 PM To: [EMAIL

RE: [PHP] convertion from string to time substracting

2002-06-07 Thread John Holmes
Yeah, if he kept CHAR, then he'd have to do all of that. We were trying to convince him to switch to a TIME column, though, to make things easier. Which he did...which does... :) ---John Holmes... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07

RE: Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread John Holmes
if the type script, then instead of removing it, you just show it, but with the and replaces with HTML entities. ---John Holmes... -Original Message- From: Stuart Dallas [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 5:31 PM To: Philip Hallstrom Cc: Mikhail Avrekh; [EMAIL

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread John Holmes
javascript arrays to be evaluated when the page is loaded in the browser. It can't do anything after that point. ---John Holmes... -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 5:41 PM To: '[EMAIL PROTECTED]' Subject: [PHP] dynamic pull-down

RE: [PHP] Warning: Too many connections in xxx on line xx

2002-06-08 Thread John Holmes
It's nothing to do with PHP. Raise your max_connections in your MySQL configuration file... ---John Holmes... -Original Message- From: Dan Morris [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 08, 2002 4:54 AM To: [EMAIL PROTECTED] Subject: [PHP] Warning: Too many connections

RE: [PHP] mysql_connect()

2002-06-08 Thread John Holmes
, then there shouldn't be any % signs in the host column. Have you read over the GRANT command in the MySQL manual? How did you set up these users? ---John Holmes... -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 08, 2002 5:04 PM To: PHP-General Mailing List

RE: [PHP] PHP function for listing number of columns in table

2002-06-09 Thread John Holmes
No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use that function to find out how many columns are in the table. www.php.net/mysql_num_fields ---John Holmes... -Original Message- From: [EMAIL

RE: [PHP] Fw: Excel Spreadsheet

2002-06-09 Thread John Holmes
It would be better to just have PHP do the calculating for you, instead of trying to figure out how to pass data back and forth between a spreadsheet. You can maybe use COM for passing the data, if you still need to do it that way. ---John Holmes... -Original Message- From: Jeremy

RE: [PHP] simplicity with 2 queries..

2002-06-09 Thread John Holmes
Read the JOIN chapter of the MySQL manual and it'll tell you how to do it. It's not a PHP issue. (watch for line wrapping) http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html #JOIN ---John Holmes... -Original Message- From: Jule Slootbeek [mailto:[EMAIL PROTECTED

RE: [PHP] Thumbnails

2002-06-10 Thread John Holmes
Why reinvent the wheel? http://gallery.jacko.com/modules.php?op=modloadname=Newsfile=index or... http://gallery.sourceforge.net ---John Holmes... -Original Message- From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:48 PM To: PHP General List

RE: [PHP] URL / slash reduction

2002-06-10 Thread John Holmes
' . $_GET['id'] . ' world'; Or... Echo hello $_GET[id] world; Etc...adapt to your needs... ---John Holmes... -Original Message- From: X-power.be [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 8:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] URL / slash reduction the nickname

RE: [PHP] Re: Arrays

2002-06-10 Thread John Holmes
$echo .= lia href='. $link .'. $name ./a/libr; Notice the . in .= Equivalent of saying $echo = $echo . lia href='. $link .'. $name ./a/libr; ---John Holmes... -Original Message- From: Dan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:36 PM To: [EMAIL PROTECTED] Subject

RE: [PHP] Adding zeros in front

2002-06-10 Thread John Holmes
in an integer column, you may experience problems when MySQL generates temporary tables for some complicated joins, as in these cases MySQL trusts that the data did fit into the original column width. ---John Holmes... -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Monday

RE: [PHP] Include question

2002-06-11 Thread John Holmes
Umm...that's what it's supposed to do...it's including it... ---John Holmes... -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Include question I'm trying to use the include function in some

RE: [PHP] WHAT IS NEW to PHP 4.2.1

2002-06-11 Thread John Holmes
I'm banking it's your register_globals setting in PHP.ini. Set it to on, then read the release notes of the program you just installed so you can learn why you want it OFF. ---John Holmes... -Original Message- From: Septic Flesh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002

RE: [PHP] Unlink question more or less

2002-06-11 Thread John Holmes
You can't use wildcards. Use a system() or exec() call to do it. Why use the datetime part at all? The usernames are unique, right? ---John Holmes... -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 11:06 PM To: [EMAIL PROTECTED] Subject

RE: [PHP] Unlink question more or less

2002-06-11 Thread John Holmes
Just be aware that if the name is based on the username, it'll be easy for other people to guess the names of files on your computer and possibly inject code into it. Just something to be aware of. ---John Holmes... -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Automatic user login under NT

2002-06-12 Thread John Holmes
It is $_SERVER[LOGON_USER]. You have to enable Integrated Windows Authentication under Directory Security in IIS ---John Holmes... -Original Message- From: Barajas, Arturo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 12:43 PM To: '[EMAIL PROTECTED]' Subject: [PHP

RE: [PHP] Querying for MAX

2002-06-12 Thread John Holmes
Just note that this will fail miserably unless you are locking your tables around the SELECT MAX() and the INSERT. What if 3 different users all select the same MAX() and try to insert the next number? You really need to re-think your database design if you have to do it this way. ---John

RE: [PHP] RE: Thumbnails from mySQL binary data

2002-06-12 Thread John Holmes
Make it when it's uploaded. Then you make just one user wait on the server, instead of the multitude of users just viewing pages... ---John Holmes... -Original Message- From: Shane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 4:10 PM To: Philip Hallstrom Cc: php

RE: [PHP] Extracting from an Array

2002-06-12 Thread John Holmes
How about just SELECT RIGHT(fieldname,4) FROM tablename ---John Holmes... -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 7:09 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] Extracting from an Array $sql = select

RE: [PHP] Extracting from an Array

2002-06-12 Thread John Holmes
query to re-format the date back to dd-mm- if you want to? Do you realize that if you ever wanted to sort by this column, you'd be all messed up? It'll sort as a string, where 10 is less than 2. Do you realize what I'm trying to say?? ---John Holmes... -Original Message- From: Andre

RE: [PHP] POST/GET var problem

2002-06-12 Thread John Holmes
. ---John Holmes... -Original Message- From: Anzak Wolf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 6:09 PM To: [EMAIL PROTECTED] Subject: [PHP] POST/GET var problem take the following html code form method=post input type=image name=myimg src=something.gif /form Now

RE: [PHP] POST Arrays with register globals..

2002-06-12 Thread John Holmes
$_POST['groups'] is an array. It's size is going to be dependant on how many check boxes were checked. So, in your example, if only blah2 is selected, you'll have $_POST['groups'][0] == '2' You can use count($_POST['groups']) to see how many boxes were checked. ---John Holmes

RE: [PHP] Re: Querying for MAX

2002-06-12 Thread John Holmes
Show your code and learn how to use the MySQL_fetch_array() function... www.php.net/mysql_fetch_array ---John Holmes... -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 6:19 PM To: PHP DB List; PHP General List Subject: RE: [PHP] Re

RE: [PHP] safe scripting

2002-06-12 Thread John Holmes
Restart apache. -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 8:52 PM To: [EMAIL PROTECTED] Subject: [PHP] safe scripting How do i setup safe mode scripting (each script has a different uid) on my win32, apache, php setup? my

RE: [PHP] Value of variable with name stored in another variable

2002-06-13 Thread John Holmes
Echo $$field; --John Holmes... -Original Message- From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Value of variable with name stored in another variable How can I access the value of a variable whose

RE: [PHP] PHP with No Web Server?

2002-06-13 Thread John Holmes
else to see your PHP creations, yes, you need a web server. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: how can i insert date

2002-06-13 Thread John Holmes
INSERT INTO table (date_column) VALUES ('$insert'); If you're using a varchar() type column, then that'll work. If it's a DATE/DATETIME/etc... column in your DB, then you have to format it in the DB format... What DB are you using? ---John Holmes... -Original Message- From: Cirstoiu

RE: [PHP] Varible Varibles

2002-06-13 Thread John Holmes
solution you think of with variable variables could be better solved by using arrays. ---John Holmes... -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:42 PM To: Php Subject: [PHP] Varible Varibles howdy, I'm just curious here about varible

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread John Holmes
You can do it with two queries. SELECT @a:=0; SELECT @a:=@a+1, * FROM table; This would be better taken to a MySQL list, though. Actually, you never said what DB you were using. This works in MySQL. ---John Holmes... -Original Message- From: Jeff Field [mailto:[EMAIL PROTECTED

RE: [PHP] possible to add a record number to a query?

2002-06-13 Thread John Holmes
You can use SET @a=0; Instead of the first SELECT, too. ---John Holmes... -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] possible to add a record number to a query

RE: [PHP] MySQL Query Help!!!!

2002-06-13 Thread John Holmes
,detail_start_date_d,detail_star t_time_h,detail_start_time_m' = '$ttwo' You are comparing the literal string of 'detail... ' is less than or equal to a string like '200203041234' or something. That's going to fail. You need to go back to your SQL books... ---John Holmes... -Original Message- From

RE: [PHP] Extracting from an Array

2002-06-13 Thread John Holmes
Step through your code. What value does $rexpiry have? What do you see when you do print_r($Date) ?? Troubleshoot... ---John Holmes... -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:36 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED

RE: [PHP] MySQL Query Help!!!!

2002-06-13 Thread John Holmes
can't do that, then go away and keep learning on your own, we don't have to help you. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Dreamweaver MX?

2002-06-14 Thread John Holmes
Yes, download it and see. Gives you a GUI to program recordsets from the database, and drag and drop for results. Other PHP stuff along with highlighting built in. If it didn't cost so much, I'd recommend it. ---John Holmes... -Original Message- From: Lazor, Ed [mailto:[EMAIL

RE: [PHP] closing mysql connections

2002-06-14 Thread John Holmes
Use it in your code; it'd be a good programming habit to get into. --John Holmes... -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] closing mysql connections How necessary is this? Don't

RE: [PHP] row pointer

2002-06-14 Thread John Holmes
Keep track of it yourself as you loop through the data. Maybe if you explained what you need overall then we could suggest a method... ---John Holmes... -Original Message- From: Zac Hillier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 3:59 AM To: [EMAIL PROTECTED] Subject

RE: [PHP] massive find/replace on MySQL db

2002-06-15 Thread John Holmes
Yeah, do it all with regular queries. You shouldn't have to do any replacing in PHP. You can even use the MySQL regular expressions in your query for some more complex matching and replacing... It's all in the manual... ---John Holmes... -Original Message- From: Julie Meloni [mailto

RE: [PHP] Determine week

2002-06-15 Thread John Holmes
of the week. 6 minus the result of date('w'), added to the day component of mktime(), will give you the end... HTH, ---John Holmes... -Original Message- From: Rosen [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 15, 2002 7:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Determine week Hi, how

RE: [PHP] get a html page and save it to a file

2002-06-16 Thread John Holmes
Fopen(http://www.example.com/page.html,r;); Or File(http://www.example.com.page.html); My email program might mess up that code...either way, just use fopen() or file() to open the page, read it into a variable, then write that variable somewhere on your own system... ---John Holmes

RE: [PHP] Help on including cgi scripts into php documents.

2002-06-16 Thread John Holmes
Take a look at virtual() www.php.net/virtual ---John Holmes... -Original Message- From: Vegitas Pride [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 16, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Help on including cgi scripts into php documents. I was searching around

RE: [PHP] URGENT

2002-06-18 Thread John Holmes
. ---John Holmes... -Original Message- From: Phil Reid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 7:33 PM To: [EMAIL PROTECTED] Subject: [PHP] URGENT I am in urgent need of help! (AGAIN) Can anyone spot anything wrong with this query? $sql = UPDATE IGNORE customer SET

RE: [PHP] table porblem in netscape!!

2002-06-18 Thread John Holmes
to match the background...heh... You ever look at your old code and realize how funny it is... ?? ---John Holmes... -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: [PHP] table porblem in netscape!! I have

RE: [PHP] disable ability to download image?

2002-06-18 Thread John Holmes
to the picture, there are ways to handle that in .htacess and PHP. ---John Holmes... -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 5:14 PM To: Php-General Subject: [PHP] disable ability to download image? Is there a way to disable the users ability

RE: [PHP] How do I hide download link ...

2002-06-18 Thread John Holmes
Depends what you're protecting. If someone wants it bad enough, they'll find it. It's like using a really hard to guess password and then leaving your box open to the world to guess at... ---John Holmes... -Original Message- From: Fargo Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday

RE: [PHP] Incoming Development

2002-06-18 Thread John Holmes
like 'logged-in'. On every other page, check for this variable. If it exists, they are logged in, if not, then redirect to the log in page. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] catch the client OS user logon from php script

2002-06-19 Thread John Holmes
Look at a phpinfo(); page. All of the variables you can get are shown there. Look for the one you want. ---John Holmes... -Original Message- From: èdy kurniawan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 19, 2002 4:44 AM To: [EMAIL PROTECTED] Subject: [PHP] catch the client

RE: [PHP] read how many caracter

2002-06-20 Thread John Holmes
i want read how caracter from onepage like this asasassasa sasassasa sasasassas sasassasasa sasasassasa Yes, I want to one give you answer like this, okay? Thanks, no. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stumped on a function

2002-06-21 Thread John Holmes
Why don't you just use DATE_FORMAT() in your query, then you don't have to do any extra PHP code at all?? ---John Holmes... -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 3:50 AM To: PHP-General Mailing List Subject: [PHP] Stumped

RE: [PHP] Mysql Insert from select problem with php

2002-06-21 Thread John Holmes
) Records: 1 Duplicates: 0 Warnings: 0 mysql select * from list2; +--+ | fname| +--+ | O'Hare | | O\'Henry | +--+ 2 rows in set (0.00 sec) ---John Holmes... -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 1:57 AM

RE: [PHP] How can I output a query in a table with the output in multiple columns?

2002-06-21 Thread John Holmes
; } That last part isn't tested. I used a different method, but hopefully this gives you an idea. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mass sql update array

2002-06-21 Thread John Holmes
Can you add a checkbox to say update this row, then just check for checked checkboxes?? ---John Holmes... -Original Message- From: Daniel Hoffman [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: [PHP] mass sql update array I am

RE: [PHP] Current date time in MySQL datetime format

2002-06-22 Thread John Holmes
Use NOW() in your query... INSERT INTO table VALUES (NOW()),'John'); ---John Holmes... -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Current date time in MySQL datetime format I

[PHP] Anyone have slides for an Intro to PHP Class?

2002-06-22 Thread John Holmes
actual programming from there. Does anyone have a presentation like this? My audience will be people that have an HTML knowledge and possibly a c/c++ introduction. Thanks for any help. ---John Holmes.

RE: [PHP] PHP 4.2

2002-06-23 Thread John Holmes
You can use the HTTP_*_VARS for now, but they are depreciated. They will work right now on most any version of PHP. I would just maintain two different versions, one for PHP 4.2+ and one for earlier versions. Sure, it's a little more of a pain...though... ---John Holmes... -Original

RE: [PHP] Insert an array into MySQL

2002-06-23 Thread John Holmes
for the checkboxes. Also, what does your CREATE TABLE look like for the table your trying to insert this data into? ---John Holmes... -Original Message- From: Rob Packer [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 7:50 AM To: [EMAIL PROTECTED] Subject: [PHP] Insert an array

RE: [PHP] Remote cgi script function

2002-06-23 Thread John Holmes
= ; $text = whatever...; $ftext = urlencode($text); $fp = fopen(http://www.example.com/cgi-bin/script.cgi?text=; . $ftext, r); while($data = fread($fp,1000)) { $contents .= $data; } fclose ($fd); ? The response is now in $contents. Adapt to your needs. ---John Holmes... -- PHP General Mailing

RE: [PHP] Error(Newbie)

2002-06-23 Thread John Holmes
and the value would be bad_data','bad_time','bad_host','bad_referrer','bad_agent')# If slashes are not getting added to that data, either by magic quotes or by addslashes(), then he's open to getting bad data inserted into his table... If magic_quotes_gpc is ON, then you're fine... ---John Holmes

RE: [PHP] Limiting text inputs by character count?

2002-06-23 Thread John Holmes
The best way to do this is server side with strlen(). You can use javascript or maxlength, but if a user wants to get around it, they can. ---John Holmes... -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 9:47 PM To: '[EMAIL PROTECTED

RE: [PHP] Time Delay using phpscript

2002-06-23 Thread John Holmes
. Best you could do is output some JavaScript along with your HTML and attempt to control it that way. Basically, since you already know how to do it with JavaScript, have PHP write the JavaScript for you... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] copying the structure of a blank table in mysql

2002-06-24 Thread John Holmes
`$new_name`,$create); $result = mysql_query($create); return; } ? Untested, add in some error checking and validate the $old and $new names, and adapt to your needs... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] URGENT!!! File Uplaod

2002-06-24 Thread John Holmes
You're completely right - as usual - now for the file handling... what's better? Storing it to the DB or as file?? File -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Compile error.

2002-06-24 Thread John Holmes
Using the 4.2.1 source available from the main downloads page, I'm getting: php_functions.c:93:27: missing binary operator before '!' You get an error when you do what? Unzip the source, compile it, run it, load a .php page, crap your pants??? ---John Holmes... -- PHP General Mailing List

RE: [PHP] PHP server error...

2002-06-24 Thread John Holmes
Check your session.save_path in PHP.ini. If you don't have a PHP.ini, make one from PHP-ini.dist or PHP-ini.recommended ---John Holmes... -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 5:30 PM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Lost, need help debuggin....

2002-06-24 Thread John Holmes
U...what was the question again? John you're not paying us Holmes -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 7:46 PM To: PHP General Subject: Re: [PHP] Lost, need help debuggin Look, I am glad that we are clear on

RE: [PHP] newbie on security

2002-06-24 Thread John Holmes
for. And if it's worth protecting, it's worth cracking into so you don't have the protection... What do you have that you think is so good? There are plenty of programs that release open source code and do well... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] finding the highest primary key in a table

2002-06-24 Thread John Holmes
I want to find the number of the highest primary key in a particular MySQL table. SELECT MAX(ID) FROM table Can you tell us why you need to do this? I have a feeling you're doing something bad... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] Easy Date MySQL Question...

2002-06-25 Thread John Holmes
manual, chapter 6: Date and Time Functions... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Downloading Files

2002-06-25 Thread John Holmes
); readfile($download_dir . $filename); } else { echo you're not a valid user; } ? Adapt to your needs and don't even try this if you're not going to validate the download directory and filename... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread John Holmes
easier, teaching them to put ?=$_POST['name']? or {name} in the document??? ---John Holmes... -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 3:50 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Seperating presentation from logic

RE: [PHP] Print a char from a variable number

2002-06-25 Thread John Holmes
Why not use str_repeat()? www.php.net/str_repeat ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Print a char from a variable number Hello List, I want to do

RE: [PHP] Automated Downloads WAS File Retrieval, unusual

2002-06-25 Thread John Holmes
is that you read up on the cURL section of the manual and any other documents about it you can find. I think that's the best option to start on a project like this... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] using variables in a function within a fuction

2002-06-25 Thread John Holmes
? function test1() {$hello=hello;} function test2() {test1(); print $hello;} test2(); ? This should print hello. But it does'nt work. Any idea? Read here to find out why: http://www.php.net/manual/en/language.variables.scope.php ---John Holmes... -- PHP General Mailing List

RE: [PHP] Re: MySQL Problem with PHP

2002-06-26 Thread John Holmes
I just preg_replace(/\'/,\',$text) and all was good :o) That's what addslashes() is for. It handles single and double quotes, backslashes, and nulls, so you won't have any problems... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
comparisons on it. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Require()

2002-06-26 Thread John Holmes
. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
to a four column table. Or change the menu from a vertical column on the left to a horizontal row on the bottom that's run by images instead of text. Do you trust your designer to do all that and not mess up any of your PHP code that's thrown in with the HTML? That's why you use templates... ---John

RE: [PHP] MySQL Problem with PHP

2002-06-26 Thread John Holmes
),'that') | ++ | this'that | ++ 1 row in set (0.01 sec) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL query time

2002-06-26 Thread John Holmes
time of the query, but it's the best you can get. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Security problem?

2002-06-26 Thread John Holmes
/user/www is your web root. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: redeclaring functions

2002-06-26 Thread John Holmes
with the same name. Period. Use some logic when you're programming and rethink your solution. Use function_exists() before each function declaration so you don't declare it twice? Are both functions exactly the same? ---John Holmes.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
, everything is all packaged together. Results may vary on different servers; I'd like to see a *nix/Apache result set posted... Tested on Win2K / 1Ghz AMD / 512MB RAM / IIS 5.0 / PHP 4.2.1 (ISAPI Module), YRMV ---John Holmes... TEST 1.1 :: 20 registered vars :: 10 iterations name/ total time

RE: [PHP] MySQL fetch data

2002-06-27 Thread John Holmes
have to, that way I'm not wasting a bunch of memory in PHP by creating these huge arrays... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Accessing cookies in required files

2002-06-27 Thread John Holmes
Function whatever() { global $testcookie; or global $HTTP_COOKIE_VARS; or upgrade your PHP and jus use $_COOKIE['testcookie'] and it's always available, regardless of scope. ---John Holmes... -Original Message- From: Chris Morrow [mailto:[EMAIL PROTECTED]] Sent: Thursday

RE: [PHP] Newbie problem - Slashes

2002-06-27 Thread John Holmes
Show us your code. ---John Holmes... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 5:33 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Newbie problem - Slashes Hi John,Phillip, Thanks

RE: [PHP] preg_replace pains

2002-06-27 Thread John Holmes
Wouldn't you want to use preg_match() before you replace it? www.php.net/preg_match ---John Holmes... -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 9:37 PM To: [EMAIL PROTECTED] Subject: [PHP] preg_replace pains Hi all, I've

RE: [PHP] SESSION's from common computers

2002-06-28 Thread John Holmes
computer, they'll have to start a new session there automatically, because they won't have the same cookie matching the session ID from the first computer. ---John Holmes... -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 1:24 AM To: PHP

  1   2   3   4   5   6   7   8   9   >