Jump to content
xisto Community

tuddy

Members
  • Content Count

    572
  • Joined

  • Last visited

Everything posted by tuddy

  1. Just for someone whom knows, How does the deduction for something work?I'll give an example, ie. What happened to me :)I made a post with my PHP code, asking for help finding the error. I forgot to put the code in quote tags. and from having 13 credits i went down to 1. before making that post i had about 8.7. Is there a way the deduction is made? Notice from BuffaloHELP: Merged two posts. I'm assuming the first post was submitted without completion.
  2. Depends on what you need it for?...ie. Is it for bussiness or personal use.Do you care for certain features and support?Do you like to be stylish and funky? :)Personally, i'd move away from Nokia, nokia have good features and all, but there support lacks from experience of screens break, keys and just going smoky!
  3. Just wondering if there is a flash version for PC of this game out?I thought i heard and seen it once, but don;t know wether there really is? anyone know?I'm a James Bond Freak, i have watched all movies, and will never miss a future one. I'm an action freak..James Bond, 24, Alias, Theat Matrix...All great!I've gone through that game a number of times, and my family is trying to buy it, can't find it anyway. We live sorta in the country! Kills the hours quickly though! Tuddy out...
  4. It may be fast, but do you really need it? Giive it 4 years and it will be out on the streets by something bigger and better and faster.Maybe we can hand around and pay millions to get it like that, but the fact of the matter really, is you don't got no use for it!...Except fun and fame!!
  5. Google just going to keep expanding, and expanding, until they either have done everything possible with Technology or go broke and close down. Google come up with some good ideas, and do provide some great resources in terms of education. Google more then just searching!
  6. Hopefully then, anything that people want will be created and have also a friendly user, and enviroment friendly impact to our socity of living.Life can only get better...Well just wait and see, hopefully i'm still alive to see that day. Maybe we won't have to have services like 'Trap 17' in the future, maybe it will all be built in for every member of the universe to have his/her own personal electronic space.
  7. In the future the whole wide world will just become Computerized! Cars that will automatically drive you to a destination you specify. No gardening required, No nothing, just set back and watch a huge screen in your own home. I can't wait for the day everything is run by computers, and someone gets the brain to come up with a virus able to bring down all computerized machines. We can just sit around and wait!
  8. How would i use include() within my script? I dont want any of the script to show something in the browser, which what include() would do, wouldn't it? The way to get rid of my errors is to have the values replaced, but why won;t my script replace them?, it just writes over everything with a blank page. :S
  9. I have the following code now, $file2 = 'files/leave1.txt'; $file3 = 'files/leave1.htm'; copy ($file1, $file2); $from=array(); $from[]="<<number>>"; $from[]="<<rank>>"; $from[]="<<initials>>"; $from[]="<<family>>"; $from[]="<<datef>>"; $from[]="<<datet>>"; $from[]="<<dates>>"; //and so on to have all the fields you want to replace $to=array(); $to[]=$number; $to[]=$rank; $to[]=$initials; $to[]=$family; $to[]=$datef; $to[]=$datet; $to[]=$dates; //And so on to have all the strings you have to put in place of the fields $string=str_replace($from,$to,$string); $fp = fopen( "$file2" , "w" ); fputs( $fp, $string ); fclose( $fp ); copy ($file2, $file3); $fileatt = "files/leave1.htm"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = "leave1.htm"; // Filename that will be used for the file as the attachment $email_from = "Test"; // Who the email is from $email_subject = "Leave Application"; // The Subject of the email $email_message = "This is a Leave Application."; // Message that the email has in it $email_to = "cm44750@cadetnet.gov.au"; // Who the email is too $headers = "From linenums:0'><?php $file1 = 'files/leave.txt';$file2 = 'files/leave1.txt';$file3 = 'files/leave1.htm';copy ($file1, $file2);$from=array();$from[]="<<number>>";$from[]="<<rank>>";$from[]="<<initials>>";$from[]="<<family>>";$from[]="<<datef>>";$from[]="<<datet>>";$from[]="<<dates>>";//and so on to have all the fields you want to replace$to=array();$to[]=$number;$to[]=$rank;$to[]=$initials;$to[]=$family;$to[]=$datef;$to[]=$datet;$to[]=$dates;//And so on to have all the strings you have to put in place of the fields$string=str_replace($from,$to,$string);$fp = fopen( "$file2" , "w" );fputs( $fp, $string );fclose( $fp );copy ($file2, $file3);$fileatt = "files/leave1.htm"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = "leave1.htm"; // Filename that will be used for the file as the attachment $email_from = "Test"; // Who the email is from $email_subject = "Leave Application"; // The Subject of the email $email_message = "This is a Leave Application."; // Message that the email has in it $email_to = "cm44750@cadetnet.gov.au"; // Who the email is too $headers = "From: ".$email_from; $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; $email_message .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message . "\n\n"; /********************************************** First File ********************************************/ $fileatt = "files/leave1.htm"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = "leave1.htm"; // Filename that will be used for the file as the attachment $file = fopen($fileatt,'rb'); $data = fgets($file,filesize($file)); fclose($file); $data = chunk_split(base64_encode($data)); $email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; /********************************************** Second File ********************************************/ // To add more files just copy the file section again, but make sure they are all one after the other! If they are not it will not work! $ok = @mail($email_to, $email_subject, $email_message, $headers); if($ok) { echo "<font face=verdana size=2>The Leave Application was successfully sent!</font>"; } else { die("Sorry but the Leave Application could not be sent. Please go back and try again!"); } unlink( "$file2" );unlink( "$file3" );?> Now the problem i face is the errors i get with it. these errors being: Line 78 is: $data = fgets($file,filesize($file)); I have studied and changed this code around and can't get it to work, the attachment i get is blank, but its supposed to have the placeholders replaced? Any ideas? Notice from cmatcmextra: Added codebox and quote tags. Warned. Also I'm deducing the credits earnt for this post.
  10. Oh and i forgot, thanks Tyssen, your helpwas great, helped me with displaying the form back to the user after they submitted it. and sorry the link didn't work, i just looked at the link and i out .htm instead of .php which it is. sorry!
  11. Thanks, it work alittle, but not properly. so i have thought of another way to do it.All this will be done by the one form processer (PHP Page)1) Open the text file. (This text file contains HTML Code with 'placeholders for where the form data will be submitted in place of.)2) Write the form data to the text file, replacing only the placeholders.3) Then save it as a new file, but changing it to (something.html) everytime, to the server.4) Then have a Email send the 'new' file as an attachment.5) Then delete the 'new' file from the server ready for the next form to be submitted.Opening the file i can do.Replacing placeholders i can have a crack at.but i get stuck again with, How do i save it as a new file, and change the file type?
  12. WooHoo...I got it to work just fine, thank you so much. Now for my next question, here is what i got. i got one page that calls up the form, then another that calls the php file that has the script. Is there a way i can mail the called file with the data inserted into it? Take alook HERE to understand more ..Just enter some random stuff!
  13. Thanks..Great help.Will it work with .doc .xml .rtf ?? I'm guessing not through mmm...Thanks again!
  14. Well if google wasn't paying out, i guess there would be alot of angry people walking around cursing and screaming about Google. but theres not so, they must be. I bet they probably pull in some good money from other avenues of the world. It doesn;t seem like a bad idea though. Beats getting a real job hey
  15. Is there a way to have PHP read a text file, which contains HTML Code, not text to display. This way i have a simple code in every page, linking to this text file, and then if i'm wanting to change the code, i only need to change the code in the text file. If that all makes sense? I get the feeling it can be done, but the only code i have seen is one that displays the contents of the text files.
  16. Ok, so FORMMAIL will help me with this?The file type has to be able to support formatted test, and tables.BTW, Sorry about the spaces thing
  17. It doesn't matter what type the file is, XML, RTF, PDF etc. as long i can convert it to that type fromt .doc file.Also what ever script or lanuage doesn;t really matter either, as long as it will work with Trap17s servers. and on my site.Has anyone done a Tutorials for this based on Xisto servers?Thanks for your great help. This is a way of learning for me!...add it to the list!
  18. Hi,Does anyone know how i can do this, or scripts that will work on Xisto's servers and will do the following:I have a .doc file form. Which i want to have filled in automactically, by HTML Form and emailed to my address, with the data filled in.Any ideas?I have heard many differing things, like XML, RTF, DOC, PDF...I have serched through many places and come up empty handed with anything that works.
  19. IE has a never ending list of Security Issues. Same with the whole Windows package.But as mentioned, some things can only be viewed with IE correctly. so you pick and choose.
  20. You can just use Internet Explorer too, but why would you want to? Also good to mention Passive Mode, as some FTP Clients will automactically set this to default, and cannot connect if the server doesn't allow it. From Webopedia.
  21. How interestingly stupid! This is like one of those times when everyone with a credit card will start panicing and going crazy. When will the world learn?.... Never i sayWhat can ya do about it though, you have sites everywhere, and some goverments do nothing about it so... Bad Luck..Credit Cards are bad luck! :DCiao
  22. Interesting! 1000 times more... That will be the day.Where did you read about this? and what is it exactly?This could turn out to be another flop on the go!
  23. You know what would be even better to help, if all browsers just displayed everything the same. Life is such a competion these days.
  24. Why don;t we all just start using Netscape! hahaThe debate goes on, i find that i switch between both for some things. Microsoft are by far getting better at there sercurity issues but other then that, IE Sucks!! :(Go FixFox! Secure, Easy, Clean
  25. Interesting... He stole it then :DWindows is a virus in itself, as much as they say there not, and as much as they say there sercure. There is always a back door to the system. The world is full of sercets justing to be hacked on a windows machine! :(How many sercurity patches do they release for on OS
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.