Jump to content

whansen02

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by whansen02

  1. Well the easiest way is if your web host setup has PHPMyAdmin installed and if you go in there - you can select the database to work with, select "SQL" at the top/middle of the interface and it'll give you a textarea where you can paste that code in and run it.
  2. Personally I wouldn't use a framework but that's "my opinion". I would use raw php. That said - have a look around and use what works for you. There's quite a bit involved in what you're considering building so a framework could be advantageous - on the other hand I find they get over complicated and inflexible on the silliest little additions you want to make to an existing app sometimes. Each framework is a unique tool that requires time to learn. So unless you get really familiar with one framework and become a wiz at it or find one that works really well for you I'd go with raw php.
  3. Well what's best is a very subjective and potentially biased question. Reality is in order to say what's best we would need more information about what you're developing and what you're expectations are of what you want the software to do for you. Wordpress is by far the simplest of those three and relatively flexible. I would start there, try it and see if it meets your needs. Joomla is "robust" but unfortunately that carries over into it's bulk and unwieldiness. There's a fair learning curve getting joomla looking how you want it to and publishing entries. I have less experience with Drupal but it's still quite over complicated for smaller tasks. Drupal is more of a php programmers tool while Wordpress and Joomla attempt to be for the average user to varying degrees of success. I'm not a big wordpress fan but it IS the simplest and that's where I would recommend starting.
  4. if it was me doing this with that code, I would set $finalitems[$key] = $value; or something to that affect within your foreach loop. Lesson being behind the scenes there are old school things called copy constructors that take care of how to copy different variables, int's, strings, arrays, objects - objects in languages like C++ use custom copy constructors written by you to make sure the objects elements are copied to another array instance the way you expect. PHP is C++ based but tries to hide some of those elements from plain site so you don't have to worry about them.. sometimes for the better, sometimes for worse.
  5. http://www.code2design.com/tutorial/sending_variables_from_flash_to_php_and_back This should help if you haven't had time to figure it out already.
  6. whansen02

    Object tags

    It seems you've gotten it working now - at least in firefox and ie8. Didn't try it in chrome.
  7. If you're talking about mixers/graphic equalizers - Best place to start is to look for plugins with the recording software you're using. Or look on google for a free sound mixer for windows 7. But if you mean just the main windows volume control, the volume control should have an option to select an input device (if one is connected to your system).
  8. First thing I'd check is what version of Mysql the new host is running. I just had a situation where an app was written on a server with mysql 5 and later moved to a server with mysql 4... while the basics remain the same there were same quirks. Do you have error reporting on? You don't get the or die message you've created? You can put an or die function after your query too. $result = mysql_query($query, $con) or die("\nQuery was $query\n"); Also I assume $search is coming from using input. You'll want to use the function mysql_real_escape_string($variable) on either $query or $search - best practice to use it on $query - easier if there's more than one input variable in your query, you only end up calling the escape function once. This "helps" to prevent elementary mysql injection attacks. Post more details if that doesn't help.
  9. What kind of development have you done so far? Where is this app going that it would need to initialize the database? Most webservers or workstations that require a database like mysql will have the database running in the background on boot. You can find code to initialize your db connection via php on tizag dot com - optional whether your store the db user/pass etc in a config file or not If you do use an external file say config.php - when you include it best not to use include(config.php) - better to use require(config.php) for security reasons. If your config.php file is located in another directory and you have to reference it require(/usr/home/config.php) (bad example) you might think oh I should put the path in a variable... $config_path = '/usr/home/'; DON'T - if you're on a web server that (god forbid) has an older version of php or happens to have register globals enabled that suddenly becomes a potential gaping security hole. But if you declare the path as a constant instead of a variable that's great and perfectly safe. PHP applications aren't really "installed" per say.. they're just uploaded to a web accessible directory via FTP most commonly. (assuming it's to be accessed from the web) If you have this on the internet and want to limit access and are using Apache - the quickest thing to do is look up "htaccess password protection" on google. If this is on your own server you'll have to figure out how to create the apache users and passwords at the command line. Otherwise if it's on a web host they "may" have a tool that can do this for you. For more details, google is your friend, or just post more detailed questions here and some of us will see if we can help. Cheers
  10. If something as simple as submitting a form is hanging - ruling out local system delay I would almost certainly think the script was performing fine and the web server was under heavy load. Unless I knew that some large mysql queries were going on which might perform quickly if results were cached and wouldn't go quickly when it had to dig data out again. What do your queries look like? How large is the database? How many rows and data fields are in the tables you're querying when the form gets submitted? If you're using lots of joins or querying massive tables, grabbing more results and data than needed, that could be an issue. If delays are happening more when submitting data than when retrieving data it's likely server load. Mysql is likely waiting for it's turn to write the data changes to the hard disk.
  11. Flickr is definitely the best in terms of size allowance, resolution, number of photos, and number of views. There appear to be 2 api's http://www.flickr.com/services/api/ As for Video you'll find Youtube adds compression to your videos and limits video length to around 10 minutes. If you just need storage or cheap ways to send videos to and from clients, use a service like yousendit dot com. If you actually need playback as well and youtube doesn't fit your needs, keep searching.
  12. A fair number of people use Zope but that's because it's a user friendly alternative to Apache but generally it's Apache vs MS IIS (Internet Information Server/Service)
  13. This might have some code that would work for you - http://www.freevbcode.com/ShowCode.asp?ID=2174 Tip: search Google for "vb get file contents from web page"
  14. update set status = closed where (published_time > allowed_time) Or something to that affect. If you design your database layout right it's not a very costly query. And really you shouldn't have to worry about that too much unless this auction site was super sized.
  15. You might run into some cross browser issues depending how you reference your html properties in javascript but that said the first thing I would think to do is use the OnClick function to call a function that applies highlighting to whatever html element was just clicked. The trick is un-highlighting a value once another is clicked - one way to do this would be to remember which one was last clicked, and set it back to normal when the next is clicked, since you're dealing with only 3 values it would be simpler to just say that the items that don't get clicked, all get set back to normal, the one that did get clicked gets set to highlighted by your custom php function.
  16. Have you figured this one out yet? If so I'd be interested to know what you used. What you're looking for is a bit of a hard find. http://www.arcadescript.com/ - this one is commercial but it might do the trick. Another way you could do this if you can't find the php to do it is to download a C/C++ collision detection program that is designed to just take coordinate parameters from you or similar from a python program. So long as they'll run on your webserver. Otherwise, start hitting up the game tutorials on 2d collision detection and start writing your own php class for it.
  17. this is all that's said in the readme file: So basically start with going into your database management software (usually PHPMyAdmin) and import the PHPREPORT.SQL file or copy and paste the text from it and run that as a big sql command. Upload all the files to your website in a web accessible directory. Make sure the permissions are set right (probably 644 or 744) The config.inc.php file is in the root application folder - fill in the values there so the program can access your database, then you should be good to go.
  18. I find gimp is completely backwards from photoshop and those who like photoshop and try gimp look at it sideways and say 'what do I do with this?' - but I say that seconding the recommendation of 'if you're going to use linux' run virtual box in it and run a copy of windows in this which will run photoshop and any other non-linux apps you have. I do find it's much nicer to develop in Linux myself but for the client I'm always having to test in Windows.
  19. I don't think there's a shopping cart out there that will be designed for mass management (unless it's hiding on some website for sale at a price of $5000-200000 a license). What are you working with that's going to produce 18,000 unique products a day? I agree you should build your own. You can plan the design around your product base far better that way anyway. Not that building a cart is simple but some of the trickiest things to implement will be things like shipping calculators and possibly credit card processing. With a serious cart you want to make sure that either it's database is under a separate user name from anything else on the server - you don't want to have some little calendar app elsewhere on the server get hacked and allow the user access to your shopping cart data - even if it is encrypted (it can be decrypted over time). There's a lot to consider, build it right.
  20. I don't use drupal myself so I can't say but have you posted this on the drupal forums? This is a general php forum, drupal is a specific application built in php but very specialized. You'd have more luck finding drupal users on drupals support forums then you would finding the occasional drupal developer on a php forum. Cheers
  21. Try some of these: http://www.devshed.com/c/a/PHP/Application-Framework-Components-Login-Logout/ http://wso2.org/projects/wsf/php although I personally try to stay away from large frameworks and stick to a "login class" like http://www.evolt.org/node/60384
  22. I might require a captcha for registration but I wouldn't require one for login. And in fact I'm getting a bit tired of these nearly Human proof captcha's. They stop the old bots but I'm sure there are new one's out there that can get past them or use human intervention to get past them. Unfortunately all the spammers have to do is hang out at the open source ocr forums and repositories (optical character recognition) and borrow some open source algorithms to tweak. Contextual questions are the way to go and I don't mean "what's 2+2" or something that a bot can easily be programmed to figure out. Questions like "what shape is the earth". Again while this won't stop bots that are tied to human intervention (neither will catpcha's) questions like these are a lot less annoying than trying to read some captcha 5 times over. For bots that use human intervention be sure to enable some serious (but not too sticky) flood control. Also I wouldn't use a cookie for tracking login attempts. Then a user can try to log in from anywhere in his botnet (or just clear his browser cache/cookies) as many times as he likes since each ip will receive a different cookie allowing him 5 attempts. So instead have another field in the database that tracks recent login attempts (and the ip's attempting to login) and when the total recent failed login attempts are too high (regardless of ip) then lock the account temporarily.
  23. I thought this thread was about starcraft 2? It seems to have been hijacked between wow and diablo. Have you seen the demo's of it on youtube? Looks interesting. The mothership, ground units that can ignore height differences in terrain. Those are great additions to the game. The one thing I'm hoping for most out of starcraft 2.. and I doubt they'll deliver on it, is one or two new playable races. I guess it's hard enough to play test and balance difficulty between 3 races as opposed to 4 or 5. Still, I hope they bring in a new race. Even a new faction of humans or protoss with totally different stuff - say the dark and light templars split completely. (don't worry - they haven't done that, it's just an example)
  24. Well it is true IMO. Asking which is 'the best' frame work is such a relative question. It's about as vague as asking a carpenter what the best tool is. There's no one tool that does everything. There are essential tools that he uses every day, some more than others, but some days he won't use a saw, some days he won't touch a hammer, it depends what the job is. Coding is no different. If you get more specific and ask which runs the fastest or has the best benchmarks, which one scales the best, which one has less bugs, produces the most secure code.. those are not such relative questions that will result in direct answers. Which is the "best" is relative to your skills, coding preferences, the task at hand, how maintainable it needs to be, and a number of other factors.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.