[PHP] Session not destroying properly

2001-03-05 Thread Mike Yuen
Got a problem with sessions. On my index page, there's a place for people to login. Well, when I test with two different user names (ie: mike and jlo) it reverts to the first one when login fails. For example: I enter in the username "myuen" and a wrong password. I get my &qu

Re: [PHP] Session not destroying properly

2001-03-06 Thread Mike Yuen
Thanks for the suggestion, I tried that and it still doesn't seem to be working. Here's what i've got so far on my page (index.php). Hope you can see something I don't. Thanks, Mike On Tue, 6 Mar 2001, trogers wrote: > > Hi > You will need to kill the session da

[PHP] ldap_search()

2001-03-07 Thread Mike Tuller
r a school district, and I don't have a .com address. I have anoka.k12.mn.us. I tried to put in $basedn = "dc=anoka, dc=k12, dc=mn, dc=us"; but I still receive an error on ldap_search. Am I doing this correctly? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] ldap_search()

2001-03-09 Thread Mike Tuller
Ok. That makes sense. I have the structure printed out, so I shouldn't have a problem. > From: "Nick Talbott" <[EMAIL PROTECTED]> > Date: Thu, 8 Mar 2001 08:21:15 - > To: "Mike Tuller" <[EMAIL PROTECTED]>, "php mailing list" > <[E

[PHP] URGENT: Can't see picture

2001-03-14 Thread Mike Yuen
at doesn't seem to have worked either. Here's a snippet of my code and i'm hoping someone can help me out on this. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] Webmin

2001-03-16 Thread Mike Tuller
Webmin uses templates, so you could create anything you want. If you go into Webmin configuration under the Webmin tab, you will see templates. When you go in there you will see a menu for current theme. It should have Calderas theme. That at least means they are open to template creation. I agre

[PHP] Repost URGENT: Can't see picture!!!!!!!!

2001-03-17 Thread Mike Yuen
Hi, this is a repost and nothing i've tried is working. Basically, I allow people to upload pictures and they all go to the proper directories but I can't see the picture. I can see the pictures great on my windows server but no one else can see it. Obviously the path to the images is screwed

[PHP] PHP/MySQL & Control Structures -> if (mysql_query())

2001-03-20 Thread Mike Gifford
e"]); } } If the database already has entries which have been submitted from the same IPAddress, I'd like to have those names and numbers listed. The previous version of this code is published and available here: http://openconcept.ca/guide-petition.phtml Thanks. Mike --

[PHP] Email validation

2001-03-20 Thread Mike Gifford
Hello Again, Can anyone tell me what the best form of Email validation there is? It needs to be quick & as open to - and . as possible. I've seen the following: But this one looks quite impressive too: Not sure which is the best. Mike -- Mike Gifford, OpenConcept Consult

Re: [PHP] PHP/MySQL & Control Structures -> if (mysql_query())

2001-03-20 Thread Mike Gifford
t; . stripslashes($LastName) . " from " . stripslashes($CityState); // echo "" . stripslashes($sameIP_array["FirstName"]) . " " . stripslashes($sameIP_array["LastName"]) . " from " . stripslashes($sameIP_array["CityState"]); } }

[PHP] Explain recordset

2001-04-14 Thread Mike P
thout going to the server.Is this possable.fetchrow seems to go to the server each time or am i wrong? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] LDAP listing from Exchange

2001-04-25 Thread Mike Tuller
I am having troubles displaying all the information I need from an Exchange server. I can display name, department, title, but can't get the phone number to show up. Can someone show me a script that will pull the object identifiers from the server so that I can make sure I have everything set rig

[PHP] LDAP listing from Exchange

2001-04-25 Thread Mike Tuller
I am having troubles displaying all the information I need from an Exchange server. I can display name, department, title, but can't get the phone number to show up. Can someone show me a script that will pull the object identifiers from the server so that I can make sure I have everything set rig

[PHP] Ldap question

2001-04-25 Thread Mike Tuller
I am trying to pull info from an Exchange LDAP server to make a dynamically created phonebook, and am having trouble with one field. I think the problem is that the script I have has everything pulled in an array, and all but the field I am having problems with are strings. The telephoneNumber wou

[PHP] Array question

2001-04-26 Thread Mike Tuller
I am trying to pull info from an Exchange LDAP server to make a dynamically created phonebook, and am having trouble with one field. I think the problem is that the script I have has everything pulled in an array, and all but the field I am having problems with are strings. The telephoneNumber wou

