[PHP] CSS / PHP / Javascript

2006-11-14 Thread Ed Lazor
I'm reading a book on CSS and how you can define different style sheets for different visitors. I'm wondering how you guys do it. The book recommends using Javascript functions for identifying the user's browser and matching them with the corresponding style sheets. Anyone using PHP for

Re: [PHP] Protecting Streaming Audio

2006-11-06 Thread Ed Lazor
questions.. Sincerely, Adam On 11/4/06, Ed Lazor [EMAIL PROTECTED] wrote: You put the data in a directory outside of the webspace and use PHP to grab the file and send it to someone. That way you're able to control access to the file. By webspace, I'm referring to the directories outside

Re: [PHP] Frameworks

2006-11-06 Thread Ed Lazor
I think you pegged it... the benefit is that you save time, the drawback is that you're limited in what you can do. I think you have to review each framework and chose one based on your personal preferences, the project at hand, etc. On Nov 2, 2006, at 7:37 AM, [EMAIL PROTECTED] wrote:

Re: [PHP] Protecting Streaming Audio

2006-11-04 Thread Ed Lazor
You put the data in a directory outside of the webspace and use PHP to grab the file and send it to someone. That way you're able to control access to the file. By webspace, I'm referring to the directories outside of the ones used to store and serve your webpages. This directory

Re: [PHP] ChangeLog PHP 5.2.0 - Fileupload

2006-11-04 Thread Ed Lazor
Very cool example. Probably best explained with an example: http://progphp.com/upload.php Try uploading a 200-300k file. The source code is at: http://progphp.com/upload.phps -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mac PHP MySQL

2006-11-03 Thread Ed Lazor
Thanks Johan, I appreciate the info. I ended up going with MAMP as a quick solution. On Nov 2, 2006, at 11:29 PM, Johan Martin wrote: On 02 Nov 2006, at 5:11 PM, Ed Lazor wrote: I'm trying to configure and compile PHP 5. The configure is failing to find the MySQL UNIX socket. Any

Re: [PHP] Re: PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support

2006-11-02 Thread Ed Lazor
Thanks Colin. I'd seen that site and noticed in their forums that people were reporting problems with PHP 5.1.6. I also noted that they use Apache 1.3 and I'm trying to use 2.2. On Nov 2, 2006, at 6:02 AM, Colin Guthrie wrote: Ed Lazor wrote: Any ideas on how to get this PHP configure

[PHP] Mac PHP MySQL

2006-11-02 Thread Ed Lazor
I'm trying to configure and compile PHP 5. The configure is failing to find the MySQL UNIX socket. Any ideas? ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-zlib \ --with-mysql=/usr/local/mysql \ --with-mysql-socket=/tmp The mysql.sock file is physically located in

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-02 Thread Ed Lazor
Here's another idea: display your message in the original browser window, launch a new browser window for the processing script, have the window set behind the first with javascript. When your script is finished, have it output javascript that closes the processing window. On Nov 2,

Re: [PHP] Mac PHP MySQL

2006-11-02 Thread Ed Lazor
Very very nice. I'm impressed with how easy everything was to setup. I keep wondering why nobody at PHP/MySQL/Apache ever sets up stuff like this. On Nov 2, 2006, at 8:40 PM, Wee Keat Chin wrote: Ed, Ed Lazor wrote: I'm trying to configure and compile PHP 5. The configure is failing

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread Ed Lazor
Javascript: Have the submit button call a JS function which would check the state of the select and set the action appropriately before submitting the form. PHP: submit the result to a dispatcher script that'll redirect to one of the targets based on what has arrived in the

Re: [PHP] php.ini ini_set

2006-11-01 Thread Ed Lazor
I think that's what he's trying, but he's missing the fact that he needs to include the actual From: that you've specified. In other words, I think he's doing: mail([EMAIL PROTECTED], Subject, Body, [EMAIL PROTECTED]); instead of: mail([EMAIL PROTECTED], Subject, Body, From:[EMAIL

Re: [PHP] 301 redirect returning 302 instead

