Posts Tagged ‘folder’
How do I reference an authorized user (.htaccess) using PHP?
I have a protected directory on my apache server using .htaccess. When someone authenticates into the folder, I would like to reference the username using PHP. Is there is a server variable in PHP that can reference the authorized user from .htaccess?
I’ve researched the PHP_AUTH_USER a little bit but it doesn’t look like what I need. I attempted the $_SERVER['PHP_AUTH_USER'] statement but it was null.
Any help would be appreciated.
PHP/MySQL on user registration add new folder?
How would I code, in PHP, that when a user registers a folder the same name of their choice of username was created?
how to process a request in PHP?
How to process the REQUEST that comes in the /DocumentRoot/demo folder? The request will come from the IMG tag. ie IMG src=”http://a.bcd.co.jp/demo/A.jpg”
There will be no php script to be called. The php script will be called when a request comes to /demo and a jpeg file in the URL.
I have a java servlet class that is needed to be coded in PHP.
I need to process the image coming from the REQUEST of an IMG tag.
HTML Code example:
CODEIMG=”http://a.abc-efg.co.jp/demo/Sample.jpg”
From this URL, a request comes in for the Sample.jpg to be displayed. But before this image be displayed, some process should be done first at the back-end, then the right size of the image should will be displayed.
A php script will not be called from this IMG tag. The trigger would be the REQUEST..
I have done this in java by using a Filter class and filter mapping in the web.xml file.
I not am sure this can be done in PHP.
Thanks.
Adware/Spyware Problem?
Whenever I open a folder a popup with a fake anti virus site would come onto my browser (http://browser-security.microsoft.com/blocked.php?r=21.0). i found out it was from sysguard.exe and then i deleted it from my system. however, after i did that, i still get the pop up everytime i push backspace when im looking through a folder. how do i remove this? i’ve tried avast/yahoo anti spy and still couldnt detect it.
How do I change my PhpMyadmin Directory?
phpmyadmin is not in my htdocs folder, it is outside the htdocs folder so I do not know how it is accessed in the first place. Which config file would I alter to change the name of my phpmyadmin folder name in XAMPP? I searched php.ini and httpd.conf for any reference to phpmyadmin but was unable to locate it. I would like to rename the phpmyadmin location because I have just noticed a vulnerability scan in my logs which scans that directory, if I am able to change the directory I can prevent unwanted security breaches. I am using WinXP and XAMPP webserver.
