Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Travis Doherty
mmand you will use to change the timezone of the running script is: putenv("TZ=$zone"); The equiv to set a MySQL connection to a certain timezone would be: SET time_zone = '$zone'; http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html That URL has the MySQL side of se

Re: [PHP] Mail Problem

2006-09-26 Thread Travis Doherty
so removes bogus Return-Path header fields > inserted by other MTAs, this header field is generally guaranteed to > reflect the last reverse path seen in the MAIL FROM command. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strange errors from command line vs. web

2006-09-28 Thread Travis Doherty
apache module it should be available to the CLI as well. If there is no 'undefined function' error then you should also be calling 'echo mysql_error()' to see what the error is after connecting. That error is going to give you more info than any of us can. Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with overly aggressive anti-spam measures

2006-10-09 Thread Travis Doherty
ou have above) into message_with_headers and run it through SA. Maybe SA is giving you points for things like too many exclamations, certain ratio of HTML... I doubt that having a return-path of 'nobody' is the lowest-hanging fruit you can pick up here to make yourself look less spammy. Also make sure the sending mail server isn't listed in any blacklists (yahoo for RBL lookup tool to check.) Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with overly aggressive anti-spam measures

2006-10-10 Thread Travis Doherty
-box' install of SA, most people have special rules in there, bayes training done, etc... I believe there is also a website that you can copy paste the message into to perform the same test (see message on this list, "Peter Lauri - PHP Mailer and SMTP = SPAM?") That site might have othe

Re: [PHP] Month in a numeric form

2006-10-15 Thread Travis Doherty
Ron Piggott (PHP) wrote: >Is there a way I am able to use the DATE command to convert January to >1, February to 2, etc. > > > What is wrong with date()? www.php.net/date $month = 'Jan'; $numericMonth = date('m', strtotime("$month 01 2000"); Travi

Re: [PHP] Date calculation

2006-10-15 Thread Travis Doherty
y, you could do something like this: $reminderStamp = strtotime("+{$addMonths} months",time()); $reminderStamp = strtoTime("+{$addDays} days",$reminderStamp); $date = date("Y-m-d",$reminderStamp); $date should have a string like -mm-dd that is $addMonths and $add

Re: [PHP] Time-Zone juggling

2006-11-07 Thread Travis Doherty
;t happen. Of course there is no problem for spring, only in the fall time change. This can be a big problem to some apps, and others might be fine with the workaround like we've done where you loose a tiny bit of data (It's 08:00 on the day after the timechange, is this ticket from 0

Re: [PHP] Time-Zone juggling

2006-11-08 Thread Travis Doherty
pedia.org/wiki/British_Summer_Time> (BST). Similar circumstances apply in many places. << ** Travis Doherty TixTime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Smart Quotes not so smart

2006-11-15 Thread Travis Doherty
can you >open up some content that has them using a hex editor and tell us the >hex codes for the bytes? That will help determine what charset. > >Cheers, >Rob. > > John Walker's insight might be a good lead on some more information on exactly what these are, even if

Re: [PHP] Ftp a file-->errors in rendered page, Ftp the file again-->works fine. Huh?

2006-11-23 Thread Travis Doherty
correctly, it sounds like the FTP client is having troubles uploading the file. Try to minimize the script and see if you can still reproduce: Hello"; ?> If you upload a script like that, does it get something simple done correctly or does that also require a second upload? Travis -- P

Re: [PHP] Attaching File to be Emailed

2006-11-23 Thread Travis Doherty
tore the data in a MySQL database it would be the same procedure, except you would query the database (BLOB column type) and echo that data instead of using readfile() to get your data. Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serving out a file to Firefox ... headers?

2006-11-23 Thread Travis Doherty
les/'.$filename); > Pretty sure Richard already squared this one away, I think this is the article you are looking for: http://richardlynch.blogspot.com/ Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Travis Doherty
anner ads might fall here.) False positives will be high with beach photos from family vacation, for example. Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail in Spam Box

2006-06-18 Thread Travis Doherty
sage itself and the server sending the message. If you can send mail from this server using a normal mail client and it does not get blocked as spam then it is probably your message. If sending using a normal client still gets blocked as spam in you gmail account chances are it is the server and n

[PHP] Mass MySQL INSERT

2004-11-28 Thread Travis Conway
I am fairly new to the concept of working wity mysql and php. I am looping thru a text file full of county names and attempting to add these to a database. Now the table exists and if I enter the SQL statement manually against the database it works. The user also has read and write permissions

[PHP] php 4 to 5

2004-11-28 Thread Travis Conway
I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers? Trav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Re: php 4 to 5

2004-11-28 Thread Travis Conway
"just works". I was just wondering what would be the main advantage. - Original Message - From: "Greg Beaver" <[EMAIL PROTECTED]> To: "Travis Conway" <[EMAIL PROTECTED]> Cc: "PHP-GEMERAL" <[EMAIL PROTECTED]> Sent: Sunday, November 28, 2

Re: [PHP] mysql error

2004-12-05 Thread Travis Conway
which does not require a tick around the value. I also dont think that the back tick works. HTH Travis - Original Message - From: "Richard Kurth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 05, 2004 3:05 PM Subject: [PHP] mysql error Could

Re: [PHP] For Loop

