Free php file manager

Tagged:  

I ran into a nice project a while back, a free php file manager. In case you ever need one.

How to protect against xss and csrf attacks?

Tagged:  

How does csrf attacks work?

An example:

Suppose that you have a page that deletes users, like user_delete.php?id= . On that page you take the id, verify in the session that the user has acces to delete that user, and you delete the user.

How to make php parse other pages then .php

Tagged:  

How to make php parse other pages then .php?
How to put php code in a .htm page?
How to run php in a html page?

For example, you want to put php code in a .html page and you want it to work. You can do that. You need to put "addtype application/x-httpd-php .html .php .htm" in .htaccess.

How to simulate a cron in php

Tagged:  

How to simulate a cron in php?
There are two nice functions in php called ignore_user_abort and set_time_limit. With them you can create a cron in php like this:

how to create cool flash movies without coding flash

Tagged:  

how to create cool flash movies without coding flash?
How to create 3d models in flash?
How to create easy flash animation?
A 3d application that exports in flash?
How to export 3d max in flash

Description box on hover - overlay box - cool javascript trick

Description box on hover - overlay box - cool javascript trick

I found a library that does a cool trick. It shows a description box when you hover a link.

Example:

website design blog - a nice blog indeed


It could be used to make pages, from php applications, with a lot of information, more compact and user friendly. The library is from here: http://www.bosrup.com/web/overlib/ but the page seems to no longer work.

All you have to do is include the js file overlib.js, add a div anywhere in your page like this <DIV id=overDiv
style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></DIV> , and play with the parameters.

Usually it's even prettier then this, but i think the css gets mixed up with my theme css.

How to get only the content of an html page, without the tags

Tagged:  

How to get only the content of an html page, without the tags.
How to remove the tags from an html page.

There is a function in php, strip_tags that does that for you.

Example of tag striping

<?php


$str = <<<EOD
<html>
<head>
</head>
<body>
<p> hello <b>liviu</b>
</body>
</html>
EOD;
echo strip_tags($str);

How to show the progress of an upload

Tagged:  

How to show the progress of an upload
I found this site that offers an upload progress meter.
 

How to disable right click

Tagged:  

How to disable right click

 

What is this blog about?

Tagged:  

While i work on different projects i run into problems.
Some are easier to solve, some are harder.
I'll share with the rest of the world the solutions i find.
Hopefully I'll even help some people.

Syndicate content