2006-11-01 Thread Ed Lazor
Have the lighttpd guys come up with any ideas? On Nov 1, 2006, at 10:24 AM, [EMAIL PROTECTED] wrote: Just a shot in the dark, but it's possible that providing a Location header resets the status response. Try swapping your two header calls. Stut: Flipping the headers doesn't work,

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Ed Lazor
It's great to see Microsoft be so supportive of PHP. Go Andi! :) Personally I'm unsure. I would like to think that Zend is smart enough to realize M$ tactics of embrace/extend and will not allow that to happen. But everyone has a price, and you through enough money at something and you

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Ed Lazor
ps... I wonder if .NET will ever support PHP *GRIN* On Nov 1, 2006, at 11:59 AM, Ed Lazor wrote: It's great to see Microsoft be so supportive of PHP. Go Andi! :) Personally I'm unsure. I would like to think that Zend is smart enough to realize M$ tactics of embrace/extend

Re: [PHP] Directory name

2006-11-01 Thread Ed Lazor
I don't think web browsers are going to send you the name of the directory the file comes from. On Nov 1, 2006, at 10:50 AM, Sugrue, Sean wrote: I'm trying retrieve a directory name and a filename with a form. I want to use input type file so the user can browse for the file but keep the

Re: [PHP] OO website/program doubt

2006-11-01 Thread Ed Lazor
No variable is part of session data, unless you specifically add it yourself. Sorry, can't answer to AJAX, haven't had time to play with it. On Nov 1, 2006, at 12:50 PM, Meghdad Azriel wrote: Hello, The objects in an OO website/program is always alive in the session, or they die at

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Ed Lazor
And writing windows native applications with php under Visual Studio may be interesting... I use RealBasic a lot for cross-platform development... it would be cool if PHP were the base language, instead of Basic *grin* -Ed -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-11-01 Thread Ed Lazor
Unless you want to pre-parse set_ini() for constants differently than set_ini() for variables. [shudder] It sounds like we just need support for pre-parser commands. You end up with one set of variables, but now you have the opportunity to change attributes of the environment before script

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-01 Thread Ed Lazor
dejavu! This thread was just on the mailing list recently... check the mailing list archives. -Ed On Nov 1, 2006, at 1:24 PM, David Négrier wrote: Hello there, I'm having a somewhat unusual question here, and I cannot find any way to solve it. I have a PHP page that displays a

Re: [PHP] OO website/program doubt

2006-11-01 Thread Ed Lazor
Yes. Check the mailing list archive. We just had a discussion about 2 weeks ago that talked about this and gave a few examples. On Nov 1, 2006, at 1:30 PM, bruce wrote: yo rich (or others)... does php provide the ability to store objects in a session var -Original Message-

[PHP] PHP 5.1.6 on Mac OSX 10.4.8 w/MySQL 5.0.27 support

2006-11-01 Thread Ed Lazor
Any ideas on how to get this PHP configure / compile to work? Apache 2.2.3 is installed and working from source. MySQL 5.0.27 is installed and working from the Mac OSX package available on the MySQL site. PHP 5.1.6 will configure and make if I don't worry about MySQL support. The configure

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Ed Lazor
On Oct 30, 2006, at 11:34 PM, Google Kreme wrote: So, do I whack up something where I just load the file into a HTML Textarea and then write it back (simple enough, though possibly rather dangerous), or is there something straightforward I should go ahead and use that might find use

Re: [PHP] Run script every 30 seconds

2006-10-31 Thread Ed Lazor
On Oct 31, 2006, at 2:48 AM, Ahmad Al-Twaijiry wrote: yes, I think you can call it ,semi-real-time monitoring because we want the script when it run it should read some records in database and update other records That's kind of vague. I'm not able to give better advice without more

Re: [PHP] Decide witch table within a union

2006-10-31 Thread Ed Lazor
On Oct 30, 2006, at 9:20 PM, Børge Holen wrote: On Tuesday 31 October 2006 02:27, Ed Lazor wrote: Someone asked what it was to be used for. It's for combining 4 forums into one witch shows the latest movement among them. More like an introduction sort of... Sounds cool. Are you using a pre

Re: [PHP] channels attribute value returns wrong

