1,317 Posted Topics

Member Avatar for lapunluyang

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 …

Member Avatar for chrishea
0
144
Member Avatar for yesiamchamp

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 …

Member Avatar for chrishea
0
67
Member Avatar for areese685

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 …

Member Avatar for chrishea
0
86
Member Avatar for gchurch

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 …

Member Avatar for gchurch
0
98
Member Avatar for SiobhanyScot

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 …

Member Avatar for chrishea
0
200
Member Avatar for ello

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.

Member Avatar for ello
0
120
Member Avatar for Dani

[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]

Member Avatar for fatihpiristine
0
136
Member Avatar for jtdbidirect

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 …

Member Avatar for jtdbidirect
0
173
Member Avatar for gchurch

Not unless you provide more info. Clarify the problem and show us the code.

Member Avatar for gchurch
0
88
Member Avatar for sami.asanga

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 …

Member Avatar for Daiva
0
101
Member Avatar for LloydFarrell

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.

Member Avatar for chrishea
0
131
Member Avatar for krrr25

[URL="http://www.phpclasses.org/package/388-PHP-Convert-any-document-that-can-be-read-by-MS-Word.html"]Word Convert[/URL]

Member Avatar for chrishea
0
54
Member Avatar for ello

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 …

Member Avatar for ello
0
102
Member Avatar for vibhaJ

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.

Member Avatar for vibhaJ
0
152
Member Avatar for lifeworks

I have used POMMO as a mailing list manager and it's pretty easy: [url]http://pommo.org/Main_Page[/url]

Member Avatar for lifeworks
0
171
Member Avatar for QWaz

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 …

Member Avatar for chrishea
0
149
Member Avatar for ceeandcee

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 …

Member Avatar for chrishea
0
260
Member Avatar for gchurch

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. …

Member Avatar for chrishea
0
400
Member Avatar for arctushar

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 …

Member Avatar for arctushar
-1
203
Member Avatar for debbiec1

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 …

Member Avatar for chrishea
0
111
Member Avatar for srdva59

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]

Member Avatar for srdva59
0
65
Member Avatar for D4Stone

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 …

Member Avatar for caperjack
0
253
Member Avatar for Kadafiz

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 …

Member Avatar for chrishea
0
80
Member Avatar for ceeandcee

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 …

Member Avatar for chrishea
0
180
Member Avatar for phplover

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]

Member Avatar for phplover
0
133
Member Avatar for QWaz

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

Member Avatar for QWaz
0
361
Member Avatar for ceeandcee

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" …

Member Avatar for ceeandcee
0
112
Member Avatar for vinryyesha

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 …

Member Avatar for vinryyesha
0
105
Member Avatar for heshanm

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.

Member Avatar for chrishea
0
243
Member Avatar for ceeandcee

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] …

Member Avatar for ceeandcee
0
197
Member Avatar for |DarkBerzerk™|

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 …

Member Avatar for |DarkBerzerk™|
0
127
Member Avatar for benjaminFowl87

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]

Member Avatar for benjaminFowl87
0
274
Member Avatar for LRNPHP

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 …

Member Avatar for MooGeek
0
545
Member Avatar for Will3Style

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 …

Member Avatar for Will3Style
0
169
Member Avatar for andrewh86

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 …

Member Avatar for chrishea
0
189
Member Avatar for ektron

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 …

Member Avatar for chrishea
0
136
Member Avatar for heshanm

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.

Member Avatar for heshanm
0
86
Member Avatar for fladei

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]

Member Avatar for chrishea
0
111
Member Avatar for tireytv

Echo $sql2 after line 7 and see if contains what you expected. If it is correct, it will work.

Member Avatar for tireytv
0
99
Member Avatar for Mecklar

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 …

Member Avatar for sourcebits
0
168
Member Avatar for Mecklar

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 …

Member Avatar for Mecklar
0
94
Member Avatar for flutterby2006

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?

Member Avatar for MindSter
0
69
Member Avatar for tones1986

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 …

Member Avatar for chrishea
0
141
Member Avatar for panhwer

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]

Member Avatar for panhwer
0
123
Member Avatar for ello

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 …

Member Avatar for metalix
0
99
Member Avatar for kuryj

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 …

Member Avatar for chrishea
0
80
Member Avatar for Kurtismonger

You can try re-booting from the (Vista / Win 7) install disk and try recovery / repair from the menu.

Member Avatar for Kurtismonger
0
190
Member Avatar for iWalletMobile

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.

Member Avatar for chrishea
0
289
Member Avatar for Az Annie

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]

Member Avatar for chrishea
0
77
Member Avatar for zulhimi89

Let me suggest that you're more likely to get an answer if this question is posted in the VB forum (under software development).

Member Avatar for chrishea
0
91

The End.