[PHP] ecommerce related question

2009-01-12 Thread Travis Moore
o security aspects of it. Given the nature of the project, I realise security is a must. My question is: what recommended reading for security or ecommerce can any of you suggest? -- Thanks, Travis Moore tra...@live.com OR trabus2...@gmail.com -- PHP General Mailing List (http://www.ph

[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

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

Re: [PHP] Unexpected values in an associative array

2007-08-01 Thread Travis D
ginal code goes from: foreach ($pdo->query($query) as $row) {} To: $statement = $pdo->query($query); $statement->setFetchMode(PDO::FETCH_ASSOC); foreach( $statement as $row) {} There must be a way to set it with setAttribute for the connection though, instead of just on a per-statement basis... Travis Doherty

Re: [PHP] Reading registry values

2007-08-01 Thread Travis D
DDR" to get the address of the host you are running under if you wanted to access it from PHP only. Travis Doherty

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. >

[PHP] Re: A problem with passing $_GET in an url

2007-05-02 Thread Travis Moore
If you're using window.location="./script.php?var=value", it's not actually using a variable, it's using a string. If you're just using the above as an example, then could you please post the line of javascript for redirecting. Travis. Davis Chan wrote: Hi

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

[PHP] preg_replace and regular expressions.

2007-04-14 Thread Travis Moore
Okay, so what I have is a BB code type of thing for a CMS, which I for obvious reasons can't allow HTML. Here's the snippet of my function: function bbCode($str) { $db = new _Mysql; $strOld = $str; $strNew = $str; $getRegexs = $db->query("SELECT `regex`,`replace`,`search` FROM

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
) >> >> >> >> >> > >what does strtotime return for that string? > > > It's already a time, strtotime should return FALSE. It probably can't parse that string to a time. Travis D -- 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
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
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] 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] 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] 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] 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
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] strange errors from command line vs. web

2006-09-27 Thread travis
ysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] Mail Problem

2006-09-26 Thread travis
If its a Win box there is a sendmail_from config param in php.ini. php.net/manual/function.mail.php read for 'Additional Params' the fifth argument, it specifically deals with this case. Travis -- 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
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

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
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] 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] 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] 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] 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] 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] 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] 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.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

[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 &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] 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] 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

[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

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: [

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] 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] 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