[PHP] printable output of array

2001-04-26 Thread Mike Tuller
I had what I thought was a great idea in creating a downloadable phone directory using PHP to connect to the LDAP server and gather the info for output. I originally wanted to have it create a PDF document, and still would, but I don't think that you can create multiple page documents with PHP and

[PHP] Win Apache/PHP config triping up virtual directory

2001-04-27 Thread Mike Gifford
how up. Does anyone have any suggestions? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Featured Client: http://rabble.ca - News For the Rest of Us! If a book doesn't make us better, then what on

[PHP] GD and arrays

2001-04-30 Thread Mike Wes
the picture-php file. Can anybody give me a clue, how I can access the array in the picture.php ? Am I doing something wrong, or is this a bug (in that case I prefere a workaround). Regards, Mike Wes [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] Managing Multiple Conditions in a MySQL Query

2001-05-01 Thread Mike Gifford
ashes($individuals_array["FirstName"]) . " " . stripslashes($individuals_array["LastName"]) . " from " . stripslashes($individuals_array["CityState"]); } However, it gave me the following error: Warning: Supplied argument is not a valid MySQL result r

Re: [PHP] Managing Multiple Conditions in a MySQL Query

2001-05-02 Thread Mike Gifford
Thanks Tomasz, I believe that this will work just fine! :) Mike Tomasz Abramowicz wrote: > > echo "Recent Signatures\n"; > $query = "SELECT FirstName,LastName,CityState FROM phPetition WHERE > Public='yes' AND Verified='yes' ORDER BY ID DE

Re: [PHP] LDAP support for 4.0.5

2001-05-02 Thread Mike Tuller
I didn't see that anyone had responded to your question. You need to install OpenLDAP. It is the only opensource one that I know. Mike > From: "Walgamotte, David" <[EMAIL PROTECTED]> > Date: Tue, 1 May 2001 15:03:25 -0500 > To: [EMAIL PROTECTED] > Subject: [PHP

[PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Mike Potter
3 (3,0)1 (1, 3)2 Does anyone have any code, or any hints on how to go about this? I've worked on it for a few hours, and am really stuck. Thanks, Mike Mike Potter OEone Corp. http://www.oeone.com -- PHP General Mailing List (http://w

[PHP] php, snmp, and mibs

2001-05-08 Thread Mike Backes
pond to the MIB. Is there a way to get at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even better, to get the object names and such into an array? Thanks for any information, Mike _ Do You Yahoo!? Get your free @ya

[PHP] Newbie-Continue Line of Code

2001-05-15 Thread Mike Maki
How do I continue a line of code to the next line? I like to keep my lines of code to about 60 characters in width then wrap to the next line. Is this possible with lines of PHP code? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread Mike Maki
doesn't matter. the thing in php that separates lines (actually commands) > is the --> ; semicolan. > In theory you could put all your code on one line. > > ""Mike Maki"" <[EMAIL PROTECTED]> wrote in message > 9dsbhr$52j$[EMAIL PROTECTED]">

[PHP] Flash SQL Component Kit

2001-05-18 Thread Mike Chambers
to work with database data within Flash. here is the url: http://www.markme.com/as/flashsql/ mike chambers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

[PHP] PHP & XML Parsing

2001-05-18 Thread Mike Gifford
penews.rdf My parsing definitions are as follows $itemTitleKey = "^rdf^item^title"; $itemLinkKey = "^rdf^item^link"; $itemDescKey = "^rdf^item^description"; Any help would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Off

[PHP] PHP & Domino?? (Lotus Notes)

2001-05-19 Thread Mike Kelley
Anyone do anything in this arena yet? I searched the archives for 2001 but have yet to go farther back. I know I can use the COM ability to get info from Domino but I'm looking for any success stories with Lotus Domino. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] PHP & XML Parsing

2001-05-22 Thread Mike Gifford
lable here: http://www.airdiv-cupe.org/portal/newsfeed_new_parser.php And I've included the full script in the email (at the very bottom of this message). Thanks. Mike Fabian Raygosa wrote: > for xml you have to escape certain characters in the file, one is th

Re: [PHP] PHP & XML Parsing

2001-05-22 Thread Mike Gifford
php I've also attached the full script (since I've made some changes to it). Any additional help would be appreciated. Mike > "Mike Gifford" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> Hello, >>

[PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
;insert into dbrss (Feed, Title, URL, Abstract, Old) VALUES ('$Feed','$Title','$URL','$Date','",$db); Any help would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs fo

Re: [PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread Mike Gifford
Hello Michael, You hit the nail on the head... Not sure how I missed that... In anycase, thank you. Mike [EMAIL PROTECTED] wrote: > please forgive me if your typo concerns only your posting, but you didn't close your >VALUES parenthesis. > Then, the order of the data

[PHP] Store Image in Access Database

2001-12-26 Thread Mike Baranski
t, a jpg, for example. I can't even get the raw data. I've tried converting it to base 16 and inserting it, but I still can't pull it out. I know how to do this in mysql, so posting that won't help. I need to

[PHP] Store Image in Access Database

2001-12-27 Thread Mike Baranski
t, a jpg, for example. I can't even get the raw data. I've tried converting it to base 16 and inserting it, but I still can't pull it out. I know how to do this in mysql, so posting that won't help. I need to know how to do this with access. Thanks Mike. -- PHP General Mailing

[PHP] Metabse and ODBC Blobs, was [Re: Store Image in Access Database]

2001-12-27 Thread Mike Baranski
Blobs, that update statement is not getting run. There's only 1 row in the table, but the description and ole object do not get updated. If I switch the driver to use mysql as opposed to odbc, it works fine on an identical table (on linux, not windows). Any ideas? Mike B. On Wednesday 26

Re: [PHP] Re: Metabse and ODBC Blobs, was [Re: Store Image in Access Database]

2001-12-27 Thread Mike Baranski
it still gives errors. I've hacked it up a little bit, but it doesen't look like the test stuff will work for access. Has anyone successfully done this, and how? I cannot believe that I'm the only person who's ever stored binary data in Access, regardless of how bad of

[PHP] Re: Exec as user

2001-12-27 Thread Mike Eheler
There's no way that I have found to actually execute a script as a specified user, however: Should tell you what user the web server is running as. Mike Charlesk wrote: > I have been looking through the docs and found no help on either finding which user >the EXEC'ed com

[PHP] Re: php code beautifier

2001-12-27 Thread Mike Eheler
I'm working php script that would perform such a feat. I'll post news on php.general when/if it's finished. Mike George Nicolae wrote: > do you know if exist a php code beautifier for win32? pls tell me the > address. > > -- > > > Best re

Re: [PHP] Exec as user

2001-12-27 Thread Mike Eheler
Try doing this '; print_r(array($HTTP_SERVER_VARS,$HTTP_ENV_VARS)); echo ''; ?> And see if the information you want is in there anywhere. Mike > I don't believe that the system variables are available to php. I work on > *nix mostly, but I have a window

[PHP] Re: Select box won't display in Netscape 4.xx

2001-12-31 Thread Mike Eheler
This happens when a tag is not within a block in netscape 4.. if the select isn't meant to be part of a form, and is just for navigation (javascript onchange or whatever), then just do ... Mike Edwin Boersma wrote: > Hi, > > I'm developing a website for multiple brow

[PHP] Re: web mail clients?

2001-12-31 Thread Mike Eheler
foldername Then your mail database: int auto_inc mailid int default(0) folderid subject ... etc ... I would suggest setting up an IMAP server somewhere.. in which case all you really need to do is grab Horde/IMP from http://www.horde.org/imp and use that. The latest version is quite good. Mike

[PHP] Re: How to strip off all html-comments

2001-12-31 Thread Mike Eheler
Checkout the preg_replace page in the PHP manual (at http://www.php.net/manual/en). There is an example there on removing all HTML tags. You can just modify it to work on just comments. Mike Martin wrote: > Hello! How can I easily strip off all html-comments () from > a string? >

[PHP] IMP 3.0 out!

2002-01-03 Thread Mike Eheler
il to their users, and Turba is a contact list manager that integrates with IMP and Horde. For more info, go check out their site. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Re: More on images...

2002-01-03 Thread Mike Eheler
$HTTP_SERVER_VARS['HTTP_REFERER'] or (php 4.1.x) $_SERVER['HTTP_REFERER'] Mike Matthew Walker wrote: > Related to my last question about the cookies in images, is there any > way to get the referrer from the calling page without passing it as an > argument t

[PHP] An idea for a PHP tool

2002-01-03 Thread Mike Eheler
o code in C (or C++ for that matter), nor the time. So I donate this idea to the PHP community in hopes that someone out there has the knowledge and the ambition to make it happen. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

[PHP] User-friendly URI's

2002-01-03 Thread Mike Eheler
up? "news" would actually be a PHP script, of course. I know how to handle /2002/01/02/keyword as parameters, my question is on making "news" be interpreted through PHP. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] User-friendly URI's

2002-01-03 Thread Mike Eheler
? I guess that would be the best solution. :) Or would it? What if I have an images/ subfolder.. I certainly wouldn't want all my images being thrown through PHP. That could cause some ugliness. So I guess it would have to be un-doable. Is it? Mike Jason Murray wrote: >>"new

[PHP] Re: User-friendly URI's

2002-01-03 Thread Mike Eheler
I don't want to mess with the whole site, just a file or 10, or one directory, etc. Mike Jason Murray wrote: >>True, but if I remember right, the hit will end up in your >>error_log not in your access_log. >> > > Ah. Bugger. > > But since this would requ

[PHP] Re: User-friendly URI's

2002-01-03 Thread Mike Eheler
That's the whole point of this thread.. that's what I want to avoid. I want to have a URI that is easier to remember, and less ugly, and also provides a sense of security (even if it is only a faint sense) through obscurity. Mike Philip Hallstrom wrote: > Why not just make th

Re: [PHP] An idea for a PHP tool

2002-01-03 Thread Mike Eheler
all go on one line. That is a good hack for now, but I still think it would be great to have the PHP site's search bar kind of in my browser, and it would launch a new window or whatever (with the drop-down to select function ref/online manual/etc) Mike Jason Murray wrote: >>Like goo

[PHP] PHP 4.1 crypt()

2002-01-08 Thread Mike Eheler
s changing all our password generation code to create 2-letter salts. Any help much appreciated. In short -- I want crypt() to work like it did in 4.0.6. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Mike Eheler
It's too late for that. And I don't believe that the system's crypt() function just magically changed at exactly the same time we upgraded to PHP 4.1 Mike Patrik Wallstrom wrote: > On Tue, 8 Jan 2002, Mike Eheler wrote: > > >>Is there any way to force PHP 4

Re: [PHP] PHP 4.1 crypt()

2002-01-08 Thread Mike Eheler
help! I'll see what I can do. Mike Patrik Wallstrom wrote: > On Tue, 8 Jan 2002, Mike Eheler wrote: > > >>It's too late for that. And I don't believe that the system's crypt() >>function just magically changed at exactly the same time we upgraded to >&

[PHP] Re: Date

2002-01-08 Thread Mike Eheler
echo date('m/d/Y', strtotime('September 1, 2002')); http://www.php.net/manual/en/function.date.php Mike Aurelio wrote: > hi, > > how i make to catch a future date, with this formatting 09/01/2002.??? > > thanks, > Aurélio Sabino > > -- PHP G

[PHP] Limiting CPU usage/time of spawned processes

2002-01-09 Thread Mike Eheler
itCPU directive had no effect on this. Is there any directives in PHP which can perform the same feat (i.e. killing a process for running for too long, or limiting it's CPU usage). Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Mike Eheler
said, but I think this should give you some good arguments to start with. Mike Jake wrote: > Hello there, I need some help. > > I have to do a technical report(about 2200 words) comparing PHP to ASP. I > have already decided to make PHP the winner becasue it is superior. But I

Re: [PHP] headers showing up in browser

2002-01-10 Thread mike cullerton
#!/usr/local/bin/php -q on 1/10/02 12:16 PM, Mark at [EMAIL PROTECTED] wrote: > I've got this problem that won't go away. > > The headers are showing up at the top of the page when I run php in > cgi mode. any ideas? -- mike cullerton -- PHP General Mailing Li

Re: [PHP] Form Question

2002-01-10 Thread mike cullerton
keep the data in a variable and do something like on 1/10/02 1:30 PM, Lerp at [EMAIL PROTECTED] wrote: > Hi there, how do I keep values in a form if the user has to go back and fill > in some missing fields? > > Thx Joe :) > > -- mike cullerton -- PHP General

Re: [PHP] php executing system commands..

2002-01-11 Thread mike cullerton
on 1/11/02 1:35 AM, louie miranda at [EMAIL PROTECTED] wrote: > Hi, can php execute system commands > like df, and then print it to html ? http://www.php.net/manual/en/ref.exec.php -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] RTFM code snippet

2002-01-11 Thread mike cullerton
eally going on in the RTFM code with the "false !==" part? thanks y'all, mike -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] preg_replace help

2002-01-11 Thread mike cullerton
on 1/11/02 8:20 PM, Gaylen Fraley at [EMAIL PROTECTED] wrote: > Can someone recommend a good tutorial > or book on this subject? Mastering Regular Expressions Jeffrey Friedl O'Reilly & Associates ISBN 1-56592-257-3 -- mike cullerton -- PHP General Mailing List (http://w

Re: [PHP] mysql_fetch_row win32 to Linux

2002-01-12 Thread mike cullerton
ult)){ this tells me that $myresult is not a valid mysql result resource identifier. how do you obtain $myresult? -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

Re: [PHP] 404 Redirection

2002-01-13 Thread mike cullerton
nclusion (include_path='') in > /var/virt/home/stuffwefound-co-uk/public_html/index.php on line 70 > > I have got an error page for any other url i.e. apagenotfound.php but I > dont know how to overcome the above. > > Thanks in advance > > Lee > -- mike cull

Re: [PHP] Newbie database question

2002-01-13 Thread mike cullerton
ll it exactly the same each time. you may need to figure out some other unique identifier to determine if it's the 'same' person. hope this helps, mike -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-13 Thread mike cullerton
me for getting dates in and out of mysql using $month,$day,$year. for any project, i also create functions for formatting $month,$day,$year however the customer requires the output. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] beginer

