Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-10 Thread Michael McGlothlin
I run VMWare Fusion on my iMac. I run Windows 2000 w/ IE6 and XP w/ IE7 in their own virtual machines. I haven't bothered with IE8 yet but will probably try it in another copy of my XP virtual machine. I'm sure as hell not going to pay Microsoft any more in licensing fees to make stuff work

[PHP] ecommerce data sharing?

2008-06-01 Thread Michael McGlothlin
Does anyone know of a project for sharing ecommerce related data? Such as abstracted order histories so that tables of related items can be built for recommending items? -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP] page suck attack

2008-05-21 Thread Michael McGlothlin
robots.txt blocks downloading css, scripting, images, and files by spiders so at least all they're getting is the HTML content that is actually useful. -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Michael McGlothlin
Can you do web 2.0? Because it just HAS to be web 2.0... anything else is s last version :) Yuck - I hate overuse of 'web 2.0' stuff. Don't add features that don't benefit your users and if you must do fancy stuff then please make sure your site still works for users without

Re: [PHP] Gzipped output

2008-02-16 Thread Michael McGlothlin
scripting be attached in the head portion of the page and only from a file. Perfect use for Javascript behaviors to attach code to what's in the page body. That'd stop a lot of XSS issues and it'd force developers to write better code. -- Michael McGlothlin Southwest Plumbing Supply

[PHP] Semaphores without sysvmsg?

2008-02-15 Thread Michael McGlothlin
Does anyone have a good method of supporting semaphores when PHP's System V IPC functions can't be enabled? I'm trying to implement locking for using shmop (actually modifying someone elses code) and it requires sysvmsg but my shared host doesn't have this enabled. Thanks, Michael McGlothlin

Re: [PHP] Session and Multi Server Architecture

2008-02-13 Thread Michael McGlothlin
, which propogates to its own clusters. If you're going to store the user's session data as a cookie then make sure there is nothing that will be insecure if they figure out how to modify it. -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
than man hours and YAML is less obvious to work with than XML so it doesn't make business sense. If you really want something fast and non-intensive to parse then use tab-separated values or something similar. -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
Nathan Nobbe wrote: On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. YAML doesn't seem significantly easier

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
a really clean interface then break out your logic into a service that is connected with your UI layer by XML-RPC, SOAP, or whatever you're comfortable with. At least that extra complexity benefits by making scaling easier and making alternate interfaces easier. -- Michael McGlothlin Southwest

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Michael McGlothlin
to handle larger chunks of data. -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP] How to read excel sheet and display it's contents.

2008-02-11 Thread Michael McGlothlin
please suggest me the solution for this error please. [/snip] It is telling you that a file is missing or that you are pointed at the wrong location for the file. - Never miss a thing. Make Yahoo your homepage. -- Michael McGlothlin Southwest

Re: [PHP] Framed Linked Content

2008-01-30 Thread Michael McGlothlin
create more problems for yourself than you'll really see benefit. It is useful sometimes though. I'd do it at the webserver level though and not with PHP. -- Michael McGlothlin Southwest Plumbing Supply smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Michael McGlothlin
CPU power at the problem. -- Michael McGlothlin Southwest Plumbing Supply -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Michael McGlothlin
Nathan Nobbe wrote: On Dec 31, 2007 3:37 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit

Re: [PHP] Just to confirm...

2007-12-21 Thread Michael McGlothlin
more, but purposefully cutting out a large chunk of your audience? -- Michael McGlothlin Southwest Plumbing Supply -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Banned from #php

2007-12-04 Thread Michael McGlothlin
. -- Michael McGlothlin Southwest Plumbing Supply -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Should I put pictures into a database?

2007-11-21 Thread Michael McGlothlin
I use a custom file system that caches large amounts of data in RAM. That way it's really fast and as easy to use as normal file system calls. -- Michael McGlothlin Southwest Plumbing Supply -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two small issues with php mail

2007-11-20 Thread Michael McGlothlin
I hate top posters. Pure evil. OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage Pure stress-relief. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Converting user input for XML-validation

2007-11-16 Thread Michael McGlothlin
chars XML requires be encoded are and . Usually and quotes are also encoded. So htmlspecialchars() does exactly the right thing. -- Michael McGlothlin Southwest Plumbing Supply -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] CURL efficiency?

2007-11-15 Thread Michael McGlothlin
I make use of CURL to talk to a back-end system and I'm calling it several times per requested page and there are several page requests a second. Is there anything I can do to make this process more efficient? Does keep alive work? Do I need to keep the same connection handler and not close it

Re: [PHP] Foreach question

