[PHP] mail submission... from flash

2003-01-09 Thread travis
any one see why this wouldnt work? "; $subject = "*www.test.com*"; $date = getdate(time()); $date = sprintf("%s %s %s %s:%s:%s", $date["mday"],$date["month"],$date["year"],$date["hours"],$date["minutes"],$date["seconds"]); $from = sprintf("s s", $HTTP_POST_VARS["Name"], <$HTT

Re: [PHP] mail submission... from flash

2003-01-09 Thread travis
; On Friday 10 January 2003 00:57, travis wrote: > > any one see why this wouldnt work? > > Why don't you tell us _how_ it doesn't work? > > [snip] > > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integra

Re: [PHP] mail submission... from flash

2003-01-09 Thread travis
-\n\n"; $Body .= "$M\n\n"; $Body .= "---\n\n"; $Body .= " $H\n"; $Body .= " $A\n"; $Body .= " $UA\n"; mail($To, $Subject, $Header, $Body); //echo "&

[PHP] quick and easy(php newbie)

2002-01-18 Thread travis
just a quick syntax question: here is my php \n"; $openingEntry = " if done twice it returns this: http://www.me.com/> http://www.me.com/> i want it to display as follows: http://www.me.com/";> http://www.me.com/";> now it is writing to the file I want perfectlybut but but I

[PHP] Re: quick and easy(php newbie)

2002-01-18 Thread travis
parses and loads the xml file seperately "Travis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... just a quick syntax question: here is my php \n"; $openingEntry = " if done twice it returns this: http://www.me.com/> http:

[PHP] writing xml with php

2002-01-18 Thread travis
this is a long one so bear with me... my current php script * \n"; $openingEntry = ' \n"; $closingItemTag = "\n"; $Entry= $openingEntry.$numberAtt.$myNumber.$nameAtt.$myName.$dateAtt.$myDate. $messageAtt.$myMessage. $linkAtt.$myLink.$closingEntry; $Item = $openingItemT

[PHP] adding contents to xml file string ways

2002-01-25 Thread travis
e"; } ?> i have an xml file with the following, I want to add an entry like this: any ideas? i think i am ont he right track, short of splitting the contents into arrays.Id rather deal with it in strings help? thanx travis -- PHP General Mailing List (http:

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

[PHP] RE: Reading an MS Access Database file on *NIX platform using PHP

2003-08-24 Thread Travis Kroh
This is a widespread problem. One which we faced, and eventually solved by deciding to just write the application in .NET instead. Some links that may be helpful... This link deals with problems trying to use PHP's built-in function "odbc_connect" on a Linux box: http://forums.devshed.com/t37357/s

[PHP] Old PHP files not working

2002-08-19 Thread Trout, Travis
it. <> Thank you, Travis Trout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Old PHP files not working

