Guys if you are looking for an online php editor to test out your piece of php code, this is not an online php editor tool. This is instead a tutorial to help you build your own online php editor.
How to do it ?
Copy the below code into a php file (eg: create a file example.php ) and save it. Open URL of example.php (example.com/example.php) on your browser and test your php thats it.
<html>
<head>
<title> Online PHP editor</title>
</head>
<body>
<?php
$content_php=$_POST["typeinphp"];
$fh=fopen(”php_file.php”,”w+”);
fwrite($fh,$content_php);
fclose($fh);
?>
<form action=”" method=”post”>
<textarea cols=”58″ rows=”10″ name=”typeinphp” >
<?php echo $content_php;?>
</textarea><br><br>
<input type=”submit” value=”PHP GUYS HIT ME” \>
</form>
<hr color=”#dde8ef” >
<iframe src=”php_file.php” style=”width:100%;” scrolling=no frameborder=0 > </iframe>
</body></html>
How it works
- The program you type will be passed as an html form to the server.
- A new php file with the name php_file will be created.
- The code you write will be written into this file.
- Then the file php_file.php is displayed below the page in an iframe.
- I have written few extra lines to make the form remember the code last time you tested. This is of good help while debugging.
Security risk ?
Since php handles the data, it might be of risk to let somebody access this page. This is just an idea, before you let others use it you muse apply filters to enhance security, Probably a pro php programmer can misuse this tool if its publicly accessible. And Its safe for personal use, unless you try to screw yourself.
This is a tutorial (not exactly) to help you create your own html editor online. Of course you can write and test html code in windows by creating a file with an html extension. I’m trying to save the time ( may be micro secs or even nano ) you need to invest in clicking save and refresh.
I was coding this for myself and I feel this might help somebody.
How to do it ?
- Create a php file with the content below
<html>
<head>
<title> Html Editor - flashyflashy</title>
</head>
<body>
<?php $content_html=$_POST["typein"]; ?>
<form action=”" method=”post”>
<textarea cols=”58″ rows=”10″ name=”typein” >
<?php echo $content_html;?>
</textarea><br><br>
<input type=”submit” value=”HTML ME BABY” \>
</form>
<hr color=”#dde8ef” >
<?php echo $content_html;?>
</body></html>
(ex: html_editor.php and upload it to your website, If you upload it into subdirectory like example.com/html then your editor will be located on example.com/html/html_editor.php)
How it Works ?

