[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] A Good OOP Tutorial/Read?

2013-05-21 Thread Dan Joseph
ral Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -Dan Joseph http://www.danjoseph.me http://www.dansrollingbbq.com http://www.youtube.com/DansRollingBBQ

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

2013-05-16 Thread Dan Joseph
g to an > interface, not to the database. Swap out your data store with one that is > used just for testing. Etc. > > That's what interfaces give you. Loose coupling, and the ability to > divide-and-conquer... and even let someone else solve problems for you. :-) > > --Larry Garfield > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -Dan Joseph http://www.danjoseph.me http://www.dansrollingbbq.com http://www.youtube.com/DansRollingBBQ

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

2013-05-16 Thread Dan Joseph
, May 16, 2013 at 11:01 AM, Francisco C Soares wrote: > On 05/16/2013 11:55 AM, Dan Joseph wrote: > > 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

[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: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Joseph Moniz
http://php.net/manual/en/book.tidy.php - Joseph Moniz (510) 509-0775 | @josephmoniz <https://twitter.com/josephmoniz> | GitHub<https://github.com/JosephMoniz> | LinkedIn <http://www.linkedin.com/pub/joseph-moniz/13/949/b54/> | Blog<http://josephmoniz.github.io/

Re: [PHP] cyberweaponry

2012-05-31 Thread Joseph Moniz
There was the Never Ever No Sanity worm ( http://news.cnet.com/Net-worm-using-Google-to-spread/2100-7349_3-5499725.html ). One variant of it was written in php the other in perl. - Joseph Moniz On Thu, May 31, 2012 at 10:21 AM, Tedd Sperling wrote: > Hi gang: > > This is a little

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

2012-04-03 Thread Joseph Moniz
*bad link in last post http://luvit.io/ -Joseph Moniz On Tue, Apr 3, 2012 at 12:16 PM, Joseph Moniz wrote: > On Fri, Mar 30, 2012 at 5:56 PM, German Geek wrote: >> Maybe stupid question, but is node.php really necessary? If you can program >> PHP and it performs better th

Re: [PHP] Node.PHP

2012-04-03 Thread Joseph Moniz
call it, not surprisingly, hip-hop-virtual-machine ( http://www.facebook.com/note.php?note_id=10150415177928920 ) and it already doing almost no optimizations is closer to performance of compiled PHP via hiphop then it is to interpreted PHP via the de facto interpreter. - Joseph Moniz

[PHP] Node.PHP

2012-03-21 Thread Joseph Moniz
<--> C barrier seems to be a much lighter operation then crossing the V8 <--> C++ barrier. Any help or feedback will be greatly appreciated. The projects source code can be found here: https://github.com/JosephMoniz/node.php - Joseph Moniz -- PHP General Mailing List (http://www

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

[PHP] PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Joseph Adenuga
information on the internet with more configuration info. I don’t know what else to do. Please I’m very new to PHP codeand Apache environment. I need your help. I don’t know what I’m doing wrong and what to do. Please please help. Joseph

[PHP] PHP Version: 5.2.5.

2011-10-17 Thread Joseph Adenuga
Operating System: Window XP PHP Version: 5.2.5. with Apache 2.2.8 My Firefox browser returns (Output) the same php script code I inserted in Notepad:  Hello Web!"; ?>   Please, what am I doing wrong?

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] 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
/ <http://www.website.com/index/user/1>1 >> >> >> <http://www.website.com/index/user/1>and then you can use the same >> getParam >> method to grab the value and carry out further processing. >> >> Hope this helps. >> >> Cheers >&g

[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] New to PHP and struggling with the basics

2010-10-04 Thread Abah Joseph
Your directory configuration should look like this Order Deny,Allow Allow from all Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: #

[PHP] Handling multiple form fields

2010-09-10 Thread Abah Joseph
Please i want to seek your opinion on how to handle large form fields, i have a table that contain 30 fields and i`m wondering if there is a better way to automatically create the html form and validate it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] PHP Modular application

2010-09-06 Thread Abah Joseph
I appreciate you all. the php community is a wonderful community. i`m developing an application that i need to support plugin for additional features, i have used joomla and prestashop. i love the way module interface on prestashop and i have been looking into the classes but i did not understand

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
ld I just need to build them all into a single where() manually? -- -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] 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
rwise, it thinks they are constants that haven't been defined: php.net/define -- -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
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] Division by 0

