Free php file manager
I ran into a nice project a while back, a free php file manager. In case you ever need one.
- liviu's blog
- Login or register to post comments
How to protect against xss and csrf attacks?
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.
- liviu's blog
- Login or register to post comments
- Read more
How to make php parse other pages then .php
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.
- liviu's blog
- Login or register to post comments
How to simulate a cron in php
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:
- liviu's blog
- Login or register to post comments
- Read more
how to create cool flash movies without coding flash
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
- liviu's blog
- Login or register to post comments
- Read more
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 indeedIt 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.
- liviu's blog
- Login or register to post comments
How to get only the content of an html page, without the tags
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);
- liviu's blog
- Login or register to post comments
- Read more
How to show the progress of an upload
How to show the progress of an upload
I found this site that offers an upload progress meter.
- liviu's blog
- Login or register to post comments
How to disable right click
How to disable right click
- liviu's blog
- Login or register to post comments
- Read more
What is this blog about?
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.
- liviu's blog
- Login or register to post comments