2006-10-31 Thread Ed Lazor
Just getting, but is there a 0, 1, 2, and 3 channel? On Oct 31, 2006, at 3:10 AM, dhatri gmail wrote: Hello, using function getimagesize(); I am trying to get channels attribute value of image, it returns 3 for cmyk image actually it should return 4, can you tell me why it happens so?

Re: [PHP] Is there such a thing?

2006-10-31 Thread Ed Lazor
On Oct 31, 2006, at 8:25 AM, Rory Browne wrote: It would be helpful if people would read the link the OP provided, as opposed to just the URL to that link. The page isn't about compiling PHP source into a binary. It's about creating a method of using web applications ( php ) without the

Re: [PHP] only one at atime

2006-10-31 Thread Ed Lazor
On Oct 31, 2006, at 2:29 AM, Ahmad Al-Twaijiry wrote: We have a virtual stock exchange site (for learning purpose) we put all the bids and offers in a table and every minute we run the php script to make the exchange but my customer want to make it less than 1 minute I can tell there's

Re: [PHP] Imagecopyresampled creates black pictures

2006-10-30 Thread Ed Lazor
On Oct 30, 2006, at 12:52 AM, Martin Hochreiter wrote: Hi! I'm using imagecopyresampled to create thumbnails of various pictures. That works well except some pictures that imagecopyresampled converts to small black thumbnails (although it converts it correctly to a bigger size) What is

Re: [PHP] PHP Search Engine - Synonyms

2006-10-30 Thread Ed Lazor
Another idea from what I just sent: try googling synonym database. It looks like there are a few leads in there as well. On Oct 30, 2006, at 6:26 AM, Kevin wrote: Hi, Is it possible to automatically search for synonyms related to a word in a search engine for example if I create a

Re: [PHP] Encoding PC-850

2006-10-30 Thread Ed Lazor
Would this help? http://us3.php.net/manual/en/function.mb-convert-encoding.php On Oct 30, 2006, at 7:21 AM, [EMAIL PROTECTED] wrote: Hi! I need to be able to encode text to PC-850 but I have big trouble finding out info about this encoding. Does it even exist? I get a few google hits, but

Re: [PHP] str_replace on words with an array

2006-10-30 Thread Ed Lazor
It looks like you guys are coming up with some cool solutions, but I have a question. Wasn't the original purpose of this thread to prevent sql injection attacks in input from user forms? If so, wouldn't mysql_real_escape_string be an easier solution? On Oct 30, 2006, at 8:17 AM,

Re: [PHP] Is there such a thing?

2006-10-30 Thread Ed Lazor
On Oct 29, 2006, at 9:22 PM, Richard Lynch wrote: On Fri, October 27, 2006 5:46 pm, Integz wrote: http://www.evilbitz.com/2006/10/27/local-php-standalone-binaries-2/ I responded in that forum. Short Version: No. Check out: http://gtk.php.net/ Do these qualify?

Re: [PHP] PHP Search Engine - Synonyms

2006-10-30 Thread Ed Lazor
On Oct 30, 2006, at 6:26 AM, Kevin wrote: Hi, Is it possible to automatically search for synonyms related to a word in a search engine for example if I create a search engine and search for the word 'Horse', it would automatically search for other words such as 'Pony' etc? It is

Re: [PHP] str_replace on words with an array

2006-10-30 Thread Ed Lazor
On Oct 30, 2006, at 9:19 AM, Stut wrote: Ed Lazor wrote: It looks like you guys are coming up with some cool solutions, but I have a question. Wasn't the original purpose of this thread to prevent sql injection attacks in input from user forms? If so, wouldn't mysql_real_escape_string

Re: [PHP] Decide witch table within a union

2006-10-30 Thread Ed Lazor
Someone asked what it was to be used for. It's for combining 4 forums into one witch shows the latest movement among them. More like an introduction sort of... Sounds cool. Are you using a pre-made forum package? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] only one at atime

