Re: [PHP] Feisty Fawn and apt-get

2007-05-05 Thread Travis Doherty
Skip Evans wrote: > Hey all, > > I've installed Feisty Fawn on the curmudgeon barber's machine, but it > won't get any of the outside packages I've tried to get. I've tried an > > apt-get install {package} > > ...on digikam, kate, gftp, and others. All stuff I had no trouble > getting with Edgy. >

Re: [PHP] Bounce composition

2007-05-02 Thread Travis Doherty
later) or a 500 for perm error right at the mail server. Not sure if you can get your logic in up the stream though before it gets to you. If you can you never have to deal with bounce messages and the entire queuing process that goes along with it, mail server maintenance, etc.. Bounce to the enveloper sender, not the "From" header. I also believe bounces are supposed to have an envelope sender of "<>" to avoid bounce loops... not sure on that though. Cheers Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Source Control

2007-04-11 Thread Travis Doherty
its defined constant DBVERSION matches that of the database it is running against. This has actually helped out more than once, though not a solution to the actual problem. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MD5 & bot Question

2007-04-09 Thread Travis Doherty
whatever info you want into the 'unused' or 'less used' bytes of the image. With this in mind I imagine even if you did have an image repository of only 8 images you could add some random bytes to the right spots in the image without distorting it beyond recognition/corrupting it, and therefore get a hybrid of static/on-the-fly images, that hashing couldn't break so simply. 2 cents... Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] keeping credit card info in session

2007-04-08 Thread Travis Doherty
nsible for their card numbers being stolen. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
ng the adoption rates of PHP5 show what Rob said. http://www.nexen.net/chiffres_cles/phpversion/16814-php_stats_evolution_for_march_2007.php I'm sure many of the polled domains are shared hosts, who have users, which exponentially complicates the task of migration. Travis Doherty -- PHP G

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
Myron Turner wrote: > Travis Doherty wrote: > >>> >> >> What about the argument that PHP4 is dead. It's done. It's over. >> There is no reason anyone should be using it, less perhaps a lack of >> time to tweak scripts for an upgrade from 4 t

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
will be dropped at the end of the year, 8 months from now. So now is the time to start upgrading all your scripts as we won't be releasing new versions after December 31st, 2007." http://derickrethans.nl/php_quebec_conference_rip_php_4.php Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Upgrade: 5 or 6

2007-03-28 Thread Travis Doherty
ree - I agree with "you should migrate to PHP5 *NOW*" (my emphasis added) and I disagree with "then it's not really needed to upgrade." (unless you don't care about security.) Ilia Alshanetsky gave a great talk on this topic recently, http://ilia.ws/talks/ scroll to the bottom to "(PDF) Migrating to PHP 5.2.1". Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date/time format?

2007-03-28 Thread Travis Doherty
Zoltán Németh wrote: >2007. 03. 28, szerda keltezéssel 15.35-kor Jason Pruim ezt írta: > > >>Hi Everyone, >> >>First off, I'm using PHP 5.2.0 and apache 1.3.33 >> >>I am trying to figure out what format a string is in in a database. >>It's a timecard system that I have found on-line and I am a

Re: [PHP] Date/time format?

2007-03-28 Thread Travis Doherty
Jason Pruim wrote: > Hi Everyone, > > First off, I'm using PHP 5.2.0 and apache 1.3.33 > > I am trying to figure out what format a string is in in a database. > It's a timecard system that I have found on-line and I am attempting > to figure out how to write a script that would give me everyones

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Travis Doherty
. - Profile your code and find the right places to optimize. Optimizing code that takes .0001 seconds to run down to .1 seconds is great, 10x improvement! Who cares. Find the chunk that takes 0.5 seconds to run and optimize that to 0.05 seconds. 10x improvement still, except that this time it actu

Re: [PHP] Important Design Patterns

2007-03-25 Thread Travis Doherty
> > Tijnema Taking the Zend ZCE exam puts you under a strict NDA. Nobody can tell you what you will see on the exam. Study the exam guide and if design patterns really interest you then take it to the next level out of personal interest. Since patterns are not "PHP-only" you can

Re: [PHP] Computing and calculating dates

2007-03-24 Thread Travis Doherty
mated_date > (current_date + 14) > > etc. Which functions are best suited for such calculations? > > O. Wyss > www.php.net/strtotime is probably a good start. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating an FTP account on the fly from PHP

2007-03-22 Thread Travis Doherty
and was probably choke full of security problems. Setting up ProFTPd for MySQL authentication was a pain, I'm sure its easier today. Once you have that setup, its just a simple matter of CRUD SQL queries. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Performance: While or For loop

2007-03-22 Thread Travis Doherty
op is fastest. Note that the while loop with a post-increment runs once more than with a pre-increment. Everytime I run, the results are *very* different, though still fall within similar comparitive domains. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] close session when browser is closed

2007-03-22 Thread Travis Doherty
Juergen Wind wrote: >Travis Doherty wrote: > > >>By default the session cookie expires when the browseris closed. >> >> >this is not always true: f.e. FF requires *all* open windows to be closed to >forget that session. > > Personally I think th

Re: [PHP] Passing variables

2007-03-22 Thread Travis Doherty
han a string (such as int) than you're >safe and you don't have to use htmlentities. > > > Good call. One better is prepared statements. Avoid the problem all together. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] close session when browser is closed

2007-03-21 Thread Travis Doherty
oring sensitive data in _SESSION. Anyone local to the system can probably read plaintext session data from the session cache. HTTPS only protects communications between the client and the server at best, do be afraid! Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] close session when browser is closed

