Jump to content

whansen02

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

whansen02's Achievements

Newbie

Newbie (1/5)

0

Reputation

  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.
×
×
  • 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.