2010-03-10 Thread Joseph Thayne
Looks to me like you are closing your form before you put anything in it. Therefore, the loan_amount is not set making the value 0. Follow the math, and you are dividing by 1-1. Change this line: to: and you should be good to go. Joseph Gary wrote: I have a mortgage amortization

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Joseph Thayne
I do not know if the question has been answered, but how are you opening the session? Are you using session_start() or are you using session_register()? Rick Dwyer wrote: On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: How is $item_id created? You've not shown that in your PHP script ex

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Joseph Thayne
Richard wrote: It's a wise choice to go with $_POST, unless your form is a GET form, in which case use $_GET. $_REQUEST has the potential to open your script(s) up to security issues. I am not sure what the security issues are you are referring to as the $_REQUEST superglobal contains both

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Joseph Thayne
According to the PHP manual using the same expression, "Never cast an unknown fraction to integer, as this can sometimes lead to unexpected results". My guess is that since it is an expression of floating points, that the result is not quite 8 (for whatever reason). Therefore, it is rounded t

RE: [PHP] SQL insert () values (),(),(); how to get auto_increments properly?

2010-02-13 Thread Joseph Thayne
In order to make this as "sql server independent" as possible, the first thing you need to do is not use extended inserts as that is a MySQL capability. If you are insistent on using the extended inserts, then look at the mysql_info() function. That will return the number of rows inserted, etc. o

RE: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread Joseph Thayne
e work for you and you can then focus on other things such as data integrity and general processing speed? Joseph -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Thursday, February 11, 2010 9:15 PM To: php-general@lists.php.net Subject: Re: [PHP] Mysql state

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread Joseph Thayne
Yeah, I am a lot more descriptive now. I ran into it quite a bit when I was first starting out. James McLean wrote: On Fri, Feb 12, 2010 at 9:31 AM, Joseph Thayne wrote: As for the backticks, they are required because of MySQL, not because of phpMyAdmin. The issue was not that

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread Joseph Thayne
Fri, Feb 12, 2010 at 8:27 AM, Joseph Thayne wrote: Actually, the syntax is just fine. I personally would prefer it the way you mention, but there actually is nothing wrong with the syntax. The ,'$date1'"." is not correct syntax, change it to ,'".$date.&quo

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread Joseph Thayne
Actually, the syntax is just fine. I personally would prefer it the way you mention, but there actually is nothing wrong with the syntax. The ,'$date1'"." is not correct syntax, change it to ,'".$date."' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread Joseph Thayne
tables and fields with the same name as functions. If the tick marks are not there, then it assumes you mean to try using the function. In your case, hour is a function in mysql. I would assume that the reason it works in phpmyadmin is that it filters the query somehow to add the tick marks in

Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Joseph Thayne
check to see if submit or submit_x is set. Joseph Ashley Sheridan wrote: On Fri, 2010-02-05 at 14:33 -0600, Joseph Thayne wrote: This is actually a javascript issue rather than a PHP issue. What is happening is that the action of the form is what is being submitted. The action never changes. What

Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Joseph Thayne
anent_queries'; document.display_data.submit(); } Example submit button: onClick="javascript:retrieveAllPerm();" >Revise query Joseph Mary Anderson wrote: Hi, I am writing code in PHP which generates HTML script. My app is fairly complex. Twice in the development of the

Re: [PHP] MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Joseph Thayne
That is incorrect. What will happen is as follows: 1. The value will be incremented by 1 causing the value to be greater than the maximum integer allowed. 2. MySQL will see this as a problem and "truncate" it to the closest value. 3. MySQL will then try and insert the new row with the updat

Re: [PHP] MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Joseph Thayne
It will continue to use the max number which of course will cause an error. Joseph Parham Doustdar wrote: Hello there, A friend called me today and was wondering what happens if the ID colomn of an MYSQL database, set to autoinc reaches the int limit. Will it return and begin choosing the

Re: [PHP] Cookies & sessions

2010-01-20 Thread Joseph Thayne
eaders are sent either by the header() function or simply using echo or print(). Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Open source project management tool - PHP