2007-11-15 Thread Michael McGlothlin
to print the row's number. The question : Am I able to add a counter within foreach to print the row number in each row using echo ?. I tried a few things but I couldn't. Thanks! Juan -- Michael McGlothlin Southwest Plumbing Supply -- PHP General Mailing List (http://www.php.net

Re: [PHP] Bad Practices

2001-02-14 Thread Michael McGlothlin
Which is why anyone with a clue makes any special extensions they use protected by the web server. Which is why I protect .inc, .cfg, .class, etc. It's also a good idea not to store config-type files in the web tree. Rick Hodger wrote: "Jeff Oien" [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] PHP Editors

2001-02-14 Thread Michael McGlothlin
I write all my code in a normal plain-text editor, whatever is available on whatever OS I'm using - usually Linux. On MacOS I have a handy tool called BEdit (I think) that allows me to do a multiple-file search and replace. The only problem is it's a hassle to move a couple hundred makes of

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread Michael McGlothlin
It's somewhat annoying to have to tell the function which variables are global sometimes but overall it makes it easier to avoid stupid mistakes. It is a good push to make me less prone to making things global. Usually I just avoid using globals and then pack what I do use into appropiate

Re: [PHP] parse speed vs require speed

2001-02-14 Thread Michael McGlothlin
Wouldn't the PHP cache/optimizing add-ons make it so it doesn't matter after the first time you run the script anyway? So even if the first pass was a few milliseconds slower it wouldn't be on future executions? Maxim Maletsky wrote: My advise to you is to care about the portability of

Re: [PHP] XML parsing without the PHP4 XML functions

2001-02-14 Thread Michael McGlothlin
I haven't done this in PHP as PHP comes w/ XML support but times past when I needed a fast way to parse something like that and knew the format would be simple I'd usually do something like make a function that knows all the possible splits w/in a layer (ie items are w/in the faq layer if

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Michael McGlothlin
I'd go w/ functions. You can split the functions into as many files as needed but I wouldn't embed their inclusions in a switch statement. I'm not quite sure what you need the switch statement for so am assuming it's part of your applications logic. I'd never write a program as one giant

[PHP] XML parsing problems..

2001-02-13 Thread Michael McGlothlin
I didn't see any responses to this the other day when I asked so this time I'll include source.. just cutting and pasting so hopefully nothing gets clobbered.. When I parse this lil bit of raw data it parses properly. You can trace it and see that it opens and closes the tags properly and

[PHP] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Michael McGlothlin
I'd like to pipe and parse my Apache logs through PHP into a MySQL db. Is there a way to do this automaticlly for each entry and would that cause a major performance loss to the web server? If not does anyone know the best way to parse the server log? I'd like to do somerthing like move the

Re: [PHP] SELECT statement

2001-02-13 Thread Michael McGlothlin
Try or print mysql_error () rather than or die ( print mysql_error () )? Peter Houchin wrote: I've tried this but mysql_error() doesn't give me any errors, i tried my sql line at the command line with success here is my code if some one could have a look at it and give some suggestions as

Re: [PHP] URGENT! Regarding file writing

2001-02-13 Thread Michael McGlothlin
Did you try taking the line you wanted to change and doing a minus one to get the right line number? Not sure why windows won't change the file. I'm assuming you have the proper permissions to do what your trying to do? whatever wrote: Hi! I would like to know how to overwrite line in file

Re: [PHP] URGENT! Regarding file writing

2001-02-13 Thread Michael McGlothlin
nospam part. On 13 Feb 2001 14:55:11 -0800, [EMAIL PROTECTED] (Michael McGlothlin) wrote: Did you try taking the line you wanted to change and doing a minus one to get the right line number? Not sure why windows won't change the file. I'm assuming you have the proper permissions to do what

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread Michael McGlothlin
A lil clip from Devedge.. you need a VALUE="" field along w/ a NAME="" maybe? This places an element on an HTML form that lets the user supply a file as input. When the form is submitted, the content of the specified file is sent to the server as the value portion of the name/value pair for

Re: [PHP] session encode

2001-02-13 Thread Michael McGlothlin
You don't need to use session_encode () in most situations. You can use sessions and they'll automaticlly encode your variables. Is that what you wondered? Peter Houchin wrote: With session incode do you have to have it on every page where you have a session_start() ? Peter -- PHP

Re: [PHP] Going backwards with sessions.

2001-02-13 Thread Michael McGlothlin
I think you might need to session_register () the variables on each page you want to use them, not just once per session. Doug Budny wrote: I'm having a strange problem with sessions, it appears that they are not propagating to the next page. When I run the login page the sess vars get

Re: [PHP] GD library

2001-02-13 Thread Michael McGlothlin
Have you tried Apache Toolbox? If building under Unix w/ Apache as your web server it can be a great time saver and if your running into problems you can look how it builds something and see how to make it work so you'll know later. You can find it easily from Freshmeat.net. David Robley

Re: [PHP] INSERT into MSSQL Server

2001-02-13 Thread Michael McGlothlin
Have you tried addslashes () on the input lines before the insert? Conover, Ryan wrote: I trying to insert some data into a MSSQL Server 7.0 database from Php. Some of the data has various characters ', . How can I tell SQL Server to treat these characters as part of the input. Ryan