Re: [PHP] Global varialbes in functions

2003-10-04 Thread Matt Schroebel
Jeff McKeon said on Saturday, October 04, 2003 at 11:35 AM However on the third funtion I get an undefined index error for 'ticketid' Post some code ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Correct Coding

2003-08-14 Thread Matt Schroebel
Roger B.A. Klorese wrote: if (Add == $Task) I call that 'defensive programming', defending yourself from yourself! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best PHP CMS

2003-08-09 Thread Matt Schroebel
-Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Best PHP CMS I'm just looking for some opinions. I've been going though sourceforge looking at different CMS systems. There are a lot of

[PHP] PHP CMS for high load

2003-07-23 Thread Matt Schroebel
Is anyone using a php/mysql/apache CMS (either custom or open source) that is performing well serving on the order of 1 million page views a month with 2600+ items of content? If so, I'd like to know what your using and a description of your server setup, such as if the backend runs on a

RE: [PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Matt Schroebel
-Why the concern about letting that user have execute permissions, and then prevent anyone (except those that have valid reasons) from having write/execute permission to the webroot. The permissions are Read, Write, and Execute. Read and Write are self explanatory (for directories Write means

RE: [PHP] PHP Auto-Date Select Box

2003-04-04 Thread Matt Schroebel
-Original Message- From: Jay Fitzgerald [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:17 AM Subject: [PHP] PHP Auto-Date Select Box Does anyone know how I can make a PHP form select box that has the dates in it for the next 7 days including today and the remaining

RE: [PHP] RE: [newbie] embed php in html file

2003-04-03 Thread Matt Schroebel
-Original Message- From: Bobby Rahman [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: [PHP] RE: [newbie] embed php in html file I have a header.php : ? session_start(); echo BRfont face=\Verdana\font color=\red\size=\3\Logged

RE: [PHP] datetime

2003-04-03 Thread Matt Schroebel
-Original Message- From: Tim Haskins [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 2:45 PM To: [EMAIL PROTECTED] Subject: [PHP] datetime How does one retrieve the date and time off a server in the following format? 2003-04-03 11:11:38 Plenty of examples here:

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Matt Schroebel
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers header('HTTP/1.0 403 Forbidden'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Matt Schroebel
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:59 AM To: Matt Schroebel; [EMAIL PROTECTED] Subject: RE: [PHP] How to Return 403 Forbidden headers Thanks, but it returns a blank page. Works for me in I.E 6. ?php header

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Matt Schroebel
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 11:15 AM To: Matt Schroebel Subject: RE: [PHP] How to Return 403 Forbidden headers Try it in Netscape 7 if you have it. 6.5 showed blank, and if you add html it shows up

RE: [PHP] RE: Anew set of eyes

2003-03-27 Thread Matt Schroebel
-Original Message- From: Richard Whitney [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Anew set of eyes Can you folks help me out b y looking at this code? It all of a sudden is not grabbing the email address from

RE: [PHP] redirect using header

2003-03-27 Thread Matt Schroebel
-Original Message- From: David Banning [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 2:15 PM To: [EMAIL PROTECTED] Subject: [PHP] redirect using header I have been trying to do a redirect with header; HTML HEAD TITLEOptex Staging and Services Inc. /TITLE

RE: [PHP] new to PHP

2003-03-06 Thread Matt Schroebel
From: juan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:36 AM Subject: [PHP] new to PHP New to php and looking to by this book PHP For the World Wide Web: A Visual QuickStart Guide The book says it covers PHP version 4.04. Will this book be current enough for me Get

RE: [PHP] Process array after form submission problem

2003-02-13 Thread Matt Schroebel
-Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 2:10 PM To: Php-General Subject: [PHP] Process array after form submission problem Hi, My problem is that I have a dynamic form with vars which I want to process. The

RE: [PHP] tracking bulk email

2003-02-04 Thread Matt Schroebel
-Original Message- From: Lowell Allen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 12:38 PM To: PHP Subject: [PHP] tracking bulk email (1) My client is nervous about the script failing mid-list and not being able to determine which contacts were sent mail. I need a

RE: [PHP] How to compare 2 strings

2003-02-03 Thread Matt Schroebel
-Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 9:31 AM Subject: [PHP] How to compare 2 strings How to compare 2 strings in PHP I hawe 2 array where I have only string values some values in both arrays are same but if

RE: [PHP] checkboxes and php...

2003-01-31 Thread Matt Schroebel
-Original Message- From: Mr. BuNgL3 [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 8:43 AM To: [EMAIL PROTECTED] Subject: [PHP] checkboxes and php... Hi... can you give me some lights in this subject? How checkboxes work with php? Or where i can find some info

RE: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Matt Schroebel
-Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:02 AM Subject: [PHP] HTTP_GET_VARS[] The issue I am having now is that I have the editsoftwareassest.php's form action set to POST to a script called updatesoftwareasset.php

RE: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Matt Schroebel
$query = UPDATE assets SET title = '$title', version = '$version', developer = '$developer', serial_number = '$serial_number', WHERE asset_id = '$HTTP_GET_VARS[id]' ; Change the var to '{$HTTP_POST_VARS['id']}' (with the curly braces since the array reference is inside a double

RE: [PHP] while loop- will this work?

2003-01-30 Thread Matt Schroebel
-Original Message- From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] while loop- will this work? Should this work? $f1 = rand(999,999); while($check_sid =

RE: [PHP] apache webprotect logout

2003-01-27 Thread Matt Schroebel
-Original Message- From: Tommy Jensehaugen [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: [PHP] apache webprotect logout When I browse to this folder I get a popup to type my name and password in( automatic popup by internet

RE: [PHP] mysql_fetch_row problem

2003-01-23 Thread Matt Schroebel
-Original Message- From: Bryan Brannigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:03 AM Subject: [PHP] mysql_fetch_row problem $db = mysql_connect(localhost, webapp); mysql_select_db(helpdesk,$db); $result = mysql_query(SELECT contactemail FROM loc WHERE ...

RE: [PHP] Need help.

2003-01-22 Thread Matt Schroebel
-Original Message- From: thkiat [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 10:23 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Need help. Can someone tell me what should I do to solve this problem? Warning: mysql_fetch_row(): supplied argument

RE: [PHP] File upload problem

2003-01-21 Thread Matt Schroebel
-Original Message- From: John M [mailto:[EMAIL PROTECTED]] Sent: Monday, June 30, 2003 3:05 PM To: [EMAIL PROTECTED] Subject: [PHP] File upload problem Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an

RE: [PHP] Header sent polem

2003-01-17 Thread Matt Schroebel
-Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 12:56 PM Subject: [PHP] Header sent polem Hi all, Following Chris's idea on how to handle visitors sessions, I'm trying to setup a cookie with a randomly generated session ID

RE: [PHP] Problem with a for loop...

2003-01-16 Thread Matt Schroebel
-Original Message- From: Davíð Örn Jóhannsson [mailto:[EMAIL PROTECTED]] Sent: 16. janúar 2003 13:59 Subject: RE: [PHP] Problem with a for loop... I only want the last inserted row in the mysql database, and each time the script goes trough the loop it adds a new row into the

RE: [PHP] Imagecreatefromjpeg()

2003-01-16 Thread Matt Schroebel
? Header(Content-type: image/jpeg); $im = ImageCreateFromJpeg('1234_1.jpg'); ImageJpeg($im);? The file is in the folder, it has execute and write permissions set, and the error given is The image cannot be displayed, because it contains errors., which is not very useful. Anyone have

RE: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Matt Schroebel
-Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 1:00 PM To: Beauford.2002; PHP General Subject: Re: [PHP] Windows PHP vs Linux PHP Set your php.ini file and error reporting as such: error_reporting = E_ALL ~E_NOTICE Or

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
-Original Message- From: Simon Dedeyne [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 9:03 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mysql/php database performance question So I think I have to reformulate the question: which is better 5 varchar columns of size 50 or

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
-Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:04 AM To: Matt Schroebel Cc: Simon Dedeyne; [EMAIL PROTECTED] Subject: Re: [PHP] Mysql/php database performance question char of greater size than 3 is converted to varchar

RE: [PHP] Mysql/php database performance question

2003-01-10 Thread Matt Schroebel
-Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:45 AM To: Matt Schroebel Cc: Simon Dedeyne; [EMAIL PROTECTED] Subject: Re: [PHP] Mysql/php database performance question Sure, just tried it (32-bit platform, might be 7 for 64

RE: [PHP] Undefined index a different problem

2003-01-07 Thread Matt Schroebel
Try: echo($GLOBALS[$i]); Or echo {$GLOBALS[$i]}; This times it's the array in the double quoted strings ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Information Retrieval.. help

2002-11-05 Thread Matt Schroebel
Why don't you use full text search, which creates a score? Two tutorials: http://www.mysql.com/doc/en/Fulltext_Search.html http://www.zend.com/zend/tut/tutorial-ferrara1.php The match words need to be at least 3 characters in length or you'll get no results. -Original Message- From:

RE: [PHP] Packaging files for download

2002-10-24 Thread Matt Schroebel
Look at the user notes on the man page for zip http://www.php.net/manual/en/ref.zip.php, there are several solutions there -Original Message- From: Brent Baisley [mailto:brent;landover.com] Sent: Thursday, October 24, 2002 10:30 AM To: php-gen Subject: [PHP] Packaging files for

RE: [PHP] Setting date fields in mysql queries

2002-10-02 Thread Matt Schroebel
From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 3:17 PM Subject: [PHP] Setting date fields in mysql queries I have the following line in a program I'm working on: $query = UPDATE countertable SET CurrDate = '$ndate' WHERE ID = $id $ndate is a

RE: [PHP] freetype - could not open font problem

2002-09-24 Thread Matt Schroebel
From: andy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 7:29 AM Subject: [PHP] freetype - could not open font problem I am trying to use freetype, but do always get the message Warning: Could not find/open font in test.php on line 18 The font is available and ok. I

RE: [PHP] Jpeg resize quality problem

2002-09-24 Thread Matt Schroebel
-Original Message- From: Michael F. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Jpeg resize quality problem Hello, I have a php script which resizes a jpeg file. I use ImageCopyResized and ImageJPEG

RE: [PHP] Re: Displaying PDF file

2002-09-12 Thread Matt Schroebel
-Original Message- From: Erwin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Displaying PDF file Joseph Szobody wrote: Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the

RE: [PHP] help with installation

2002-09-09 Thread Matt Schroebel
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:32 AM Subject: [PHP] help with installation Sure I'm missing some thing silly here but its monday morning :) I have just installed php 4.2.3 with apache 1.3.26. I have all loadmodule/addmodule as well

RE: [PHP] PHP Source files

2002-09-09 Thread Matt Schroebel
From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:41 PM Subject: [PHP] PHP Source files I'm wondering if anyone knows where I can find information about how PHP parser processes commands like: $a=$b+$c; if ($b $a) {} (Ones with operators)

RE: [PHP] PHP_AUTH_USER

2002-08-30 Thread Matt Schroebel
From: Hendråwan Rinäldi [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 5:44 AM Subject: [PHP] PHP_AUTH_USER anyone can help me what is the script for log out WWW-authenticate You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a

RE: [PHP] PHP_AUTH_USER

2002-08-30 Thread Matt Schroebel
From: Stas Maximov [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 8:02 AM To: Matt Schroebel Cc: PHP General Subject: Re: [PHP] PHP_AUTH_USER You can't log out of http authentication. Close the browser is it. Not very secure, eh. Use a session based login method

RE: [PHP] Stepping through an array more than once

2002-08-28 Thread Matt Schroebel
From: Petre Agenbag [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 8:17 AM To: Petre Agenbag Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stepping through an array more than once Actually, it's not accurate for me to say stepping through an array more than once, as I want to

[PHP] PDF POST, but refresh is GET

2002-08-28 Thread Matt Schroebel
I have a page the will print a telephone listing in pdf (using pdflib and inline pdf) by POSTing the requested orientation and papersize to a second page. I've found that I have to post to a second page because IE seems to cache a response, and if I post to the same page, I can never get the

RE: [PHP] PDF POST, but refresh is GET

2002-08-28 Thread Matt Schroebel
GET solved it. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 2:44 PM To: Matt Schroebel Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PDF POST, but refresh is GET Sounds like an IE bug to me. If it knows there is POST data

RE: [PHP] Re: Tricky question - referrer from ousite, or from intern?

2002-08-27 Thread Matt Schroebel
However.. you think it might be not sure that this workes for every browser? PUh... thats bad. Do u have examples for that? It workes with IE on PC. Well, the HTTP 1.1 spec says it shouldn't be set when it's typed into the address line. That happens often enough that it can't be relied

RE: [PHP] flaking out on foreach

2002-08-27 Thread Matt Schroebel
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:08 AM Subject: [PHP] flaking out on foreach Why is this code: ?php $bob=array(1,2,3,5,6); foreach($bob as $foo);

RE: [PHP] check unread messages in a forum

2002-08-26 Thread Matt Schroebel
From: Charlotte [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 8:04 AM To: [EMAIL PROTECTED] Subject: [PHP] check unread messages in a forum I have made a forum in PHP, and the users are logged in using cookies. I want all new threads (and if there are new replies in an old

RE: [PHP] strange error message when trying to start apache

2002-08-26 Thread Matt Schroebel
From: Jesse Lawrence [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] strange error message when trying to start apache Everything appeared to go smoothly, except when I try to start up Apache, I get the following error message:

[PHP] Calendar logic question

2002-08-21 Thread Matt Schroebel
I have a calendar application that shows events in a month. I want to add the ability to have re-occuring events. I've been thinking about how to do that, but it's not seeming to be too easy. Say, I have a table of re-occuring events: eventId int eventName varchar eventStartDate date

RE: [PHP] Array query - finding the key for a value

2002-08-16 Thread Matt Schroebel
From: Tim Fountain [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 7:51 AM Subject: [PHP] Array query - finding the key for a value This may be a silly question, but I'm used to being able to find PHP functions to do whatever I want, but I can't find one to do this! If I have

RE: [PHP] How to show data in one row from two rows from the database

2002-08-15 Thread Matt Schroebel
From: Ing. Rajesh Kumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] How to show data in one row from two rows from the database Hi everybody What I wrote in the subject may look complicated so I added a html file. It

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Matt Schroebel
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include opens source, but it shouldn't [snip] Only on demand. I'd like to define the variable without showing the file $var=include(); do something

RE: [PHP] Problem with Testing if the user has an account in my database

2002-08-15 Thread Matt Schroebel
From: Sebastian Marcu [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:32 PM Subject: [PHP] Problem with Testing if the user has an account in my database For some reason though it isn't working right and keeps telling me that the 'Email' address is already taken even

RE: [PHP] Can anyone help me out? I am really getting frustrated!

2002-08-15 Thread Matt Schroebel
-Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Can anyone help me out? I am really getting frustrated! Hello all, I am very confused. This script that I have been working on for a while

RE: [PHP] addslashes() and stripslashes()

2002-08-14 Thread Matt Schroebel
-Original Message- From: ed [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 1:48 PM To: [EMAIL PROTECTED] Subject: [PHP] addslashes() and stripslashes() Is it a good idea to always use addslashes() on a value gathered from a text field or textarea? Yes, always.

RE: [PHP] Creating a zip file using php

2002-08-13 Thread Matt Schroebel
From: Rahul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating a zip file using php Hi I want to create a zip file using php. Can this be done? If anybody has a code snippet, for this, or any guidelines, please send it

RE: [PHP] Can I assign to $_POST legitimately

2002-08-09 Thread Matt Schroebel
From: Henry [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 6:00 AM Subject: [PHP] Can I assign to $_POST legitimately I can do it but is it legit? $_POST['name']='henry'; within a php script? if $_POST['name'] is not set. The clearly $_POST['name'] was not posted!! Yes,

RE: [PHP] Linux PHP editor

2002-08-09 Thread Matt Schroebel
Here's some Linux ones that satisfy this requirement: 1. Zend IDE: Nice, but $$$ is the big inhibiting factor. There's a Zend Studio for-non-commercial use version available for free. It's based on version 2.0 of the product, fully functional. I would have to say that Zend Studio is

RE: [PHP] Protect PHP coding

2002-08-02 Thread Matt Schroebel
From: YC Nyon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 12:59 PM Subject: [PHP] Protect PHP coding There is the PHP Obfuscator/Obscurer: http://pobs.mywalhalla.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Readdir

2002-08-01 Thread Matt Schroebel
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Readdir New To Php so please bear with me... :) I used the readdir function to read the files listed on a Apache server. And it worked fine. Now I would

RE: [PHP] Help Please

2002-07-29 Thread Matt Schroebel
-Original Message- From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 4:27 PM To: Dennis Moore; [EMAIL PROTECTED] Subject: Re: [PHP] Help Please Hi, I did not find any print or echo stetement in the sample example before hearder or setcookie function.

RE: [PHP] 'Previous' 1, 2, 3, 4, etc. 'Next'

2002-07-25 Thread Matt Schroebel
-Original Message- From: ctan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:24 AM To: [EMAIL PROTECTED] Subject: [PHP] 'Previous' 1, 2, 3, 4, etc. 'Next' I seem to have a problem getting the page to display beyond the limit if a page, i.e. if the limit if 10

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Matt Schroebel
From: Nathan Cook [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 12:34 PM Subject: [PHP] New way to make select boxes auto select You may already be doing it like this, but I think I found a new way to make select boxes auto-select (what data they put in) a lot easier. All

RE: [PHP] New way to make select boxes auto select

2002-07-25 Thread Matt Schroebel
From: Nathan Cook [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 2:52 PM Subject: Re: [PHP] New way to make select boxes auto select How are you able to quickly and painlessly determine which key gets the selected value, from form submission data, when building the initial

RE: [PHP] Running ./configure multiple times

2002-07-24 Thread Matt Schroebel
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 2:53 PM Subject: Re: [PHP] Running ./configure multiple times Yes, it is pretty safe to run ./configure more than once. The 1st time, it create the config.cache and so on. The 2nd time, it use the

RE: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0

2002-07-23 Thread Matt Schroebel
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 12:43 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0 I don't know how to appy patches to the PHP software. I just finish upgrading the website to

RE: [PHP] Newbie getting close, form submission

2002-07-22 Thread Matt Schroebel
From: Dean Ouellette [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:43 AM Subject: [PHP] Newbie getting close, form submission I am a complete newbie, search the web for examples right now and use them. The host has php 3.0. ^ That's really old, you

RE: [PHP] Newbie getting close, form submission

2002-07-22 Thread Matt Schroebel
From: Dean Ouellette [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:56 AM Subject: RE: [PHP] Newbie getting close, form submission $Message = $HTTP_POST_VARS['Message']; // should single quote associative array indexes if (isset($HTTP_POST_VARS['Header'])) { This is 78

RE: [PHP] dbf Help

2002-07-22 Thread Matt Schroebel
From: Vinod Palan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:41 PM Subject: [PHP] dbf Help I have already php installed on linux running with mysql enabled. Now I wanted to read dbf files and I came to know that we need to install php with

RE: [PHP] stores / ecommerce

2002-07-22 Thread Matt Schroebel
-Original Message- From: Chris Edwards [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 1:11 PM Subject: [PHP] stores / ecommerce What are some good e-commerce stores written out there for PHP and mySQL?? http://marc.theaimsgroup.com/?l=php-generalm=101839857008918w=2 --

RE: [PHP] What does register_globals do?

2002-07-22 Thread Matt Schroebel
From: Matt Babineau [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 3:59 PM Subject: [PHP] What does register_globals do? I have never had a clear understanding about what this does, the php.ini has an explanation but being newer to PHP I don't understand it very well. Could

RE: [PHP] What does register_globals do?

2002-07-22 Thread Matt Schroebel
From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:21 PM Subject: Re: [PHP] What does register_globals do? My way of thinking about is: With register_globals ON, all variables defined are available anywhere in the script (with the exception of functions and

RE: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-15 Thread Matt Schroebel
From: gilles [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:19 PM Subject: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not? ? error_reporting(E_ALL); session_start(); if (!isset($_SESSION['download'])) { @$_SESSION['download'] =

RE: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Matt Schroebel
A couple projects that I have thought of doing at are quite large would be: 1. A network monitor, like Big Brother, but written in php. Completely db driven, with an easy to use web interfaces for monitoring/adding systems and has uptime graphs, etc. It can be quite complex if you try to add

RE: [PHP] HTTP authentication

2002-07-10 Thread Matt Schroebel
From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 4:30 PM I thought it will ask some user name and password thing but it just displays me the string text to send if user hits cancel. This is the code: ?php header(WWW-Authenticate: Basic realm=\My

RE: [PHP] Postal / Zip Code Proximity Search

2002-07-09 Thread Matt Schroebel
-Original Message- From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Postal / Zip Code Proximity Search I don't know what you mean by straight line. AFAIK all of this will be as the crow flies.

RE: [PHP] Working under Apache 1.3 but not Under IIS

2002-07-09 Thread Matt Schroebel
From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]] Subject: [PHP] Working under Apache 1.3 but not Under IIS The function shown below only functions with my Apache on WinNT... I have tried it on my local Server (thats the one running the Apache and it works perfectly)... I am

RE: [PHP] Postal / Zip Code Proximity Search

2002-07-09 Thread Matt Schroebel
I found the points file here: ftp://ftp.census.gov/pub/tiger/pts/geoex.zip Sorry, I was wrong here. Those aren't the right files, and it's hard to find the correct ones. Should I ever do that, I'll post a correct link. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Schroebel
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... when doing sth like: $name = My $row['name']; You have to wrap array references in curly braces within double quoted strings. Proper form is: $name = My

RE: [PHP] .htpasswd

2002-07-02 Thread Matt Schroebel
%htpasswd --help Usage: htpasswd [-cmdps] passwordfile username htpasswd -b[cmdps] passwordfile username password htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create a new file. -n Don't update file; display results on stdout. -m Force

RE: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Schroebel
-Original Message- From: Hugo Wetterberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] $name = My $row['name'] not longer possible? It is possible to use arrays within strings, just skip ''. Write $name=My

RE: [PHP] checking

2002-06-28 Thread Matt Schroebel
if ($lastname=) { $insert=no } Even though you should use either empty() or isset(), you'd have a parse error if you wrote that as: if (=$lastname) { $insert=no } It takes a little time to learn to write the test 'backwards' but if you do the php parser will help and catch your

RE: [PHP] POST v. GET

2002-06-20 Thread Matt Schroebel
after you read this web page (take you no more than 15 minutes), you should consider browsing the actual HTTP spec, though it's pretty technical and is very long. I've html'd the RFC2616 for easier reading and you can find it at http://www.php-faq.com/httpintro.php -- PHP General Mailing

RE: [PHP] Using PHP and Apache's .htaccess files.

2002-06-20 Thread Matt Schroebel
-Original Message- From: Todd Fernandes [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 3:07 PM The way I have it working now is that I check to see if $PHP_AUTH_USER is set, and if it is, I send them to the page that is a directory down behind the .htaccess file.

RE: [PHP] copy protection

2002-05-07 Thread Matt Schroebel
Look at the Zend Encoder. It's not free, but there is a free trial available. http://www.zend.com/store/products/zend-encoder.php -Original Message- From: Udo Giacomozzi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:36 AM Subject: [PHP] copy protection Has somebody

RE: [PHP] Help on dealing with arrays of HTTP_POST vars

2002-04-15 Thread Matt Schroebel
-Original Message- From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] function SearchOrders() { global $Orders; global $HTTP_POST_VARS; $index = count($HTTP_POST_VARS); for($i=1; $i = $index; $i++) { The trouble is here . You should be

RE: [PHP] AS/400 data access

2002-04-09 Thread Matt Schroebel
I just did this on a Linux box running Red Hat 7.2 last Friday. I used several sources on the web and wrote up my exact steps and posted them at http://www.php-faq.com/as400.html The other sources are quoted in that document. Keep in mind, it's not the final version of the document, and I'd

RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread Matt Schroebel
You should use $HTTP_POST_VARS (or $_POST) all of the time. There's security risks in using register_globals. It's not risky in all cases. But register_globals will allow arbitrary variables to be added to into the name space of your script by simply putting them on the uri. Code not

RE: [PHP] Query from POST_VARS

2002-04-03 Thread Matt Schroebel
In my opinion, you should always single quote everything, including numerics. Why? Say you have a: $sql = Delete from table where id=$id; where id is expected to be numeric. What if the variable id ends up containing: 7 or id0 So the sql would end up as $sql = Delete from table where id=7

RE: [PHP] using a counter in a foreach loop

2002-03-26 Thread Matt Schroebel
$i = 1; foreach ($months) { // do some things $i++; } -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 9:49 AM I have a foreach loop, where I execute some commands for each element in a certain array. One thing I would like to

RE: [PHP] FAQ

2002-03-22 Thread Matt Schroebel
I've been working on that at http://www.php-faq.com/ Want to help? -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] FAQ Has anyone given any thought to possibly maintaining a FAQ

RE: [PHP] combining headers with includes

2002-03-19 Thread Matt Schroebel
Ob_end_clean is clearing the buffer and not sending any data to the browser. Use ob_flush or ob_end_flush(). Output buffereing will take care of ordering the headers so they'll still work even though the include may still be sending some output. -Original Message- From: Ian Wayne

RE: [PHP] Website STATISTICS

2002-03-18 Thread Matt Schroebel
I use webalizer. www.mrunix.net -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 2:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Website STATISTICS Hi, Anybody knows any good open source website statistics tool with graph and

RE: [PHP] header(Location:) problem with Netscape

2002-03-14 Thread Matt Schroebel
It's not $PHP_SELF that's the issue here -- well it was probably blank because either register_globals is off or you were in a function and didn't global it. The real trouble is that. IE v6.0 is forgiving and if the action= is blank sends the request to the current page. So you feel comfy

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Matt Schroebel
How about: ALTER table auto_increment=0 -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] I wish it was that simple... No.. It doesn't work this way... On Tue, 12 Mar 2002, Rick Emery wrote: your query is: DELETE FROM mytable; -Original Message-

RE: [PHP] Form Based Authentication

2002-03-12 Thread Matt Schroebel
First, change the names of your include files to something.inc.php so that no-one can download the files and get thte source, should their names become known. Second, you either must use session_register or $_SESSION['variablename'] and not mix their use. So instead of: $authenticated_user =

Re: [PHP] newbie: the superglobal $_SESSION

2002-03-10 Thread Matt Schroebel
?php add a session_start() here if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } echo $count; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Matt Schroebel
Read the manual about magic_quotes_gpc and addslashes() I prefer to add slashes myself, that way I can verify input lengths but it has the risk that I might miss a field. The trouble with magic_quotes_gpc is that if you have to re-display a variable you have to stripslashes() first. -

  1   2   >