[PHP] strange error

2007-10-25 Thread Jeff Mckeon
I'm getting this error on a php based ticket system we have. I don't see this on the old server running php4. This new server is running php5. PHP_Fatal_error:__Cannot_use_object_of_type_PEAR_Error_as_array_in_/srv/www/ virtual/support/mailparser.php_on_line_300/ The code in that section looks

[PHP] libmm.so.14

2007-10-23 Thread Jeff Mckeon
Hey all, Setting up a php based ticket system on a new OpenSuse 10.3 64bit system. The ticket sys requires qmail so I had to uninstall postfix and install qmail. Qmail injects emails into this ticket sys with the following line... /usr/bin/php -q /srv/www/virtual/support/mailpipe.php I now

RE: [PHP] libmm.so.14

2007-10-23 Thread Jeff Mckeon
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 10:47 AM To: Jeff Mckeon Cc: php-general@lists.php.net Subject: Re: [PHP] libmm.so.14 On 10/23/07, Jeff Mckeon [EMAIL PROTECTED] wrote: Hey all, Setting up a php based ticket

RE: [PHP] libmm.so.14

2007-10-23 Thread Jeff Mckeon
-Original Message- From: Jeff Mckeon [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 10:52 AM To: 'Daniel Brown' Cc: php-general@lists.php.net Subject: RE: [PHP] libmm.so.14 -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday

RE: [PHP] libmm.so.14 SOLVED

2007-10-23 Thread Jeff Mckeon
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 4:10 PM To: Jeff Mckeon Cc: php-general@lists.php.net Subject: Re: [PHP] libmm.so.14 On 10/23/07, Jeff Mckeon [EMAIL PROTECTED] wrote: -Original Message- From: Jeff Mckeon

RE: [PHP] ! in front of a variable?

2006-02-17 Thread Jeff McKeon
Ok, the variable is boolean and that does make sense. Thanks for all the replies. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What software do you use for writing PHP?

2005-12-06 Thread Jeff McKeon
Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do you all use? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Jeff McKeon
What is it you like about Zend Studio? Jeff -Original Message- From: David Grant [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 09:19 To: Jeff McKeon Cc: php Subject: Re: [PHP] What software do you use for writing PHP? Jeff, Jeff McKeon wrote: Forever now

[PHP] Upgrading on RH ES3

2005-12-02 Thread Jeff McKeon
I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed but for an application I want to install I need a min of 4.3.9. This server also runs apache2.0. I can't find RPMs for RH ES3 so I downloaded the source for PHP4.4.1 figuring I would just compile myself. Problem is, the

RE: [PHP] Upgrading on RH ES3

2005-12-02 Thread Jeff McKeon
-Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 14:50 To: Jeff McKeon Cc: php Subject: Re: [PHP] Upgrading on RH ES3 Jeff McKeon wrote: I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed

RE: [PHP] Upgrading on RH ES3 [SOLVED]

2005-12-02 Thread Jeff McKeon
-Original Message- From: Jeff McKeon Sent: Friday, December 02, 2005 15:18 To: php Subject: RE: [PHP] Upgrading on RH ES3 -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 14:50 To: Jeff McKeon Cc: php

[PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
I've got PHP 4.3 running on a Win2k IIS 5.0 web server. I need to upload a file and then copy it to a samba share (share level security) on a linux box across the network. I can $dirhandle = opendir(server\\share); Readdir($dirhandle); With no problem but I can't changed to the that dir

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
PROTECTED] Sent: Wednesday, June 01, 2005 9:34 AM To: php-general@lists.php.net Subject: Re: [PHP] Copy to network share On Wednesday 01 June 2005 14:42, Jeff McKeon wrote: $dirhandle = opendir(server\\share); Readdir($dirhandle); Chdir(server//share); Chdir(server

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
Is that drive mapped on your local machine or on the web server? Jeff -Original Message- From: Clive Zagno [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 01, 2005 8:31 PM To: Jeff McKeon; php Subject: Re: [PHP] Copy to network share sorry I ment to send to email to the list

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
PM To: php Subject: Re: [PHP] Copy to network share its on my local machine, in your case it will your w2k box. clive Jeff McKeon wrote: Is that drive mapped on your local machine or on the web server? Jeff -Original Message- From: Clive Zagno [mailto:[EMAIL

[PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
Does anyone know if it's possible to have file_get_contents() accept a file handle? $handle=fopen(/tmp/file,r); file_get_contents($handle); This doesn't seem to work for me, it generates an error about first parameter needing to be a string. I've tried: file_get_contents('{$handle}'); But

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
-Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: 7 April 2005 1:03 pm To: php-general@lists.php.net Subject: [PHP] File_get_contents() Does anyone know if it's possible to have file_get_contents() accept a file handle? $handle=fopen(/tmp/file

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
'); should work On Apr 7, 2005 2:21 PM, Jeff McKeon [EMAIL PROTECTED] wrote: Sorry, What I'm actually doing is this. $handle=fopen(php//stdin/,r); file_get_contents($handle); I should have put that in the original post, my bad. Now that I look at it, does anyone think

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
Because I was unclear on how file_get_contents() worked... :o) The php manual is a little vague on the topic. Best Reguards, Jeff McKeon IT Manager Telaurus Communications LLC [EMAIL PROTECTED] +1 (973) 889-8990 -Original Message- From: Josip Dzolonga [mailto:[EMAIL PROTECTED

RE: [PHP] PHP Tool to answer emails

2005-04-05 Thread Jeff McKeon
www.eforcer.com It's a fairly cheap but very good ticket system that can auto inject emails into it or retrieve them from a pop account. Jeffrey S. McKeon Manager of Information Technology Telaurus Communications LLC [EMAIL PROTECTED] +1 (973) 889-8990 ex 209 -Original Message- From:

[PHP] Piping email into a php script

2005-04-04 Thread Jeff McKeon
Running PHP 4.3.9, apache, mysql, qmail I know it's possible to pipe an incoming mail message to a script in qmial by creating a .qmail file for the user like: |script What I'd like to do is pipe incoming mail for a specific user into a php script that parses it out (using mailparse I imagine)

[PHP] GD Module

2005-01-07 Thread Jeff McKeon
I've been searching the net all moring for this. Can anyone give me a link were I can find information on how to compile PHP with GD module support? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Magic-quotes

2004-12-06 Thread Jeff McKeon
Does having magic-quotes=on prevent an attacker from using a urlized sql inject query? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Magic-quotes

2004-12-06 Thread Jeff McKeon
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:45 PM To: Jeff McKeon Cc: PHP-General Subject: Re: [PHP] Magic-quotes On Mon, 2004-12-06 at 12:57, Jeff McKeon wrote: Does having magic-quotes=on prevent an attacker from

[PHP] Re:[PHP] Magic-quotes

2004-12-06 Thread Jeff McKeon
So now the big question which will undoubtly spark a lot of opinions (I hope). We use apache/php/mysql based sites for internal management of our systems and would now like to give our customers direct access to manage their accounts via the web. Naturally this raises security concerns. From

RE: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-09-30 Thread Jeff McKeon
Just prove's the saying Make something idiot proof and someone will invent a better idiot Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Searching My Database

2004-09-29 Thread Jeff McKeon
It sounds like what you need to do is create several different queries based upon what the user selects from a form.. For instance... Form fields: A,B,C,D (Drop downs are best for these field entries because you can control them, if not it's just a little tougher.) IF(isset($_POST['A']))

[PHP] Call to external function

2004-04-23 Thread Jeff McKeon
Is there a way in PHP to make a call to a javascript funtion? I have a javascript that I want to start when an sql query begins and stop when the php code is done. Is this possible? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Call to external function

2004-04-23 Thread Jeff McKeon
[snip] Is this possible? [/snip] Anything is possible! Have you considered echoing the javascript code out via PHP? Yes, but I can't seem to get the right javascript code figured out. I have the script start when the page loads with an onload=function('go') in the body tag. But I

RE: [PHP] OK SQL experts...

2004-04-23 Thread Jeff McKeon
SELECT * FROM 'my_table' WHERE ('field_1' LIKE '%$keyword%' OR 'field_2' LIKE '%$keyword%' OR 'field_3' LIKE '%$keyword%') AND 'status' = 'active'; Longshot but try to remove the ' ' from around the field names in the where statement.. Or SELECT * FROM My_Table WHERE field_1 like

RE: [PHP] Call to external function

2004-04-23 Thread Jeff McKeon
is still thinking. Jeff McKeon IT Manager Telaurus Communications LLC [EMAIL PROTECTED] (973) 889-8990 ex 209 ***The information contained in this communication is confidential. It is intended only for the sole use of the recipient named above and may be legally privileged. If the reader

RE: [PHP] Call to external function

2004-04-23 Thread Jeff McKeon
OnLoad is probably occuring after your you're 'stop' call. Onload generally will be called when the document gets fully loaded. Instead put the 'go' call in the head of your document. head script ... function('go'); /script ... script ... function('stop') /script /body /html

[PHP] Activate function in another frame

2004-04-22 Thread Jeff McKeon
My PHP website displays data from our database. Sometimes the sql pulls take a while. I'd like to give some visual aid to the user that the script is still working. The site is made up of two frames, a left side frame that contains the menu and a main frame that all the pages load into. Is

RE: [PHP] Activate function in another frame

2004-04-22 Thread Jeff McKeon
Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 9:20 AM To: Jeff McKeon; [EMAIL PROTECTED] Subject: RE: [PHP] Activate function in another frame [snip] Is there a way to start a process in the menuframe as soon as a page in the main frame begins to load and then kill it when

[PHP] Upload file form

2004-04-20 Thread Jeff McKeon
Ok, not exactly pure PHP problem but I hope someone here has seen this before.. I'm got an upload form on a webpage, here's the code: SNIP ? Select the file type and browse for that file. The press 'Upload'. The file will be uploaded to the server. No changes in the database are done

RE: [PHP] Upload file form

2004-04-20 Thread Jeff McKeon
-Original Message- From: Jeff McKeon Sent: Tuesday, April 20, 2004 10:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Upload file form Ok, not exactly pure PHP problem but I hope someone here has seen this before.. I'm got an upload form on a webpage, here's the code

RE: [PHP] Upload file form SOLVED

2004-04-20 Thread Jeff McKeon
The problem is solved. /etc/httpd/conf.d/php.conf the parameter LimitRequestBody is set to 524288 by default. Jeff -Original Message- From: Jeff McKeon Sent: Tuesday, April 20, 2004 10:48 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Upload file form -Original Message

[PHP] Preg_match_all problem

2004-04-12 Thread Jeff McKeon
Can anyone see why I'm getting this error message: Warning: No ending delimiter '^' found in C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126 From this line: if(preg_match_all(^([00])?.*$,$called,$found)) { substring($called,2,9); } I basically have a phone

[PHP] File upload progress

2004-04-06 Thread Jeff McKeon
Does anyone know of a way to display the %complete of a file upload using a form (POST) method? In other words, I have a form for uploading files to the server. The files are pretty large, 50,000+ lines and it takes a good 3-4 minutes to upload. Is there any way to show the progress of this

RE: [PHP] File upload progress

2004-04-06 Thread Jeff McKeon
only to find out that they put in a query parameter that caused a huge database pull and they didn't know that as long as that little flag in IE is still waving, it's still working... Steve -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06

RE: [PHP] File upload progress

2004-04-06 Thread Jeff McKeon
- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] File upload progress Does anyone know of a way to display the %complete of a file upload using a form (POST) method? In other words, I have a form for uploading files

RE: [PHP] Re: Ereg problems

2004-03-26 Thread Jeff McKeon
-Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 6:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Ereg problems On Thu, 25 Mar 2004 18:31:02 -0500, Jeff McKeon [EMAIL PROTECTED] wrote: Having some problems with ereg

[PHP] Ereg problems

2004-03-25 Thread Jeff McKeon
Having some problems with ereg() [begin code] $string=Credit adjusted: $-1.32 to $48.68 ereg(([\\$(\\$-)][0-9]+\.[0-9]+),$data[2],$found); While(list($index,$hits)=each($found)) { echo $index , $hitsbr; } [end code] Returns 0 ,

[PHP] Stupid question

2004-03-17 Thread Jeff McKeon
I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this- What does this do? I know it has something to do with

RE: [PHP] Stupid question

2004-03-17 Thread Jeff McKeon
Ewe... OOP Ok, I guess I'll have to learn OOP. Thanks for the info! Jeff -Original Message- From: Jordan S. Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 4:02 PM To: Jeff McKeon Subject: Re: [PHP] Stupid question That has to deal with Object Oriented

RE: [PHP] session management

2004-01-30 Thread Jeff McKeon
information, before loading the form check to see if the Current $_SESSION['write'] variable is set to '1', if so load the form, if not then don't. May not be the best way of doing things but it works well for me. Jeff McKeon IT Manager Telaurus Communications LLC [EMAIL PROTECTED] (973) 889-8990 ex

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
. Good luck! -TG -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 7:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions not working. Pulling my hair out here. I've got an IIS5 webserver running a php website just fine. I created

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
-Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 7:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions not working. Pulling my hair out here. I've got an IIS5 webserver running a php website just fine. I created another web for a dev

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
setup? Thanks, jeff -Original Message- From: Jeff McKeon Sent: Thursday, January 29, 2004 11:49 AM To: Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Further info. If I echo the session_id() onto the page I do get an id returned. So (correct me if I'm

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
Figured it out, I think. PHP doesn't like the underscore in my website name. http://site_dev.foo.com/ doesn't work but http://192.168.2.50/ does. If I rename the site in DNS to siteDEV.foo.com then it works fine. Any ideas why? -Original Message- From: Jeff McKeon Sent: Thursday

[PHP] Sessions not working.

2004-01-28 Thread Jeff McKeon
[SystemDrive] C: _ENV[SystemRoot] C:\\WINNT _ENV[TEMP] C:\\WINNT\\TEMP _ENV[TMP] C:\\WINNT\\TEMP _ENV[USERPROFILE] C:\\Documents and Settings\\NetShowServices _ENV[windir] C:\\WINNT Jeff McKeon IT Manager Telaurus Communications LLC [EMAIL PROTECTED] (973) 889-8990 ex 209 ***The information

[PHP] Operator question

2003-12-09 Thread Jeff McKeon
In PHP, what does the operator -= do? I can't find a ref to it's function in the online manual or any books I have. Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] retrieving ENUM description from MySQL

2003-11-20 Thread Jeff McKeon
Here's an example of how to get the ENUM into a drop down list in a web form. I use it all the time.. [code] /* Get_Enum : Retreives the enum options from an enum type field in a MySql Database */ function Get_enum($table,$field,$db,$link) { mysql_select_db($db,$link); $result =

[PHP] Mulitple selects from form drop down box

2003-11-20 Thread Jeff McKeon
Is it possible to have a form Drop down box that allows multiple selects? I know the form field itself exists, but It only seems to return the last item selected and not all of them. Note in the code below the line: select size=1 name=D1 multiple [code] ?PHP include (header_template.php); ?

[PHP] Counting elements in an array

2003-11-19 Thread Jeff McKeon
How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value is orange? Thanks, Jeff -- PHP General Mailing List

RE: [PHP] Counting elements in an array

2003-11-19 Thread Jeff McKeon
Jason Wong wrote: On Wednesday 19 November 2003 23:24, Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from

[PHP] An array as an element of a function

2003-11-18 Thread Jeff McKeon
Is it possible to pass an array as an elemtent of a function?? Something like this: $array1=array(1,2,3,4); $array2=array(a,b,c,d); Function Somefunction($var1,$var2) { someprocess using $array1 and array2; } Somefunction($array1,$array2); Or does something special have to be done?

RE: [PHP] An array as an element of a function

2003-11-18 Thread Jeff McKeon
Sorry, bad choice of words. By element I meant parameter. Jeff -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:35 AM To: Jeff McKeon; [EMAIL PROTECTED] Subject: Re: [PHP] An array as an element of a function Hi, What

RE: [PHP] An array as an element of a function

2003-11-18 Thread Jeff McKeon
Thanks all.. Jeff -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:30 AM To: Jeff McKeon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] An array as an element of a function Jeff McKeon wrote: Is it possible to pass an array

[PHP] From form to an array

2003-11-17 Thread Jeff McKeon
Is it possible to pass the values of a form directly into an array? I have a multi level, dynamic form. The first level (first form actually) askes how many levels there are and gives you a field to enter in that number. Then upon submit of form1 it creates a new form (form2) that contains 2

RE: [PHP] From form to an array

2003-11-17 Thread Jeff McKeon
input type=text name=Tier?PHP echo $count ? size=4 Tier ?PHP ECHO $count ? Price input type=text name=Price?PHP echo $count ? size=4br ?PHP $count++; } ? Email Size input type=text name=size size=4br input type=submit value=Submit name=submit /form [code snip end] Jeff McKeon

RE: [PHP] Re: From form to an array

2003-11-17 Thread Jeff McKeon
on... e=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ml ## Jeff McKeon [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] . Is it possible to pass the values of a form directly into an array? I have a multi level, dynamic form

RE: [PHP] Re: From form to an array

2003-11-17 Thread Jeff McKeon
Jay Blanchard wrote: [snip] Ok, now on submit of this second form I want to take field1 from each line and put it into $array1 and field2 from each line and put it into $arrray2. [/snip] Form 1's info would have to be held as hidden fields in Form 2's construction. An example ... /*

RE: [PHP] Communicating with remote server

2003-11-17 Thread Jeff McKeon
Matt Palermo wrote: I am writing a desktop application using PHP-GTK. I would like this program to be able to connect to a remote server, call some functions that I specify, and return the right information (most likely from a MySQL db). I have access to the server, so I can create any and

[PHP] Multiple values in a form option field

2003-11-13 Thread Jeff McKeon
I have a php page that has a web form on it. I do a query to populate the options in a drop down box in the form. [code] select size=1 name=customer ?PHP while($query_data1=mysql_fetch_row($result1)){ echooption value='$query_data1[0]'$query_data1[1]/option; } ? [code]

RE: [PHP] Multiple values in a form option field

2003-11-13 Thread Jeff McKeon
:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 3:27 PM To: Jeff McKeon; [EMAIL PROTECTED] Subject: RE: [PHP] Multiple values in a form option field On Thursday, November 13, Jeff wrote: [snip]What I now need to do is store not only the userID but the email address as well

[PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
Is this possible??? $blah[]=(a, b, c); a href=http://www.blah.com/page.php?blah=?PHP ECHO $blah ?link/a So basically I have a page that need an array to perform some function. Can I pass that array variable (and thus it's data) to it from another page? Thanks, Jeff -- PHP General Mailing

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
=serialize($var2); Then pass the variables in the url via a GET. It doesn't work however Jeff -Original Message- From: Wouter van Vliet [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 1:06 PM To: Jeff McKeon; [EMAIL PROTECTED] Subject: RE: [PHP] Passing array

[PHP] Echo $PHP_SELF not working

2003-10-10 Thread Jeff McKeon
I've just published a new website and something is wrong. I suspect the PHP.ini on the server but I can't seem to find anything. The line: form method='post' action='?PHP ECHO $PHP_SELF ?' Doesn't seem to work. If I look at the view source from the web browser I see this.. form method='post'

RE: [PHP] Re: Echo $PHP_SELF not working

2003-10-10 Thread Jeff McKeon
']'?? Jeff -Original Message- From: Paul van Schayck [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Echo $PHP_SELF not working Hello, Here we go again ;) [EMAIL PROTECTED] (Jeff McKeon) wrote I've just published a new

[PHP] Getting elapsed time

2003-10-10 Thread Jeff McKeon
Is there a simple way (a built in function) to get the elapsed time between two given timestamps (-MM-DD HH:MM:SS)? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Global varialbes in functions

2003-10-04 Thread Jeff McKeon
I've got a page that is passed the global variable 'ticketnumber' in the url. In my first two functions on the page I can call this variable using $_GET['ticketid'] no problem. However on the third funtion I get an undefined index error for 'ticketid' Anyone know why? Thanks, Jeff -- PHP

RE: [PHP] Global varialbes in functions

2003-10-04 Thread Jeff McKeon
Sorry, I just figured it out. The third function was getting it's data from a form submit using post and I didn't include a hidden input field with the $_GET[''] variable as a value. Jeff -Original Message- From: Jeff McKeon Sent: Saturday, October 04, 2003 11:35 AM To: php

RE: [PHP] User authentication

2003-10-03 Thread Jeff McKeon
--- Jeff McKeon [EMAIL PROTECTED] wrote: $_SESSION['userid'] = $userid; $_SESSION['userpassword'] = $userpassword; [snip] Anything look wrong or insecure with all of this? The only thing that catches my attention is your assignments for $_SESSION['userid'] and $_SESSION

[PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
Ok, I've got the user authentication thing down and now I'm continuing to build my trouble ticket tracking system. So from a customer profile page there is a link to Open Ticket which brings up a page to open a trouble ticket. [html code]

RE: [PHP] User authentication

2003-10-03 Thread Jeff McKeon
Yes, I'm the one creating the accounts in the database, users can't create their own accounts nor do they have permissions to create new users. Thanks! Jeff -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:09 PM To: Jeff McKeon; php

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
['vesselid']' order by Status DESC, Created ASC; [code end] Jeff -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 3:45 PM To: Jeff McKeon; php Subject: Re: [PHP] User Authentication Continued --- Jeff McKeon [EMAIL PROTECTED

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
One more mystery solved. Thanks one and all Jeff -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 4:55 PM To: Jeff McKeon Cc: PHP-General; [EMAIL PROTECTED] Subject: RE: [PHP] User Authentication Continued On Fri

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
Good advice! Thanks! Jeff -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 5:19 PM To: Jeff McKeon; php Subject: RE: [PHP] User Authentication Continued --- Jeff McKeon [EMAIL PROTECTED] wrote: $query=SELECT * from

[PHP] User authentication

2003-10-02 Thread Jeff McKeon
Hey all, I'm building a website that will pull data from mysql db. No problem there. I've got a page to create users and store their info in a user table on another db. What I want to be able to do is have a user log in and then only have access to view information that his profile allows.

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Dan, That's great help and exactly what I'd like to do timeouts and all. I now just need to figure out he mechanics of the code for it and get a better understanding of sessions. I'm thinking in the user table I'll have a bunch of boolean fields for different permissions that apply to different

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Thanks for the advise! It's a big help. I'll go play now and come back with more intelligent questions later! Jeff -Original Message- From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:32 AM To: Jeff McKeon; Dan Joseph; php Subject: RE: [PHP] User

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
What is stored in the date_out column? Is that one of the colums in your own created table or a standard one? Jeff -Original Message- From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:34 AM To: php Subject: RE: [PHP] User authentication Hi,

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Ok, I've got a login page that has these funtions to set the userid and password to session variables [code start] session_start(); if(!isset($userid)) { login_form(); exit; } else { session_register(userid, userpassword); $username =

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
On 02 October 2003 17:27, Jeff McKeon wrote: Ok, I've got a login page that has these funtions to set the userid and password to session variables [code start] session_start(); if(!isset($userid)) { login_form(); exit; } else

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Hi, What is stored in the date_out column? Is that one of the colums in your own created table or a standard one? That's the SQL table that I use to track sessions. Its one I created. I have a functon that does a simple SQL query: SELECT date_out FROM sessions

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
includepunctuation; Jeff -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 2:36 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] User authentication for those of you who are writing apps and looking at this and you have

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Hi, (2) I would advise not mixing $_SESSION and session_register() -- it's problematical in some situations. Just stick to using the $_SESSION array. I'm not quite sure what you mean here, can you give an example or elaborate. Sorry, real newbie here... :o)

[PHP] Session_start() problem

2003-10-01 Thread Jeff McKeon
Hey all, I'm working out of a book teaching myself PHP4 here and I've got this code from a login web page... [begin code] session_start(); if(!isset($userid)) { login_form(); exit; } else { session_regisister(userid, userpassword);

RE: [PHP] IIS Ports

2003-09-27 Thread Jeff McKeon
can't you just beat up your brother? It won't fix your pc but it will probably make you feel better. :o) Chances are your bro is no genious and just using scripts (script kiddie) that other people write for known exploits. If this is the case, then you probably haven't been keeping up with

RE: [PHP] str_pad

2003-09-26 Thread Jeff McKeon
Just learning PHP and figuring out all the syntax and stuff. Anyway I had a question about the code example in this post... What does the - do in: $dbranch = str_pad($line-dbranch_no, 6, '', STR_PAD_LEFT); Is dbranch_no a class I don't know about? Thanks, Jeff -Original Message-

RE: [PHP] str_pad

2003-09-26 Thread Jeff McKeon
Thanks all! This is definitely one of the most helpfull mailing lists I belong to. Jeff -Original Message- From: Nitin [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:26 AM To: Jeff McKeon; php Subject: Re: [PHP] str_pad It gives dbranch_no field in $line

[PHP] Help understanding code...

2003-09-25 Thread Jeff McKeon
I've just picked up a more advanced book on PHP and it has a lot of example code in it. I understand most of it but some things I'm seeing I don't understand. Like the following... code: $couponcode = (!

RE: [PHP] Help understanding code...

2003-09-25 Thread Jeff McKeon
: Re: [PHP] Help understanding code... ! means not, for example $yes != $no Regarding the (xxx) ? x : x; Your assumption is correct I use it alot, but sometimes it's still better to use if/else statements On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote: I've just picked up a more

RE: [PHP] Timezones and Daylight Savings Time

2003-09-25 Thread Jeff McKeon
What if you set the server to use UTC and then used the clients local system setting to offset it for each client? So the server would have it's time at UTC and a client in the Eastern US would be at -4. You could then detect the web client timezone setting and adjust as needed? This is just

RE: [PHP] Reading Form Buttons

2003-09-25 Thread Jeff McKeon
If(isset($_post['update'])) { do something; } If(isset($_POST['delete'])) { do something; } Jeff -Original Message- From: Dan J. Rychlik [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: [PHP] Reading Form Buttons

[PHP] Understanding code.. again

2003-09-25 Thread Jeff McKeon
In the following code... --snip-- ?PHP $name = bob; Showmessage(hello $name); Exit; Function Showmessage($msgvar = null) { echo $msgvar; } ? --snip-- What is the purpose in the function def of ($msgvar = null)?? Why not just function showmessage($msgvar)?? Thanks, Jeff -- PHP General

RE: [PHP] Understanding code.. again

2003-09-25 Thread Jeff McKeon
Ok, so if an argument is supplied to the function, the = null is ignored? Jeff -Original Message- From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:09 PM To: Jeff McKeon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Understanding code.. again Jeff

RE: [PHP] Understanding code.. again

2003-09-25 Thread Jeff McKeon
Thanks all! Jeff -Original Message- From: Chris Sherwood [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:15 PM To: Jeff McKeon; [EMAIL PROTECTED] Subject: Re: [PHP] Understanding code.. again Yes the null is ignored when a var is passed -- SNIP-- Ok, so

RE: [PHP] What to use?

2003-09-25 Thread Jeff McKeon
Correct me if I'm wrong please, but I think number_format() has the adverse effect of changing the value type from numeric to char and therefore baring you from using it in mathematical equation later in the script. Anyway that's what it seemed to do to me when I used it on results from a MySQL

  1   2   >