RE: [PHP] do i need to output headers on parsed CSS files?

2003-07-23 Thread Mike Brum
Justin, when you echo/print your CSS info, you can add tabs /t and newlines /n to your documents for indentation and organization in the source if that's what you're after. Otherwise, when you output it to the browser it's going to print it to a few lines with no discernable order. -M

[PHP] OOP, PHP4 PHP5

2003-07-26 Thread Mike Brum
I've been using PHP for a few years now and I'm quite familiar and comfortable with it. I'd like to start to seriously do some OOP coding and take things to the next level. But as I understand it, PHP5 is going to make quite a few changes/improvements to PHP4's current handling of OOP. Given

RE: [PHP] Mail

2003-08-09 Thread Mike Brum
Do you have an SMTP server installed on your machine? If not, add one to IIS (probably the simplest way to do it in Win2k). -M -Original Message- From: Sean [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 11:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Mail I cannot get mail()

RE: [PHP] Screen Resoultion

2003-08-14 Thread Mike Brum
You can do so with JavaScript and have that pass the information onto your PHP scripts to do whatever it is that you want. -M -Original Message- From: Uma Shankari T. [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 12:12 AM To: PHP Subject: [PHP] Screen Resoultion Hello,

RE: [PHP] [Newbie Guide] For the benefits of new members

2003-08-14 Thread Mike Brum
While sometimes a new perspective is extremely useful on a topic, I think the problem is that a huge percentage of people don't try for themselves. If they've done all the steps in the proposed message, then it tells you to send a message explaining where you're at to the list. While it can be

RE: [PHP] Mail

2003-08-14 Thread Mike Brum
To expand on Curt's suggestion (which is a very good one), add your local network IP (192.168.#.#), the external IP the machine has (if any) and localhost (127.0.0.1) to the Only the list below box. If you have to add any other machines in your network to relay mail through this server, try to

RE: [PHP] [Newbie Guide] For the benefits of new members

2003-08-14 Thread Mike Brum
And don't forget, the user-added notes at the bottom of the functions pages are extremely useful to see actual code usage along with tips or potential conflicts on various systems! Those alone offer countless user-generated examples that are usually similar to content that people on the list

RE: [PHP] executing a shell command within a function

2003-08-15 Thread Mike Brum
Why don't you try to use mkdir() instead of shell commands? http://us2.php.net/manual/en/function.mkdir.php -M -Original Message- From: Sævar Öfjörð [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 8:19 PM To: [EMAIL PROTECTED] Subject: [PHP] executing a shell command within a

RE: [PHP] is the list getting virus spammed?

2003-08-19 Thread Mike Brum
Yes, it's Sobig-F: http://www.sophos.com/virusinfo/analyses/w32sobigf.html Just don't run the attachment and everyone will be fine. It's just one of those viruses that spoofs the from address from somebody that it finds in the infected user's address book or their out/inbox. Hopefully the site

RE: [PHP] game in php

2003-09-07 Thread Mike Brum
Another way you can do it if you don't have that much access to the machine is to record the last time it was updated and when someone loads the page, you take the amount of time between the last incriment and now(). You then find out how many sets of 10 minutes have passed and incriment it that

RE: [PHP] PHP on a .NET enviroment machine: Conflicts?

2003-09-10 Thread Mike Brum
I've had to use CF and .Net on the same machines before and have had only minor issues with it. I've never had an issue mixing PHP and any other language before since it's pretty stand-alone, whereas CF and .Net want to own a lot of Windows functionalities as servers. I don't forsee any real

RE: [PHP] How to accept file through http from curl c program??

2003-09-26 Thread Mike Brum
I don't really know much about Curl, but what it -sounds- like is that Curl isn't sending the proper headers/MIME types to the PHP script and PHP isn't putting the input into the $_FILES array. You might want to look in your $_GET or $_POST array for existance of the file to see if it's being sent

RE: [PHP] IIS Ports

2003-09-27 Thread Mike Brum
Well, any service that listens for external access requires certain ports to be open. Basic web traffic is listened for on port 80 for example. If you get a personal (software) firewall application (ZoneAlarm for example), then you can block access to these ports. I'm not sure how well the XP

RE: [PHP] IIS Ports

2003-09-27 Thread Mike Brum
Yes and no - even with Linux you still need to know HOW to lock down the machine and without doing so, there are still exploits that can be as, or more, dangerous than some Windows exploits (take the SSH exploit recently found that can give an intruder root access!). Bottom line is that any OS

[PHP] General .htaccess question

2003-09-28 Thread Mike Brum
I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I

RE: [PHP] PHP Hosting Sites

2003-06-10 Thread Mike Brum
I've had good experiences with www.phpwebhosting.com for smaller sites (virtual hosting). I haven't had any super-high traffic sites hosted on them though. Full support of PHP mySQL and fairly inexpensive. -M -Original Message- From: Martin, Stanley G [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] Re: Warning Spammer

2003-06-10 Thread Mike Brum
What I've done is created a separate account for the PHP mySQL mailing lists for that purpose. If the spam count gets crazy on this address, it's simple to just create a new account and send all of that mail to the trash. -M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[PHP] RE: Characters

2003-06-10 Thread Mike Brum
Addslashes() http://us3.php.net/manual/en/function.addslashes.php -M -Original Message- From: Steve Marquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 4:28 PM To: MySQL List; PHP eMail List Subject: Characters I am inserting a file via a PHP form. It works great, however,

RE: [PHP] Good PHP Books

2003-06-16 Thread Mike Brum
Mark, One thing that you might want to consider is to just get the book you think is best and has the most solid content and then build your ciriculum around certain chapters. It shouldn't be hard to have a student read a chapter a night or even two chapters over the course of a week. Most of the

RE: [PHP] How do I delete a mySQL table?

2003-06-16 Thread Mike Brum
DROP TABLE `tablename` -Original Message- From: zavaboy [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 5:22 PM To: [EMAIL PROTECTED] Subject: [PHP] How do I delete a mySQL table? How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED]

RE: [PHP] linking with home directory

2003-07-09 Thread Mike Brum
First, I'd create a simple test to see what the value of $newDir = $HomeDir.themes/.$ThemeFolder; print $newDir; And see what that yields. You might have a problem with your slashes. I find it extremely useful to have test variables print to the screen along the way to ensure that each new

RE: [PHP] linking with home directory

2003-07-09 Thread Mike Brum
Maybe you should try to reference it from http://localhost/MyScript/default/style.css ? -M -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:02 PM To: Matt Matijevich; php-general Subject: RE: [PHP] linking with home directory I am

RE: [PHP] How to use ph to set meta tags ?

2003-07-15 Thread Mike Brum
You're close but instead of ? mAuthor() ? try ?php print mAuthor(); ? That will print the return value of your function - which by example is Daniel Szasz. -M -Original Message- From: Daniel Szasz [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:07 PM To: [EMAIL PROTECTED]

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Mike Brum
By the context, I'm sure it should read ...not all email clients support HTML. (I got a laugh out of it though ;) -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 7:21 PM To: 'Curt Zirzow'; [EMAIL PROTECTED] Subject: RE: [PHP] HTML email

[PHP] Imagerotate() Problems

2003-03-19 Thread Mike Brum
I'm having some problems with imagerotate() - e.g. it won't work. I've tried many different ways to get it to work, but I have yet to see it do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working properly because I can do other image-manipulation with it without error. Plus, I

RE: [PHP] Zero Fill - Number Format

2003-03-19 Thread Mike Brum
This is what I did for a dynamic zero-fill for renaming batches of files: // Get Zero Padding For New Image Names $zero_padding = strlen(count($image_array)); foreach($image_array as $temp){ $n++; $n_length = strlen($n); for($i = 0; $i ($zero_padding - $n_length); $i++){

RE: [PHP] Cookie or Session??

2003-03-21 Thread Mike Brum
It really depends on what you want to do. Cookies are client-side information and thus you can run into issues where clients don't allow cookies, have cookie-blocking apps or have outdated software that doesn't support them (though the latter continues to become less of an option as time passes).

[PHP] Problem with imagerotate()

2003-03-23 Thread Mike Brum
I'm having some problems with imagerotate() - e.g. it won't work at all. I've tried many different ways to get it to work, but I have yet to see it do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working properly because I can do other image-manipulation with it without error.

RE: [PHP] possible?

2003-03-28 Thread Mike Brum
How I deal with images and resizing is by uploading the image to the server, and at that time creating a thumbnail. I have the /images folder with a /thumbs folder inside it for the thumbnails. The database simply refers to the name of the image and it's ID and other associations. This is

RE: [PHP] Help needed

2003-04-01 Thread Mike Brum
Realize that when you see error line... it doesn't mean that the error is definately on that line. PHP is only *so* smart. You'll find that making mistakes on line X will result in errors being reported on line X+1 or further down in your code. Don't take the errors at face value all the time -

[PHP] Imagerotate() Problems

2003-04-03 Thread Mike Brum
I'm having some problems with imagerotate() - e.g. it won't work. I've tried many different ways to get it to work, but I have yet to see it do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working properly because I can do other image-manipulation with it without error. Plus, I

RE: [PHP] Newbie

2003-10-05 Thread Mike Brum
Did you try to browse to it on your machine such as: http://localhost/phpinfo.php This is what they're referring to. PHP doesn't interpret pages when you just double-click on them since they're not being run through the web server (Apache) which will trigger PHP to parse the file. -M

RE: [PHP] Encryption question

2003-10-10 Thread Mike Brum
I think it all falls under the cryptography category, but you're right - it doesn't fall into the encryption/decryption scheme since it is only one-way. -M -Original Message- From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 10:43 PM To: php-gen Subject: Re:

RE: [PHP] Sessions Question

2003-10-14 Thread Mike Brum
One quick note - if you're starting a session then you can't user the header() function afterwards. You'll get the lovel headers already sent error. Be sure to use an alternate method of redirection if you're starting a session before your redirect logic takes place. -M -Original

RE: [PHP] php

2003-10-16 Thread Mike Brum
Either confirm that you have php_dbg.dll in your extensions directory or comment out that line in your php.ini file. -M -Original Message- From: Amanda Lau [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 4:20 AM To: [EMAIL PROTECTED] Subject: [PHP] php Hi. I have a

RE: [PHP] How can i count time it taked to render the page?

2003-10-26 Thread Mike Brum
Grab the time at the beginning of the page execution and then grab the time at the very end. Subtract the two and you have the amount of time the page took to execute. -M -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2003 11:50 AM To: [EMAIL PROTECTED]

RE: [PHP] problem sending variables with forms

2003-12-25 Thread Mike Brum
Some code samples would be really helpful. You also said an error occurred but failed to mention any details about that error. That aside, I'll make a guess at some possible problems: 1) You're trying at access the wrong super global (e.g. GET when you should be looking for POST). 2) You're

RE: [PHP] Re: Where and how do i use $_post etc

2003-12-26 Thread Mike Brum
Let's make some assumptions - 1) having register_globals on is bad 2) we all like to write scripts as secure as possible Given #1 and #2, if you stop referencing variables directly (e.g. as $firstName in the script below) since register_globals is off, it immediately adds a degree of security

RE: [PHP] Maths dumbass

2003-12-26 Thread Mike Brum
Basically, have an array of # of days per month. Do a quick compare given the month for the # of days. For the sake of example, we'll assume the month in question has 31 days. So, here's some givens: $month_days = 31; $former_plan_days = $current_date; $new_plan_days = ($current_date -

RE: [PHP] Printing out html

2003-12-27 Thread Mike Brum
1. if you have index.php, then just get rid of index.html and print your content via print or echo statements. 2. $ip = getenv(REMOTE_ADDR); print tdIP Address: . $ip . /td; (there's a few ways you can do that - this is just the standard I use) Regards -M -Original Message- From:

RE: [PHP] End slash, small problem.

2004-01-02 Thread Mike Brum
Do you want code to be handled differently if it's there or do you want it to be a certain way (e.g. always with trailing slash or never w/ trailing slash)? If you want it to always be a certain way, why not grab the last character of the path, check if it's a slash and then if it's not how you

RE: [PHP] End slash, small problem.

2004-01-02 Thread Mike Brum
. Basically after that path I am adding a file ryanFile.php so I need that ending slash to always be in the path My question was exactly that...how do I grab the last character? Thanks, -Ryan On 1/3/2004 2:14:10 AM, Mike Brum ([EMAIL PROTECTED]) wrote: Do you want code to be handled differently

RE: [PHP] Image Resizing with GD

2004-01-07 Thread Mike Brum
There are some really good user notes in the function description for imagecopyresized and imagecopymerge: http://us3.php.net/manual/en/function.imagecopymerge.php http://us3.php.net/manual/en/function.imagecopyresized.php You might also want to do some searching with google for thumbnail

RE: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Mike Brum
Yes, it's considered best practice to do as much client-side validation as you can as to save your server time and load. This doesn't mean you still shouldn't do full validation on the server-side, but the fewer times the form is posted to your site the better. You might want to recheck what

RE: [PHP] picturing webpage

2004-01-09 Thread Mike Brum
I can tell you this much, .cfm is ColdFusion. And CF is somewhat similar to PHP in it's embedded-in style of scripting. It could be similar to how you can build a PDF. They could just take your HTML and then use that to build a .JPG. I'm sure it's a very *expensive* process (server CPU -wise)

RE: [PHP] dynamicly generating a transparent truecolor image

2004-01-17 Thread Mike Brum
PNG's support transparency as well as GIFs. The short answer is that you'll create your image and also specify a color that will be made transparent. I don't see why imagecreatetruecolor making a default black image is a problem? If it is, just set black to be the transparent color and go from

RE: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Mike Brum
My first thought was to load the output from the tables into an array and they use a foreach and in_array to create a list of dups, but I wanted to see if there was an easier way. -- If you're not using MySQL 4, then yeah, that's probably the best way. Just realize that this isn't going to be

RE: [PHP] search.php

2004-01-31 Thread Mike Brum
John, since you're looking to modify this script and not build your own or search for another, here's some tips on how one might go about doing this. 1) set $which_one to the directory you want to search. 2) create a recursive funtion (many on php.net) to get all subdirectories under it and build