2002-08-19 Thread Trout, Travis
if ($sort == "lname" || $sort == "dept"){ printf("%s, %s %s %s %s %s %s \n", $myrow[2], $myrow[3], $myrow[4], $myrow[5], $myrow[6], $myrow[7], $myrow[1]); } else { printf("%s %s %s %s %s %s %s \n", $my

RE: [PHP] A quick question - Help Please !

2002-08-19 Thread Trout, Travis
sending the information to the remote server? Travis Trout -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 10:48 AM To: Dan McCullough; PHP General List Subject: Re: [PHP] A quick question - Help Please ! to do it with javascript u could

[PHP] test

2002-08-21 Thread Trout, Travis
Travis Trout Production Support Mobile Register Phone: (251) 219-5263 Email: [EMAIL PROTECTED] Address: 401 N Water St. Mobile, AL 36602

[PHP] Changes in Sessions (PHP Versions)

2002-02-04 Thread Travis Simpson
Hey, I am just wondering if there were any changes done to the session "engine" or settings between PHP 4.0.6 and 4.1.1. I have been getting nothing but grief from 4.0.6 and 4.1.1 seems to work fine. Any help would be MUCH appreciated. Thanks, -Travis Oh, if this isn't the rig

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-04 Thread Travis Simpson
is maxing out with a certain number of SESSION variables. Once it has so many, it just starts over. I will just post the link here tomorrow, unfortunately I don't have the files on this computer. I hope this is a little more clear. Thanks, -Travis -Original Message- From: Yasu

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Travis Simpson
lly works ;) I figured it would set the variable $key to the value of $value. But it didn't. It created a new variable. Naming it the value of $key. And giving that new variable the value of $value. Does this confuse anybody else?? ;) Thanks for all your help, -Travis -Original Message--

Re: [PHP] Re: Use cron to execute a script --> OTHER problem now

2001-08-21 Thread Travis Cannell
Ok I have the same problem but this isnt working. The first line of my sript is #!/usr/local/php -q , BTW this isnt in the brackets, but should it be? then I use lynx -dump -http://localhost/show_reminder.php in the crontab, but the mailer demon gives me the message your terminal lacks the abil

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.

[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

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

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

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

[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] PHP version usage statistics?

2004-04-14 Thread Travis Low
Can you point me to a link showing usage of PHP, Java, ASP, etc.? I've been looking at netcraft.com, but I'm not seeing it. Thanks! Travis Jeffrey Tavares wrote: netcraft shows how many servers have php, but nothing specific about versions. Maybe I'm wrong, but I checked all

Re: [PHP] PHP editor

2004-04-15 Thread Travis Low
Millions WorldWide... http://search.jobsgrabber.com -- 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: [Re: [PHP] PHP editor]

2004-04-15 Thread Travis Low
, while still leaving the HTML human-readable (newlines are intact). cheers, Travis Arthur Radulescu wrote: What I meant was that it is obiously that eliminating the spaces but not by a blind replacement, the new lines characters and even the tabs will reduce the size of the page which will result

Re: [PHP] Unwanted e-mails

2004-04-16 Thread Travis Low
TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE C*A*N* UNSBSCRIBE ! I just unsubscribed and re-subscribed, no problems at all. Did I miss anything? :-) cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PH

Re: [PHP] Why are Session Variables carried over into a brand new browser window?

2004-04-17 Thread Travis Low
Sorry, the new window is part of the same session. You'll have to find some other way to distinguish between the two windows. cheers, Travis Bob Bruce - Programmer wrote: This is my first posting to this group, so I am not familiar with any special etiquette for it, please bear with me.

Re: [PHP] sessions getting destroyed for *Some* clients

2004-04-19 Thread Travis Low
you call "setcookie". Of course, this may not be the problem, in which case you can ignore what I just said. :-) cheers, Travis Jaskirat Singh wrote: Hi Guys, I have some thing weird happening with sessions here. They are getting destroyed/reset for *SOME* clients. I wrote a

Re: [PHP] Whats faster? text files or mysql?

2004-04-20 Thread Travis Low
Isn't the database kept in a file? Why would that file be faster than a plain text file? cheers, Travis Jay Blanchard wrote: [snip] I have two text files with two rows of data on each line sperated by a tab for about 20 lines in each file. Would it be faster accessing this data by putti

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Travis Low
tegrity might be a reason. However, I agree -- don't back up the database directly -- use whatever utilities the database provides to dump the database, then back up the dump. Depending on how well the dump utility works, you might be able to do away with the downtime. cheers, Travis

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Travis Low
has pg_dump. Both of these are pretty much all you'd need, and neither requires any site downtime. Exactly. Use the DB to make the snapshot, then back up the snapshot. cheers, Travis - michal migurski- contact info and pgp k

Re: [PHP] Scripting practices

2004-04-23 Thread Travis Low
It's not necessary. If you want to go to that much trouble, I would switch to Java for the speed. I stick with PHP for the shorter development time. cheers, Travis Gabe wrote: When scripting in a language (such as PHP) that doesn't require you to determine the variable type befo

