
onlyican
Members-
Posts
921 -
Joined
-
Last visited
Everything posted by onlyican
-
I do not have a problem with the code, I have a problem finding the code support. As original thread states - I am looking to Create the application, hope someone has created one already. This is the most appropriate forum for this topic. Not all coding problems have the code, sometimes a coding problem could be where to start.
-
I want the code in PHP, ASP if only other option. PHP Ticked I want to code a MailSort web based application. Coding Ticked I want help with this Help Ticked I think I am in the right place
-
Hi All Been a while. I am looking at building a Web Based Mailsort application. (Maily to use in-house) Looking at tips on where to start (preying that someone has created an open-source version somewhere) ASP, JavaScript or PHP based, I dont mind, I read all and will be re-programming it anyway. (Please dont ask what it is, if you do not know what Mailsort is then you can not help me) Cheers.
-
Hey all I have a form which allows a user to upload an image I want to create a preview of what the page they are creating looks like, so I want to show a preview of the image on the page without uploading the image So what I need to do is get the full path (The actual value shown in the form) to javascript I done the following //JavaScript bit ShowTempImage(FormImgVal){ alert ("Val is "+FormImgVal); } //HTM Bit <form method='post' action='' enctype='multipart/form-data'> <input type='file' name='UploadImg' id='UploadImg' onclick='ShowTempImage(this.value);' /> </form> And i get an alert saying the filename only, not the full path. Anyone know How i can get the full path without page reload
-
Been working in ASP and VFP (Visual FoxPro) for a while now and forgot loads of PHP I am building a CMS driven site (in PHP) I am allowing the user to add / edit / remove pages I dont like pages like ?page=1 So I want to edit the .htaccess file so I can have the page name redirect to the page id /ThisPage IS TO /index.php?page=3 Off course, Security reasons, I do not want to re-write my .htaccess file as this means changing chmods which is dangerous There is a way of doing this PHP but I forgot, can someone remind me please. Cheers
-
Hey all. I am building a script, and I need to get the date of MONDAY for a week (Anywhere from MOnday to Sunday) This is what i come up with, which works. Just interested to know if there are any other methods.. function GetMondayDateForWork($DB, $user, $Date){ $DateDay = date("D", $Date); $OneDay = 60*60*24; $MondayDate = false; switch($DateDay){ case "Mon": $MondayDate = $Date; break; case "Tue": echo "Here!"; $MondayDate = $Date - $OneDay; break; case "Wed": $MondayDate = $Date - ($OneDay * 2); break; case "Thu": $MondayDate = $Date - ($OneDay * 3); break; case "Fri": $MondayDate = $Date - ($OneDay * 4); break; case "Sat": $MondayDate = $Date - ($OneDay * 5); break; case "Sun": $MondayDate = $Date - ($OneDay * 6); break; } return $MondayDate; }
-
Hey all I am creating a form, which is wide. It has to be wide as its for Peoples Details and the client wants multiple details on one page, so making the form show all details on one row. To keep the width ok, I have forced a Drop Down box to be 100px wide. this is because the information from the drop down box is Dynamic and could also change. in FireFox, when you click on the drop down box, the entries are shown full width, but IE does not, it keeps the width. I tried adding the "title" tag, so hover over the name and you can see the full name, but this does not work in IE, (Sods law, it works in FF) Any ideas how I can get around this. Widening the drop down box is NOT an option.
-
Cheers, it works
-
You mis-understood, I got the time for that day in the example but say I have 4 days If I add all the Start Times up, I could run into problems The only thing I can think off is adding up the Hours and Minutes Then what do I do when I have 200 minutes. We know its 3 hours 20 mins, but How do I get the 20 minutes?
-
Hey all. Been a while. Here is the situation. I am storing someones Start and Finish time for work in the database using strototime() So I have the date. TO work out the number of hours they have worked that day is simple $DiffTime = ($FinishTime - $StartTime); //For some reason, above adding an hour. remove this $DiffTime = strtotime("-1 hour", $DiffTime); //Show results as wish return date("G", $DiffTime)." hours ".date("i", $DiffTime)." mins"; Now here is the tricky bit. I want to somehow work out how many hours in total they have done. Any suggestions?
-
Thanks for your replies. I am on about WYSIWYG HTM Editors for websites, not Code editors for creating websites.
-
Hey all. Need some advice. I am looking for a WYSIWYG HTM Editor. I would love to have one that I can connect to a website standard CSS. and free would be nice.
-
Sorry for the delay, got side tracked with another 4 support jobs. I have edited things and it is still the same. .htaccess file AuthUserFile /www/SiteName/members/.htpasswd AuthType Basic AuthName "My Private Area" require valid-user I know that the htpasswd file should not be in the website directory, but I did not build this, I am just trying to understand it. .htpasswd file MyTest:192ba5b8X6Fiw:Jamie:[email protected] 192ba5b8X6Fiw is hash for "test" I also tried htpasswd as MyTest:192ba5b8X6Fiw Both of these, the results are the same. I go to log in Username: MyTest Password: test FAILS username: MyTest password: 192ba5b8X6Fiw WORKS
-
The htpasswd files have already been created. I type in the encrtpyed form of the password and it works for one directory Type in the correct password and it don't It may be to do with the fact that Name and Email is being stored in the string as well
-
it is working Username:Password:Name:Email Username:Password:Name:Email Username:Password:Name:Email How it works from what I understand Split the line at : Then Section 0 and 1 (Username and Password) are used Doesn't matter if there is only 1 colon, or 100. I managed to add a user using there admin system, but the encrypted password is totally wrong I think it is to do with my set up of htpasswd.exe
-
Hey people. I got a new client who has there site run with Apache Authentication. It is my job to test everything is working. Problems. I have the website with several folders In the folder "Members" I have 2 Apache files htaccess htpasswd Htaccess contains the following AuthUserFile /www/SiteName/members/.htpasswd AuthType Basic AuthName "My Private Area" require valid-user I will be moving the location of htpasswd at a later date. In htpasswd I have a long list of Usernames and encrypted passwords such as test:192ba5b8X6Fiw:Test:test "192ba5b8X6Fiw" Should be "test" I go to log in, I have to log in with the following information Username: test Password: 192ba5b8X6Fiw I should be logging in with password "Test" I have another folder, called "securearea" Inside this folder, there is no htaccess file, but there is a htpasswd file. Again information stored as test:192ba5b8X6Fiw So the password is encrypted This time, I go to log in, I use Username: test Password: test NOT 192ba5b8X6Fiw, So how come this is working here but not in the other folder. How come this is working without a htaccess file? Any articles or anything to help me understand, I would be grateful.
-
aye sorry, I just found that out when looking through the job I have a spec sheet here, whcih mentions Review Linux Password Security. After reading the website data, it is actually Apache Authentication (.htaccess / .htpasswd)
-
Hey all. I am creating a website. This website has multiple files, which are confidential and important, so need to be kept secure. The files and the Website linking to the files are behind a Linux Password section. (you know tha pop up which comes up asking you to enter your details) How secure is this? If not secure or anything, please give me a link showing why not.
-
So Option 2 is correct then. As it is always the case, you just add it to the function insetad of when calling the function
-
Hey people I know what &$ does, it allows you to pass a variable into a function which will update the varibale But please tell me which method is correct or best Option 1: Add & when calling the function <?php function MyFunction($MyVar){ $MyVar = "How are You"; } $MyVar = "Hello"; MyFunction(&$MyVar); echo $MyVar; ?> Option 2: Add & when building function <?php function MyFunction(&$MyVar){ $MyVar = "How are You"; } $MyVar = "Hello"; MyFunction($MyVar); echo $MyVar; ?> Option 3: Add & in both <?php function MyFunction(&$MyVar){ $MyVar = "How are You"; } $MyVar = "Hello"; MyFunction(&$MyVar); echo $MyVar; ?> As you can guess, I want the result to be "How are You"; not "Hello"; //Edit, Added php tags
-
CSS Submit buttons it is then Font size 0 Color White, to blend in with the image
-
I understand that. I believ FF does work the same if you use _x and _y as IE BUt I thought they work the same as normal submits as well.
-
I was thinking something <form> </form> is a MUST as it is a form and having HTM inside PHP Echo takes more Server load Why not use SHorthand echo <input name='X' value='<?=$MyValue;?>' />
-
You can tell it is Monday, I did not even think of that. Cheers. Just working to make it cross browser friendly with the text as I need the value but do not want to show the value
-
Hey people I have a form full of buttons Depending what button is pressed I am using image buttons Now I have hit a problem, in IE. Example I have 2 buttons <input type='image' name='ImageButton1' value='X' src='images/ImageBtnA.gif' /> <input type='image' name='ImageButton2' value='Y' src='images/ImageBtnB.gif' /> Now the PHP Stuff <?php $ImgBtn1 = isset($_POST["ImageButton1"]) ? $_POST["ImageButton1"] : ""; $ImgBtn2 = isset($_POST["ImageButton2"]) ? $_POST["ImageButton2"] : ""; if($ImageBtn1 != ""){ //Do some code, for when this button is pressed } if($ImageBtn2 != ""){ //Do some code, for when this button is pressed } ?> NOTE: I need the value of this as well In FF, this works fine In IE, its not working I don't print_r($_POST) I get something like ImageButton1_x => 2, ImageButton1_y => 6 (The X and Y values of where the button / image was pressed. But I need the name and value of the button which was pressed. Any ideas how to resolve this issue.