2006-10-30 Thread Ed Lazor
On Oct 30, 2006, at 10:14 AM, Ahmad Al-Twaijiry wrote: Hi everyone, I create a php script that will run every minute (by cronjob) and update some database tables (php 5, database mysql 5, tables type innodb) the problem is that I want this script to run only one at atime (only one process

Re: [PHP] Run script every 30 seconds

2006-10-30 Thread Ed Lazor
On Oct 30, 2006, at 10:26 AM, Ahmad Al-Twaijiry wrote: is it possible to link the script to my php interface (the one that the users is using it) and if the php interface page will run the script (IN background) if it didn't run for the last 30 seconds ? I see this is very hard and almost

Re: [PHP] str_replace on words with an array

2006-10-30 Thread Ed Lazor
On Oct 30, 2006, at 1:10 PM, Dotan Cohen wrote: On 30/10/06, Stut [EMAIL PROTECTED] wrote: Ed Lazor wrote: It looks like you guys are coming up with some cool solutions, but I have a question. Wasn't the original purpose of this thread to prevent sql injection attacks in input from

Re: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-30 Thread Ed Lazor
I suppose I could re-compile my command line version with a different php.ini file, but that's kind of lame that I have to have two php.ini files for what ini_set() SHOULD handle. Would modifications via .htaccess work for you? -Ed -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Query question

2006-10-29 Thread Ed Lazor
. This is why I figured I'd need to use PHP to maybe put it in an array first or something. Thanks -Original Message- From: Joe Wollard [mailto:[EMAIL PROTECTED] Sent: October 28, 2006 10:30 PM To: Ed Lazor Cc: Beauford; PHP Subject: Re: [PHP] Query question Agreed, this should go

Re: [PHP] strange problem with count()

2006-10-29 Thread Ed Lazor
Side note, it sounds like $this-result is an object holding an array, not the array itself and print_r is automatically traversing the object. On Oct 29, 2006, at 4:27 AM, Gunnar Beushausen wrote: Hi! I've a strange problem with count. I wrote a routine to jump to the last position of

Re: [PHP] forms usage in web pages

2006-10-29 Thread Ed Lazor
Is anyone else getting multiple copies of posts? On Oct 29, 2006, at 9:52 AM, Larry Garfield wrote: There's nothing wrong with multiple forms on a single page, as long as all id attributes in all elements are unique on the entire page, not just within the form. Just make sure that each

Re: [PHP] Decide witch table within a union

2006-10-29 Thread Ed Lazor
PHP can't tell what table the data came from. On Oct 29, 2006, at 1:34 PM, Børge Holen wrote: Hi. I got this working (almost) How do I decide (inside?) the whileloop the table_nr, 1 to 4 witch the link is echo'ed from. I could add another field in each table telling witch table it is.

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Ed Lazor
checkout the function mysql_real_escape_string() On Oct 29, 2006, at 3:13 PM, Dotan Cohen wrote: On 30/10/06, Paul Novitski [EMAIL PROTECTED] wrote: Hi Dotan, To get help with your problem, share more of your PHP code with the list so we can look at what you're doing. Also, give us a link

Re: [PHP] Decide witch table within a union

2006-10-29 Thread Ed Lazor
Definitely not. Review your design. If you need to know which table data comes from, then perform table specific queries. If you need to combine data from more than one table, code your application to respond accordingly. You may also need to review your database schema design in order

Re: [PHP] socket_recv

2006-10-29 Thread Ed Lazor
Depends on the volume and type of data that you're working with. It also depends on the type of connection between the server and client. Slower connections, unreliable connections, or general data, use smaller packets. Reliable connection or higher volumes of data, use larger packets.

Re: [PHP] Decide witch table within a union

2006-10-29 Thread Ed Lazor
That seems unreasonably harsh. I can see what you mean, but don't take it that way. I was trying to help. What in your view is wrong with a union query that preserves an indicator of which component table a particular record comes from? Read earlier in the thread. He's talking

Re: [PHP] Decide witch table within a union

2006-10-29 Thread Ed Lazor
Sorry, Ed, I had intended my reply to be friendly as well. I'm allergic to smiley-face icons, but I should have tried harder to convey my tone. Dang this poker-faced email! No worries. It's all good :) -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Shopping Cart

2006-10-28 Thread Ed Lazor
Be specific in stating what prior research has been done so that we may help, if possible. Point noted. Helping out further, you'll find that this rule applies to almost all mailing lists. 2) We don't owe you anything. If you decide to go elsewhere for help don't expect us to feel

