Jump to content

johnnyv

Members
  • Posts

    960
  • Joined

  • Last visited

Everything posted by johnnyv

  1. <?php $PageTitle = "Sending Emails"; if($_POST["BeenSubmited"]) { if ($_POST["MailFrom"]) { if (mail($_POST["MailTo"], $_POST["Subject"], $_POST["Body"], "From: $_POST["MailFrom"]")) { print ("<B><CENTER><FONT COLOR=BLUE>your email has been sent</FONT></CENTER></B>n"); } else { print ("<B><CENTER><FONT COLOR=BLUE>your email has not been sent due to a system error!</FONT></CENTER></B>n"); } } else { print ("<B><CENTER><FONT COLOR=RED>please fill in the required fields!</FONT></CENTER></B>n"); } } ?> <html> <head></head> <body> <FORM ACTION="email.php" METHOD=POST> <INPUT TYPE=HIDDEN NAME=MailTo VALUE=guillowind@aol.com> your email address:<INPUT TYPE=TEXT NAME="MailFrom" SIZE="50"><BR> email subject:<INPUT TYPE=TEXT NAME="Subject" SIZE="50"><BR> email body:<TEXTAREA NAME="Body" ROWS="10" COLS="50"> </TEXTAREA><P> <INPUT TYPE=HIDDEN NAME=BeenSubmited VALUE=TRUE> <INPUT TYPE=SUBMIT NAME="SUBMIT" VALUE="Submit!"> </FORM> personally i prefer to use 2 pages one for the form, and one for the processing page and use javascript for checking that all form elements are filled out before submit occurs.
  2. Oh globals thats not a problem! You know that you post variables are in the $_POST array which is a super global. Too access you variables just do $_POST["MailTo"], and you can access the value for "MailTo" That's it.
  3. pity it wasn't 9.0 but oh well it's a beggining. I alway get my machines made up, but it should at least get some more nz'ers using linux which can only be good!(except for the questions like how do i open word :shock: ) :D
  4. What do you mean "no dma"? why would you not be using dma mode on your hdd's? you can check and change the settings of your hdd's by using hdparam. you may have to install it, it comes on cd 1 as su hdparam -i /dev/hda or what ever you hd is. the pio/dma/udma mode with the * infront of it is the one its using heres my work stations hda [root@administrator john]# hdparm -i /dev/hda /dev/hda: Model=ST320413A, FwRev=3.39, SerialNo=5ED269L6 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0 BuffType=unknown, BuffSize=512kB, MaxMultSect=16, MultSect=16 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39102336 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=no WriteCache=enabled Drive conforms to: device does not report version: 1 2 3 4 [root@administrator john]# heres an article on setting your hard drive parameters http://www.linuxgazette.com/issue79/punk.html
  5. I have found 9.0 to be definately faster than 8.2 on all the boxes i have installed it on. win me? it loads up it's screen before it has finished loading all the drivers. you get a screen before win 98se but the hdd is thrashing away for a while after. and anyway did u try disabling all the services that windows me doesn't have and 9.0 does? compare win xp bootup to 9.0 bootup. bootup time is not a prob for me as i don't need to dual boot much, and it's not like linux crashes very often anyway unlike win me that needs to bootup quick as you have to do it so often :P
  6. definatly turn off all GUI stuff on the box while you aren't using it for the GUI eg) as the server. Gui's take up alot of resources that are better off used for serving webpages etc.. simply logout of x after you finish using the gui.
  7. heres a good article on OSS/FS http://www.dwheeler.com/oss_fs_why.html there is also a free book on Secure Programming for Linux and Unix http://www.dwheeler.com/secure-programs/ some of you may find this interesting/usefull if you haven't seen it before
  8. I would pronounce it F-A-S-T so i guess im more lucky than you, and have it setup better. Certainly if i had winblows xp on my box it would be much slower.
  9. johnnyv

    Holy Wars

    I use kwite for my php/html/xml code. I dont care about it much as long as it's got code highlighting for the langauge im using. Oh and as long as it shows the line number your cursor is on. If i find something i like better i will use it. :) :) :) :) :) :D :D :D :D happy enough for ya?
  10. for the mail function in php to work it uses the server's smtp server to send the mail. i think it works for sendmail/postfix and some other sendmail compatible smtp servers. i think it works by default if you have one on the supported smtp servers on the server. http://www.php.net/manual/en/ref.mail.php if you don't have a sendmail compatible smtp server on the server where the script is held i believe you can set your php.ini file to use another servers smtp server Name Default Changeable SMTP "localhost" PHP_INI_ALL smtp_port "25" PHP_INI_ALL sendmail_from NULL PHP_INI_ALL sendmail_path DEFAULT_SENDMAIL_PATH PHP_INI_SYSTEM You would change the "localhost" to the address of the other smtp server. hope this helps
  11. i don't understand? you want the clients to have there primary dns lookup to be a dns server that it out side you network? if so you set the clients dns to the ip of the external dns server mandrake control center -> network and internet -> connection -> wizard -> blah -> blah -> dns (between host name and gateway) set it to the external dns server. am i missing something here? can your clients reach the external dns from behind the firewall?
  12. But he is using a server so he may want to use that for backup/multiple users/fun/etc.. certainly i prefer doing my users mail backups from the server than on there clients. sylpheed? mozilla mail all the way :P hehe just kidding i will allow you to use what ever app you want :) (as long as it's not Outlook!). As to the actual question. I just have a normal account for each of the users which gives them a mail file in the var/spool/mail directory. and i use fetch mail to periodically check the pop mail boxes on the isp and then it sorts the mail according to my fetchmailrc file. Ummm the trouble is i set this up ages ago and i forgotten exactly how i did it Thats the trouble with linux, it doesn't break like windows Nt so i don't get to constantly refresh my memory by setting it up over and over again!. I believe the docs in the old board should help you out alot. http://www.mandrakeuser.org/docs/connect/i...index.html#mtuw Actually we need and updated doc on this for this board, i am gonna upgrade my work server to 9.0 in a month or so, so i may write a tut for 9.0 while i do it.
  13. What you want to control your mandrake box from your win98 laptop as in you want to admin it?, or use the apps on the linux box? for admin use webmin. for using the linux apps linux has of course vnc, amoung others. you can get a vnc client for free for windows 98 try google. was that it? BTW upgrage mandrake 8.0 to at least 8.1, it's alot better trust me. oh here is a link to a windows vnc client/server http://www.uk.research.att.com/vnc/
  14. try comparing windows XP to Mandrake on that box. Nt is a very old operating system, so if you use mandrake 9.0 on that box do not use KDE or Gnome!. use a light one like blackbox.
  15. yes thats sounds like a power supply.
  16. Thats what i wanted to hear! I just bought a GF4 Ti4200 today and already have a GF2PRO! Don't spose any of you know where i can find a good tutorial for setting up the system so i can have my normal monitor on 1600 X 1200 and my TV on 1024 X 768 at the same time? Even if i can't do that, can i even do 1024 X 768 on the monitor and the tv at the same time? Specifically just have it setup to do it all the time and plug in the tv av cord when i want to see it on the tv, without having to do anything special? Cheers
  17. 24 sec to load on my work duron 750 256mb pc133 sdram, 5400rpm 20gb hdd. significantly less time on my home 1800xp, 512mb pc2700, 7200rpm 80gb.
  18. I have a few 9.0's connected with nfs, not using nis, and have no problems with them. setup through the control center.
  19. does it really matter a great deal how fast your boot time is in linux? once booted linux doesn't need rebooting so boot time becomes irrelevant. unless you dual boot often of course, if you mean that you want to run with less resources by switching off services you don't need then yes you can get rid of a fair amount of stuff depending on how much functionality you need. You can free up heaps of resources by not running a window manager and Xfree :P
  20. I had a look around but no luck sorry. Somebody need to put a tutorial on how to get and install the newest radeon drivers maybe, like DOlson has got for the nvidia drivers.
  21. That bluecurve looks horrible to me. I use keramik with the crystal icons from texstars site. does the redhat bluecurve support menu transperancy? the 9.0 rpm doesn't. And yes thanks Texstar and others who make rpms of new stuff! you guys are great.
  22. that is strange if glxgears works and glxinfo say direct rendering is on then it should work fine. I will have a look tonight at home. for q3a i just used quake3 as my startup command, for urban terror (q3a mod) i had to specify some arguments to get it to run stablely so i will get back to you on this as i cant remember what they were.
  23. I am very happy with mandrake so i won't be moving to something thats less configurable. also the mandrake tools being gpl are a good thing, if i use other distro's it will be (broken record) gentoo or debian probably not debian though cause it's just not bleeding edge enough.
  24. Do you have 3d drivers installed for your radeon? typing 'glxgears' in console works? out of the box? is that free download or bought box? nvidia drivers aren't supplied in the free download as they are proprietary like radeon i would assume. you have to install them yourself. Have you got a previous point release to work in the 9.0 version of mandrake? 1.32 runs perfectly fine in my download version of 9.0 after 3d drivers were installed
  25. a bit of an artical about cheaters in q3a it's a bit dated. http://www.gamespace.co.za/ps/showcatstory...id=412&catid=10
×
×
  • Create New...