[PHP] ecommerce related question

2009-01-12 Thread Travis Moore
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.php.net

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

2008-05-06 Thread Travis L. Font
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 Sound Parkway NW 6th Floor Boca Raton, FL 33487 Main Ph.: 561

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] Reading registry values

2007-08-01 Thread Travis D
on my home computer with a dynamic IP, and I need to know what it is so I can modify my httpd.conf (or hosts) file, if necessary. You might use http://www.php.net/reserved.variables SERVER_ADDR to get the address of the host you are running under if you wanted to access it from PHP only. Travis

Re: [PHP] Unexpected values in an associative array

2007-08-01 Thread Travis D
) {} 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] 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. I

Re: [PHP] Bounce composition

2007-05-02 Thread Travis Doherty
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] 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! New to this newsgroup

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

Re: [PHP] keeping credit card info in session

2007-04-08 Thread Travis Doherty
. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
, 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] 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 to 5. Even if that is the case, get to work :p Support

Re: [PHP] Re: PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
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 General Mailing List (http://www.php.net

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] Date/time format?

2007-03-28 Thread Travis Doherty
the day. Any help or pointers to the M would be GREATLY appreciated! :) 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

Re: [PHP] PHP Upgrade: 5 or 6

2007-03-28 Thread Travis Doherty
.) 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] Performance: While or For loop

2007-03-26 Thread Travis Doherty
. 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 actually makes a practical difference. Travis Doherty -- PHP

Re: [PHP] Important Design Patterns

2007-03-25 Thread Travis Doherty
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 really study these from any language, or even grab a language-agnostic design pattern book. Travis Doherty -- PHP General

Re: [PHP] Computing and calculating dates

2007-03-24 Thread Travis Doherty
. 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] Passing variables

2007-03-22 Thread Travis Doherty
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-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 this does make sense. I fully expect the browser

Re: [PHP] Performance: While or For loop

2007-03-22 Thread Travis Doherty
. 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
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] Sessions timing out, php5

2007-03-21 Thread Travis Doherty
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] close session when browser is closed

2007-03-21 Thread Travis Doherty
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] close session when browser is closed

2007-03-21 Thread Travis Doherty
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 unsubscribe, visit: http

Re: [PHP] reverse http authentication

2007-02-18 Thread Travis Doherty
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
, 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] Splitting long text

2007-01-23 Thread Travis Doherty
/ . 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
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 which he can select a folder and after this i will do some manipulation

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 to

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Travis Doherty
it? And more recently a commercial vendor is performing something along the lines of 'curve recognition' to the same effect. That's fine for any vector graphics (banner ads might fall here.) False positives will be high with beach photos from family vacation, for example. Travis -- PHP General

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

2006-11-23 Thread Travis Doherty
troubles uploading the file. Try to minimize the script and see if you can still reproduce: ?php echo htmlbodyHello/body/html; ? If you upload a script like that, does it get something simple done correctly or does that also require a second upload? Travis -- PHP General Mailing List (http

Re: [PHP] Attaching File to be Emailed

2006-11-23 Thread Travis Doherty
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
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] Smart Quotes not so smart

2006-11-15 Thread Travis Doherty
quotes' exported to HTML from Office apps are the same 'smart quotes' in your database... who knows :p http://www.fourmilab.ch/webtools/demoroniser/ Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Time-Zone juggling

2006-11-08 Thread Travis Doherty
. For the rest of the year, local time there is UTC+1 http://en.wikipedia.org/wiki/UTC%2B1, known in the United Kingdom http://en.wikipedia.org/wiki/United_Kingdom as British Summer Time http://en.wikipedia.org/wiki/British_Summer_Time (BST). Similar circumstances apply in many places. ** Travis Doherty

Re: [PHP] Time-Zone juggling

2006-11-07 Thread Travis Doherty
. 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 01:30:00 6.5 or 7.5 hours old? who cares.. just reply.) Travis Doherty -- PHP General Mailing

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); Travis Doherty -- PHP General Mailing List (http

Re: [PHP] Date calculation

2006-10-15 Thread Travis Doherty
()); $reminderStamp = strtoTime(+{$addDays} days,$reminderStamp); $date = date(Y-m-d,$reminderStamp); $date should have a string like -mm-dd that is $addMonths and $addDays into the future. I didn't test this. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