Re: [PHP] Uploading files.

2006-10-28 Thread Ed Lazor
Side note on the PHP FTP... I'm sure there are PHP FTP classes out there for you to use... google php ftp class and you'll see a few options to explore. On Oct 28, 2006, at 10:47 AM, João Cândido de Souza Neto wrote: Hi everyone. I´m in a big doubt about uploading files ins a safe way.

Re: [PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread Ed Lazor
Check php.ini session settings. There are some options in there for you to use in your scripts. Set up scripts to test whether session cookies are being saved and then route accordingly. On Oct 28, 2006, at 12:41 PM, sit1way wrote: Hey all. I run a members-only hockey report that

Re: [PHP] Re: A general UL script

2006-10-28 Thread Ed Lazor
Are you just trying to tell whether the form has been submitted? Or are you just trying to validate form data? -- verify form submitted - if (isset($_POST)) { // form submitted, process data } else { // display form }

Re: [PHP] A general UL script

2006-10-28 Thread Ed Lazor
You posted this earlier and people, myself included, responded. I don't know why you're reposting your original message rather than reply to what we went. If you're not happy with the answers we provided, please rephrase your question in order that have more luck in answering it. On

Re: [PHP] Query question

2006-10-28 Thread Ed Lazor
Use the mysql list :) On Oct 28, 2006, at 3:01 PM, Beauford wrote: Hi, I have a MySQL database with a date field and a bunch of other fields. The date field is in the format - 01/01/2006. What I want to do is query the database and create a table that shows just the year and how many

Re: [PHP] PHP 5 Hosting

2006-10-25 Thread Ed Lazor
Hi, I wanted to give some feedback on PHP 5 hosting in case it helps someone. I signed up with DreamHost last Thursday. I also signed up with OCS Solutions to compare the two services. I also maintain a server with CalPop. When I signed up with Dreamhost, I discovered that you have to

Re: [PHP] [OFF] A note on replying to this list

2006-10-23 Thread Ed Lazor
You're asking everyone else to change their email client when the quickest solution would be for you to change yours. On Oct 22, 2006, at 10:59 PM, theIggs wrote: Hello all! Sorry for the offtopic. Please, when you reply to PHP mailing lists, put the Re: element right in front of the

Re: [PHP] [ANNOUNCEMENT] Sparse 1.1b released - create Ajax forms!

2006-10-23 Thread Ed Lazor
Has anyone checked this for security? On Oct 23, 2006, at 11:26 AM, Daniel Orner wrote: A big new update for Sparse, the HTML-based framework for writing MySQL-backed CGI applications easily and quickly. Now, the generated forms output in fully degradable Ajax, meaning that if a user

Re: [PHP] FTP - folders

2006-10-23 Thread Ed Lazor
On Oct 23, 2006, at 2:27 PM, Richard Lynch wrote: On the Mac, I always dug Fetch personally. Nice... I've been looking for something like Fetch. PC, you got your CuteFTP and all that ilk. SecureFTP by VanDyke rocks. Now, on *nix, SCP is nice for that, if you have SSH shell access. If

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Ed Lazor
Depends on your operating system. On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote: Yes, the directory on mapped drive Y does exist. I do think that it might have something with how PHP and Apache is running. How do I chanage how PHP is running under an account? Where do I tell PHP or

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Ed Lazor
, wish they would give me back my Mac. On 10/23/06, Ed Lazor [EMAIL PROTECTED] wrote: Depends on your operating system. On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote: Yes, the directory on mapped drive Y does exist. I do think that it might have something with how PHP and Apache

Re: [PHP] Screen Shots

2006-10-22 Thread Ed Lazor
On Oct 22, 2006, at 5:29 PM, Sancar Saran wrote: On Sunday 22 October 2006 15:19, Mark McWhirter wrote: Is there any way that I can get a script to take a screen shot every minute of all the users using my php website? Convert to pdf. Are you logging the stats? That would allow you to

Re: [PHP] worst sites / standard format

2006-10-19 Thread Ed Lazor
Sorry, how does this relate to PHP? It seems like you're just trying to get us to visit your sites to bump up traffic. On Oct 19, 2006, at 8:44 AM, Chuck Stearns wrote: hey, check out the bar on the side of the ones with main.html. http://www.997thelake.com/main.html

Re: [PHP] Creating new table from distinct entries

2006-10-19 Thread Ed Lazor
This is definitely something you'll want to run by the MySQL mailing list. On Oct 19, 2006, at 10:02 AM, Alan Milnes wrote: PHP 4.4.4 MySQL 4.1.21-community-nt I have a table in my database that has a Primary key on 2 fields (MyID and MyChange) and a field that indicates if there is a

Re: [PHP] ENV vars

2006-10-19 Thread Ed Lazor
How are you running PHP? What are you trying to accomplish with setting the env var? On Oct 19, 2006, at 8:16 PM, jekillen wrote: Hello again; I'm wondering if it is possible to create an $_ENV var with a php script running under a web server. I'm not sure where to look in the manual or

Re: [PHP] Re: postback for php

2006-10-18 Thread Ed Lazor
Maybe he's talking about the ability to post data to a website, like using PHP to simulate a user submitting a webpage form. If so, check out curl. On Oct 18, 2006, at 8:00 AM, Miles Thompson wrote: At 11:48 AM 10/18/2006, M.Sokolewicz wrote: Ross wrote: Looked on google and not found a

Re: [PHP] book on PHP security

2006-10-18 Thread Ed Lazor
essential PHP Security, by Chris Shiflett. Pro PHP Security by Chris Snyder. On Oct 18, 2006, at 9:04 AM, Angelo Zanetti wrote: HI, can anyone recommend a really good book on security with PHP? Thanks in advance -- --

Re: [PHP] Re: postback for php

2006-10-18 Thread Ed Lazor
On Oct 18, 2006, at 8:43 AM, Justin Cook wrote: I believe he is talking about the concept of postback in ASP.Net. PHP does not have anything built in for this. _ Is that where the same script displays a form and processes the data when the form is submitted? -- PHP General

Re: [PHP] A no brainer...

2006-10-17 Thread Ed Lazor
Hi Guys :) I'm off today, so I'll follow-up with you tomorrow. Meanwhile, have a great day :) -Ed On Oct 17, 2006, at 2:20 AM, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-10-16 16:40:34 -0700: On Oct 16, 2006, at 6:20 PM, Roman Neuhauser wrote: Modern filesystems cope well

