trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
How do we decrypt password which are encrypted?
trq replied to genzedu777's topic in PHP Coding Help
One is secure (hash), the other isn't. -
An infinite loop is definitely not a good option. this would be much better done by having the script scheduled to execute every minute (or whatever). This can be done via either Cron on Linux or Scedual Task on Windows.
-
You should be working within a 'dev' environment and not on the live code base. I don't even have access to our live code base at work, couldn't edit it if I wanted to.
-
Not likely. I'm well and truly moved on from that application now. Besides, I wouldn't be able to invest the time at the moment, there's not allot of documentation around for ZF2 yet is there? I'm not too keen to work from the api docs & source code alone.
-
This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=319793.0
-
So you are stuck where?
-
I'll admit that this was only my 2nd or 3rd app built on top of ZF, and it was VERY large. We had caching in place and I spent quite a bit of time going through all the performance related information I could find regarding Zend apps. But yeah, in the end we had to drop it. I did however end up using bits and pieces of it, just not any of the routing, or controller & view stuff. We (me) wrote a small MVC (nothing else) that took care of that part.
-
Which is better reloading the whole page or reloading division with ajax?
trq replied to colap's topic in PHP Coding Help
Yeah, there are various client side MVC (models are server side - requested via Ajax) frameworks around which allow urls to change while still using Ajax to load the page. I'm not convinced it's the right approach, not for all occasions anyway. -
This can be done but its not as simple as one might think. You need to know what mail server your using and how exactly it is configured (does it use virtual mail boxes stored within a database?) The first thing I would do is ask your host if this is possible. It is likely (if your on a shared host) that you hosting provider will not give you access to such a database and if that is the case you will need to write a script that will actually do this through your control panel (this will not be pretty). If you have decent hosting you should be able to do this directly.
-
Need help with adding fields to a form using add another button....
trq replied to Sparrz's topic in Javascript Help
Where exactly are you stuck? -
Can't help much without code, but in general, you should be fine. Your uploading files outside of your web root.
-
Which is better reloading the whole page or reloading division with ajax?
trq replied to colap's topic in PHP Coding Help
Reloading a part of a page via Ajax will not change the url. Hence, users of your site can no longer bookmark the pages they like. -
Yes, that comma after the 'mm/dd/yy' is a syntax error. Most browsers (stupidly IMO) will let this slide, IE on most occasions (rightfully so) won't. So yeah, this is one occasion where it is actually IE doing the right thing and all other browsers doing it wrong.
-
Obviously display_errors is off and/or the error_reporting level is set far too low on your work server for development purposes. The code itself should be fixed. It's very inefficient to have php generating errors, even if they are hidden.
-
This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=319758.0
-
Did you not read this: http://www.phpfreaks.com/forums/php-applications/this-board-is-not-a-code-repository!/ ?
-
Don't use regular variables for this either. Use constants (see define). Variables are too easily overwritten and shouldn't be trusted. Globals in general should be avoided as much as possible.
-
Performance has been my only issue with Zend. To the point where we can't even use it at work (IIS Servers - i'm not sure if that is part of the problem) anymore and haven't for 12 months. We ended up having to completely rewrite an application built on top of Zend because it simply couldn't perform well enough. Now my boss is pretty skeptical of frameworks in general.
-
Syntax question, formatting date from a sql recordset...
trq replied to shamwowy's topic in PHP Coding Help
DATE_FORMAT is a mysql function so you don't need to jump intop a raw string. You should aslo give it an alias so you can access it easily later in your php code. $query = "SELECT DATE_FORMAT(comment_createdate, '%W %M %Y') as createddate , comment_text from comment"; Then you can use $row['createddate'] in your loop. -
This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=319743.0
-
PEAR NOT INSTALLED TO COMMAND LINE PATH
trq replied to dcunited001's topic in PHP Installation and Configuration
It's not difficult. You just need a basic understanding of how all the components work together and some patience. -
PEAR NOT INSTALLED TO COMMAND LINE PATH
trq replied to dcunited001's topic in PHP Installation and Configuration
What steps did you take to do the install? I'm not a Windows (or mac) user, but Iv'e heard nothing but bad reports about the install package. You should install from the zip package. Ive done this numerous times at work without issue. Also, (I assume this was a simple type but) you mean the bat script right? Bash scripts are for Bash shells eg: Linux & Mac. Microsoft have absolutely nothing to do with how PHP is packaged.