Re: [PHP] Scripting practices

2004-04-23 Thread Travis Low
Also, for the lazy variable typing. To me, strong typing means pounding the keyboard extra hard. cheers, Travis Travis Low wrote: It's not necessary. If you want to go to that much trouble, I would switch to Java for the speed. I stick with PHP for the shorter development time. c

Re: [PHP] overloaded, overworked ereg statement?

2004-04-23 Thread Travis Low
;, so get it. # If you're careful, you can modify $i here # as you gather up the title. } if( 0 == strpos( $chunks[$i], "body" ) ) { # Body starts after the next ">" # Modify $i, but be vewwy caweful. } } The de-commentin

Re: [PHP] Question about the mail() php function

2004-04-23 Thread Travis Low
age.php on line 24. Just paraphrasing here. cheers, Travis Shawn Inder wrote: Hello, I was browsing your site and came across the mail() PHP function. I tryed it out: [EMAIL PROTECTED] is my e-mail adress, obviously enough.. The problem is, the e-mail doesn't get sent. A warning appe

Re: [PHP] Re: php mail() scaleability

2004-04-25 Thread Travis Low
What options? 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

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

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

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

[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] 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] 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] making changes on arrays

2004-04-29 Thread Travis Low
Hi Katie, The foreach construct operates on copies of the array values. I usually just stick to C-like syntax: for( $i = 0; $i < count( $array ); $i++ ) { $array[$i] = doSomething( $array[$i] ); } cheers, Travis Katie Marquez wrote: I'm practicing from a beginning PHP book r

Re: [PHP] PHP and AS/400

2004-04-30 Thread Travis Low
Wow, what a concept. I found this link by searching the PHP site for "AS/400": http://publib-b.boulder.ibm.com/Redbooks.nsf/RedpieceAbstracts/redp3639.html cheers, Travis William Lovaton wrote: Hi, Is there a way to integrate PHP with AS/400?? -William -- Travis Low <

Re: [PHP] PHP and AS/400

2004-04-30 Thread Travis Low
ny hits were returned. To answer your question, no I have never done this. cheers, Travis William Lovaton wrote: El vie, 30-04-2004 a las 10:42, Jay Blanchard escribió: [snip] So, is this possible? is this a viable solution for a production system? [/snip] Did you even read this article posted by Tra

Re: [PHP] Select from 24 tables

2004-05-01 Thread Travis Low
stic2 c2 etc. cheers, Travis John W. Holmes wrote: Dave Carrera wrote: Hi List, How do I select data from 24 table in my database. Each one is identical in structure layout being Id,name,list The first thing you need to do is reorganize your database schema and put all of this into one

Re: [PHP] Select from 24 tables

2004-05-01 Thread Travis Low
malized applications such as you suggest are when the customers are asking for quick-and-dirty stopgap solutions. Then it makes sense to optimize for the application writer. However, I have found that stopgap solutions have a way of becoming permanent. These days, I usually turn d

Re: [PHP] php user management functionality

2004-05-01 Thread Travis Low
uld just remove the links and leave the code. There is also extensive documentation to help you get started with your customizations. Have fun. cheers, Travis bruce wrote: hey doing some basic research... has anyone found a seriously good user management script (preferably free) that can be

Re: [PHP] Select from 24 tables

2004-05-01 Thread Travis Low
ding optimizing for programmer/bug-fixer/etc, after thinking about it, I realized that what constitutes "optimization" really depends a lot on your development situation, so I'll refrain from further comments on that. I probably shouldn't have brought it up, sorry. cheers,

Re: [PHP] Re: word to pdf via web server ??

2004-05-04 Thread Travis Low
uld probably look at the Adobe Distiller license. Adobe sells a Distiller server for 100 users for $5000, unlimited users for (cough) $15,000. See their website for details. cheers, Travis -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General Maili

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

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

  1   2   >