1,317 Posted Topics
Re: Assuming that this isn't just an academic question and that you want to do it yourself, then the best answer is to use something that you are comfortable with. If you want it to be lightweight and you are already into C or C++ then they can do it. It … | |
The response time to refresh a page on Daniweb today is pretty poor. I have noticed that a lot recently. It is taking 5 seconds plus (in some cases maybe 30 sec or more) to submit a message / post or to refresh a page. I tested the download speed … | |
Re: If you have programming experience, then you know how to do some debugging. You haven't identified if anything is working and just dumped some code. A few comments: You didn't define "...coming up with nothing." Does that mean a blank page, an error message or something else? On line 2, … | |
Re: As a general rule, you can use open-source code under one of these licenses within a website without any issue. This applies even if you are charging to implement it or charging to use the site. The license only becomes an issue if you develop a program that you wish … | |
![]() | Re: If you can find something, it's going to be really basic and probably old because I'm guessing that any that are currently being maintained probably have some javascript. Since everyone uses editors which include some javascript, why are you trying to avoid it? ![]() |
Re: It seems that your page that lists the files should be able to open the form for the transcription and pass the name of the next file. Conceptually, your list of files could be part of a form with a radio button beside each one. You would click on the … | |
Re: The simplest way is to have a link to the PHP module with your javascript variable as the parm. [CODE] <a href=myphp.php?parm=[I]your_js_var[/I] ... > [/CODE] | |
Re: Any good reason that you would respond to a posting that is a year old (or is it just a business promotion thing)? | |
Re: See this: [URL="http://prajapatinilesh.wordpress.com/2009/01/14/manually-set-php-session-timeout-php-session/"]http://prajapatinilesh.wordpress.com/2009/01/14/manually-set-php-session-timeout-php-session/[/URL] | |
Re: Suggest that you make the first module PHP rather than HTML then set a session variable when they enter that page. In your Login module, the first thing that you do is to check if the session variable is set or not and return to the login form if not. … | |
Re: [B]echo vs print[/B] Time to find on the internet 20 - 30 sec max [URL="http://www.htmlite.com/php004.php"]http://www.htmlite.com/php004.php[/URL] [B]endif [/B]isn't used in normal everyday php. It may be used in one of the frameworks that implement MVC. [B]Return[/B] You can use return in a function to return a value to the function call. … | |
Re: This works in IE and maybe Opera but it probably won't work in other browsers: [code] <iframe src ='test_mht_arch_page.mht' width='100%' height='800'> <p>Your browser does not support iframes.</p> </iframe> [/code] There are programs to extract html from an MHT so that's another option. | |
Re: This might help: [URL="http://www.mcs.utulsa.edu/~papama/cs3053/nachos_in_windows.htm"]http://www.mcs.utulsa.edu/~papama/cs3053/nachos_in_windows.htm[/URL] | |
Re: I bought an Asus laptop a year ago (and I am writing this on it). I did some research before I bought it and when I looked at the record of reliability and Customer Service for all the major brands and then I looked at bang for the buck, Asus … | |
Re: You have defined what needs to be done and you say that you have a decent knowledge of PHP. So what is the problem? Display 5 messages and then display a button (as part of a form) with the action back to the same module (or not defined since it … | |
Re: Your statement of the problem isn't clear in terms of why it is a problem. If you have all of the countries in an array and you get a country as input (from a form?) then there should be no problem comparing the two and determining if it is in … | |
Re: This one might give you what you need but only for certain countries [URL="http://www.yelp.com/developers/getting_started"]http://www.yelp.com/developers/getting_started[/URL] | |
Re: If I were in your position, I'd probably start with a very short piece of code that demonstrates the problem and prove that it works on a local test system. Move it to your server and try it again. If it doesn't work there, I would immediately go to your … | |
Re: I support the previous posts about trying to get people to use [code] tags. I have three more that I'd like to see: 1. When someone tries to add on to an old post (e.g. more than a year old), force them to open a new topic. If it was … | |
Re: It seems that you want a browser-based version of Visio. This one looks pretty professional but you would need to get some more info from them on price, database etc. [URL="http://www.gliffy.com/"]http://www.gliffy.com/[/URL] This is an open source option but it probably will require a lot more work than the previous one. … | |
Re: You need to use code tags so your code is properly formatted. For this error see [URL="http://innovationsdesign.net/wb_2.7/pages/tech-resources/php-help.php#question_18"]this. [/URL] | |
Re: I don't know if this is any good, but it makes more sense to use something that exists than to try to build your own custom system. [URL="http://www.boonex.com/dolphin/"]http://www.boonex.com/dolphin/[/URL] | |
Re: Have a look at str_ireplace and preg_replace. It's all in the manual! | |
Re: It isn't really a PHP question but In reply to the first part, everyone will probably have a different opinion on which is the best CMS based on their own experience. I attempted some informal assessment of some of the more popular CMS's such as Joomla, Drupal and Wordpress along … | |
Re: You can find some specs for reservations systems if you do a search (one example [URL="http://www.scribd.com/doc/23190984/Bus-Reservation-System-in-Dbms"]here[/URL]). There are open-source booking systems, mostly for hotel reservations. It probably wouldn't be that difficult to modify such a system to handle buses instead. You can also buy a system. Here is [URL="http://www.sourcecodeonline.com/details/inetinfotech_online_bus_train_flight_booking_system_script.html"]one example[/URL]. … | |
Re: You should mark it as solved even though you found it yourself. | |
Re: gwendoloyon, It is commendable to search for old posts that are relevant to your question but it is poor protocol to open up an old post and add on to it. Opening a new post is the preferred approach. Given that this is a forum for computer-related technical topics, I … | |
Re: When you give it an address of [url]http://localhost[/url] it will look for an index file in the root directory (usually www or htdocs). Your program could be in the root directory but more often than not it will be in a separate folder. If you put it in the root … | |
Re: Even though you have labelled showpopupshare as php, it is Javascript code so I would think that your onclick could go to your javascript code and never go back to PHP. Thus, it could all be one module. I think that it would look like: onClick="javascript: showpopupshare('2');" with showpopupshare as … | |
Re: if this is php code, then it should be plain text and you should be able to open the file in notepad or a programmer's editor (on the PC). Are you able to do that? | |
Re: I didn't do anything that you couldn't have done which is to go through methodically, organize the indents and check that all of the curly braces are matched (Netbeans should help you to do that part). I had to add three more closing curly braces after line 272 to get … | |
| |
Re: You have a pretty vague requirement where you want to use a dynamic feature but the full context for it and the purpose of it is unclear and maybe not defined. If you don't already have an outline of your application defined, I suggest that you start there. The user-interface … ![]() | |
Re: Are you saying that you want to abandon the results of the Selects that were done on the first pass and now start over with another database (in the same format as the first) and keep executing your while loops using data from the second database? That would be a … | |
Re: If you have an application in PHP / HTML / CSS / Javascript, you can test most things in a local test environment. You need to have a "LAMP" environment installed on your local machine. For more info: [URL="http://innovationsdesign.net/wb_2.7/pages/tech-resources/php-help.php"]http://innovationsdesign.net/wb_2.7/pages/tech-resources/php-help.php[/URL] One of the things that you are limited on testing locally … | |
Re: [URL="http://www.phpbb.com/community/viewtopic.php?f=46&t=1289975"]http://www.phpbb.com/community/viewtopic.php?f=46&t=1289975[/URL] | |
Re: Nothing is obviously wrong that I can see. Suggest that might want to add a log for messages deleted, added etc. Until you have it sorted out you may want to remove the expunge and do some testing to see if you can see what is happening. If you have … | |
Re: I don't understand why this is a problem. After line 6 you need something like the following: [CODE=php] mysql_connect ("localhost","id","pw"); mysql_select_db ("my_db"); $result = mysql_query ("update users set login='$date_time' where user_id=".$_SESSION['MEMBER_NO'].")"; [/CODE] This assumes that you have a user table called "users". You need to decide how you want to … | |
Re: Here is a [URL="http://www.codingforums.com/showthread.php?t=199572"]link[/URL] to someone else who had the same error. In that case the "To" parameter didn't have a value and yours could be the same. | |
Re: As per the [URL="http://php.net/download-docs.php"]PHP documentation[/URL] (you do have a copy don't you!): [B]Return Values[/B] For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error. You need to use this resource id in a mysql_fetch_array or mysql_fetch_assoc to return an array … | |
Re: CMS's have their own database tables and application databases in specific formats that the system and the applications expect. A database needs the code that understands the database format. If you have both the database and the code that uses it, then your problem is then to integrate both of … | |
Re: You need to save the store id (near the end of your While loop) then and compare each new one to the previous one at the start of the loop. When you get a new one, then use the ezNewPage()command to start a new page (and reset your line counter). | |
Re: This is a forum that provides support for PHP programming. Even though PHPFox has PHP in its name, what you are looking for is support and add-ons for the PHPFox CMS. You are more likely to find that in the [URL="http://www.phpfox.com/forum/"]PHPFox Forum.[/URL] | |
Re: It looks like you have a problem in your [B]add-to-any[/B] plugin. If you haven't made any custom changes, then the simplest approach would be to drop that plugin and try again. This error means that add-to-any/services.php on line 2 issued some sort of output before the (standard?) WordPress classes.php module … | |
Re: If your need is pretty simple, then you may get what you want the way that you are doing it. Even for simple needs but certainly when you need to start accessing multiple pages, navigating from one to the next and, in some cases, having to log in first, then … | |
Re: It may be simpler to run them serially rather than mash them together. Use a header command at the end of execution of the first one (after line 47) to redirect to the second one. | |
Re: I don't see a problem with the logic. It may be a data problem. If you only have one field in each record or if your fields contain 'return' / line skip characters than that might give you the result your are getting. | |
Re: The simple solution would be to use one of the many existing open-source shopping carts! If you have the skills and experience to write your own and there is a good reason for doing it, then go for it. If that was the case, then I don't think that you … | |
Re: Wouldn't it make sense to look at the existing sites providing streaming TV to get a list of the stations that they provide. This won't necessarily get a you a list of the actual stream addresses, you might have to go back to the sites for the stations or even … | |
Re: This is all in the [URL="http://php.net/download-docs.php"]PHP manual[/URL]. If you don't have a copy, you need to get one: If you just wanted the time in 24 hour format, it could be as simple as: [code]$time1 = date("Hi"); [/code] If you need to use strftime for local time, then it would … |
The End.