Re: [PHP] A no brainer...

2006-10-16 Thread Ed Lazor
Almost ALL of this is moot for any but the hardest-hit sites -- So choosing your session store based solely on performance for a boutique store is just plain silly. You don't have to be one of the hardest-hit sites to benefit. I won't go so far as to say that all sites benefit, but even the

Re: [PHP] A no brainer...

2006-10-16 Thread Ed Lazor
On Oct 16, 2006, at 1:03 PM, Richard Lynch wrote: My thesis is that choosing SOLELY on raw performance without regard to security, scalability is silly, and it's particularly silly on sites that get so little traffic that raw performance tests and benchmarks are rendered meaningless. I that

Re: [PHP] A no brainer...

2006-10-16 Thread Ed Lazor
On Oct 16, 2006, at 6:20 PM, Roman Neuhauser wrote: Modern filesystems cope well with large directories (plus it's quite trivial to derive a directory hierarchy from the filenames). Looking at the numbers produced by timing various operations in a directory with exactly

Re: [PHP] Re: LAMP || Apache Cache PHP Source File...

2006-10-15 Thread Ed Lazor
I'd like to have Apache cache this file. Mod_File_Cache doesn't look like it will do the trick as this module only works with static content, and Mod_Cache seems to require a GET request, among other requirements, in order to perform file caching. Apache: reverse proxy -- PHP General

Re: [PHP] Re: LAMP || Apache Cache PHP Source File...

2006-10-15 Thread Ed Lazor
H, does mod_proxy perform file caching? It appears to just redirect urls to and from a proxy server. Yes. http://httpd.apache.org/docs/1.3/mod/mod_proxy.html Note the difference between forward and reverse proxy. You can also use Squid http://www.squid-cache.org Note Transparent

Re: [PHP] A no brainer...

2006-10-15 Thread Ed Lazor
On Oct 15, 2006, at 3:27 PM, Tony Di Croce wrote: Wow... well, I was certainly not speaking from direct experience, only from what seemed to make sense to me. This tells me that their is some serious room for improvement in PHP de-serialization code... Well, kinda. Hard disks are a lot

Re: [PHP] A no brainer...

2006-10-14 Thread Ed Lazor
Of course, the cost of serialization and deserialization is non- trivial for any data structure that is of interesting size, and you have to keep in mind that if you aren't syncing to the database periodically then you will end up with stale data objects. (An issue in any case, but the

Re: [PHP] Windows ENV['_'] equivalent

2006-10-14 Thread Ed Lazor
On Oct 14, 2006, at 2:09 AM, Stut wrote: Unfortunately there's no guarantee that a) the working directory will be where the PHP binary is, or b) that the binary is called php.exe. Richard: AFAIK there is no way to know this under windows without writing an extension to tell you. -Stut

Re: [PHP] PHP Denial of service

2006-10-14 Thread Ed Lazor
On Oct 14, 2006, at 4:05 AM, Ryan Barclay wrote: It hasn't actually been attempted. However, if a couple of a users were to hold the refresh, the page generation times would go up ridiculously and clients would be waiting over 20sec for pages. As mentioned, it's a very heavy php-mysql

Re: [PHP] Crossing over to the Darkside?

2006-10-14 Thread Ed Lazor
I agree with Roman and Rory's comments, but I figure I might be able to add something, so here goes... On Oct 14, 2006, at 5:52 AM, Ross wrote: I am very suprised how easy things like user auhtentication and form validation is. Literally in minutes. Even though I have written a similar

Re: [PHP] A no brainer...

2006-10-14 Thread Ed Lazor
On Oct 14, 2006, at 10:00 AM, Tony Di Croce wrote: I think that the cost of de-serializing a session stored in files should be significantly LESS than the cost of doing so through a database, for the following reasons: 1) The db will need to parse querys. Not an issue for files. 2) The

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 1:35 AM, Tony Marston wrote: What a coincidence! That's exactly my approach, but I've taken it one step further. I always start with a properly normalised database which I can then import into my daa dictionary application. From there I can press a button and create a

Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 1:54 AM, Stut wrote: Youch!! Your implementation seems to be focused on development efficiency rather than runtime efficience. In all but rare research projects this is backwards for a web-based system. This is exactly the practice I am trying to discourage. It's a