[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

[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

Re: [PHP] Re: A native Windows binding for PHP

2004-07-29 Thread Travis Low
Another way to make money on free software is consulting. Many organizations don't have the time, resources, or interest in adapting free software for their needs. cheers, Travis Manuel Lemos wrote: Hello, "Rubem Pechansky" <[EMAIL PROTECTED]> wrote in message.

Re: [PHP] Grab a range of rows from a mysql result

2004-07-13 Thread Travis Low
select * from foo limit n, m n == starting index, zero-based m == maximum number of rows to return. You probably shouldn't cross-post to different mailing lists. cheers, Travis [EMAIL PROTECTED] wrote: I need to grab a range of rows from a mysql result resource. The resource is made up of

Re: [PHP] placing values in html teaxtarea

2004-07-12 Thread Travis Low
Would you please turn off return receipt in your messages? Thanks! Travis Hull, Douglas D wrote: After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my

Re: [PHP] Get users MAC-address of visitor

2004-06-23 Thread Travis Low
o the new MAC packet. At that point, the original MAC address is lost. cheers, Travis Yngve wrote: Hi! I wonder how i can retrive the MAC-address of the visitor using PHP? What i am thinking about is using the MAC-address instead of the IP-address to ban troublesome users from forums etc. If i jus

Re: [PHP] Fw:

2004-06-14 Thread Travis Low
$conn = mysql_connect("localhost:3308","user","password"); You are connecting as user "user" with password "password" in the code, yet the error message references "[EMAIL PROTECTED]" so I'm pretty confused. cheers, Travis Srirang

Re: [PHP] php as user apache

2004-06-03 Thread Travis Low
PHP scripts to run as the user and group associated with the apache virtual host? cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Travis Low
Justin Patrin wrote: Travis Low wrote: [I hate K&R indenting] And I'm one of them. :-) I like the K&R version because it saves verticaly space and most editors can't really handle correct tabbing... Arrggghh...TABS. Don't even get me started on tabs... cheers, Travi

Re: [PHP] Re: PHP Coding Standards

2004-05-30 Thread Travis Low
of code around too. I'm sure plenty of people disagree, so of course this is IMHO. cheers, Travis Michael Nolan wrote: charles kline wrote: Hi all, I was having a conversation with a friend and talking about coding standards in the open source community (focusing on PHP). I seem to remembe

Re: [PHP] triggering php scripts...

2004-05-30 Thread Travis Low
server? or if a file from a particular directory is downloaded... I don't think you can do that unless the php script is used to access the file or perform the download you speak of. cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General M

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Travis Low
something unexpected comes up. It might be easier to buy a CFM-to-PHP converter. You can get those at most Kmart stores. They're usually next to the bacon stretchers and smoke-shifters. Hope this helps! cheers, Travis Chris Jernigan wrote: Hi everyone, Ok, I need serious help. I have been ha

Re: [PHP] Re: php and java applets

2004-05-21 Thread Travis Low
ypass the Java access control systems. I suppose I could use https, but does that encrypt the url and post data? I think you have found yourself trapped in the java applet sandbox. You need to create a signed applet. see http://www.radinks.com/java/sandbox/ for a brief guide. all the best -- T

Re: [PHP] Cpanel accounting library

2004-05-21 Thread Travis Low
So all of the stuff you see when you create an account the normal way (using the Cpanel web interface) will be displayed unless you stop it. That's what the flush() and the ob_* stuff does. If you find more information, that would be great. We can trade notes. cheers, Travis -- Travis Low &l

Re: [PHP] why i could not use DB.php?

2004-05-18 Thread Travis Low
n't have permissions to read d:\ or d:\php or d:\php\PEAR, etc. Good luck. Travis > > but I get the following error info: > Warning: main(DB.php): failed to open stream: No such file or directory in > D:\Apache2\htdocs\dunj\test\member\connectDatabase.php on line 2 > > Fa

Re: [PHP] i need help

2004-05-17 Thread Travis Low
You need to learn how to use regular expressions. The manual page is here: http://www.php.net/manual/en/ref.pcre.php I could easily write the regular expression for you, but then you wouldn't learn anything. cheers, Travis Student wrote: Hi i was hoping if someone can help; I want to tri

Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread Travis Low
They confuse non-C programmers, mostly. See this: http://www.php.net/operators.comparison cheers, Travis Radek Zajkowski wrote: Here's a code snippet // call gui object method $method = $cmd."Object"; $class_name = $objDefinition->getClassName($obj_type); $module = $objDef

Re: [PHP] create if table not exists

2004-05-16 Thread Travis Low
The manual says: "; } ?> To paraphrase, just use mysql_list_tables() to get a table list in a result set, then go through the result set to see if the named table exists. But wouldn't it be easier to create the tables in the first place? cheers, Travis John Taylor-Johnston wrote: Ho

Re: [PHP] New Newbie Question

2004-05-15 Thread Travis Low
Change: value= to value="" or value="" cheers, Travis Ronald "The Newbie" Allen wrote: Here is my problem: When I get the value of $date and I echo it it shows up just fine $date = date("Y-m-d H:i"); echo "$date"; 2004-05-15 16:20 but w

[PHP] Re: SuExec and PHP

2004-05-14 Thread Travis Low
I sent this a couple days ago and haven't heard a peep. Can anyone help me? Or, is there a better place I could be asking these questions? cheers, Travis Travis Low wrote: Greetings. We have a need for our PHP scripts to run as the user and group associated with each Apache virtual d

Re: [PHP] md5() with rand() || Strange results, need help....

2004-05-13 Thread Travis Low
Besides checking the browser cookie settings, have one of the affected users turn off the auto-fill form feature, then tell the browser to forget all saved form information. Let us know what happens. cheers, Travis CF High wrote: Re: the browser track, it looks like all adversely affected

Re: [PHP] PHP5 - instanceof

2004-05-12 Thread Travis Low
again. Even if PHP5 had a Class object (a la Java), you'd have to instantiate *it* in order to find the relationship between class A and class B. Prior to that point, you only have text strings to work with. I suppose you could search the text of the file for "extends FooBar"

[PHP] SuExec and PHP

2004-05-12 Thread Travis Low
so I'm getting more lost, not less. Please help! cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Travis Low
d mean always. No, no, that's crazy talk. :-) cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: protecting web page

2004-05-08 Thread Travis Low
tant, you might be able to generate non-printable PDF files, or generate images containing the desired text, or stuff like that. Just to make copying/printing harder. cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General Mailing List (h

[PHP] Profiling (Was: Re: [PHP] PHP Website Architecture)

2004-05-07 Thread Travis Low
Hi Richard, Just curious...how do you do your profiling? cheers, Travis Richard Davey wrote: Hello Ryan, Friday, May 7, 2004, 4:51:45 PM, you wrote: RA> Nearly all programs can be written in *one* very large .php file but just RA> thinking of going back in to make changes 3 months do

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Travis Low
ame=$username&password=$password";); if ($s[0]) { # User is logged in. } You can also write the script on server1 so that it only returns 1 if the request came from server2. Disclaimer: I know this scheme isn't airtight, but it beats relying on the referer. cheers, Travis [EMAI

  1   2   >