1,317 Posted Topics
Re: Anything on the web that uses a database and / or needs something beyond a simple display (i.e. some logic is required) can use PHP. Thus, you can build systems rather than just a site. CMS's were already mentioned. Forums, social networking, chat, email, blogs, classified ads and almost anything … | |
Re: Step 1: Go to the top of this page to the search box Step 2: Enter 'Google Translate API PHP' and click on the Search button Step 3:Look at the list and find the snippet titled: PHP Class for Google AJAX Language API (Language Translation) Step 4: If that doesn't … | |
Re: If you have a program that is working then imagine taking a section of that code, copying and removing it then being able to plug it back in from somewhere else. That is essentially what an Include / Require does. There are a variety of things that you can do … | |
Re: I'm not sure that I totally understand your question based on your explanation but let me take a stab at it. If I understood it incorrectly, then you'll need to clarify: If you need to send the RoomName from module to module2 that is just a (straightforward) use of a … | |
Re: This is one example of an open source class to do geolocation. I can't say how well it works as I haven't used it personally. You can probably do a search and finds others. [URL="http://www.phpclasses.org/package/3813-PHP-Get-the-location-of-an-IP-address-with-the-hostip.html"]http://www.phpclasses.org/package/3813-PHP-Get-the-location-of-an-IP-address-with-the-hostip.html[/URL] Since you have already identified maxmind as part of your solution, you have probably already … | |
Re: Are you looking for the ability to stop entering part way thru filling the form, refresh the page and whatever you entered has been retained? If so, then you need to look into some javascript to save the values as soon as you complete each field. | |
Re: [URL="http://www.justincarmony.com/blog/2008/09/24/zend-studio-vs-php-development-tools/"]http://www.justincarmony.com/blog/2008/09/24/zend-studio-vs-php-development-tools/[/URL] ![]() | |
Re: First, let's see how it looks with proper code tags. [code=php] $todo=$_POST['todo']; if(isset($todo) and $todo=="search"){ $search_text=$_POST['search_text']; $type=$_POST['type']; $bad_string = $search_text; $bad_chars=array(',', '!', '.', 'ï','»','¿','â','¢','®'); $search_text=str_replace($bad_chars,'',$bad_string); $search_text=ltrim($search_text); $search_text=rtrim($search_text); db_connect(); if($type<>"any"){ $query="select * FROM pages WHERE page_text='$search_text' "; }else{ $kt=split(" ",$search_text); while(list($key,$val)=each($kt)){ if($val<>" " and strlen($val) > 0){$q .= " page_text like … | |
Re: Not unless you provide more info. Clarify the problem and show us the code. | |
Re: Define not working. Have you done any debugging and isolated where it is having a problem? You presumably have a test environment where you can try this. We don't. When I started working on computers we had to desk check everything because there was no choice. Now we can let … | |
Re: Is image the full URL or just the actual filename portion? If I was in your position, I would echo the values of $image and and $image_ext[0] and $image_ext[1] after line 5 to get more info about what is going on. | |
Re: [URL="http://www.phpclasses.org/package/388-PHP-Convert-any-document-that-can-be-read-by-MS-Word.html"]Word Convert[/URL] | |
Re: I don't think that you have provided enough info for anyone to help you. The structure of your modules and how they relate to each other isn't clear. You could certainly add a link to call the above module but it isn't clear if this will accomplish what you need … | |
Re: In case you didn't find it, the API documentation is [URL="http://code.google.com/p/android-market-api/"]here[/URL]. It only seems to provide the ability to check what's available not to check an id. You could try writing to the API author and see if he had any suggestions. | |
Re: I have used POMMO as a mailing list manager and it's pretty easy: [url]http://pommo.org/Main_Page[/url] | |
Re: You will need a database table (e.g. MySQL) to keep the status for each person (especially the initial activity date and their email address. You will then need a program that is run every day to go through the database table and determine who is due for a reminder. In … | |
Re: It seems that you need to check if you have any data before you add another line break. If you currently output the line break before you output the fields, you need to create the output line as a variable and then check the length to determine if it has … | |
Re: A few thoughts: * Did you install it outside of the normal program directories (ie not in Program Files or Program Files(x86)). It works best when put somewhere else. * Did you check that the php.ini has the mysql.dll extension uncommented and that mysql.dll is in the php extensions directory. … | |
Re: Your initial statement / request is almost as unrealistic as: "I am a PHP programmer. I need to build a bridge. I don't have the time to learn all about civil engineering. Just tell me the most common design approaches for building a bridge so I can get on with … | |
Re: I realize that you're new to this but if you need to do this again, you should enclose the code in [code] tags as it provides a better listing to work with. There is a problem in the code so you need to consider what was changed and why. There … | |
Re: Google search works just fine! Have a look at this one (php 4.3.0 or higher recommended): [URL="http://php.brickhost.com/index.php#requirements"]http://php.brickhost.com/index.php#requirements[/URL] | |
Re: If they are significantly cheaper, they may be pirated. They could also be OEM versions that are supposed to be sold with a PC (but you should be able to register it). There are a lot of free equivalents out there (e.g. Open Office, Lotus Symphony, Google Docs, Zoho Office … | |
Re: If it is specific to each user, then you need a database and a record for each user where you can keep the last status and maybe the last status date if that matters. If you don't have access to MySQL or some other DB you could do it with … | |
Re: If you create the output as a Word file, you can tell it where you want the page breaks. I don't have the details handy but if you want to go that way I can dig up some details (I have done it but I would need to dig through … | |
Re: I found an example that used different headers than yours. You may want to give these a try: [CODE=php] header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="example.zip"'); header('Content-Transfer-Encoding: binary'); [/CODE] | |
Re: It isn't just whitespace, it is anything that generate output to the browser. That could be an echo or a session statement or other things. Please post the first 5 or 6 lines of head.php | |
Re: There is no mystery to this. The info is available in the MySQL manual and partially in the PHP manual. To get the number of rows use the php mysql_num_rows command. For the info on the date and time of last update do a mysq_query with the "show table status" … | |
Re: If you have a date and a time such as 2010-08-24 18:00 you can first convert this to a (unix) time stamp with the [B]strtotime[/B] command. You can then use that time stamp in the [B]date[/B] command to convert it to whatever display format you need: [CODE=PHP] $timestamp = strtotime("2010-08-24 … | |
Re: Have a look at this: [URL="http://html2pdf.fr/"]http://html2pdf.fr/[/URL] It makes it pretty easy to take a html screen display and produce a PDF output. It does requires valid / complete html (e.g. closing tags) that your browser can live without. | |
Re: The division by zero error is only a warning so it doesn't stop execution. You can prevent the warning from printing (if necessary) using [b]error_reporting (E_ERROR);[/b] It looks as if the division by zero returns false rather than a numeric value. Thus, your code could be changed as follows: [CODE] … | |
Re: Read about the PHP explode command. In order to use it for what you want, your file will need to have a unique delimeter between the fields that you wish to break into separate array elements. What you are trying to do is what a Content Management System (CMS) does … | |
Re: See my response to the post below. I think that it can deal with your need. [URL="http://www.daniweb.com/forums/thread301615.html"]http://www.daniweb.com/forums/thread301615.html[/URL] | |
Re: To get from SMS to your server you will need to use an SMS gateway service (and you will need to pay for it). That will allow you to go in both directions. One example: [URL="http://www.clickatell.com/"]ClickaTell[/URL] At no cost, you can go from the server to SMS if you have … | |
Re: A few comments: 1. It would be helpful if you could clearly identify what you need this site to do. If it is an information site with forums and so forth, then you should be looking at implementing a Content Management System (CMS) and/or a pre-packaged forum system. There are … | |
Re: Add a name and a value to your <input type=submit> in the first part (e.g. name=submit value=submit> . The second part then needs to be surrounded by an if and a closing bracket. The If needs to check $_POST['submit'].You only want to execute the second part if $_POST['submit'] has a … | |
Re: I think that it is just as important to know where and how to find the information you need when you need it. As I learn things I keep notes and then when I want to do something that I haven't done for a while, I go back to the … | |
Re: Have a look at this as an example: [URL="http://www.siteground.com/tutorials/php-mysql/display_table_data.htm"]http://www.siteground.com/tutorials/php-mysql/display_table_data.htm[/URL] There are lots of other tutorials out there if you do a search. | |
Re: Google Search Results: [URL="http://www.siteground.com/tutorials/mediawiki/"]http://www.siteground.com/tutorials/mediawiki/[/URL] [URL="http://www.mediawiki.org/wiki/Api"]http://www.mediawiki.org/wiki/Api[/URL] | |
Re: Echo $sql2 after line 7 and see if contains what you expected. If it is correct, it will work. | |
Re: Your session_start on line 2 and the header on line 13 are probably conflicting as they both cause output to the browser (session_start creates a cookie). You may get some resolution by putting the session_start on the first line with the <?PHP (that's what I've read but I don't know … | |
Re: The option to be selected needs the word 'selected' after the value=xxx. In order to make this dynamic, you need a variable as part of each option as follows: [code=php] <select name="attend"> <option value="No"<?PHP echo $selected_no; ?> >No</option> <option value="Yes" <?PHP echo $selected_yes; ?> >Yes</option> </select> [/code] Before you get … | |
Re: Please be more specific. Are you trying to upload programs and images to the server (i.e. FTP) or are you trying to write a PHP program to do uploads? | |
Re: If you want to expand the page to include the ticket details within the context of all of the other tickets (still as one or two lines) then you may want to look at using jquery and an accordion plug-in. There are multiple versions. I have provided a link to … | |
Re: Daniweb has lots of solved problems and good advice from past posts. All you need to do is use the search box. If that doesn't work, then Goggle is the next step. I tried a search on Daniweb and the post below has some useful info: [URL="http://www.daniweb.com/forums/thread254622.html"]http://www.daniweb.com/forums/thread254622.html[/URL] | |
Re: The question that you are asking is for a pretty basic html capability. I suggest that you spend some time on the W3schools site or on some other html tutorial and use W3schools as an ongoing reference. If you are going to be doing more work in html / php … | |
Re: If it was as simple as 1. everything worked fine. 2. Turn it of normally, disconnect the wires and move it 3. reconnect the wires and boot it up: then it is more likely a hardware problem than software. I'd certainly start by checking that the video card (and any … | |
Re: You can try re-booting from the (Vista / Win 7) install disk and try recovery / repair from the menu. | |
Re: This is a shot in the dark but maybe your while statement should be: while($dev_count>=1) As it is, it appears that it would try to do the array_push even if the count was zero and that might be a problem. | |
Re: Google search still works well! Read this and see if it helps: [URL="http://forums.techarena.in/customize-desktop/1129820.htm"]http://forums.techarena.in/customize-desktop/1129820.htm[/URL] | |
Re: Let me suggest that you're more likely to get an answer if this question is posted in the VB forum (under software development). |
The End.