2002-01-13 Thread mike cullerton
on 1/13/02 10:32 AM, Vania Lavielle Castro at [EMAIL PROTECTED] wrote: > how work with sql server and code php? > i try with the functions and the results are bad > i need examples, please :( http://www.php.net/links.php -- mike cullerton -- PHP General Mailing List (http://ww

Re: [PHP] External Function

2002-01-13 Thread mike cullerton
on 1/13/02 10:06 AM, Cory at [EMAIL PROTECTED] wrote: > Is it possible to put all of my functions in a text file and just call it > and use the functions in it? http://www.php.net/manual/en/function.require-once.php http://www.php.net/manual/en/function.include-once.php -- mike cul

Re: [PHP] Php.ini file missing

2002-01-13 Thread mike cullerton
macosxhints.com hope this helps, mike on 1/13/02 6:03 PM, Michael Sciascia at [EMAIL PROTECTED] wrote: > Hi, > I am new to this list and also to php and I am sorry to already bother you > with a question you might find really stupid, but I looked around for this > information several d

Re: [PHP] Php.ini file missing

2002-01-13 Thread mike cullerton
- to MAILSERVER=-YES- (isn't everything different in macosx) again, you need to do this from an administrator account. this will start sendmail each time you reboot. i'm not exactly sure how to start sendmail correctly from the command line, but one of the sites i mentioned earlier might

[PHP] Compiling PHP with imap & recode support

2002-01-15 Thread Mike Eheler
#x27; /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../librecode.a(hash.o)(.text+0xa20): first defined here /usr/bin/ld: Warning: size of symbol `hash_lookup' changed from 126 to 112 in misc.o Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: Compiling PHP with imap & recode support

2002-01-15 Thread Mike Eheler
Of course by --with-record I meant --with-recode Mike Mike Eheler wrote: > I get this error when compiling php with ./configure > --with-imap=../imap-2001a --with-record > > Any ideas on a workaround for this? > > /web/src/imap-2001a/c-client/libc-client.a(mi

Re: [PHP] Another question - not exactly what i was looking for

2002-01-15 Thread mike cullerton
27;$weight'"; > > $result = mysql_query ($query); > $num_results = mysql_num_rows($result); > > ...the $num_results is ALWAYS zero unless I typed in all four fields. > > Any help? > > Thanks! > -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Lazy evaluation?

2002-01-16 Thread mike cullerton
so i'll bite. hopefully someone can explain what i'm missing. if i have a statement like if (($a == 'a') && ($b == 'b')) blahblahblah(); and, $a != 'a'. why should php even look at the value for $b while evaluating this line? shouldn

Re: [PHP] mysql_insert_id?

2002-01-16 Thread mike cullerton
ive MySQL persistent link identifier on success this is why you use the link identifier in things like mysql_query, and lets mysql 'know' what 'your' last insert was. hope this helps, mike -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http:

Re: [PHP] Lazy evaluation?

2002-01-16 Thread mike cullerton
even if $a != 'a'? that's not what my test shows (hi bogdan :) so, is there something other than && that forces the other half to be evaluated? interesting... mike on 8/23/01 5:19 PM, TD - Sales International Holland B.V. at [EMAIL PROTECTED] wrote: > On Wednesday

Re: [PHP] PHP as a cron job

2002-01-16 Thread mike cullerton
>> Unable to open /home/admin/webmin-0.85/ in Unknown on line 0 this is possibly a path or env issue. have you tried using absolute filenames? mike on 1/16/02 10:07 AM, Tiago Luchini at [EMAIL PROTECTED] wrote: > I am trying to run directly via PHP. > > I have tried setting 75

Re: [PHP] Maintenance of POP3 accounts

2002-01-16 Thread mike cullerton
t the answer you wanted to hear, but i've lived on both sides of this fence :) mike -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] mySQL select statement with mulitple where definitions

2002-01-16 Thread Mike Krisher
someone here has to know the syntax for using multiple items in a where definition, something like: $values = 120106,120095; $sql = "SELECT * FROM products WHERE catalognumber = $values ORDER BY price"; Does this make sense, » Michael Krisher [EMAIL PROTECTED] -- PHP General Mailing List (h

Re: [PHP] PHP as a cron job

2002-01-16 Thread mike cullerton
>>> >>> Yes. Same thing happens with absolute or relative paths. >> >> what's the line in your code where this error occurs? > > it doesn't run any line at all. don't matter what I put on my code, it just > says "unable to open"

Re: [PHP] mySQL select statement with mulitple where definitions

2002-01-16 Thread mike cullerton
on 1/16/02 11:57 AM, Mike Krisher at [EMAIL PROTECTED] wrote: > someone here has to know the syntax for using multiple items in a where > definition, something like: > > $values = 120106,120095; > $sql = "SELECT * FROM products WHERE catalognumber = $values ORDER BY > pr

Re: [PHP] mysql_insert_id?

2002-01-16 Thread mike cullerton
n the last_insert_id of previous INSERT query (from previous > 'session') but of course, you'd have checked that the result id returned a valid result and not an error in this case and never looked for the last_insert_id, right? ;) mike -- mike cullerton michaelc at cullerton

Re: [PHP] PHP & HTML: newbie question

2002-01-16 Thread mike cullerton
fact that have to use their CGI > server to run PHP??? > > Cheers > > Richard S > -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP Security - "view source code"

2002-01-16 Thread mike cullerton
ne requests a file ending in .inc, apache won't deliver it. however, php will still be allowed to include those files itself. -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] Linux Book

2002-01-16 Thread mike cullerton
gest starting with the Guides at the Linux > Documentation Project, > http://www.linuxdoc.org/guides.html > and work from there, and don't forget the HOWTO's. >> S. slightly OT, but what is the best linux book out there, aimed at >> admin/DNS/Networking?

[PHP] variable variables

2002-01-17 Thread Mike Krisher
I can not wrap my head around variable variables today, not awake yet or something. For instance I trying something like this: while ($i<$loopcounter) { $temp = "size"; $valueofsize = $$temp$i; $i++; } this doesn't work obviously, $valueofsize ends up with a literal valu

Re: [PHP] Php.ini file missing

2002-01-17 Thread mike cullerton
ch/software/macosx/php/ > Which values do you think I should write in the hostconfig file? My usual > provider domain (i.e. www.tiscali.it)? ideally, you would type the fully qualified domain name of your computer. so, to test all this - login to your isp - find out your hostname (nslookup i

Re: [PHP] PHP Security - "view source code"

2002-01-17 Thread mike cullerton
erver runs as. my webserver runs as www.www so i added myself to the www group. -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Feature Suggestion

2002-01-17 Thread Mike Eheler
ic = array([1..100]); Or something of that sort. Just something that popped into my mind. PHP feels like a language that has been built on little suggestions like this, so I thought I'd post it. :) Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

[PHP] Does any have the 'edit_member.php' script ....

2002-01-17 Thread Mike C
In electronic format that I can have? It is included in the book 'MySQL' by Paul DuBois ? I have a parse error in my script that I simply cannot find (after many, many tries). TIA Regards Mike C -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
t; > php mail_test.php > > and getting, > > X-Powered-By: PHP/4.0.6 > Content-type: text/html > > attempting to deliver the mail > Warning: Unknown error in mail_test.php on line 3 didn't notice any other responses, and this is just a guess here, but how a

Re: [PHP] help installing php

2002-01-18 Thread mike cullerton
it for next time. the configure string might look something like ./configure \ --enable-track-vars \ --with-mysql=/usr/local \ --with-apache=/usr/src/apache_1.3.22 \ --enable-trans-sid \ --with-snmp \ --with-ftp \ --with-gd depending on what

Re: [PHP] $this objects and vars

2002-01-18 Thread mike cullerton
context isn't referring to itself at that point but some memory space allocated to the variable named 'this' instead, i guess. ? mike -- mike cullerton michaelc at cullerton dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] command line are -c doesn't work on win2k?

2002-01-18 Thread mike cullerton
what about the "[EMAIL PROTECTED]"? is it failing on a 'bad' email address? or maybe putting everything in variables and trying mail($to,$subject,$message); on 1/18/02 9:14 AM, Jeff D. Hamann at [EMAIL PROTECTED] wrote: > nope. no difference. > > jeff. > >

[PHP] Re: Feature Suggestion

2002-01-18 Thread Mike Eheler
range() is good, but what I was getting at was a shorthand/shortcut/alternate syntax kinda thing. Mike Julio Nobrega Trabalhando wrote: > $array = range('a','z'); > ?> > > As usual your mileage may vary but it worked here :-) > > -- > >

Re: [PHP] function arguments

2002-01-18 Thread mike cullerton
passed... > > example: > function func($arga, $argb, $argc) > { > do_something_with_arga; > do_another_thing_with_argb; > and_if_argc_was_passed_do_something_with_it_too; > } > > because i dont want to pass argc if i dont need it, and to pass void arguments > like '' is annoying... > &

[PHP] Uploading file to php

2002-01-18 Thread Mike Schroeder
mo4QE9 and $filename_name=BackB.gif (or whatever) When the client is IE (I tried V5.5 and 6.0) I get $filename=F:\\disk_e\\Butter\\BackB.gif and $filename_name (etc) are empty. Has anyone else run into this? Any suggestions as to how I can further debug this? Thanks, Mike at nutfield.net -- P

[PHP] Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Mike C
I have not been able to find an electronic copy of the above script that is in the book 'MySQL'. Is anyone prepared to help me out. My, self-typed version contains a parse error that I cannot find? Regards Mike C -- -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Mike C
_affected_rows () > 0) print ("Entry updated successfully.\n"); else print ("Entry not updated.\n"); } function nullable ($result, $col_name) { for ($i = 0; $i < mysql_num_fields ($result); $i++) { if (!($fld = mysql_fetch_field ($result, $i))) continue; if ($fld->name == $col_name) return (!$fld->not_null); } return (0); } if (empty ($action)) $action = INITIAL_PAGE; $title = "Historical League member editing form"; html_begin ($title, $title); samp_db_connect() or die ("Cannot connect to the server"); switch ($action) { case initial_page: solicit_member_id (); break; case display_entry: display_entry (); break; case update_entry: update_entry (); break; default: die ("Unknown action code ($action)"); } html_end (); ?> _ #samp_db.inc \n"); print ("\n"); if ($title) print ("$title\n"); print ("\n"); print ("\n"); if ($header) print ("$header\n"); } function html_end () { print ("\n"); } ?> Regards Mike -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Mike C
Hi Janet, > >The problem is on this line. > >print ("\n"); > >There is a space between the \ and the " before Submit. Yes indeed :-(, how could I miss that Your wonderful :-) Thank you (and others) so much. Regards Mike C -- -- PHP General Mail

[PHP] Re: Dual Pentium Pro 200 vs. Single Pentium II 450

2002-01-24 Thread Mike Frazer
holdups in the system anywhere, and his userload at any one time on any of those systems is higher than what you expect by far. The biggest concern is to get the systems set up properly, like configuring Apache and PHP. Those two will suck of RAM if you aren't careful, not to mention CPU res

<    6   7   8   9   10   11   12   13   14   15   >