
trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
how to schedule a php script to run automatically.
trq replied to sanjay_zed's topic in PHP Coding Help
Of course, PHP is a programming language. -
Code?
-
Quite easy. Say you want a random number that must have a length of 5. Given that information, we know that it must be between 10000 and 99999, so: mt_rand(10000, 99999); Done.
-
Undefined Variable!! New to PHP! Could someone help please?
trq replied to deeperDATA's topic in PHP Coding Help
You are trying to append to the variable $test_complete, however, the first time you try and do this, it wouldn't have been defined yet. You can fix this by defining it before you try to append to it. eg; $test_complete = ''; -
/usr/bin/libexec is not a directory where php files would normally be stored. What documentation are you reading that says it should be stored there and what exactly does this php file do? Is it meant to be requested by a browser?
-
Why exactly are you going about things so awkwardly? function get_specific_att($att,$lang) { echo $this->$att['L' . $lang]; } Should do what you want. It's a terrible way of writing code though, on many, many levels.
-
If the property really is defined you shouldn't be getting the error you are getting. When asking a question, it helps to post your actual code. As for why I consider your code to be ugly. It's the caps. It is very unconventional and if I had to look at code like that all day, I would quit my job, seriously.
-
Once your code has done the update, you need to redirect back to this same page in order for the changes to appear to take effect.
-
Judging by the code provided, the property $BRANCH_NAME is not defined. ps: What's with all the caps? That's some of the ugliest code Ive seen.
-
This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=358978.0
-
This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=359016.0
-
This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=358972.0
-
My main motivation for working in vim is the fact that we do allot of remote stuff via ssh on client machines at work. So, now I can use the same editor under all circumstances. Even when I work from home, it's so much easier to just connect to the vps, ssh in and open vim in a terminal. I don;t have to worry about the overhead of a Desktop.
-
Have you tried an IDE? I used to think a simple text editor was all I needed too, but then I tried an IDE. The only time I use a regular text editor now is just for real quick edits, or stuff that I don't want to make into a project in my IDE. IDE's tend to get in my way. All I use is vim with a few plugins: https://github.com/tpope/vim-pathogen https://github.com/tpope/vim-fugitive https://github.com/tpope/vim-unimpaired https://github.com/vim-scripts/taglist.vim https://github.com/vim-scripts/sessionman.vim https://github.com/vim-scripts/bufexplorer.zip https://github.com/tpope/vim-surround https://github.com/vim-scripts/FuzzyFinder
-
I'm a massive vim fan so don't really have much of an opinion when it comes to IDE's.
-
That's because MS sux balls.
-
There is no definitive answer, just opinion. Often the one that is well suited to your style of development and specific project requirements will be the best one to use.
-
I used to use dynamically loading js, but it ended up being allot more efficient to put all js into one file and the minify it. Its the actual http requests to multiple files that hurts more than size. Of course it would also depend on what sizes where talking about. Loading a 50k-80k file just to use one function etc etc.
-
Have you checked out some of the editors mentioned in this thread?
-
This board is here for questions directly relating to already existing Third Party code. It is NOT a code repository or the place to post requests looking for specific scripts. If you can't find the script you are looking for on Google, you either don't know how to use Google or the specific script does not exist. DO NOT request help with searching.
-
I'm not sure how that would be achieved through php. The rule is that you use a before words that start with a consonant sound and an before words that start with a vowel sound.
-
You'll need to be more descriptive. Your example makes little sense to me.
-
Netbeans 6.8 does seem even better than 6.7. Many improvement + it does seem more responsive.