2006-10-10 Thread Travis Doherty
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

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

2006-10-10 Thread Travis Doherty
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 other rules configured (SARE... etc) that you might be hitting. Worth a shot. Travis Doherty -- PHP General Mailing List (http

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

2006-09-28 Thread Travis Doherty
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
()); } 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
it in php.ini. (like: sendmail_path = '/usr/bin/sendmail -f [EMAIL PROTECTED]') 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

Re: [PHP] Mail Problem

2006-09-26 Thread Travis Doherty
. 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
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 setting timezones. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

Re: [PHP] Reverse of date(w)

2006-09-18 Thread Travis Doherty
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 PROTECTED] wrote: Kevin Murphy wrote: Not really. If it were always today that would work, but in this case, I was thinking of storing a day

Re: [PHP] Mail in Spam Box

2006-06-18 Thread Travis Doherty
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 not your code. Travis -- PHP General Mailing List (http

Re: [PHP] image location hiding techniques

2006-02-07 Thread Travis Doherty
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
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 Advanced PHP Programming, published by Sams. http://www.amazon.com/gp/product/0672325616/qid

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

2006-01-05 Thread Travis Doherty
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
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] 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 br to get your breaks in HTML. ? $var = Array(); $var[] = 2005-01-02; $var[] = 2005-01-09;

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 PROTECTED] To: php-general

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: php-general@lists.php.net 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

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

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

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 a `whereis php.ini`. I figure

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 Travis Conway [EMAIL PROTECTED] wrote: How do you reference

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 Apache

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 12, 2004 8:01 PM Subject: Re: [PHP] PHP Apache Upload file Permission

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

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 08,

Re: [PHP] mysql error

2004-12-05 Thread Travis Conway
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 somebody tell me way these query gets a error 1064 and does not work. error=You

[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

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

Re: [PHP] Re: php 4 to 5

2004-11-28 Thread Travis Conway
. 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, 2004 6:15 PM Subject: [PHP] Re: php 4 to 5 Travis Conway wrote: I do not know

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.. I have designed and successfully

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 1000

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
into 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 just use

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 Sriranganath wrote: - Original Message - From: Sriranganath To: [EMAIL

Re: [PHP] php as user apache

2004-06-03 Thread Travis Low
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 KR indenting] And I'm one of them. :-) I like the KR 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, Travis -- Travis Low mailto:[EMAIL

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 Mailing List (http

Re: [PHP] Re: PHP Coding Standards

2004-05-30 Thread Travis Low
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 remember there being

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

2004-05-28 Thread Travis Low
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 handed a project by my boss

Re: [PHP] Cpanel accounting library

2004-05-21 Thread Travis Low
) 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 mailto:[EMAIL PROTECTED] http://www.dawnstar.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: php and java applets

2004-05-21 Thread Travis Low
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 -- Travis

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

2004-05-18 Thread Travis Low
. 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 Fatal error: main(): Failed opening required 'DB.php' (include_path='.;d:\php\PEAR') in D

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 = $objDefinition-getModule($obj_type

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 trim

Re: [PHP] create if table not exists

2004-05-16 Thread Travis Low
, 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: How can I check if a table exists in a mysql db. If it table does not exist, then, $news = mysql_query($sql_create); else

Re: [PHP] New Newbie Question

2004-05-15 Thread Travis Low
Change: value=? echo $date; ? to value=? echo $date; ? or value=?=$date? 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 when I go to insert

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

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

[PHP] SuExec and PHP

2004-05-12 Thread Travis Low
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] PHP5 - instanceof

2004-05-12 Thread Travis Low
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 or something. cheers, Travis

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Travis Low
. 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
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto saving data in forms

2004-05-07 Thread Travis Low
To do this reliably, you'll need something like a Java applet. In your shoes, I'd ask the customer how important this requirement REALLY is. It will cost more to develop, and will increase the load on the database a LOT. cheers, Travis [EMAIL PROTECTED] wrote: i'm currently designing

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

2004-05-07 Thread Travis Low
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 [EMAIL PROTECTED] wrote: To recap... We have two servers: 1. USA - holds most

  1   2   >