2009-12-17 Thread Joseph Masoud
On 17 Dec 2009, at 10:24, "Angelo Zanetti" wrote: Hi guys I would like to know what open source project management tools you use for your projects. We are looking at installing one that is PHP based and is easy to use. We have found: http://www.projectpier.org/ and http://trac.edgewa

Re: [PHP] Best ajax library

2009-12-15 Thread Joseph Masoud
On 15 Dec 2009, at 08:50, Ali Asghar Toraby Parizy > wrote: Which one is more active than others? I mean which project extends faster and better, in future? On Tue, Dec 15, 2009 at 1:37 AM, Philip Thompson > wrote: On Dec 14, 2009, at 4:27 AM, Ali Asghar Toraby Parizy wrote: Hi I think the b

Re: [PHP] MySQL Appeal from Monty

2009-12-14 Thread Joseph Masoud
On 14 Dec 2009, at 22:01, Ashley Sheridan wrote: On Mon, 2009-12-14 at 15:59 -0600, Philip Thompson wrote: On Dec 14, 2009, at 12:51 AM, Lester Caine wrote: Lenin wrote: You might also like this: Come on Monty - Lukas Smith http://bit.ly/5lmwwD I've been watching some of this debate wi

Re: [PHP] Backup to local drive

2009-12-11 Thread Joseph Thayne
uot;. You can always include instructions in either an on-screen format or a README file (or both). As I have been thinking about it, you are going to need to do a zip file so that the user only has to download a single file. Joseph Ashley Sheridan wrote: On Fri, 2009-12-11 at 15:04 -0

Re: [PHP] move_uploaded_file

2009-12-11 Thread Joseph Thayne
is a fundamental difference between absolute and relative paths. Absolute: begins at "/" in Linux operating systems and "C:\" in Windows OS Relative: begins wherever the running script is located in the file system. Joseph Roberto wrote: HI, Premise 1: echo exec("pwd&qu

Re: [PHP] Backup to local drive

2009-12-11 Thread Joseph Thayne
If you are wanting to save the information as a PDF (formatted the same as the HTML page), check out tcpdf at www.tcpdf.org. It is fairly simple to implement and can interpret an HTML page causing it to be saved as PDF. Joseph Ben Miller wrote: Hello - I have an application I'm bui

Re: [PHP] move_uploaded_file

2009-12-11 Thread Joseph Thayne
So basically, it all depends on how you define your path. Joseph Roberto wrote: Am I just drunk or blind or the documentation is simply wrong? >From the official doc (http://uk2.php.net/manual/en/function.move-uploaded-file.php): $error) { if ($error == UPLOAD_ERR_OK) { $tmp_n

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Joseph Thayne
files. Your performance will be much better than if you have to request the page from another server every time. You could run this script every 15-30 minutes depending on your needs via a cron job. Joseph Ashley Sheridan wrote: Hi, I need to replicate a site on another domain, and in this case

Re: [PHP] Browsing PHP documentation from Emacs

2009-12-09 Thread Joseph Thayne
Check the following link for help on integrating with Vim: http://vim.wikia.com/wiki/PHP_manual_in_Vim_help_format Kim Emax wrote: Hello Roberto wrote on 2009-12-09 17:08: Hi all, I've just written a small tool for Emacs that will allow to browse PHP documentation directly from within Emacs

Re: [PHP] Re: What method is best for generating thumbnails in PHP from PDF's?

2009-11-12 Thread Joseph Masoud
On 12/11/09 17:44, O. Lavell wrote: Chris Payne wrote: Hi Everyone, I have been asked to create thumbnails from the first page of a PDF document on the fly with PHP, I have looked online but am confused as there doesn't seem 1 simple solution. What would you all recommend as an easy way to d

Re: [PHP] Wrong Date

2009-10-16 Thread Joseph Masoud
Darvin Denmian wrote: Thanks for your reply - I'm running Red Hat Linux (5.3) - The system timezone is set to America/Sao_Paulo I'm running a stand-alone php script (crontab) , and I don't know how PHP output this wrong hour. The output of command "php -i " shows: Default timezone => Amer

  1   2   3   4   5   6   7   8   9   >