[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

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]> wrot

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: Dani

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: > &g

[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 ge

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

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? > > > J

[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: http://w

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, Dece

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 E

[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 INS

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
nesday, June 01, 2005 10:04 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? > > &g

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

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
ilto:[EMAIL 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); > > Readd

[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 to

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 PRO

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
ni, > file_get_contents('php://stdin'); 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/&q

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

[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] 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) a

[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] 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 th

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

[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] 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] UNSUBSCRIBE!

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']))

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 of your document. > > > > function('go'); > > ... > > > function('stop') > > > > Weird that works when the site is

RE: [PHP] Call to external function

2004-04-23 Thread Jeff McKeon
ing to show the user that the server 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 ma

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 li

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 tag. But

[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: http://www.php.net/unsub.p

RE: [PHP] Activate function in another frame

2004-04-22 Thread Jeff McKeon
ssage- > From: Jay 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 >

[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 th

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 > &g

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 upl

[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 du

[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 ph

RE: [PHP] File upload progress

2004-04-06 Thread Jeff McKeon
rant, stuff like this bugs the hell out of me. > > Steve > > > > -Original Message- > 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

RE: [PHP] File upload progress

2004-04-06 Thread Jeff McKeon
he average "dumb user" however it's a necessity. I have users tell me all the time that my PHP pages don't work 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

[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 uplo

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]> > wro

[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 , $hits"; } [end code] Returns 0

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 > > >

[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 c

RE: [PHP] session management

2004-01-30 Thread Jeff McKeon
sion variable. For instance if a page has a form for editing 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

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

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
the $_SESSION['user'] variable, but when you follow the link to session_test2.php, the contents of the $_SESSION['user'] are blank. What could be missing here in my server setup? Thanks, jeff -Original Message- From: Jeff McKeon Sent: Thursday, January 29, 2004 11:49 A

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
ze before you get a chance to see the info, etc. 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. &g

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
t vaporize before you get a chance to see the info, etc. 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

[PHP] Sessions not working.

2004-01-28 Thread Jeff McKeon
0 _ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users _ENV["CommonProgramFiles"] C:\\Program Files\\Common Files _ENV["COMPUTERNAME"] WS02TC07927 _ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe _ENV["CONTENT_LENGTH"] 0 _ENV["GATEWAY

[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

[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: [code] ship1 ship2 ship3 [code] All th

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 = mysql_que

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,p

[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 (htt

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 wrot

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 elemen

[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? Th

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

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] Re: From form to an array

2003-11-17 Thread Jeff McKeon
getting turned 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 h

RE: [PHP] From form to an array

2003-11-17 Thread Jeff McKeon
es in one array and all the "Price" values in another. [code snip begin] Enter the upper size limit and price for each Tier Tier Limit Tier Price Email Size [code snip end] Jeff McKeon IT Manager Telaurus Communications LLC [EMAIL PROTECTED] (973) 889-

[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 fie

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

2003-11-13 Thread Jeff McKeon
ut $array[0], $array[1] into the fields in the database. Thanks, Jeff > -Original Message- > From: Pablo Gosse [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 3:27 PM > To: Jeff McKeon; [EMAIL PROTECTED] > Subject: RE: [PHP] Multiple values in a form option f

[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] $query_data1[1]"; } ?> [code] $query_data1[0] is a userID number $query_data1[1] is the user's Email address So when the user selects an email addres from the drop down box

RE: [PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
he variables... $varSER1=serialize($var1); $varSER2=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 &

[PHP] Passing array variables in a GET

2003-10-22 Thread Jeff McKeon
Is this possible??? $blah[]=(a, b, c); link 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 List (http://www.php.net/) To unsubscribe, visit: http://www.php

[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

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

2003-10-10 Thread Jeff McKeon
27;"?? 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 PROT

[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: Doesn't seem to work. If I look at the "view source" from the web browser I see this.. On the development server I see this... On the dev server "EC

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, Octobe

[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 Gen

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 P

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 Authen

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

2003-10-03 Thread Jeff McKeon
e VesselID='$_GET['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 Authentica

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 P

[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] HREF=./open_ticket.php?custid=$custid&custname=$cus

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 m

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) >

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
include"punctuation"; 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, > > > 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 se

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();

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
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
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 >

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

[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. I'm

[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"); if(!$u

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 y

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

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 Messag

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 qu

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

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

[PHP] Understanding code.. again

2003-09-25 Thread Jeff McKeon
In the following code... --snip-- --snip-- What is the purpose in the function def of "($msgvar = null)"?? Why not just "function showmessage($msgvar)"?? Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 Butto

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 a

RE: [PHP] Help understanding code...

2003-09-25 Thread Jeff McKeon
September 25, 2003 12:50 PM > To: [EMAIL PROTECTED] > Subject: 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 us

[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 = (! empty($_R

  1   2   >