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
> -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
> -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
> -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
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
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
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
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
> -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
> -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
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
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
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
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
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
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
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
>
> > -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
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
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
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
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
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
> -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
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
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!
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']))
>
> 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
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
> >> 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
>
> [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
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
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
>
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
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
> -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
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
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
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
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
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
> -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
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
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
>
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 ...
>
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
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-
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
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
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
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
&
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
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
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
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
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
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
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
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
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
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
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
> --- 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
> 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)
>
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
> 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
>
> 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();
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
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,
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
100 matches
Mail list logo