8,966 Posted Topics
Re: I'd use `AppDomain.CurrentDomain.BaseDirectory` to get the current base directory. Append your folder name to it, and create the new folder. | |
Re: Create a diagram of your required entities, and how they are interconnected. | |
Re: An insert query should look like this: INSERT INTO your_table (Trainer, OTrainer) VALUES ('your_username', 'your_username') | |
Re: I am using both 1 and 2 and so far very content with both. Do note that "unlimited" often has some restrictions, so be sure to chat with their sales before you decide. | |
## RSS Class ## The code snippet is a PHP class for retrieving RSS feeds from the DaniWeb website. There are two exposed methods, one for retrieving the list of predefined article types, and another to get a specific RSS feed. If you pass parameters to this method, there is … | |
Re: Java and JavaScript are two different languages. Java is a full-fledged interpreted programming language, whereas JavaScript is primarily used in client side website scripting. | |
Re: Try a `WebRequest` call, [here](http://www.808.dk/?code-vbnet-httpwebrequest)'s an example. | |
Re: SOAP is possible, so is REST. If you can provide a little example of how the flow is supposed to be between the two, you may get a more accurate answer. | |
## API Mashup ## This example is a mashup of [diafol's class](http://www.daniweb.com/web-development/php/code/451428/daniweb-api-class-for-getting-forums), [Dani's parsing code](http://www.daniweb.com/api/documentation) and [my class](http://www.daniweb.com/web-development/php/code/451390/daniweb-api-rss-class). It uses diafol's dwAPI class to retrieve a list of all forums, loops through them, and uses my Rss class to get the respective RSS feeds. It will show each forum in … ![]() | |
Re: There are tools like [PowerGrep](http://www.powergrep.com/) that can help you with a search and replace in a lot of files at once. It has a 30-day trial. I'm a satisfied customer, really made my life easier. | |
Re: The colons and slashes are messing it up. In addition to the code, show your table structure too. | |
Re: Missing quotes I think. $q = "INSERT INTO image (name, imgpath) VALUES ('$imgname', '$path')"; | |
Re: http://www.daniweb.com/web-development/php/threads/451445/function-not-working | |
Re: > i need a way to reference a specific database ID in the WHERE clause of my SELECT query without using URL parameters, sessions or the $_GET[] variable. Is it possible? Where is your ID coming from? If it's coming from the client, you'll need one of the above (although … | |
Re: It should be this: class Film { public $film_ids; public $numfilms; public function getFilms() { $this->film_ids = array(); // change to use the class property $dbh = new DBConnection(); // this should be in variable $sql = "SELECT * FROM films"; $stmt = $dbh->prepare($sql); if ($stmt->execute()) { while ($row = … | |
Re: You need to `fopen` the file first, see the example in [the manual](http://php.net/fgets). ![]() | |
Re: > do I need to publish them first Yes. Publish them to an IIS folder. | |
Re: Apparently some files are still missing (PEAR5.php). | |
| |
Re: 410 (Gone) should be the right one. Technically it is a not found, just with a different reason. | |
Re: http://dev.mysql.com/doc/refman/5.6/en/connector-cpp.html Ubuntu is mentioned, so it should work similar. | |
Re: This [SO thread](http://stackoverflow.com/questions/393603/php-uml-generator) already has a list of possibles for PHP. | |
Re: String concatenation uses a `.` not a `+` A plus is for number addition, so the zero results from a conversion of the string to a number. | |
Re: Is that all code there is? Perhaps you have something before `<?php` causing this. | |
Re: Yes I do. My first owned machine was an Acorn Atom. Learned to program assembly on it. | |
Wondering if, and if so where, I can revoke an authorization for an API client. It would be quite useful for testing if I can revoke it, to test and debug the application flow. Now the only possibility (AFAIK) is to add a new application. | |
Re: You should close the while loop, then do the foreach. The foreach is inside the while loop, causing this effect. | |
Re: Have a look at [switch](http://www.php.net/manual/en/control-structures.switch.php). | |
Re: That can only work if the phone transmits it's position at regular intervals, so it would need to run an app. | |
Re: Thanks for the reminder. Since I've installed Win8, BOINC is what I've not yet reinstalled. Although I must admit, I'm not a DW team member (Dutch Power Cows). | |
Re: What you need is someone to separate the issue list, and be an intermediairy between development and the rest. You can only do so much, so you'll need to focus on the blocking issues first (major issues), and put all new features on hold. They can't expect you to do … | |
## Introduction ## In this introduction I will try to explain basic object orientation (focused on PHP). It is by no means meant to be a complete guide. There are a lot of concepts I am avoiding for simplicity’s sake. I will try to give a theoretical explanation first, and … | |
Re: > It's just when it comes to creating the file and page contents it's getting lost. Did you set the `pages` folder to be writable? | |
Re: You are basically right. There are more threads on this subject, just search this forum. | |
Re: Try [array_unique](http://php.net/array_unique). | |
Re: That means `xmlDoc` is invalid, or `responseXML` is. Apart from that, it may return a string, instead of an XML object. Check with your debugger to see what it contains. | |
Re: How about turning an anonymous function into a method/function? You start out with an anonymous one, to find out later you need it somewhere else too. | |
I wanted to update my signature, but it says I can only add upto four lines. Unfortunately it counts the markdown lines, not the result. See attached image.  | |
Re: I'd prefer a way to split the thread, so the new reply will become a new question. | |
Re: I assume it's something else, but I have no clue what can be causing this. Never seen this happen, even on very large databases. | |
Re: > basically soccer and american football in one sport You're not making friends... American Football is like "Let's play a rough game, but we don't want to get hurt"... pansies. ![]() | |
Re: I suggest you check the code that inserts data into your database. Apart from that, all junk appears to be identical, so a simple `UPDATE` and `REPLACE` query should be able to fix your issue for now. | |
Re: Line 4 will fail, because $query1 is an sql string. Just as your other queries, you need to use mysql_query(). If you have specific questions about your queries, post them, and your table structures, in the mysql forum. | |
Re: IIRC you can just use the column names. | |
Re: I suggest you use extra parenthesis to force correct execution: if (($videoProvider != 'www.youtube.com') || ($videoProvider != 'vimeo.com')) | |
Re: How about [this thread](http://social.technet.microsoft.com/Forums/en-US/winserveressentials/thread/4aecac2e-905f-455e-a037-46df8a1266f5/), anything you can use? |
The End.