2004-12-08 Thread Travis Conway
try for($i=0;$i>$months_arr_length;$i++) look at it as this: for(i as starting point; till i is what? greater than my length; increment i how? by 1) { HTH Trav - Original Message - From: "R. Van Tassel" <[EMAIL PROTECTED]> To: "'PHP general'" <[EMAIL PROTECTED]> Sent: Wednesday, December

Re: [PHP] Command Line

2004-12-12 Thread Travis Conway
- Original Message - From: "- Edwin -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Travis Conway" <[EMAIL PROTECTED]> Sent: Sunday, December 12, 2004 10:40 AM Subject: Re: [PHP] Command Line Hi, On Sun, 12 Dec 2004 09:15:46 -0600 "Travi

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Travis Conway
Ha! Sorry for that Fedora 3 is causing all kinds of havoc. I would stay away for a while. Trav - Original Message - From: "Michael Leung" <[EMAIL PROTECTED]> To: "Andre Dubuc" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, December 12, 2004 7:25 PM Subject: Re: [PHP] PHP &

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Travis Conway
What user did you run your command line as? Trav - Original Message - From: "Michael Leung" <[EMAIL PROTECTED]> To: "Travis Conway" <[EMAIL PROTECTED]> Cc: "Andre Dubuc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, December

Re: [PHP] Getting mail() to return false/0

2004-12-14 Thread Travis Conway
- Original Message - From: "Paul Reinheimer" <[EMAIL PROTECTED]> Hi, I was working with the mail function today to experiment with sending a few messages, and threw in the apropriate checks so when mail() can't send the message the apropriate errors were raised, however, I discovered I co

Re: [PHP] PHP vs JSP?

2004-12-11 Thread Travis Conway
Did he really ask that question on a PHP board? That is like walking into a Coke factory, going to the manager and asking "pepsi or coke?" - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, December 11, 2004 7:11 AM Subject: Re: [

[PHP] Command Line

2004-12-12 Thread Travis Conway
() support it helps out. Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php.ini

2004-12-13 Thread Travis Conway
What is the default place for php.ini? I have a few copies when I do a `whereis php.ini`. I figure it is the /etc/php.ini. Anyone shed some light? Also, is there anything that must be done after I modify the php.ini? Trav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] php.ini

2004-12-13 Thread Travis Conway
Nevermind. I got it - Original Message - From: "Travis Conway" <[EMAIL PROTECTED]> To: "PHP-GEMERAL" <[EMAIL PROTECTED]> Sent: Monday, December 13, 2004 9:30 PM Subject: [PHP] php.ini What is the default place for php.ini? I have a few copies when I do

Re: [PHP] How to distribute php codes safely?

2004-12-16 Thread Travis Conway
Well a simple search on Google for "PHP Encoder" brougt back these: http://www.ioncube.com/ $199 http://www.rssoftlab.com/downloads.php - Appears to be Free I am sure there are more. Check http://freshmeat.net for a good Open Source product. Also try http://www.sourceforge.net. As always check

Re: [PHP] PHP and Post Data

2004-12-21 Thread Travis Conway
Why reinvent the wheel by writing your own webserver? Apache allows for it to be used within other products. Just redistrbute it according to the license. - Original Message - From: "Shane Mc Cormack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 21, 2004 10:36 PM

Re: [PHP] GMT

2005-01-04 Thread Travis Conway
.php.net/manual/en/function.gmdate.php Travis - Original Message - From: "Bruno B B Magalhães" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 04, 2005 5:04 AM Subject: [PHP] GMT Hi you all, How do you work with GMT time-zones? I mean, I´ve developed a support system, wit

Re: [PHP] if(date("Y-m-d") >

2005-01-10 Thread Travis Conway
Maybe this will help. Just keep adding to $var[] until you add all your weeks. Then execute it. This is written to run on the command line, but you can replace the \n with to get your breaks in HTML. $numweeks = count($var); echo "Number of weeks: " . $numweeks . "\n";

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-10 Thread Travis Conway
you have to allow others to read it. You have it so only root can access the file. Try this: chmod 644 test.php while logged in as root. This should put the file as -rw-r--r-- 1 root root test.php HTH Travis - Original Message - From: "Jason Morehouse" <[EMAIL PROTECTE

Re: [PHP] Re: failed to open stream warning

2006-01-04 Thread Travis Doherty
o has an unmatched quote. The actual error message seems clear "No such file or directory" - does "home/path/temp" exist, did you mean "/home/path/temp". Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to find the system tmp folder

2006-01-05 Thread Travis Doherty
irectory as PHP best sees fit. Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help plz [Books]

2006-01-16 Thread Travis Doherty
l you are more experienced. "High Performance MySQL" by Zawodny & Balling, O'Reilly -- not PHP specific but essential if your MySQL databases will have heavy load on them. Travis Doherty Ligaya Turmelle wrote: > I personally liked George Schlossnagle's book "

Re: [PHP] image location hiding techniques

2006-02-07 Thread Travis Doherty
or download it will always be possible for someone to figure out your counter measures. It doesn't mean you can't make it trivial enough that they move along to the next site. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Travis L. Font
Here's random! I'm going to close my eyes think of some drinking water and running AT the same time and just start pushing numbers on the pad however way my fingers desire while not thinking about it! Here: 7914718845748671454531587148354531452141857 Good enough? -Travis

[PHP] GD - JPEG to PNG with transparency and color

2008-05-06 Thread Travis L. Font
he correct colors as the original 14416fed5d4f78.jpg. I figure that I'm missing some small elements to the process of creating the png... Anyone have any ideas, pointers, advice, or correct solution to make this possible? Sincerely, Travis L. Font Interactive Developer BSN 5901 Broken S

<    1   2