- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 11
- Posts with Upvotes
- 9
- Upvoting Members
- 10
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
188 Posted Topics
Re: [CODE=php]setcookie('cookie_name', time() - 42000);[/CODE] | |
Re: Since you are familiar with Java, I suggest you should go with Java. Different people prefers different languages. I agree with others saying that Java is widely used. Since it's free and no license required, there is no additional cost for it. I would go for Java and use the … | |
Re: [QUOTE=zippee] Change this: [url]http://mysite.com/pagename.php[/url] To this: [url]http://mysite.com/pagename[/url] or this: [url]http://mysite.com/pagename.html[/url] [/QUOTE] [url]http://mysite.com/pagename[/url] [url]http://mysite.com/pagename.html[/url] Both will work in mod_rewrite. As for [url]http://mysite.com/pagename[/url], try RewriteRule ^pagename pagename.php As for [url]http://mysite.com/pagename.html[/url], try RewriteRule ^pagename.html pagename.php There is an another option you can also try called php pathinfo. [url]http://www.tutorio.com/tutorial/php-alternative-to-mod-rewrite-for-se-friendly-urls[/url] Hope it helps. | |
Re: Your local machine does not show because you have turned off the error reporting. Anyway try the below code. Do let me know whether it works. [PHP]<?php require('conexion2.php'); $SQLEmpresa= "SELECT empresa.cve_Empresa, Nombre, Direccion, pagina, telefono FROM empresa, empresa_Categoria WHERE ".$_GET['cve_Categoria']." = empresa_Categoria.cve_Categoria AND empresa_Categoria.cve_Empresa = empresa.cve_Empresa"; $rsEmpresa = mysql_query($SQLEmpresa,$conexion); while … | |
Re: To refresh or reload php page, you can use "Meta" e.g <META HTTP-EQUIV=Refresh CONTENT="3; URL=http://www.yoursite.com/yoururl.php"> It will refresh in every 3 seconds. You can change 3 to number you like. | |
Re: [PHP]<? $connect = mysql_connect("localhost", "adamf", "adamf123") or die ("Wrong password, jerk."); mysql_select_db ("adamf"); $insert="INSERT INTO product (product_id, product_name, product_type, product_brand, product_year) VALUES (1, 'Cyber', 1, 1, 2001), (2, 'Motive', 8, 1, 2005), (3, 'Oracle', 8, 2, 2005)"; $results = mysql_query($insert) or die(mysql_error()); $type="INSERT INTO producttype (producttype_id, producttype_label) VALUES (1, 'Heads'), … | |
Re: Try using @ in front of function name. @fopen @fread @fclose | |
Re: There are tutorials on phpfreaks.com [url]http://www.phpfreaks.com/tutorials/107/0.php[/url] [url]http://www.phpfreaks.com/tutorials/123/0.php[/url] | |
Re: Check database table. What's its collation? UTF8_*? | |
Re: It's not true that JSP is much more secured. It totally depends on the developer of the application. [QUOTE=anuj576;704224]Well i think that JSP is much more secured than the other two. I hope some professional can clear this out. :)[/QUOTE] My preference is PHP for web applications. As for desktop … | |
| |
Re: EasyCleaner will do for you. [url]http://personal.inet.fi/business/toniarts/ecleane.htm[/url] | |
Re: I am currently using WS_FTPLE and Filezilla. Both are free and good. Filezilla [url]http://filezilla.sourceforge.net[/url] WS_FTPLE [url]ftp://ftp6.ipswitch.com/ipswitch/product_downloads/ws_ftple.exe[/url] AceFTP (Never tried before) [url]http://software.visicommedia.com/en/products/aceftpfreeware/[/url] ![]() | |
Re: I assume all columns are varchar. You can try one of them. If it's not working, then post here again. [CODE=php]if(mysql_query("update book set hometel='$edit_hometel',worktel='$edit_worktel',fax1='$edit_fax1',fax2='$edit_fax2',pobox='$edit_pobox',email='$edit_email' where name='".$row['name']."' and hometel='".$row['hometel']."'")){ echo "<font face='arial narrow' size='3' color='#ffffff'>The Record has updated succesfully.</font><br>"; echo "<a href='index.php'><img src='images/buttons/continue_butt.gif' border='0'></a>"; }else{ echo "<font face='arial narrow' size='3' color='#ffffff'>An … | |
Re: [PHP]header("Refresh: 3; http://www.yourdomain.com"); [/PHP] Try replacing '3' with your choice. Hope it helps. | |
Re: I hope this would help you [url]http://docs.php.net/en/ref.printer.html[/url] | |
Re: [url]http://www.hotscripts.com[/url] Plenties of scripts are there for you. | |
Re: Just to take note that there is no Foreign key in MySQL unless your database's type is InnoDB. I assume you are using MyISAM. [QUOTE]DELETE FROM Customer WHERE CustomerID = yourcustomerid; DELETE FROM Records WHERE CusomerID = yourcustomerid; [/QUOTE] Hope it helps. | |
Re: Clear cookie or session. If session or cookie is invalid, then redirect user to log-in page. | |
Re: Another way round to use .html is use mod_rewrite to convert .php to .html (any file format you can convert) ![]() | |
Re: WMP cant play avi. You can try [url]http://www.divx.com[/url] | |
| |
Re: You can embed html code in php. Example, <EMBED SRC="yourfile.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED> Hope it helps. | |
Re: I don't think Microsoft is able to complete against Apple in Mp3 player market. But I would like to see Microsoft + Creative against Apple. That would be a big fight in the market which would push Apple better in producing the upcoming players. | |
Re: [code=php] <? header( "HTTP/1.1 301 Moved Permanently" ); header( "Location: http://www.your-new-site.com/your-new-url.html" ); ?> [/code] | |
Re: Try this code [code=php]header('Location: '.$_SERVER['HTTP_REFERER']);[/code] | |
Re: Another would be phpDesigner [url]http://www.mpsoftware.dk/phpdesigner.php[/url] | |
Re: You need to insert url for form action. [CODE=php]<?php print "<pre>"; print_r($_POST); print_r($_REQUEST); print "</pre>"; print "<form action='<destination-url>.php' method='post'> <input type='text' name='inputname'> <input type='submit' name='test'> </form>"; ?>[/CODE] | |
Re: It's called Aggregator. You can google "RSS Aggregator" or "PHP Aggregator" | |
Re: To me, I would set less rules which affects main points. Of course, if your forum is getting popular, it's good to set many rules. | |
Re: Post your code. We cant tell the problems unless you post your codes. | |
Re: It depends on the site that you are trying to retrieve content. If the site is loading slow, then it can affect on your retrieval of content. | |
Re: Do you get any errors? Try to use the full path /your/server/path/to/your/application Full codes will be appreciated. | |
Re: Why don't you use COUNT in sql statement instead? [code=php] $qry = mysql_query("SELECT COUNT(*) FROM data_table WHERE page='$page'",$dbh); [/code] | |
Re: It's called mod_rewrite, which is an Apache module. It allows you to rewrite the requested urls. You should read more about it here [url]http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html[/url] | |
Re: IDE: Eclipse Server: Apache, PHP, MySQL. Try xampp or wamp as buddylee17 suggested. | |
Re: It would be better if you put your code in code tag. Easier to look through. | |
Re: Post your codes in code tag. Have you tried chmod 777 on destination folder? | |
Re: It's not true that ColdFusion will cut down your development time. If you need faster development time, you should try Frameworks such as CakePHP, CodeIgniter, Symphony. You will know the speed of your development. Not only speed but also reusability and easier maintenance. | |
Re: Data should be stored in the database. Inform user if admin makes any changes in database. Send changes via email to user. | |
Re: Please write in more details about error where you get. Which line? Please put your code in php code tags in order to help you better. | |
Re: Assume you have hardware that meets to run your script. If so, 1. Optimize your SQL. 2. Install memcache extension in PHP. Hope it helps. | |
Re: It comes from null value of date field. Option 1 If user don't insert date, then you should do validation which forces user to input date. Option 2 Insert default date if user do not input. | |
Re: Try [url]http://atmail.org[/url] [url]http://roundcube.net[/url] | |
Re: Replace dots with dashes. Try below. [code=php]$mydate=date("$year-$month-$day"); [/code] | |
Re: Check on fetch(). What does it actually return? |
The End.