Re: [PHP] Send process to background

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 12:12 PM, Richard Lynch wrote: On Fri, October 13, 2006 11:05 am, André Medeiros wrote: I am working on a backup system that needs to be called through a webpage to start the process. I am trying to do this on a one-file-only sollution. The thing is, the first request to

Re: [PHP] Windows ENV['_'] equivalent

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 11:53 AM, Richard Lynch wrote: So, I have this automated testing script I wrote, and I want to make it work on more than just my computer. In cygwin, and in Linux, EVN['_'] has the nice path to the binary CLI which is running -- which I call again in a backticks for each

Re: [PHP] PHP Denial of service

2006-10-13 Thread Ed Lazor
On Oct 13, 2006, at 2:16 PM, Ryan Barclay wrote: A simple question I imagine, but I am wondering how I would combat DoS attacks by users holding the REFRESH key on their browsers? I have reproduced this error on a PHP-MYSQL website and when I hold the REFRESH key on for a while, page gen

Re: [PHP] PHP 5 Hosting

2006-10-12 Thread Ed Lazor
Thanks for the feedback Kyle, much appreciated. DreamHost does look pretty good price-wise. Two others I was referred to are HostBaby.com and OCSSolutions.com. Have a good one :) -Ed On Oct 11, 2006, at 10:12 PM, Kyle wrote: Hello, I would suggest dreamhost at www.dreamhost.com. Their

Re: [PHP] OOP slow -- am I an idiot?

