Re: [PHP] file upload

2005-04-04 Thread Robby Russell
On Mon, 2005-04-04 at 17:07 +0300, William Stokes wrote: > Hello, > I might have asked this already but I am still ignorent ;-) > > How to check if a same name file already exists in a upload directory when > uploading new file? > > Thanks > -Will > http://www.

Re: [PHP] What's the going rate for making websites ?

2005-04-03 Thread Robby Russell
roblem getting it done while working on other projects), but > I've never actually done paid work before... It's more that I just recently > moved to Canada (from Denmark) so I have no feeling with what the prices > and rates are overhere ... > $x = Wh

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Robby Russell
che handles this... or your web server. -Robby -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP, Ruby, and PostgreSQL Development *

Re: [PHP] Class/object storing itself in a database

2005-03-14 Thread Robby Russell
> that copy later and use it as a PHP object? > > thnx, > Chris > Try serializing it first. What happens when you run: echo $this; ..your query is going to save the same thing. try serialize($this) instead. -Robby -- /*** * Robby Russel

Re: [PHP] upload and resize image script

2005-03-04 Thread Robby Russell
for resizing: http://blog.planetargon.com/archives/44-Image-Watermarks-in-PHP.html -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Devel

Re: [PHP] Catalog or cart

2005-03-02 Thread Robby Russell
On Wed, 2005-03-02 at 13:15 -0800, Robby Russell wrote: > On Wed, 2005-03-02 at 02:45 -0800, Ryan A wrote: > Very flexible and runs on PostgreSQL. > > http://www.pgcart.com/ > Oops, forgot to provide link for an example of it in production: - http://www.johnbenza

Re: [PHP] Catalog or cart

2005-03-02 Thread Robby Russell
g that is open source (does not have to be > free..but not expensive) so i can play with the code if need be. > The reason i was leaning towards a cart is, if he ever decides to sell > online, i dont want to build a whole extra piece of software to go with the > catalog. > >

Re: [PHP] function to resize images

2005-02-28 Thread Robby Russell
ff that's not needed and too much trouble to remove. > Some info in this post might help you: http://blog.planetargon.com/archives/44-Image-Watermarks-in-PHP.html -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | ww

Re: [PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-28 Thread Robby Russell
li interface documentation? Is it in the >MySQL documentation or the PHP documentation (or both or neither)? > Do you have mysql-devel installed? (since you installed via RPM). -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.pl

Re: [PHP] PHP Wiki

2005-02-25 Thread Robby Russell
On Thu, 2005-02-24 at 17:49 -0500, Randy Johnson wrote: >Is there a Wiki site for PHP? Is there a need for one? > >-Randy The php.net site doesn't really need a wiki. or did you mean is there a php-based wiki? http://www.google.com/search?q=php

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Robby Russell
x27; with using $_REQUEST instead of > specifying between $_POST and $_GET? > > Will Beers It really depends on the circumstance. Typically, do not use it unless you are totally okay with the data coming from $_GET or $_POST. For security-minded people, it's best

Re: [PHP] PHP security

2005-02-17 Thread Robby Russell
e so: .. if php is properly configured, this will never be displayed at /db.inc.php ... will just show a blank page -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730

Re: [PHP] help me

2005-02-17 Thread Robby Russell
SERVER); what do you see? -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development * --- Now hosting Ruby on Rails Apps --- /

Re: [PHP] Delete all files in DIR every 20 days

2005-02-14 Thread Robby Russell
nks > > Tim > What operating system? In linux you'd use rm -rf /path/to/dir and add this to crontab. -Robby -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351

Re: [PHP] need help parsing named.conf file

2005-02-13 Thread Robby Russell
168.0.2' > [zone][mydomain.com][type] = 'master' > [zone][mydomain.com][notify] = 'yes' > [zone][domain2.com][type] = 'slave' > . > . You might try googling for some existing classes that do this. http://sourceforge.net/projects/phpbind/ -- /***

Re: [PHP] Limit iterations on a foreach loop?

2005-02-11 Thread Robby Russell
- Brian > Is this data coming from a database? If so, just set a limit at the end of your query... example: SELECT * FROM blog ORDER BY id DESC LIMIT 10; ..will return the latest 10 entries. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * P

Re: [PHP] phpBB alternatives?

2005-02-08 Thread Robby Russell
PHP based forum software? > -- > Send REAL USPS letters from the Web! > http://www.quickymail.com > > e attacked phpbb.com did indeed use a vulnerability in awstats to gain > entry to our server > -- /*** * Robby Russell |

Re: [PHP] Headers already sent error

2005-02-02 Thread Robby Russell
edirect the user. I get this error on the webhost, but not on my > local host. > > I've searched and found that this can be caused by spaces after the > closing php tag, but I don't have any. > > What could this be? > > > Tim > try adding: ob_start(

Re: [PHP] simple question

2005-01-31 Thread Robby Russell
t calls the main print. try return instead of print. example: function supScript($txt) { return "{$txt}"; } print "2" . supScript("3"); You shouldn't print a function that prints.. ;-) -Robby -- /*** * Robby Russell | O

Re: [PHP] Search Engine Friendly URLs

2005-01-15 Thread Robby Russell
ome adjustments to Apache to allow you to do this. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development *

Re: [PHP] PHP code to analize email HELP

2005-01-09 Thread Robby Russell
nsert this data in MySQL > database. It this posible? > > I'm a newbie in PHP/MySQL, any ideas? > > Thanks, > > excuse my english > You can probably search online and find some tutorials for this. Some terms that m

Re: [PHP] variable hell

2005-01-04 Thread Robby Russell
se its value > > so if $x was "offers" on echo I would have (250) <-- "$isofferssorttext" > if $x was newproducts on echo I would have (350) <-- > "$isnewproductssorttext" > > Thanks in advance > > Mario > This seems like an odd appr

Re: [PHP] newbie.. $_GET & $_POST

2005-01-03 Thread Robby Russell
. POST might be the easiest route without showing in the URL. -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread Robby Russell
ch, by the way, makes a hell of a lot more sense. It's just an HTTP > response header like any other response header and it is called > Location, not Redirect. > > -Rasmus > -- /*** * Robby Russell | Owner.Developer.Geek * PLANET AR

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread Robby Russell
; Sure you can.. class Response { function redirect($location) { header("Location: " . $location); } function write($text) { print $text; } } Response::Redirect("http://www.planetargon.com/";); Response::Write("bar"); There, now we can compete with A

Re: [PHP] gallery (4 in a row) // carefull newbie

2004-12-28 Thread Robby Russell
I don't think it would go anywhere: > [EMAIL PROTECTED] wrote: -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/Postgre

Re: [PHP] Test, please ignore

2004-12-28 Thread Robby Russell
On Tue, 2004-12-28 at 18:09 +0100, Steven Spierenburg wrote: > to see if i can post... > no, you can't. -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 5

Re: [PHP] Help with code

2004-12-25 Thread Robby Russell
karl james said: > > Team, > > Can you tell me why this code is not working? > I get a query is empty at the moment. > > http://www.theufl.com/php/wrox_php/movie_details.phps We need some information on the errors that you

Re: [PHP] MP3s

2004-12-23 Thread Robby Russell
ive_10192004_-_05_-_the_cure_got_in_her_head.mp3 > http://www.thevacant.com/media/live_10192004/160/the_vacant_-_live_10192004_-_06_-_red_light.mp3 > http://www.thevacant.com/media/live_10192004/160/the_vacant_-_live_10192004_-_07_-_bliss.mp3 Cheers, Robby On Thu, 2004-12-23 at 11:18 -0500, David Dickson wrote: &

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Robby Russell
effectively, the time it takes to go back and work on legacy code can be dropped: see: http://www.refactoring.com/ ..and a good book that someone recommended to me recently: http://www.amazon.com/exec/obidos/redirect? tag=gp04-20&path=tg/detail/-/0201485672%3Fv%3Dglance Cheers, -Robby -

Re: [PHP] Fax Gateway

2004-12-18 Thread Robby Russell
isplay the current status of hylafax, so all you really need is the hylafax commandlines and call them with php. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | bl

Re: [PHP] counting chars..

2004-12-15 Thread Robby Russell
On Thu, 2004-12-16 at 14:28 +0800, Louie Miranda wrote: > $string = "function yes good"; > $display = count_chars($string); > > echo $display; > ?> > > i know this is wrong, but how can i count chars used here? php.net/strlen ? -Robby -- /*

Re: [PHP] Possible to make $$ distributing PHP as Shareware?

2004-12-15 Thread Robby Russell
l and support..and have your users pay you to utilize your service. ($$) ..depending on what your goal is with it, those are generally the three ways you can make money with your app. Cheers, -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON

Re: [PHP] Classes and Functions

2004-12-11 Thread Robby Russell
w number $object->y = 2; print $object->add() . "\n"; print $object->subtract() . "\n"; OUTPUT: > 14 > 6 > 12 > 8 As it sounds like you're still new to this, I would pick up a book or read some material online that will better show you

Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Robby Russell
you building that needs to split the year by 2 sets of 2 digits? Second, you can do this like so: $foo = date("Y"); $bar = array(); $bar[] = substr($foo,0,2); $bar[] = substr($foo,2,2); print_r($bar); > Array > ( > [0] => 20 > [1] => 04 > ) -Robby -

Re: [PHP] Free for commercial use?

2004-12-02 Thread Robby Russell
http://www.php.net/license/ http://www.php.net/license/3_0.txt -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Dev

Re: [PHP] mysql_connect vs mysql_pconnect

2004-11-26 Thread Robby Russell
tent+connection -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development *---

Re: [PHP] redirecting to a success page

2004-11-22 Thread Robby Russell
e sent more headers until the next browser action. Javascript can do this with a meta refresh, or you can use ob_start() at the start of your php code, which will allow you to send headers at any point during your php code, as it waits until it goes through all your php code before sending any heade

Re: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Robby Russell
return False; } } if (getPostVar('contact_list') == "Used")... -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blo

Re: [PHP] mp3 cropping

2004-11-17 Thread Robby Russell
ut not necessary. :-p -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development *

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Robby Russell
hp have a > support like .net. > > what arguments can I show for convince him to try PHP? > > Thank you very much :) The internet might disappear in a year..and then PHP could disappear as well. -- /*** * Robby Russell | Owner.Devel

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Robby Russell
On Wed, 2004-11-17 at 13:54 -0600, Brent Clements wrote: > Let's say I have a page at another site that links to a php script on my > server. Is there anyway to get the referrer to the php script using php? > > Look in the $_SERV

Re: [PHP] free php live support script ?

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 18:35 -0800, Robby Russell wrote: > On Tue, 2004-11-16 at 21:40 -0400, Mario Bittencourt wrote: > > Hi, > > > > I was wondering if there is any free php live support script ? > > > > I'd like to add a "chat room" in my web si

Re: [PHP] isset opposite

2004-11-16 Thread Robby Russell
to all the php included functions that start with is. -Robby -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development *

RE: [PHP] Question on query string

2004-11-16 Thread Robby Russell
On Wed, 2004-11-17 at 11:28 +1100, Jason Oakley wrote: > I think maybe > > $jtitle=$HTTP_GET_VARS['JTitle']; > Might I remind you that $_HTTP_*_VARS is deprecated.. $_GET $_POST (it's also much quicker to type) -Robby -- /****

Re: [PHP] free php live support script ?

2004-11-16 Thread Robby Russell
gt; We use this program for live support with our customers. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting

Re: [PHP] Object oriented programming

2004-11-16 Thread Robby Russell
ections of program structures described under a > common class heading (prefixed blocks). Pretty sure that probably out dates many of the people subscribed to the list. ;-) (i included..) -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET A

Re: [PHP] isset opposite

2004-11-16 Thread Robby Russell
gt; test if a $_GET is not set (not just empty). > > thanks in advance! > > d > isset() returns a boolean. so...try, if (!isset($x)) -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, O

Re: [PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Robby Russell
e this possible... > > Thanks, > Scott > I have a script that will stimulate you. ;-) -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/Postg

[PHP] weekly email idea

2004-11-16 Thread Robby Russell
on in the email. ;-) Thoughts? I looked over the past several months and saw nothing like this happening so I thought I'd put the idea out there and would be happy to try it out for a few weeks. I don't think one email a week would flood our inbox so any other concerns, comments or sugg

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread Robby Russell
or is it running as a CGI? Which is quicker to program in? Yahoo uses php for some of their stuff, I would say that is a pretty high traffic site. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * P

Re: [PHP] copy function?

2004-11-16 Thread Robby Russell
t; the function? > > Garth > Php doesn't do anything like this...unless you post a form. Try javascript. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730

Re: [PHP] Column Totals

2004-11-15 Thread Robby Russell
On Mon, 2004-11-15 at 11:01 -0700, Ben Miller wrote: > SELECT SUM(Revenue) FROM Sales WHERE Date='$Date' What happens when you do: SELECT Revenue FROM Sales WHERE Date='$Date'; Make sure you're getting values back first..and then you

Re: [PHP] Dinamically adding methods to an object instance?

2004-11-15 Thread Robby Russell
an object instance in same > way? how? will these methods have access to private and protected > members of the class of the object? > > Thanks a lot in advance... > -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetarg

Re: [PHP] Join PHPExperts

2004-11-10 Thread Robby Russell
/groups.yahoo.com/group/phpexperts > > Thank you all > > --Evelin > brilliant. you should start an irc channel next. :-p -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED]

Re: [PHP] image uploads - part 2

2004-11-06 Thread Robby Russell
ient as to what is more important. If you know how to optimize your database (a stock pgsql db can be rather slow..) then the speed differences are not enough of a factor for us to know that our data just a bit more safer. -Robby -- /******* * Robby Russell | Owner.

Re: [PHP] postgres-embedded images via php. two issues...

2004-11-02 Thread Robby Russell
allows either: http://localhost/images/5 or http://localhost/images/myimage.png to work. I prefer the filename as it looks cleaner and appears to be more standard. So, in a webpage, I can now add the following html code to show the image. http://localhost/images/myimage.png"; /> --

Re: [PHP] postgres-embedded images via php. two issues...

2004-11-02 Thread Robby Russell
t it's an image. for example, look at the mod_rewrite rules at the bottom of this blog post. http://blog.planetargon.com/index.php?/archives/27_Displaying_image_from_PostgreSQL_large_object_with_PHP.html I don't know if this *is* the issue, but it's my first guess. -Robby -- /**

Re: [PHP] image files - upload and managment

2004-10-30 Thread Robby Russell
On Sat, 2004-10-30 at 22:30 +, Matthew Weier O'Phinney wrote: > * Robby Russell <[EMAIL PROTECTED]>: > > On Sat, 2004-10-30 at 02:43 -0700, Jaskirat Singh wrote: > > > App needs to allow users to upload pictures. (jpg and gif), > > > needs to create thu

Re: [PHP] image files - upload and managment

2004-10-30 Thread Robby Russell
ing mod_rewrite so that it looks like it's coming from the filesystem, for example: mydomain.com/images/mypic.jpg actually calls ./image.php?filename=mypic.jpg http://blog.planetargon.com/index.php?/archives/27_Displaying_image_from_PostgreSQL_large_object_with_PHP.html hth, -Robbyu --

Re: [PHP] Emulation of Application object

2004-10-29 Thread Robby Russell
27;t expect much out of it. -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development *--- Now supporting PHP5 --- ***

Re: [PHP] Re: Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Robby Russell
s pretty impossible since both Postgres and MySQL are stand-alone > databases and have nothing to do with each other. I am curious too. I have never seen any conflicts of the sort. -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planeta

Re: [PHP] Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Robby Russell
esql) How do mysql and postgresql tools conflict? You should have no problem running them side by side... or even several of each on the same machine. They don't obsolete each other or cause dependancy issues. -Robby -- /*** * Robby Russell | Owner.

Re: [PHP] Gawd I hate those useless error messages...

2004-10-29 Thread Robby Russell
h as possible. Use a template system of some form. (ie. smarty) Use a PHP editor with syntax highlighting..click on one curly brace and then find where the other highlighted brace is and make sure that it where it should end. Learn how to debug your code. See how far it's gett

Re: [PHP] File uploads and handling

2004-10-28 Thread Robby Russell
> to see how it all works. > > Yeah, that was not useful at all. That's what I originally looked at. > If anyone has some "code" that shows how to reference the actual file, > then that would be helpful. I have pulled my hair out long enough over > this one. >

Re: [PHP] Review: Function that measures the width of a text string in pixels.

2004-10-28 Thread Robby Russell
} > } > return $width; > } > ..and how do you plan to account for things such as, font sizes on all platforms, font types, etc? -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland,

Re: [PHP] https://...

2004-10-28 Thread Robby Russell
On Thu, 2004-10-28 at 11:01 -0500, Afan Pasalic wrote: > Hi Robby, > Yes, I looked at SERVER_PORT/SERVER_PROTOCOL. What I got is 80 and > HTTP/1.1 when I manually change http:// to https:// I'm getting 443 and > HTTP/1.1 > > I am not so good in this: you want to sa

RE: [PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Robby Russell
a habit I usually have a function called something like debug() function debug($arg) { print ""; print_r($arg); print ""; } debug($_GET); try not to use capitalized P in print... -Robby -- /*** * Robby Russell | Owner.Develop

Re: [PHP] PHP Compiler?

2004-10-27 Thread Robby Russell
anguage compiler, which then allowed for all sorts of nice > things to happen. One of the nicest things for me was that the compiler > caught all sorts of "little" things before the same code in the interpreter > would find them at run-time. > I believe that there are

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Robby Russell
e of an actual value, and that bit doesn't particularly > matter, since it was never getting executed (although it was for a global > constant from a header file). > > --Quanah > So, you're asking for help on modifications to the source code for PHP, no

Re: [PHP] User Screen Resolution

2004-10-27 Thread Robby Russell
; > What I am actually trying to do is make a page resize depending on screen > resolution, in case that helps anyone. > go back and find your javascript function. PHP is server side not client side. -Robby -- /*** * Robby Rus

Re: [PHP] https://...

2004-10-27 Thread Robby Russell
RVER_PORT'] and $_SERVER['SERVER_PROTOCOL'] ? -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blo

Re: [PHP] Form containing 2 menus not returning anything

2004-10-23 Thread Robby Russell
> > And here's the PHP handler script: >if ($view) > { > echo $publication."\n".$view; > } > else > { > echo "no values supplied"; > } > ?> > Not sure

RE: [PHP] Re-compiling PHP

2004-10-22 Thread Robby Russell
removed and 75 not upgraded. Hmm. What version of PHP are you trying to install? -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECT

RE: [PHP] Re-compiling PHP

2004-10-21 Thread Robby Russell
Mike find the mysql-devel package that matches the version you are running. tip: download apt from freshrpms.net http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/ install the rpm for apt... then run: apt-get update apt-get install mysql mysql-devel -Robby -- /*

RE: [PHP] Re-compiling PHP

2004-10-21 Thread Robby Russell
in configure (following). What am I not doing correctly? > > > > You're trying to compile the binaries? > > Sorry, the tar'd file I should say. ;p > You probably need to do --with-mysql=/path/to/mysql/libs It's not finding them by itself..so you my

Re: [PHP] Best practices for php application

2004-10-21 Thread Robby Russell
or good examples, head over to sourceforge and look at some of the major php projects..and browse their CVS directories..see how they do it for some examples. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Po

Re: [PHP] Simple Time Question

2004-10-21 Thread Robby Russell
could easily figure out GM time, but would rather go the other way. > > Thanks. > > Ben > You can set an environment variable for your project like so: putenv("TZ=US/Pacific"); just find the proper GMT time zone format.. -Robby -- /**

RE: [PHP] Strange Array Error

2004-10-21 Thread Robby Russell
On Thu, 2004-10-21 at 15:04 +0100, Graham Cossey wrote: > Oh @#*! > Thanks Greg, I always get that one wrong ! > > $test_array = array(); > > :) a few less lines version: $test_array = array(); for ($i=0; $i<7; $i++) $test_array[$i] = $i; print_r($test_

Re: [PHP] Passing the Array as Parameter to either the function or object/class???

2004-10-21 Thread Robby Russell
e object/class stuffs? > yes and yes. ie: function foo($bar) { print_r($bar); } $myarray = array(1,2,3,4); foo($myarray); ouputs: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) cheers, Robby -- /*** * Robby Russell |

Re: [PHP] File Upload Problem

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 17:00 -0700, Robby Russell wrote: > On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote: > > This file upload problem has me very confused. > > > > The code is: > > > > $upload_dir = '/articles_store/'; > > $uploadfile =

Re: [PHP] File Upload Problem

2004-10-20 Thread Robby Russell
user is > and group are 'www' (the Apache user). Are you sure that this is the correct path? Did you create a new path in your root level as /articles_store ? so, if I go on your machine and type in: $ cd / $ ls it'll show /articles_store /dev /etc /var ...etc? -Robby -- /*

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Robby Russell
; > > might want to try > > http://pear.php.net/package/HTTP_Client > > Nope, no PEAR allowedany other options? No PEAR allowed? Why not? You can include the libraries in your own paths... -Robby -- /*** * Robby Russell | Owner

Re: [PHP] Nested foreach ?

2004-10-17 Thread Robby Russell
ng an issue with a nested foreach, but didn't really explain what the issue was. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon

Re: [PHP] Nested foreach ?

2004-10-17 Thread Robby Russell
On Sun, 2004-10-17 at 12:40 -0700, Stuart Felenstein wrote: > Robby > > Here is the printout : > Using- > print_r ($skills); > print_r ($skys); > print_r ($slus); > > > Array ( [0] => skillone [1] => skilltwo [2] => > skillthree [3] => [4] =>

Re: [PHP] Nested foreach ?

2004-10-17 Thread Robby Russell
if ( is_array( $_SESSION['foo'] ) ) { > foreach ( $_SESSION['foo'] as $x ) { > sql .= "INSERT INTO TABLE (... > VALUES ($x) > > Just can't seem to figure out how with three arrays. > > help appreciated. > > Stuart > Can you provi

Re: [PHP] replacing characters in a string

2004-10-14 Thread Robby Russell
hp site or google first? http://www.google.com/search?q=php+replace+character+in+string first result should find you your answer...and would take less time than sending the email. ;-) -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargo

Re: [PHP] looking for a few php partners/developers....

2004-10-14 Thread Robby Russell
gt; [EMAIL PROTECTED] > craigslist.org too. -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development ***

Re: [PHP] deleting multiple items from a database

2004-10-13 Thread Robby Russell
ng like DELETE FROM table WHERE id IN (32,34,46,432,35); generating your list of numbers/ids from your array... -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [E

Re: [PHP] time

2004-10-13 Thread Robby Russell
u might want to consider using CRONTAB (if in the *nix environment)...which would call a script to send your email. -Robby -- /******* * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED]

[PHP] php4 objects

2004-10-12 Thread Robby Russell
gt;bar->getThing(); ..but he wants it to run some stuff in the functions that he is calling and wants to do it in one command if possible. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland,

Re: [PHP] Re: Sessions and Mozilla (Firefox)

2004-10-12 Thread Robby Russell
> run the executable again, it searches for a running session and, if one > is found, uses it to spawn a new window without actually running another > copy. > The way around this is to use profiles in mozilla. -- /*** * Robby Russell | Owner.Develop

Re: [PHP] read aspx files

2004-10-08 Thread Robby Russell
to read the contents of yourfile.aspx on the local disk. PHP doesn't run aspx files.. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon

Re: [PHP] Quotes """ in form textarea fields

2004-10-08 Thread Robby Russell
On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote: > I swear I googled for an hour first. > > > A user enters in a textarea field of FORM1.php: > Bob is "high" > > Submitted to FROM2.php we get: > > Bob is \"high\" > > In a hidden field in FROM2.php we store the value: > Then from FROM2.php

Re: [PHP] tool to check syntax

2004-10-08 Thread Robby Russell
ne > What about phpxref? http://phpxref.sourceforge.net/ I use it for documentation and forcing myself to stick to a standard. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Robby Russell
Thankful for suggests, > > sincerely > > Victor http://www.sqlite.org/ perhaps? -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP

Re: [PHP] PHP and extern link

2004-09-19 Thread Robby Russell
y in > /var/www/catalog/blubb.php on line 2 > > It seems that fopen is not able to open it, because it is not redirected to > a file... > > Any solutions ? > > Martin try http://domain.com/";); ?> -- /*** * Robby Rus

Re: [PHP] Capturing an Image of a web page

2004-09-14 Thread Robby Russell
t as a web browser..which it doesn't do. I've seen things like this before..but I believe they are using real browsers to do this.. perhaps looking into building a way to connect to the mozilla api or something... don't think PHP is going to be much he

Re: [PHP] trying to do too much with functions?

2004-09-02 Thread Robby Russell
x27;))?> > > > > > So, is that it? Have I thought of all possible options? > > /** * pass an array..so as long as you pass one thing... */ function doStuff($args) { // do something print_r($args); } /** * this arg is optional as it has a default value */ function do

Re: [PHP] Get Value

2004-08-25 Thread Robby Russell
7;meep'; preg_match("|>(.*)|", $in, $out); $foo = $out[1]; print $foo; ...prints: meep This is just a quick and dirty example of how this can be done. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.c

  1   2   >