2007-03-21 Thread Travis Doherty
r as a cookie (unless its in the URL...) www.php.net/session/ Take a look at cookie_lifetime and you might like the cache_expire docs on the same page too. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions timing out, php5

2007-03-21 Thread Travis Doherty
ossible that your OS has a cron job running that clears out that directory, especially if these complaints are usually around midnight when these types of jobs typically run. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reverse http authentication

2007-02-18 Thread Travis Doherty
.. I'm really not sure if PHP's functions will take care of moving that username/password information into the header of the HTTP request or just leave it there. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Filtering _REQUEST.. Why is this bad?

2007-02-12 Thread Travis Doherty
Hello. Came across some code that startled me. Mostly because it goes against the generally accepted idea of detecting and rejecting bad input instead of trying to escape it, secondly because "it just feels wrong." The only technical case I have so far is for inserting a double/single quote into

Re: [PHP] How to make Browse Folder Dialog

2007-01-23 Thread Travis Doherty
Aslam Bari wrote: >Hello, >Just a minute. I know the php script will run on server. Suppose i m working >on server machine and i need to make a project for myself. The machine is >only one and same. Also there are a lot of file and directory methods >available in PHP, Whats that? Actually i want t

Re: [PHP] How to make Browse Folder Dialog

2007-01-23 Thread Travis Doherty
Børge Holen wrote: >On Wednesday 24 January 2007 07:32, Travis Doherty wrote: > > >>Aslam Bari wrote: >> >> >>>Dear All, >>>I m new in this Forum. I m making a project in which i need to show user a >>>Browse Folder Dialog Box, In wh

Re: [PHP] Splitting long text

2007-01-23 Thread Travis Doherty
don't see why someone wouldn't just use http://php.net/wordwrap/ . Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to make Browse Folder Dialog

2007-01-23 Thread Travis Doherty
ime to look into a different language to do whatever it is you want to do, something like Visual Basic might suit you well (last time I used it there was a control that would popup the standard windows 'Select Folder' dialog.) Travis Doherty -- 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
Tom Chubb wrote: > On 28/11/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: > >> Hi all. I am building a web app and as part of it advertisers can upload >> their ad image and website URL to go with their ad. Is there a good >> way to >> detect whether that site is a porn site via php? >> >> -- >>

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

2006-11-23 Thread Travis Doherty
Brian Dunning wrote: > Sorry to revisit this issue YET ONE MORE TIME... :) :) > > My online store sends out the file for download upon purchase. Below > are the headers I send, and I understood that it should work for all > browsers. It does not work for Firefox. Suggestions? > > header('Conte

Re: [PHP] Attaching File to be Emailed

2006-11-23 Thread Travis Doherty
[EMAIL PROTECTED] wrote: > I need to take a word document or pdf file from either a MySQL db or > from a > directory, which will then be sent via php script. How can I go about > doing > this? Can anyone provide sample code or point me in the right direction. > Brian Dunning started a thread abo

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

2006-11-23 Thread Travis Doherty
Nicholas Crosby wrote: >Hello: > >I would appreciate any help on this that someone might have. A student of >mine found this issue. He ftp's a file to a server and looks at it through a >browser, there are errors. He uploads the file again, it works fine. I am >stumped. Any ideas? Here is the text

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] 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] 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] 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] 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] 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] 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] strange errors from command line vs. web

2006-09-28 Thread Travis Doherty
blackwater dev wrote: > Ok, dumb question but how do I do that? I know how to re-compile the > standard php. My code also uses mssql via freetds, does that somehow > need > to be enabled as it doesn't seem to fail there. > > Thanks! > >> > >> > echo "about to connect"; >> > $this->connectionID=

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] 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] Reverse of date("w")

2006-09-18 Thread Travis Doherty
efman/5.0/en/date-and-time-functions.html They should all work on DATETIME type columns, storing seconds since epoch doesn't quite give you that (you could work it in pretty easily I'm sure, why not use the native column type!) Cheers, Travis > > On 9/18/06, Travis Doherty <[EMAIL

Re: [PHP] Reverse of date("w")

2006-09-18 Thread Travis Doherty
Kevin Murphy wrote: > Not really. If it were always "today" that would work, but in this > case, I was thinking of storing a day of the week in a database > ("3"), and then display the info based on that digit. So assuming > that the number was in fact 3, then: > > echo date("D","3"); > > Would

Re: [PHP] Mail in Spam Box

2006-06-18 Thread Travis Doherty
kartikay malhotra wrote: > Hi all! > > I've use PHP mail to send mail to my Gmail ID. But it gets delivered > to my > Spam box and not the Inbox :( > > Am I missing a header, signature, certificate? > > Thanks > KM > > Is the system you are sending from listed in any RBLs? If you don't set a subj

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] 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] how to find the system tmp folder

2006-01-05 Thread Travis Doherty
Samuel DeVore wrote: >How does one find the system temp folder? from php? in a platform >independant way > > > This should help: http://www.php.net/manual/en/function.tempnam.php It does return the name of the temp file created (or FALSE), which could be parsed to get the temp directory as PHP

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

2006-01-04 Thread Travis Doherty
zedleon wrote: >>Warning: fopen(home/path/temp") failed to open stream: No such file or >>directory >>I am trying to write a script to work with GnuPG, but can't get past this >>basic problem. >>Everything I try gives me the same warning. > >I just corrected the code...I had it correct but posted