When you click the button The html/ javascript/css code you have written will be passed into php $_POST and prints it as it is. Since html is printed and viewed in a browser, output you see will be what you will see usually in your browser for the same code.
Caution : Its a simple program, Before you make it publicly accessible, make sure you have taken necessary measures to avoid hack attempts, Beginners better hide this from search engines.
Tags: Online editors
While retrieving Greek/ Arabic/ Russian language or some other non english character data from database there is possibility that the data may appear as question marks (??????) instead of the original data, Usually you will be having data in its original language neatly stored in database, but for some strange reasons php is displaying it as ?????? when queried.
This problem actually happens because you have not explicitly mentioned the character set inside your php code. Here are two things you must do to solve your problem.
- Put this meta tag inside head tags
<head> <meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″ /> </head>
- Use mysql_query(”SET NAMES ‘utf8′”); before the query to database
mysql_query(”SET NAMES ‘utf8′”);
$new_database_content=mysql_query(”select * from (….) where (….) “);
Tags: Character encoding problem
You are getting the error message “You do not have sufficient permissions to access this page.” mostly becasue you changed the prefix of your wordpress database tables. This solution won’t solve your problem if you had this problem because of failure in upgrading to a new version. If you
Solution is actually simple and the only thing you should know is to use “Database Administration Tool” like “PHPMYADMIN” ( most used ).
Solution is in 3 steps.
- Click on table [yournewprefix]_options update the option_name [youroldprefix]_user_rolesuser to [yournewprefix]_user_rolesuser .   ( How to do it: Login to your PhpMyAdmin click on table [yournewprefix]_options click browse find the option_name [youroldprefix]_user_rolesuser which has got option_id 77 (in wordpress 2.6) since by default Phpmyadmin shows ony 30 items you need to press next ( a button with rightward arrow)
- Click on table [yournewprefix]_usermeta update the meta_keys
[youroldprefix]_capabilities
[youroldprefix]_user_level
[youroldprefix]_autosave_draft_ids
to
[yournewprefix]_capabilities
[yournewprefix]_user_level
[yournewprefix]_autosave_draft_ids.
- The prefix in wp-config.php ( eg: wp_ ) should be same as yournewprefix. (If you don’t change this wordpress thinks you are trying to upgrade, Don’t upgrade .! just change this. )
If it doesn’t work please post a comment explaining what you did and what happened, I’ll try to help you.
Note: If you are getting this error as you changed table prefix then it definitely has an easy solution, don’t try to upgrade or reinstall, you might end up wasting time and content. You just need to look into some database items that are not updated when you changed prefix, Update them to your new prefix. This problem for any version is solvable as far as I know.
Symlinks ( symbolic links / soft links ) are the shortcuts to another file or directory, Here I’m referring to the symlinks that you usually see in a FTP account ( not to be confused with the shortcuts used in a PC ).
You can not usually delete symlinks by
- Using control panel provided by your host.
- Using internet explorer to accesss ftp account.
- Using a random ftp client that only supports ftp.
- Changing file permission (eg: changing to 777 ) and trying to delete.
How to delete symlinks
- Use a proper ftp client software that supports SFTP/SSH mode file transfer. Use Winscp or filezilla . I have tried winscp and mostly filezilla too works in sftp mode.
- Use shell commands to remove the symlink, eg 1: use “rm /www/public_html/~folder_name” instead of “rm ~folder_name” to delete the file along with the folder. eg2: use “unlink symbolic-link” .
Once you remove Symlinks it will be easy to delete the containing folder, try it.

Seems like an american soldier having good time with Iraqi kids. ” Gun, war and kids ” ! . Little kids, might be wondering what the soldiers doing at the door of their house.
How old are you .? what older than 103 .? You can’t use digg unless you lie ( like a celebrity ) about your age .
I was experimenting a bit on digg yesterday, I was searching for some funny loop holes in digg ( kevin is getting smart these days , you can’t find many ) and found out that I can’t be older than 103 ( Thank god I’m not ). They might think that somebody older than 103 is too shaky to Diiiiiiiiiggggg. ( My nth sense says Kevin will write a post soon explaining why my great grandpa can’t DIGG .
(Â how wierd it will look if somebody says he is 200+ years old, kevin is right but he could have let my great grandpa of 107 ( not alive ) to Digg. )
Tags: Digg and Kevin rose
This lis is not made in a minute, This list was made considering the size, quality and the trust these sites have gained in torrent search engines.
At torrentz they don’t host torrent files, Its the best torrentz search engine available. The best thing about torrentz is that they list torrent sources from the top 10 torrent sites and hence more options.
Alexa Rank:144 Compete Rank:2432 PR:6Â estimated visitors/day ( compete ) :6,77,093
Mininova is the best torrent site on net as on this date. Good thing about mininova is that its seed peer ratio can not be altered too easily, hence you get good speed ( If you are a torrents freak you might know that high seed / peer ratio will result in good speed. )
Since its the largest site many computers will be plugged to mininova hence good speed, and you can even download the older movies with good speed. (Â If you have used limewire then you understand it better .)
Alexa Rank:59 Compete Rank:1409 PR:6Â estimated visitors/day ( compete ) :1,109,194
The pirate bay seems more customed like a search engine as well as host . Pirate bay is the second largest torrent site , I like it because I have found almost all the files I have searched, its too big , really big. Even though it shows high seed/peer ratio , we seldom get greater speeds ( pirates say that they have often changed the S/P ratio ).
Alexa Rank:94 Compete Rank:1020 PR:7Â estimated visitors/day ( compete ) :1,488,110.
Alexa Rank:131 Compete Rank:1536 PR:6Â estimated visitors/day ( compete ) :1,024,000.
Alexa Rank:496 Compete Rank:4033 PR:5Â estimated visitors/day ( compete ) :426,000.
Alexa Rank:712Â Compete Rank:5023Â PR:5Â estimated visitors/day ( compete ) :345,397
Alexa Rank:817 Compete Rank:6750 PR:5Â estimated visitors/day ( compete ) :263,000.
Alexa Rank:1355Â Compete Rank:5,962Â PR:7Â estimated visitors/day ( compete ) :293,000
Alexa Rank:2130Â Compete Rank:16,612Â PR:5Â estimated visitors/day ( compete ) :108,000
Alexa Rank:2,623Â Compete Rank:31,289 PR:5Â estimated visitors/day ( compete ) : 56,300
Alexa Rank:2951Â Compete Rank:18,389 PR:5Â estimated visitors/day ( compete ) : 97,948
Alexa Rank:3268Â Compete Rank:32,039 PR:5Â estimated visitors/day ( compete ) :54,900
Alexa Rank:3287Â Compete Rank:18,437Â PR:5Â estimated visitors/day ( compete ) :97,000
Alexa Rank:5874Â Compete Rank:36,455Â PR:5Â estimated visitors/day ( compete ) :47,881
Alexa Rank:5908Â Compete Rank:35,668Â PR:5Â estimated visitors/day ( compete ) :48,956
Alexa Rank:6394Â Compete Rank:33,311Â PR:5Â estimated visitors/day ( compete ) :52,350
Alexa Rank:7,156Â Compete Rank:31,332 PR:5Â estimated visitors/day ( compete ) : 56,220
Note: alexa Ranks, PRs and compete ranks listed here are as on July 3rd. And this list is made on the basis of their alexa ranks and the listing is not in the oredr of their quality. This list doesn’t consist of private torrents or torrents asking for signup.
Tags: Torrents