- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
73 Posted Topics
Re: I strongly advise you to NOT use Word as a tool to create web pages. The Microsoft HTML conversion utility generates horrible code. ![]() | |
Re: This might also help. [URL="http://www.tech-evangelist.com/2007/11/05/preventing-sql-injection-attack/"]Preventing SQL Injection[/URL] | |
Re: There is no function that identifies a country using the IP address. You will need to use a GeoIP (also called GeoLocation) database. There are several freebie GeoIP databases available. [URL="http://www.maxmind.com/app/geoip_country"]http://www.maxmind.com/app/geoip_country[/URL] [URL="http://ip-to-country.webhosting.info/"]http://ip-to-country.webhosting.info/[/URL] | |
Re: 100 in a month should be okay. The search engines probably won't pick up all 100 within a month. I suspect that within the next 6 months directory submissions will be worthless with Google. They keep eliminating the weight given to links that they feel are not created naturally, like … | |
Re: It's a joke. He's pulling your chain. It's his first post. Everyone knows that it takes exactly (%43h7c99bdE23% * (3.14159^2 / 64)) nanoseconds to train a neural network for the first time. :) of course, it could take less the second time. | |
Re: A general rule for the keywords meta tag is to never use words that do not appear on the page. None of the major search engines have used the keywords meta tag since the 1990s. | |
Re: Try this. You can always use a file that is stored outside to the Web site tree on your server. The file can contain the entire command to open the database, including the database name and password. You then include that file in your Web script using the server path … | |
Re: You do not need all of those PHP start and end tags. You only need one at the beginning of the PHP code and one at the end. Any blank line in between a close and start tag is being sent to the browser. Eliminate all of the unecessary PHP … ![]() | |
Re: You might want to check with your hosting company about the MySQL connection. Not all hosting companies allow you to connect via localhost. With GoDaddy and some others the MySQL database resides on a different server so they use a different sever name. | |
Re: You can also turn on the error message. It does a good job of pinpointing most errors. Place it at the top of your script, just after the first opening PHP tag '<?php' Do not leave this turned on for a live site. It may give too much information to … | |
Re: For any of you with new sites, they are probably in the Google Sandbox. That will limit the site's ability to rank well for competitive search phrases for probably 5 to 8 months, and possibly longer for the most competitive search phrases. A Google rep at the recent SES conference … | |
Re: The JavaScript technique only stops amatuers. A user can either disable JavaScript or just look at the HTML code to copy your content or get a path to your images. | |
Re: [QUOTE=jbennet;365688]whats the difference between developer and designer?[/QUOTE] A developer is a code monkey. If you need to work with a database or ASP code or PHP code, you need a developer. A developer works with the functional aspects of a site. A designer has the creative juices needed to create … | |
Re: It appears that there is little more to a Debian install than this. I just installed it as a Web server from the downloads on the Debian site. It appears to work fine as a stand-alone PC, but is not functioning as a server on my network. I cannot even … | |
Re: Here is a tutorial for building a select box from MySQL data. [URL="http://www.tech-evangelist.com/2007/11/22/php-select-box/"]Populating a Select Box With PHP and MySQL[/URL] I think Jaseva is right. You probably will not see the select box without the select tags. Use View, Source to take a look at the code being generated. | |
Re: The best way to really learn osCommerce is to download the code and set up an osCommerce test site. You don't have to sell anything, but you do need to learn to work with the code. osCommerce is getting pretty old and decrepit. Most developers that I know gave up … | |
Re: humbug's code is correct. The only reason that IE appeared to be displaying the table correctly is because the table code was invalid and the closing table tag was not being recognized. Each table was therefore not being completed. Browsers correct a lot of coding problems while they attempt to … | |
Re: You need server root access in order to manually modify the httpd.conf file. Very few hosting companies will give a site owner root access. Using cPanel to add a subdomain does the same thing. Unless you are very familiar with Linux/Unix servers, you should not be doing anything at the … | |
Re: If you just want to prevent page elements such as buttons from displaying on printed output, the easiest way to do that is by using external stylesheets. You can use a different stylesheet to format what displays on the screen versus what is printed. Here is a article that shows … | |
![]() | Re: Try taking the links out of the Flash presentation. The hyperlinks need to be visible in the HTML code. ![]() |
Re: I stared out using ASP in the 1990s and then migrated to PHP. I also investigated Cold Fusion and JSP. Here are my observations about Cold Fusion: 1.You can only run it on a Cold Fusion server. If you want to set up your own server, there are licensing costs. … | |
Re: Hi Diode I think you misunderstand what that function does and how it should be used. The function you are using does not clean out any SQL code. It merely escapes (with a backslash) characters that can be used in SQL injection attacks. If SQL code is being removed, it … | |
Re: What is a JARGAN? In order for CAPTCHA to work, you need to have GD support in PHP enabled on your server. It has been included with PHP since version 4.3, but it might not be enabled. You might not have that with free hosting services. If you are not … | |
Re: I agree copmpletely with csgal. I think it comes down to this. PHP is overwhelmingly more popular than PHP, but .NET is very popular in large corporations. IMHO, if you want to develop web sites for your clients, PHP is easily the better choice. If you want to work in … | |
Re: PHP is server-side code. It runs on the server and is executed before a script is sent to the user. JavaScript is typically used as client-side code. It runs in a user's browser and is executed after the user's browser processes the script. You can use PHP to generate JavaScript … | |
Re: You need to isolate the problem. At this point, you don't know if the GET variable is not picking up the value or if the value is not being inserted into thte table. add echo $q_id; just after $q_id=$_GET['id']; also add echo $sql; just before you assign the INSERT statement … | |
Re: If your host allows you to modify the .htaccess file, you can add the following line of code to turn safe mode off. [CODE]php_flag safe_mode off[/CODE] | |
Re: You are trying to insert an id value of ' ' when you have that column set up as auto_increment. Don't insert an id value. Let MySQL set the id value. Try this: mysql_query("INSERT INTO island2 (user,island,town,village,islandrank,townrank,villagerank,game) VALUES ('$userid','1','1','1','0','0','0','$game')"); | |
Re: Here is a [URL="http://www.tech-evangelist.com/2007/11/23/mysql-cheatsheet/"]MySQL cheatsheet[/URL] that includes examples of various table joins. | |
Re: You need to look for a shopping cart system. There are lots of good freebies out there. Check out osCommerce, Zen Cart and Cube Cart. They are all good carts. Zen Cart is based upon osCommerce and is my favorite. FYI. You will need some PHP programming skills to modify … | |
Re: As long as MySQL remains a freebie, I don't see an issue. But if they try to turn it into a fee-based DB, it will destroy an excellent DB. Sun Microsystems developed Java. It was originally intended to be a system for home automation. Most people do not know this … | |
Re: nav33n's solution will work if you just want to capture the ID for the last row that you wrote to the table. If you wish to access a different row, you really need to know how to use the SELECT statement to filter the data. Here is a link to … | |
![]() | Re: Have you tried using SELECT DISTINCT? [CODE] $sort = mysql_query("SELECT DISTINCT genre FROM bands ORDER BY genre"); [/CODE] That will return only one "distinct" row per genre value. It looks like you are doing things the hard way. You should be looking at pulling all of your data with one … |
![]() | Re: Google recently went on a vendetta to penalize sites that are selling links. That means that links from these site have been devalued, which has taken a toll on sites that used directories and other types of paid links. It doesn't matter if the directory offered free links. Any type … |
Re: That's a good routine to use if your server is set up to use it properly. mysql_real_escape_string will not work unless you are using at least PHP 4.3.0. Also, if magic quotes is turned on, you can get double backslashes. As an alternative, you can try the following or modify … | |
Re: Try using different values for your select options. It makes it much easier to assemble a date in the proper format, which is yyyy-mm-dd. <select name="date_year"> <option value="2007">2007</option> <select name="date_month"> <option value="01">January</option> <select name="date_day"> <option value="01">1</option> You can then assemble the date string in the proper format on the receiving … | |
Re: As MitkOK mentioned, PHP is a server-side language, which means the PHP code is executed on the server before sending it to the browser as client-side code. Server-side languages allow you to pull and display data from databases and create custom pages based upon requests from a user. If you … | |
Re: Simple PHP should do it if you do not know regular expressions. [CODE] $string = "abcd123xyz"; if((substr($string,0,3)=="abc") && (substr($string,-3)=="xyz")) { $string = "this is a test"; } echo $string; [/CODE] | |
Re: Why don't you list what you think are the advantages with using classes? Most people do not see any advantages, especially for relatively small web sites. | |
Re: Here is a tutorial that shows you how to validate foms using JavaScript. Just cut-and-paste the code and follow the instructions. [url=http://www.tech-evangelist.com/2007/10/15/javascript-form-validation/]Form Validation using JavaScript[/url] This includes a routine to validate e-mail addresses. When a user clicks the Submit button, the JavaScript routine will validate the input before it gets … | |
Re: It looks like your last line is wrong. Also, try this version of the first line. This is what I use: header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=extraction.xls"); header("Pragma: no-cache"); header("Expires: 0"); print $data; $data needs to hold the tab delimited text file that you create. Your line just tells the routine … | |
Re: I think what people are trying to tell you is that you need to replace, $destination = "upload/"; with $destination = $_SERVER['DOCUMENT_ROOT']."/upload/"; That should fully specify your local path to the destimation directory. You may also be running into problems trying to to this on a Mac. It might not … | |
Re: Working with mod_rewrite can be tricky, especially if you are working with subdirectories. Do your hyperlinks use this format? /insurance/metatags-cat_id-44.htm try this RewriteRule ^insurance/metatags-cat_id-(.*)\.htm$ insurance/metatags.php?cat_id=$1 it might also work this way: RewriteRule ^metatags-cat_id-(.*)\.htm$ metatags.php?cat_id=$1 A couple of things you need to know about the .htaccess file. 1. It does not … | |
Re: The script isn't there. I get redirected to the home page. | |
Re: I assume that when you say that your server does not allow scripts, you mean that you can only run static HTML pages. If you cannot run any type of scripts, you probably cannot use a captcha image, because that is generated by a script. | |
Re: If you change the extension from html to php on an existing site, you will be starting all over again with the search engines. That becomes a URL change. If you have an existing site, you probably want to set up the server to run html files through the php … | |
Re: Passing the page URL using a hidden field is the safest way to do it. You could use $_SERVER['HTTP_REFERER'], but as zippee mentioned, not all browsers pass the info. You could just simple test it for a value. If a value exists, display the Continue Shopping button with the link. … | |
Re: You might want to consider giving the user a fixed time period to do the download. Some downloads do fail and the user may have to retry. Most sites that I have used that allow you to purchase and download images do give you 24 hours to do the same … | |
Re: As someone whose primary business is training Web development teams in SEO methods, my advice is to NEVER allow session IDs in URLs. Take my word for it, Google is NOT smart enough to recognize a session ID. I also run a Web directory and I see dozens of 50-page … | |
Re: IMHO, "Switch" is better if you have to qualify a variable with a lot of different possible values and each requires a different process. "If" is better if you only have to test for a few possible values. A long list of If-ElseIf statements gets to be pretty hard to … |
The End.