Re: [PHP] Off the wall - sub-domain question

2013-08-22 Thread Dan McCullough
gt;> > >>> IN advance - I apologize for this off-topic question, > >>> > >> but this place is > >> > >>> a source of much knowledge, so I just threw in > >>> > >> a quick interlude here to > >> > >>> pick someone's brain. :) > >>> > >>> > >> -- > >>> PHP General Mailing List (http://www.php.net/) > >>> To unsubscribe, visit: http://www.php.net/unsub.php > >>> > >>> > >>> > >> Yes - the sub is an add-on domain to my primary domain. Hence the > > overlap and problem. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > > Willie Matthews > matthews.wil...@gmail.com > -- Thank you, Dan Cell: 484-459-2856 <https://www.facebook.com/dpmccullough> <http://www.linkedin.com/in/danmccullough>

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Dan Munro
inbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- >From the desk of Dan Munro

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Dan Munro
t view on "what > is a popular language", than I have. > > > > > > Does it really matter? PHP is very huge, widely used, and I would even > go > > so far as to say the 'norm' for website developers, and hosting > providers. > > > > Nope, it doesn't matter :) > > > > > > But that is my $0.02, and for me, I have been with PHP for 7 years > > professionally, and in college I took VB.net, ASP.net, C++, JAVA and PHP. > > Only recently have I gotten into C# for desktop applications. > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > github.com/KingCrunch > -- >From the desk of Dan Munro

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Dan Munro
rs. Lose your indentation for ANY > > reason and your program is well and truly screwed, in ways you can't > > imagine. > > > > 2. Python programs fail in the most ungraceful way I've ever seen in an > > interpreted programming language. > > And no ternary operator. > > tedd > > ___ > tedd sperling > tedd.sperl...@gmail.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- >From the desk of Dan Munro

[PHP] Re: zend framework & getIdentity

2013-07-19 Thread Dan Joseph
On Wed, Jul 17, 2013 at 5:54 PM, Dan Joseph wrote: > Fatal error: Uncaught exception 'Zend_Session_Exception' with message > 'Zend_Session::start() - > /product/Messenger-dev/Messenger/library/Zend/Session.php(Line:480): Error > #2 Class __PHP_Incomplete_Class ha

[PHP] zend framework & getIdentity

2013-07-17 Thread Dan Joseph
e 493 This seems to be triggered by: $this->_identity = Zend_Auth::getInstance()->getIdentity(); Has anyone seen this error before? Its throwing me for a loop -- -Dan Joseph http://www.danjoseph.me http://www.dansrollingbbq.com http://www.youtube.com/DansRollingBBQ

Re: [PHP] Last Record INSERT

2013-06-26 Thread Dan Munro
; > > tedd > > > > _____ > > tedd.sperl...@gmail.com > > http://sperling.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- >From the desk of Dan Munro

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-21 Thread Dan Joseph
Hey guys, thanks again for the talk and education. I've purchased the book, and started reading thru the links given. Take care! -Dan On Sun, May 19, 2013 at 12:28 PM, Tedd Sperling wrote: > To all: > > Thanks to Stuart, I finally got it. > > The concept of Interface i

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Dan Joseph
Hey Guys, Thanks for all this good information so far. I'll keep you posted on my edumacation! -Dan On Thu, May 16, 2013 at 11:16 PM, Larry Garfield wrote: > On 05/16/2013 06:45 PM, Tedd Sperling wrote: > >> Thanks to both Bastien and Sebastian: >> >> While I un

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Dan Joseph
Thanks! This looks like a good start. Covers some things I have questions on. I like his approach. Now I just need something advanced to continue on after this. I'd like to learn more about extending, interfaces, abstracts, and why/when they should be used. Appreciate it! -Dan On Thu

[PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Dan Joseph
Hey Folks, I'm looking to refine my PHP 5 OOP skills. I know the basics, understand patterns, but have clearly missed a few things along the way. Do any of you have some real good PHP 5 OOP tutorials/reads bookmarked you could share? Something other than php.net/oop5. Thanks! -- -Dan J

Re: [PHP] FW:

2013-05-08 Thread Dan Joseph
Yo, (And, no, PHP doesn't stand > for Produced by Horses & Ponies.) > > This is completely devastating -- -Dan Joseph http://www.danjoseph.me http://www.dansrollingbbq.com http://www.youtube.com/DansRollingBBQ

Re: FW: [PHP] Accessing Files Outside the Web Root

2013-03-13 Thread Dan McCullough
Web bots can ignore the robots.txt file, most scrapers would. On Mar 13, 2013 4:59 PM, "Jen Rasmussen" wrote: > -Original Message- > From: Dale H. Cook [mailto:radiot...@plymouthcolony.net] > Sent: Wednesday, March 13, 2013 3:38 PM > To: php-general@lists.php.net > Subject: [PHP] Accessin

Re: [PHP] Your Amazon.com order confirmation.

2012-06-08 Thread Dan McCullough
se do not reply to this > message.Thanks again for shopping > with us.Amazon.com >Earth's Biggest SelectionPrefer > not to receive HTML mail? Click here > -- Thank you, Dan Cell: 484-459-2856 <https://www.facebook.com/dpmccullough> <http://www.linkedin.com/in/danmccullough>

Re: [PHP] function

2012-05-03 Thread Dan Joseph
inside classes or anything? If they're just functions, they should work fine together, example of 2 working functions together: This results in "hi 1" being echoed to the screen. -- -Dan Joseph http://www.danjoseph.me

Re: [PHP] PDF Form Field

2012-05-03 Thread Dan Joseph
On Thu, May 3, 2012 at 9:13 PM, David OBrien wrote: > I just found fpdfi using Google. It looks like what you need > Wow, you said the key phrase in your last e-mail, 'text on top'. I didn't think of that. fpdi/fpdf does that like a charm, thanks! -- -Dan Joseph http://www.danjoseph.me

[PHP] PDF Form Field

2012-05-03 Thread Dan Joseph
s not an option. Thanks. -- -Dan Joseph http://www.danjoseph.me

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Dan Joseph
ve never had to install a package before or > is that something my hoster does? > If you're on shared hosting, it'd be something your hosting company does. I used fpdf for my last pdf job. Although, I personally do not see a problem with having people just print a nicely formatt

Re: [PHP] json_encode confusion

2011-11-10 Thread Dan Schaefer
the spaced with underscores but nothing I do seems to help. When I echo out the json encoded data, the keys are all nulls. Can someone point me in the correct direction? It may be that I need to manually create the key names as an array first, which I was hoping to avoid since the file form

Re: [PHP] 3.1.9 build of APC win 64

2011-08-01 Thread Dan Baughman
Thank you. On Mon, Aug 1, 2011 at 9:20 AM, Lester Caine wrote: > Dan Baughman wrote: > >> Does anyone know where you can download a 64 bit build of apc 3.1.9? >> >> I want to take advantage of some of the stuff they've pushed out since >> 3.1.8 >> for w

[PHP] 3.1.9 build of APC win 64

2011-08-01 Thread Dan Baughman
Does anyone know where you can download a 64 bit build of apc 3.1.9? I want to take advantage of some of the stuff they've pushed out since 3.1.8 for windows, but can't find a 64 bit binary to save my life.

[PHP] PHP runs but apache says its a faulting module every so often

2011-07-30 Thread Dan Baughman
there a way to turn on logging such that you can see what module is failing? Thanks in advance, Dan

Re: [PHP] Cwtc

2011-06-14 Thread Dan Joseph
ft! Nice try. > > You don't think the mailing list software fell for it? -- -Dan Joseph

Re: [PHP] date problem

2011-04-02 Thread Dan Dan
gt; print "second: ".date("d-m-Y H:i:s",strtotime('second Tuesday of March > 2011'))."\n"; > print "third: ".date("d-m-Y H:i:s",strtotime('third Tuesday of March > 2011'))."\n"; > print "fourth: &

Re: [PHP] date problem

2011-04-01 Thread Dan Dan
x27;March 2011 third Tuesday'))."\n"; print "fourth: ".date("d-m-Y H:i:s",strtotime('March 2011 fourth Tuesday'))."\n"; first Tuesday :01-03-2011 00:00:00 first: 08-03-2011 00:00:00 second: 15-03-2011 00:00:00 third: 22-03-2011 00:00:00

[PHP] date problem

2011-04-01 Thread Dan Dan
Hi Folks, I am trying to get the day of month for a particular day of week (e.g. Tuesday) for the first, second, third, fourth week in a month. The code i have seems issues in March, but works e.g. in April: print date("d-m-Y H:i:s",strtotime('1 March 2011 Tuesday')); >> 01-03-2011 00:00:00 prin

Re: [PHP] PHP session replication

2011-03-17 Thread Dan Joseph
attached to a class. Many of the frameworks, such as Zend, also support Database Sessions. -- -Dan Joseph

Re: [PHP] Zend Framework - getParam() Question

2011-03-12 Thread Dan Joseph
Howdy, Mid, Net, thanks for the tips! I actually didn't have the proper .htaccess settings that ZF wanted, and I needed to add a router :) Thank you both! -Dan On Sat, Mar 12, 2011 at 12:48 AM, Midhun Girish wrote: > You can also try routing in zend.. > http://codeutopia.net/blog

[PHP] Zend Framework - getParam() Question

2011-03-11 Thread Dan Joseph
r the place. I can't find the answer. Can someone tell me how this is done? Thanks... -- -Dan Joseph

Re: [PHP] Custom function

2011-02-16 Thread Dan Schaefer
In my code, I set the optional parameter to NULL and check for triple equals "===" or "!==" to see if the variable has been passed with a value. IMO, this is the safest way. function MyFunction($x, $y, $z=NULL) { if ($z !== NULL) { // Do Something } } Dan Schaefer Web Devel

[PHP] Under which distribution(s) is PHP developed, compiled, and tested?

2010-12-15 Thread Dan Schaefer
that show the major and/or minor Linux distributions that support which version of PHP? FTR, I couldn't find an answer to these questions by Googling or in the php-general archives. -- Dan Schaefer Web Developer/Systems Analyst Performance Administration Corp. -- PHP General Mailing

Re: [PHP] My project requires creating office documents on PHP. Any recommendations on what to use?

2010-11-20 Thread Dan
On Nov 20, 2010, at 1:10 AM, chetan ahuja wrote: > My project requires creating office documents on PHP. Any recommendations on > what to use? When you say office documents do you mean you have to create them using Microsoft office? Or just need to replicate current paper documents? If you n

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Dan Yost
nning into the "either go from source yourself or use volatile repositories" claims, which aren't good in an enterprise case, though I realize using source isn't "bad" from that standpoint). Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Dan Yost
db) except me. And I can't help but notice how CentOS (tzdata package) is also corrupt, every single time it gets updated, on the Central zone but no others. Obviously these should be entirely separate issues, but "somebody" out there has it out for the Central time zone. Probably a Yankees fan. Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Dan Yost
On Tue, Nov 2, 2010 at 9:19 AM, Nathan Nobbe wrote: > On Tue, Nov 2, 2010 at 7:52 AM, Dan Yost wrote: >> >> So now I suppose the thread becomes: how do I get a valid US/Central >> (America/Chicago) timezone in PHP5? > > give the timezonedb extension a shot &g

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Dan Yost
s not fix PHP (tried that just now)--which again I'd expect it not to anyway, since I believe PHP (as of PHP5) has an internal timezone DB. But I tried it just in case. So now I suppose the thread becomes: how do I get a valid US/Central (America/Chicago) timezone in PHP5? Thanks much, Dan

[PHP] time zone ignored (both via ini or in code)

2010-11-01 Thread Dan Yost
t; 18 [tm_mday] => 1 [tm_mon] => 10 [tm_year] => 110 [tm_wday] => 1 [tm_yday] => 304 [tm_isdst] => 0 ) 11/01/10 18:51:14 + UTC Timezone is America/Chicago, yet date functions completely ignore this and continue to display UTC. Please help me understand where I'm blind here. Thanks, Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload using FTP commands

2010-08-26 Thread Dan McCullough
Take a look here: http://us.php.net/manual/en/ref.ftp.php You might have some issues with the memory limit in PHP so that might have to be boosted for 20MB files. On Thu, Aug 26, 2010 at 12:24 PM, Matthew Croud wrote: > > Hi, > > I want to give my client the ability to upload large files ( aroun

Re: [PHP] Video lessons

2010-07-23 Thread Dan Joseph
On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov wrote: > Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS? > > I'm not sure exactly what you're meaning there, but check out www.lynda.com -- -Dan Joseph http://www.canishosting.com - Unlimited Hos

[PHP] Image Replication

2010-07-20 Thread Dan Joseph
a load balanced cluster. Linux servers. How did you go about it? -- -Dan Joseph http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order -- Reseller Plans also available! http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Dynamic menu

2010-07-19 Thread Dan Joseph
p.net/unsub.php> > > Well, your basic logic is: if ( they have a session ) { //output the menu } else { //output the other menu } -- -Dan Joseph http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial orde

Re: [PHP] Finding a font.

2010-06-09 Thread Dan Joseph
out... I uploaded an image, it looked at it, and told me what fonts the letters were using. Thanks Tedd! -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] PHP app & Server Load

2010-06-08 Thread Dan Joseph
On Tue, Jun 8, 2010 at 12:19 PM, Daniel Brown wrote: > On Tue, Jun 8, 2010 at 12:12, Dan Joseph wrote: > > > > Anyone know a good way to estimate load based on actually numbers > compared > > to benchmark results from intel on a faster server? > > Run a DDoS-

[PHP] PHP app & Server Load

2010-06-08 Thread Dan Joseph
need to support the load. I've done initial testing on a Xeon 3220 server, but we're looking at an i7 cpu based server now. Anyone know a good way to estimate load based on actually numbers compared to benchmark results from intel on a faster server? -- -Dan Joseph www.canishostin

Re: [PHP] php accelorator

2010-06-02 Thread Dan Joseph
Cool, thanks for the tips, I am going to check them out. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

[PHP] php accelorator

2010-06-01 Thread Dan Joseph
Hi, Are any of you using any of the php accelorators such as Zend, Ioncube, or any others? Any idea which is the "best"? -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.faceb

Re: [PHP] Another NetBeans Question

2010-06-01 Thread Dan Joseph
other quote. > > > I can't find where to turn it off either, but I did notice when you type something like that, when you type in the content in the " ", when you type the last ", it overwrites the end quote, so you don't end up with two. phped works this way too. Hel

Re: [PHP] Looking for PHP/Solr developer

2010-05-25 Thread Dan Joseph
oes anyone have any ideas where I could go to find a PHP developer with > Solr experience? Or is anyone here interested? > > Sorry if this is the wrong place to post this, but I'm not sure what the > appropriate place is. > > Thanks! > Posting here is fine, also try

Re: [PHP] simplexml choking on apparently valid XML

2010-05-06 Thread Dan Joseph
rser. I will have to check my code when I get back to the office in the AM and I'll let you know what it was if you haven't figured it out by then. But that might get you started in fixing it. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.

Re: [PHP] “五-连-贯”股|权-激|励-法

2010-05-06 Thread Dan Joseph
2010/5/6 Ashley Sheridan > [/snip] > > If only I could speak Chinese and was gullible I'd love to take them up > on the offer for whatever it is. > > > > I wonder if we're missing out on the billion $ prize... -- -Dan Joseph www.canishosting.com - Unlimited

Re: [PHP] Can't find my error

2010-05-05 Thread Dan Joseph
On Wed, May 5, 2010 at 1:06 PM, David McGlone wrote: > On Wednesday 05 May 2010 12:59:07 Dan Joseph wrote: > > On Wed, May 5, 2010 at 12:55 PM, David McGlone > wrote: > > > 26. if(isset($_GET['ProductID'])) > > > 27. $this-&g

Re: [PHP] Can't find my error

2010-05-05 Thread Dan Joseph
On Wed, May 5, 2010 at 12:55 PM, David McGlone wrote: > 26. if(isset($_GET['ProductID'])) > 27. $this->mSelectedProduct = (init)$_GET['ProductID']; > > You've got (init) instead of (int). Its always those little char

Re: [PHP] What's your game? (X-PHP)

2010-04-27 Thread Dan Joseph
forward to how much time I'll sink into it :) > > -- > Viktor > http://programming-guides.com > I am amazed at how long Starcraft has lasted, and how popular it still is. Is the MMORPG version Starcraft 2? Or is that yet another one? -- -Dan Joseph www.canishosting.com - U

Re: [PHP] Contact form....

2010-04-26 Thread Dan Joseph
Looks like you might have errors turned off. I see: $subject =$_POST"subject"; Which should be: $subject =$_POST["subject"]; $_POST is an array, and that's how you access those elements. check to see if errors are on, if not, you'll see errors in t

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
hey get Starcraft going they'll get this out. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
On Mon, Apr 26, 2010 at 12:36 PM, Ashley Sheridan wrote: > > > Diablo 3 is out soon... > > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > > oh cool, I did not realize.. have they set a release date yet? I didn't see one on gamestop.com...

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
y Ice Age and Cars but crash a lot and end up > shouting at each other. > Ice Age was a fine game! I played that one a few years ago. I'd like to see another Diablo styled game come out in the modern setting. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.

Re: [PHP] What's your game? (X-PHP)

2010-04-26 Thread Dan Joseph
On Sun, Apr 25, 2010 at 9:16 AM, tedd wrote: > My gamer tag is "special tedd" > > Hey Tedd, I'm 'jakmo' on Live. I'll have to give you an add next time I jump on. I've been playing Dragon Age and Lost Odyssey. Both are great. -- -Dan Joseph ww

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Dan Joseph
. We were building games with it, which was really a no brainer to use flash. I didn't want to get into Java. I'll have to try it under wine sometime. I didn't even think about that. But then again, my work machine is windows anyway. -- -Dan Joseph www.canishosting.com - Un

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Dan Joseph
r windows, such as Flash development. Plus my PhpED license is for the Windows client, so I feel kind of trapped there :) -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Dan Joseph
n't. So you really just have to adjust to their requirements and needs. You're right tho, they all have their advantages. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://ww

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
On Thu, Apr 22, 2010 at 12:16 PM, Richard Quadling wrote: > On 22 April 2010 14:48, Dan Joseph wrote: > This seems to be working ... > > function findBestFactors($Value, $GroupSize, array &$Factors = null) >{ >$Factors = array(); >foreach(

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
'm going to try and wake up the algebra side of my brain that hasn't been used in years and see if I can digest all this. For the 2, 3, and 7, that is based solely on the last number being divisible by a prime number? Joao, Jason, thanks for the code. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Math Question....

2010-04-22 Thread Dan Joseph
if it was a remainder of only 1 or 2, there would be an issue. Which is where I come to looking for a the right method to break it equally. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.fac

[PHP] Math Question....

2010-04-22 Thread Dan Joseph
1,252,398 -- divide into equal groups with only 30 items per group max. Can anyone guide me towards an algorithm or formula name to solve this? PHP code or Math stuff is fine. Either way... Thanks... -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 8:38 PM, David McGlone wrote: > > Are we gonna have to have a discussion on the use of "threading"? LOL > > > We just might. Personally, I use it to sow holes in the toe of my socks. -- -Dan Joseph www.canishosting.com - Unlimited Hosting

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
w.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > lol.. I didn't see your email where you said not to ask -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order h

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
ked ok. http://us3.php.net/manual/en/function.pcntl-fork.php -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-21 Thread Dan Joseph
My goodness, are you people still going on about all this? LOL... let it go... it is what it is. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.fa

Re: [PHP] CD, DVD, and Blu-Ray (Not PHP)

2010-04-21 Thread Dan Joseph
Blu-Ray can hold more than DVD and DVD holds more than CD, isn't that right? > > Speaking purely data, yessir. That's your difference. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Dan Joseph
Cracks me up every time. When you hit reply all, just take out all the other addresses and leave the list one in there. The list was setup like this years ago on purpose, and they've stated in the past they don't want to change it.. -- -Dan Joseph www.canishosting.com - Unlimited Hosti

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-20 Thread Dan Joseph
my questions if i don't find any answer already on this list. > > Hi Nick, Welcome to the community! -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/can

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Dan Joseph
Its good to see we're all playing nice today! -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Date Math

2010-04-20 Thread Dan Joseph
; might be a simple one or two line option. > > check out: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.fa

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Dan Joseph
On Tue, Apr 13, 2010 at 1:46 PM, Robert Cummings wrote: > > Toilets flush themselves so that we don't need to touch what someone else > touched... very likely after *cough* wiping up. > > They have a cure for having to life a finger and wipe also but I won't cont

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Dan Joseph
e toilets that flush themselves now. > WTF happened to "grown up" being equal to taking responsibility > for things? > I think you've found the answer to the great question of why people don't take responsibility anymore... it all started with the toilet! -- -Dan Josep

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Dan Joseph
On Tue, Apr 13, 2010 at 12:40 PM, Robert Cummings wrote > I had a pair-a-dimes one time. Unfortunately I was a nickel short of a > quarter to put in the slot. > > But the question is... were they outside the box? -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Dan Joseph
come back. I kinda like that word Paradigm. Rolls off the tongue nicely. I'm going to use it 3 times today before I leave the office. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http:/

Re: [PHP] Determining Top # from MySQL

2010-04-10 Thread Dan Joseph
Eh, he's off topic, but we've talked plenty SQL on here before... SELECT num, COUNT( num ) FROM table GROUP BY num; I don't have a myqsl server to test that, but should do it. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code &qu

Re: [PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Dan Joseph
On Fri, Apr 9, 2010 at 3:25 PM, Andrew Ballard wrote: > Try this: > > $select = $table->select()->where( "home_team_id = ?", $home_team_id ) > ->orWhere( "away_team_id = ?", > $away_team_id ); > > Perfect..

[PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Dan Joseph
eam_id = ?", $home_team_id ) ->where( "away_team_id = ?", $away_team_id ); This translates the where's to "home_team_id = 12 AND away_team_id = 15"... What I'd like to have is "home_team_id = 12 OR away_team_id = 15". Is this possible? Or wou

Re: [PHP] another "useless" message.

2010-04-09 Thread Dan Joseph
he list over the years. Its a natural reaction. You may want to put that kind of thing in your signature also. Rather than making announcements that bother people, when you participate, your message will go out. Although, don't make it 100 lines long... -- -Dan Joseph www.canishostin

Re: [PHP] contant /

2010-04-08 Thread Dan Joseph
sumed > 'account_type' > f_put_cookie($auth[user_name],$auth[user_email],$auth[account_type],$auth[co mpany_name]); That's your culprit. You'll need quotes around those. $auth["username"], "user_email", "account_type", "company_name" Othe

Re: [PHP] Little php code - error

2010-04-08 Thread Dan Joseph
mation... Its the else line. else doesn't take a condition after it. it should just be "else {". -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Little php code - error

2010-04-08 Thread Dan Joseph
ee. > > Its your if's, elseif's, else's. You have "and", change that to &&. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] stat(), NFS shares and local files timeout

2010-04-07 Thread Dan Joseph
. I prefer to go > another way. anyone has a clue ? > What if you simply set the script to time out? Is it ignoring that too? set_time_limit( seconds ) -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] SimpleXMLElement occasionally fails to parse gb2312 or big5 feeds

2010-04-06 Thread Dan Joseph
t misses a lot of things when it comes to complex, or abnormal XML. Abnormal being what you're describing and whatnot. I don't really have a solid answer for you (Just noticed no one responded), but I think you're running into what I was... Its just built to be Simple,

Re: [PHP] blog design issue...

2010-03-20 Thread Dan McCullough
Table is the way to go for all the reasons that Rob mentioned. > > This is going to be a small blog to start, but I guess I should always be >> looking at performance, security, & maintainability right? >> > > Good way to start is start small and build a strong base around a good database, good

[PHP] PHP to answer HEAD requests

2009-12-18 Thread Dan Field
Is it possible to use PHP to answer HEAD http requests? Is it as simple as doing something like: header('blah') exit; I'd expect PHP to produce a full page rather than just a header though. -- Dan FieldFfôn/Tel. +44 1970 632 582 Peirian

Re: [PHP] Change styling depending on var value

2009-11-20 Thread Dan McCullough
To add to what Ashley said about $row[3], remember that when you are returning from the db the counter for fields will start at 0 not 1, so if its the 3rd field that will be $row[2]. You might also want to do switch rather then elseif but thats always a good debate. On Fri, Nov 20, 2009 at 3:16

[PHP] sessions and email

2009-11-12 Thread Dan Shirah
All, I am using sessions for my application to verify a user has logged in: // Verify the user is logged in. if (!isset($_SESSION['basic_is_logged_in']) || $_SESSION['basic_is_logged_in'] !== true) { // If not logged in, redirect to the login page. header('Location: login.php'); e

Re: [PHP] What PHP version are you using?

2009-10-29 Thread Dan McCullough
Like Israel it depends on the client I am doing several projects for a client now that the hosting company is still using 4.0.6 - and its been a headache. Most of the personal projects and many of my other clients are on 5.1 or higher. On Thu, Oct 29, 2009 at 12:22 PM, Tom Barrett wrote: > 2009

Re: [PHP] Web Service Server in PHP

2009-10-21 Thread Dan McCullough
I believe NuSoap is still available source: http://sourceforge.net/projects/nusoap/ http://greghuet.blogspot.com/2007/12/soap-php5-and-nusoapphp.html You can also look here at PHPs SOAP functions http://php.net/manual/en/refs.webservice.php On Wed, Oct 21, 2009 at 9:26 PM, Daniel Echalar wrote:

Re: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Dan Shirah
> > if it can take only numeric values u can use is_numeric() > > also i suggest that you not to use nulls in dbs. instead, use "not null" > and "default value" property. Its more simple and more effective for both > managing your database and coding your program. > > It's a CHAR (60) field. This

Re: [PHP] NULLS vs Empty result in PHP

2009-09-23 Thread Dan Shirah
> > From reading the other responses to this thread, it seems that you want > to > "skip" or "exclude" rows in the results where my_column === null. > > If this is correct, why not do it in the SELECT statement to begin with? > > $my_query = "SELECT my_column FROM my_database WHERE my_column IS NO

Re: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Dan Shirah
> > using empty() is ´the right way to check a var for NULL or "" > > however, it also depends what MySQL has got as setuo definition for empty > fields. on textfields u can define an epmty string as default. > > So say these are the first three results of my query: "some text" //The column actual

[PHP] NULLS vs Empty result in PHP

2009-09-23 Thread Dan Shirah
Morning! Just a quick question. Say I have a column in my database that could contain NULLS, empty spaces, or an actual value. If I do: $my_query = "SELECT my_column FROM my_database WHERE 1 = 1"; $my_result = ifx_query($my_query, $connect_id); while($row = ifx_fetch_row($my_result)) { $my_c

Re: [PHP] Date +30 comparison

2009-09-01 Thread Dan Shirah
e($month),date($day)+30,date($year)); Now I put it back into a date format. $future_date = date('m/d/Y',$future_date); echo $future_date; Today is September 1st and the value of $future_date is October 1st because there are 30 days in Spetember. Now you can compare your dates. if ($nexteval > $future_date) { echo "This date has already passed"; } else { *do some processing* } Hope that helps. Dan

Re: [PHP] File Open Prompt?

2009-08-28 Thread Dan Shirah
> > You will need to add some headers to the page to popup the prompt, at least > with > these. > > $filename = 'somefile.tif'; > $filesize = filesize($filename); > > header('Content-Type: application/force-download'); > header('Content-disposition: attachement; filename=' . $filename); > header('C

[PHP] File Open Prompt?

2009-08-28 Thread Dan Shirah
le: if ($page != "" || $page != " ") { exec("xcopy ".$page." ".$topage.""); } $orig_file = $topage."\\".$objectid.".0D9"; //echo $orig_file; $new_file = $topage."\\".$objectid.".tif"; //echo $new_file; rename($orig_file,$new_file); Any ideas on how to make the browser give the download prompt for $new_file? Thanks, Dan

  1   2   3   4   5   6   7   8   9   10   >