2006-10-12 Thread Ed Lazor
On Oct 12, 2006, at 10:18 AM, Richard Lynch wrote: I can't architect a good OOP solution to a problem that hasn't been fully defined, any more than one can architect a house without knowing all the rooms that are needed... Sorry to jump into the middle of the conversation, but I thought this

Re: [PHP] OOP slow -- am I an idiot?

2006-10-12 Thread Ed Lazor
Comments / Questions below. On Oct 12, 2006, at 12:15 PM, Stut wrote: Except that is the attitude that leads to painful OOP in PHP. PHP is not the same environment as C++. The environment (classes, objects, etc) needs to be created and destroyed with each request. I definitely agree that

Re: [PHP] OOP slow -- am I an idiot?

2006-10-12 Thread Ed Lazor
On Oct 12, 2006, at 4:36 PM, Stut wrote: You may end up refactoring code if your application changes that much, but a good OO design should also mean that when changes of that magnitude occur the changes required are limited to relatively small sections of code. Ok, I think we're using

Re: [PHP] canon jpegs

2006-10-12 Thread Ed Lazor
Until someone has more specific information, my first thought was to wonder which version of PHP and GD you're using in case they aren't the latest and greatest. If you're aren't, then I'd upgrade, retest, and go from there. I'd also check to see if you run into the problem with images

[PHP] PHP 5 Hosting

2006-10-11 Thread Ed Lazor
Anyone ever use A2Hosting.com? Or better yet, any recommendations on a PHP 5 web hosting company that you're happy with - measured in terms of quality support, they know what they're doing, and they have good prices? Bonus points for good drive space, bandwidth, and SSH access. I ran a

Re: [PHP] Re: Can the URL be controlled for more user-friendly readability?

2005-12-23 Thread Ed Lazor
Make sure to parse the input, instead of using $_GET... it's too easy for hackers to embed stuff... Shawn McKenzie [EMAIL PROTECTED] wrote: $result = yoursqlfunc(SELECT person FROM sometable WHERE firstname='$_GET[fn]' AND lastname='$_GET[ln]');

[PHP] PHP 5 Hosting

2005-09-29 Thread Ed Lazor
Any recommendations on good host providers for PHP 5? Bonus points if they support SSH access and a PHP compiler like Zend. Thanks, Ed

[PHP] launch app

2005-09-13 Thread Ed Lazor
What's the best way to send an executable to a client desktop in PHP? I'm doing a project where we need to check and see which files need to be updated on a client-desktop. The idea is for a user to visit the website, an executable launches, checks the files on the drive, and then sends the

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Ed Lazor
It seems that PHP 5 is not that much compelling to most people to justify the change. I'm sure you're right, but I also think it's a question of work load for the ISP. Many server upgrades don't occur unless it's urgent and even then they sometimes get missed. Plus... the last time I

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Ed Lazor
The most strange thing is, that the problem appeared at a time, when no changes to the program was made. ANYBODY RAN INTO SOME SIMILAR THING? I haven't run into this, but it'll be easier to help troubleshoot this if you could post sample code. Ed Lazor, President http://RPGStore.com

RE: [PHP] 'Intelligently' truncate string?

2004-10-19 Thread Ed Lazor
it will only equate to one character more or less. Check out the user contributed notes in manual for substr. There's an example there of how to keep words intact and it sounds like it might apply to your situation. Ed Lazor, President http://RPGStore.com Up to 50% off. Over 20,000 items

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Ed Lazor
How any rows are you pulling from the database? aprrox. 12.000 but there are only around 50-100 new rows at a maximum within a day, and there were almost as many before the problem appeared. You're creating a form with over 12,000 options in a select statement? What's the very last

RE: [PHP] intenger

2004-10-14 Thread Ed Lazor
Do you mean an integer? As in $i = 5; Print $i; ? -Original Message- From: Juan Pablo Herrera [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:19 AM To: [EMAIL PROTECTED] Subject: [PHP] intenger Please, i need output a intenger, what function can i use for

RE: [PHP] User Defined Forms

2004-10-14 Thread Ed Lazor
I have interviewed a few users and it has become instantly apparent that they all work differently and record slightly different information about their clients making it impossible to produce a general set of forms that would encompass all users. I haven't done any other forms of

  1   2   3   >