Jump to content
xisto Community

stevey

Members
  • Content Count

    126
  • Joined

  • Last visited

Everything posted by stevey

  1. you should also chekc your ftp server most of the ftp connections that fail in my scripts are usually as a result of a failure in the ftp server.
  2. when it comes to installation,well i got only one word for you, check out nsis i.e http://nsis.sourceforge.net/Main_Page it should sort out everything for you.
  3. php sessions may be tricky thats why in order to be absolutely sure you have to completely register the session below is a script that will register the username variable and will be accesssesible throughout the other pages.. <?phpsession_start();session_register('username');$_SESSION['username'] = $username;?>by doing this then in all other pages below the page that you registered this. the variable username will be available, to test this create another page and do this <?PHPsession_start();var_dump($_SESSION);?>YOU WILL see that you have the variable username in the session array. hope this helps
  4. well its always good to be on the safe side so thats why in my scripts i always use $username = $_POST['username'];its just a habit lol.
  5. one thing you should note is that, when, using cookies you should put them at the very beggining before any out put is generated from your script so your script should be some thing like <?php//do some checks//register cookies?>The rest of the htmlmake sure you do that and trust me everything will run smothly , and about that mandatory link for cookies, i have never seen that for i.e . and im currently working on a site with cookies, and works fine without it. the place where you are prone to get problems with are destroying the cookies.. i had real trouble with that. if you need extra help , jus holla...
  6. Hey im trying to restart apache throug a script and so far none of the php or perl scripts have worked and its just driving me mental restarting apache in the command window in windows is a simple as just typing apache -k restartand when i do that i works , but when i create a script to execute that command it fails, and when i try to create a script to execute a batch file that does exactly that it still fails, so im stranded will someone help me out please, coz this is really getting annoying.
  7. The best way to store the data is just like lucifer star said, and this is the most widely used, pass the variables over to the next page and store them there with hidden values,eg. of code <?php//if the previous post variable is $_POST['name'];//then in the next page after the form is submited do this echo"<input type=\"hidden\" name=\"question1\" value=\"".$_POST['name']."\">";?>or alternatively a database like aproach. store the answers of every page to a text file in the windows temporary directory ,then after calculating the results just delete the file after wards and well if you dont delete it windows will, when you reboot the system or the best alternative and i would recomend this. is use php sessions every time the form is submited on the next page register the session varible with the value of the form, if you need code for that jus let me know
  8. hey the guy asked a question so he doesnt want alot of stuff, just give him the damn code, heres how you write at the begining of a file.. <?php//the file variable$filename='file.txt';//get contents of the file to the variable $ht$ht=implode('',file($filename));//the text you wish to write,note the \n to start a new line, dont forget it$txt="This is the text you wish to write at the beggining of a file\n;//open the file for writing, open in write mode, delete all previous content.$handle=@fopen($filename,'w');//join the previous contents of the file, with the new content$txt .= $ht;//finally write your text to the filefwrite($handle,$txt);//close the filefclose($handle);//to be on the safe side include some error handling?>
  9. well honestly with all the power in php , you really should start to learn regular expressions, i mean i used to hate them too, but jus a quick look at it and trust me you could do alot with, it, and well if you cant use regex then, you could easily just do the same with javascript....
  10. hey you reallyl need to use regular expressinos, and well if you dont want to validate the email address but only just want to check if there was an @ sign then you could use this bit of code. <?php$email="some email address";preg_match("|@|",$email,$valid_email);if (empty(count($valid_email)){echo "email address not valid";exit;}else{//the rest of your code}?> that should do it..
  11. if i didnt have my hands full i would probably have coded everything for you, but well heres a tip if you want a simple script, you know, none of the complex more advanced cms stuff then i 'd suggest you visit this website http://www.phpclasses.org/ they offer a variety of classes, and im sure youd find simple user management scripts there, **tip..*** you could always learn php, its quite simple. ***********************
  12. stevey

    Learned C/c++

    let me tell you something i have learnt ova the years, learing a programming language is just usually the beggining, what really counts on how good a programmer you are is how creative you can be, and how well you tackle problems, so if you want to know how goood you really actually are, then this is what i suggest, start your own project, just think of something people might need and start developing it from scratch, this will invoke all your creative and programming skills. its the best way to develop...by the way im currently trying to learn java, i thought i;d give the oo programming languages, a try....
  13. lol that's good, well if ya interested in running the web page for me then, just pm me, coz its quite funny you know im trying to run a project and i dont have any team members..
  14. well actually if theres one thing youll get to learn about microsoft is that they always have the upper hand, and well as far as i know, you'll just learn to respect them, one thing i can guarantee you is that longhorn will be huge following the development of the linux os over the current years im sure microsoft wil come up with a better kernel, when you come to think about it it seems so unfair to linux, i mean i dont think it will eva beat ms, coz any tweaks linux makes microsoft emulates and makes even better,
  15. Hey, im currently running a project on sourceforge .net , two of them actually, one is a hosting control panel like zpanel, only that it emulates functions of cpanel much more better than zpanel will eva be capable of, and one is a open source software installer, some script just like fantastico only its open source, so im running these two projects and im kinda half way on both, and well since im alone its kinda alot of work, its quite stressing, and was hopping to release both of them hopefully next month [february], so this is my plea to the Xisto community, if theres anyone who can programme in php quite good, or if theres anyone here who has good, ideas i need help, or anyone who is good at web design coz i need to run the website too, you could pm me and help me finish up the scripts, by the way i programme everything entirely on php.
  16. Hey i know everything there is to know about longhorn, i have actually atempted to install it twice, on my computer and both times i managed to completely ruin my computer, it messed up my hard disk, and jus to mention to all of you, longhorn is not due for release any time soon, it wont be released in 2006 chances are its due for the earliest 2007 and most probably some date like 2010 or 2009, but i could tellyou this much, it has a really sleek design, definately sexy, it outdoes xp in alot of ways, guess we will just have to cross our fingers and see.
  17. i mean, like you got cpanel hosting control panel, and that runs under linux, so im asking a hosting control panel that runs under the, nt family, xp 2000, with apache web server, ...
  18. For everyone running a hosting control panel under windows, im curious which control panel do you use.like does anyone use zpanel, or does anybody know of any other control panel for windows that is open source..????????
  19. as far as the downloading is concerned i dont have any problems, i have managed to create a script that downloads a list of files from a remote server and displays a progress bar all the way through, so i dont have a problem with the downloading part, im just asking if any body knows any kool features i might add.
  20. hello people im currently working on an open source web software installer kinda like fantastico , but actually for webservers running apache on windows based systems and the biggest part of this will be an update website, where people that have already got this installed can actually update the existing packages, i have already figured out how the downloads work but im kinda running out of ideas, so if anyone has any idea what i could include please tell me, jus give me the idea and ill try sort out the code. so any suggestion all i have got so far is1.i know how to get the files downloaded and to back up existing ones.2. i have a way of knowing which files the user has installed3. i have a got a place for news.any more??
  21. hey guys i wrote an article some time back on how to have your own webserver at home.... i know what drives people away from such things is just the lack of a control panel , people really want to be in full control so i set up my own home server and gave it a cpanel design. well you know theres still no cpanel for windows still under development and most likely its just gona be for the people using iis, but for the rest of us apache dudes i got a solution. the design is a cpanel green theme, and its good and all the links are working properly PLEASE NOTE THAT THIS IS MY HOME SERVER SO DO NOT MESS IT UP DO NOT GO DELETING THE CONFIGURATION FILES COZ THE SERVER WILL FAIL OK PLEASSE I MEAN YOU NO HARM SO EXTEND ME THE COURTESY just feel free to whizz through and see all the stuff it has, its really kool, and by the way its running on the apach2triad server bundle which you could get at http://apache2triad.net/ so if yo want to see how it see, please check out the link below. stevey.info/ tell me what you think, and im also looking for a script that can help someone to change the themes, so if you know one tell me..
  22. pretty quite cute and almost professional, but you know what i hate about websites are links that dont work , always make sure your links work . u really need to get that fixed
  23. well photoshop is a wicked program, i never imagined anyone could be able to do that much to jus some pictures lol. they really outdid themselves
  24. No obtaining a copy wont be illegeal if you get it in the right way, coz legally i cant give it to you, but i could tell you where to get it, now thats not wrong. and even if i got it to you its not like they gonna bust ya
  25. hey peeps well i have been away for a while but well something jus messed up my windows system, and yeah if you guessed right, it was windows longhorn, its a really sexy sysytem, but you gotta be careful, so well anyway jus letting u know longhorn is out there for grabs, if you know where to look lol,so if you wannna know how to get it, then, jus post here i'll let ya know, and if you already have it you could let us know how its going with you.
×
×
  • 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.