
trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
That is likely how they do it. Just with a little mod_rewrite in the mix.
-
upload_url: "upload-file.php?album_id=<?php echo $album_id; ?>",
-
You might need to supply the full path to mysqldump. eg; /usr/local/bin/mysqldump nameofdb | gzip > nameofdb.bkp.sql.gz You will likely also need to pass it a user and password.
-
Is there a particular reason you need php to do this? It can be done simply enough from the command line. mysqldump nameofdb | gzip > nameofdb.bkp.sql.gz If you need it to be done via php you can use exec to execute this same command.
-
Not Ajax specifically, but it's better done client side with JavaScript.
-
Of course it's possible, have you tried it? <?php $image = "image_name.jpg"; list($width, $height, $type, $attr) = getimagesize($image);
-
I assume you have an email server installed and configured?
-
I wouldn't say easy no, but doable given the time.
-
Has anyone tried other web frameworks other than in php
trq replied to cs.punk's topic in Miscellaneous
Python is an awesome language. If you have the time to invest, Django is meant to be a great framework as well. Ruby (and Rails) are also really popular at the moment and there is a massive community behind it. Have you looked at node.js ? It's a bit different but getting more and more popular. Not exactly something I would build an entire site with though. You might also take a look at some of the client side frameworks. While jQuery is still really popular there are better (IMO) frameworks around. Backbone.js being one I would like to spend more time with. -
This topic has been moved to Linux. http://forums.phpfreaks.com/index.php?topic=361990.0
-
Does this script have <?php ?> tags? Your also not telling cron to use php to execute the script. This: /home/myname/cronjobs/runthis.php Needs to be something like: /path/to/php /home/myname/cronjobs/runthis.php
-
Signing in with FB/Twitter/Google (+ more help with my project)
trq replied to Grandioso's topic in Applications
Yes it can be done with Wordpress. It's just php. Each of the sites you mentioned have documentation on the subject, have you read them? -
Getting inner join result data when column names are the same
trq replied to groupbrand's topic in MySQL Help
Use an alias. eg; SELECT tbl1.col AS foo, tbl2.col AS bar -
And what exactly do you want to happen with the id parameter?
-
Another way would be: mysql_query("SELECT * FROM {$prefix}tablename") but I don't see that it really matters.
-
If you want to persist a login for that long use cookies. Sessions are not meant to outlive the current session.
-
This resonates with me more than anything else. http://blog.sanctum.geek.nz/series/unix-as-ide/
-
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?