Jump to content


Check out our Community Blogs

elle

Member Since 17 May 2007
Offline Last Active Aug 02 2007 02:43 PM
-----

Posts I've Made

In Topic: Protection JPEG/DIR with session

22 July 2007 - 11:14 AM

Actually I'm using some freeweb hosting and there's no way how to access directory out of the web root. So .htaccess works pretty well for me now.

I'm using this one inside the image folder:

<FilesMatch "\.(jp?g)$">
   order deny,allow
   deny from all
</FilesMatch>

For reading image data from php is used fpassthru() function or something like that. Now I can decide who's authorized via session and provide the image.

elle

In Topic: Protection JPEG/DIR with session

21 July 2007 - 03:00 PM

Actually the code above is really correct. Some modification can be still applied I mean replace creatimage function with some direct stream read function (avoiding of compression) but this still doesn't solve the image protection in the directory. The solution is to use .htaccess on it with deny to show images.

That's it.

In Topic: Posting a link to a text field

19 July 2007 - 03:16 PM

It should be a piece of cake.

Javascript solution inside popup:

<textarea id="Message" name="Message" rows="10" cols="10"></textarea>

<script type="text/javascript" language="JavaScript">
<!--
	document.getElementById('Message').value="NUMBER";
-->
</script>

or when generating popup write it directly to textarea from PHP script

<textarea id="Message" name="Message" rows="10" cols="10">
<?php
echo $number_id; /* or via $_GET
?>
</textarea>

In Topic: Ideas please!!!!!

19 July 2007 - 02:55 PM

I suggest to you to try some DOM parsing with PHP. You can remotely download some HTML page/data, reparse it (grab only what you need) and then send back to user's browser. You can use some AJAX techniques with it too.

Anyway happy coding. There's always a lot of things to do. Just dip in !

In Topic: Symbol referencing errors + GCC + Solaris

22 May 2007 - 04:14 AM

Problem just solved. I omitted to link the posix4 library. If anyone else interested in here's the solution:

gcc sem.c -o sem -lposix4

It's a Piece of cake, isn't it ? :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download