Jump to content

dcole.ath.cx

Members
  • Posts

    430
  • Joined

  • Last visited

Everything posted by dcole.ath.cx

  1. I have a File Manager for some people's websites I host. I was wondering if I could color functions found in there codeI get there file and write it in a textarea where they can edit it. Is there a way to have different colors in one text area. Like Red, Black, Blue... text in one textarea?What langage would be best to write this in? I didn't know where to post it, so I put it in html since textarea was html.I know html, css, JavaScript, PHP, Perl. and have access to more if someone would give be a start as to how to begin.
  2. Well atleast I went down from the 50 X 50 X 4... that would have been 10,000 vars. Then I would have had to look out for 'copy' and other funky stuff...I put this project on the back burner.. I need time to think about it.
  3. what are all the parts to this function, and an example:iis_add_server -- Creates a new virtual web serverint iis_add_server ( string path, string comment, string server_ip, int port, string host_name, int rights, int start_server )string path -- WHAT IS THIS?string comment -- WHAT IS THIS?string server_ip -- like 63.545.545.45int port -- port 80string host_name -- http://example.comint rights -- WHAT IS THIS?int start_server -- is this just 1 or something?what is int? do I need it in an if statement?Right now I have to add ever virtual web server by hand and I don't like it, how can I use this funtion? I have IIS 5.0 on a windows 2000.
  4. Is there a way I can have my php core or php.ini scan a php document before it loadsI have a FM, and people can create a file which can create a Hack FM. This isn't good, so I need a way to search all files on my server. This would be easiest while a page is loading.If a page is requested, I want to open it and look to see if a text in there match what it should be.Or I need a way to add a php file to all other php files in a given folder, that would check the file they are attached to, to see if they have anything I don't want in them.
  5. how do you get all data from a for and put it in it's own varwith out doing$var = $_POST'blah'];I almost remember the function
  6. What do you(everyone) look for in a browser?loading time?pop-up blocker?extensions?Themes?# of crahes?tabs?Management?tool bars?On my browser, it takes 1 sec to load my browser and my home page. When it comes up, I can see local wether, how many emails I have on all email accounts, music player, I can search google, Yahoo, Amazon, Answers.com, eBay, Wikipedia, and my own search engine in one click. I also have a pong button, IE tab., encoder(23 different kinds), Cookie editor, and Sessions Manager. I can also highlite text and see only that source code, I can copy a link without highliting the text or without going to properties, or change to 6 different themes. Besides that I can insert smilies, special charactors, or html tags just by right hand clicking. To block large pointless images from websites that slow downloading time I just right hand click on the image and click block image. FF also comes with a download manager so I can pause my downloads and find where they went. I can also save the spot I'm in like hibernate, then come back to it at any later date and it's like I never left. All of that takes up about 8% of my browser screen, on my IE 22% of the sceen is taken up, and it only has google and msn tool bars. (I did poll out the rule to messure, and I only messured vertical distance sense everything goes all the way accross the screen. )I've also only crashed FF once, while running a script that also crashed my server and network. The script was a bad idea that would have loaded 20GB worth of data... The script called all the data to be brought up at once... I needed to have it spread out the work load into 4 or 5 day lengths!
  7. well I'm making a form to make binary maps for a tilt maze game.There is always the long way of writing it out by 0's and 1's but that takes too long. I want a more graphic way and a form will do that.
  8. So I have a form that sends a php file 324 variables. I wondering how to print these variables in groups of 4, then puting the group in sets of 9 (so like 9 rows and 9 columns)9 X 9 X 4the var are every combo XYZ, where: X= A --> D (1-4),Y= A --> I (1-9),Z= A --> I (1-9),(AAA - DII)This was the easiest way was make the dynamic form.The variables equal 1 or null, if they equal null I will make them equal 0Then final product will be a 9 X 9 binary map that tells each box which sides (T,R,B,L) are on or off.a 3X3X4 binary map looks like this:[["0000", "0000", "0000"], ["0000", "0000", "0000"], ["0000", "0000", "0000"]]one 0 replaced a variable like $AAAso it would have looked like:[["$AAA$BAA$CAA$DAA", "$ABA$BBA$CBA$DBA", "$ACA$BCA$CCA$DCA"], ["$AAB$BAB$CAB$DAB", "$ABB$BBB$CBB$DBB", "$ACB$BCB$CCB$DCB"]]But I need a 9X9X4
  9. make sure register_globals = On in your php.ini
  10. dcole.ath.cx

    variables in URL?

    $_POST[var'] is for forms$_GET['var'] is for URLs
  11. FINE, were take the easy way out... I was trying to have fun! <?php$path_parts = pathinfo('/www/htdocs/index.html');print $path_parts['extension'];?> if you need more than the ending like: path?arg=value#anchorthen I would go with parse_url ( string url )this will output:Array( [scheme] => http [host] => hostname [user] => username [pass] => password [path] => /path [query] => arg=value [fragment] => anchor)but if you need from the dot on, you will have to break it at the . (dot) and take the $var[1]
  12. well what you can do is open the file the username are kept in with fopen.put that into a stringthen take the string and break it into an array.break it again if the file has anything more than just user names.then run an if statement (if(x=0, x < $filesize, X++))then inside that compair username to the array you broke down... $username ==$array[$x]and if that's true, then you don't want that used again! Then display something like "Username is taken" $file = fopen("list.txt", "r");$filesize = filesize("list.txt");$text = fread($file, $filesize);fclose($file);$explodedtext = explode("\n", $text);for($i = 0; $i < sizeof($explodedtext); $i ++){ $tempstring = explode('<2ndbreak>', $explodedtext[$i]); if($tempstring[0] == $username) { $userFound = 1; }}if($userFound != 1){ print "Can't use that username.<br /><br /><a href='javascript:history.back(1);'>Back</a>"; exit;}if($userFound == 1){$filename = "list.txt";$file = fopen("$filename", "a");$filesize = filesize("$filename");fwrite($file, "$username\n");fclose($file);} this code has a 2nd break and some extra php because I made it for a login...with a 2nd break you could add password, date created, email, IP address...
  13. dcole.ath.cx

    variables in URL?

    that didn't work out and I can't edit it... ummm http://subdomain.domain.toplvldomain/folder/file.php?var=value&var2=value2
  14. dcole.ath.cx

    variables in URL?

    If someone else would need this info you do it like this: [url=http://subdomain.domain.toplvldomain/folder/file.php?var=value&var2=value2]http://subdomain.domain.toplvldomain/folde...lue&var2=value2[/url]
  15. well I was working on my server and my friend was hacking and I learned that FireFox is all browsers, so now nothing can be better than FireFox... In FF can't do it, you can just have FF be IE or any other browser.
  16. nvm, I was try to take the hard way out and ask but I've done it once, so nevermind... long term memory loss!
  17. get the URL or the address then take the last 4 charactorslike this:$file = "/folder/file.txt";$extension = substr($file, strlen($file) - 4);$extension will be .txt(with jpeg you will not have the dot)
  18. How would you go about searching and replacing something like this:I want to see if there is 123 in a file,if it is, I want to replace it with 123456but if there is 123456 I don't want it to add another 456 to it! (I don't want 123456456)What sould I do?------How about searching for 123, then taking the part I found and adding the parts around it , then search for 123456 and if that's there move on! Other wise replace 123 with 123456.so when it finds 123 it will take 123 and 3 charactors after it, then search for 123456Does this sound good?
  19. I have a message board where you can sign your name and leave a message, then I added a advanced sign that takes longer to load so I left it on another page.Is there a way so users fill out there name and message, then decide to go to the advanced post, it brings the data with it, but still have the Post button that would post the form.
  20. Getting a browser is like getting a car. Some people just go from A to B and would care less about life. But others have to have one of a kind car...FireFox should become more popular. With it you can change anything! I like to know the wether when I come online, so I just look at the top of my screen.. With IE I had to go to google, look up the URL I could never remember, click though links, wait for pages to load... (My Bookmarks or Favorites it to messy to look around in)With FF, I open a window and look in the lower left to see if I have mail... in IE I had to go to hotmail or gmail, login, click mail....Also with FF, there super search engine tool bar... ALL in one (google, yahoo, msn, wiki, and even my search engine!)With IE (man it was on something)... Google toolbar was the lock/unlock, Yahoo was google, msn was standard buttons and added something that took up 1/4 of my screen... I don't know what was happening there (musical toolbars or something)------Another point, there is a website: wikipedia. Any way some news group did a study and found that a free thing anyone can add to is just as good as spending Millions to have college grads with PHDs to do the same thing.This is like FF vs. non-open-source Browsers
  21. More on colors:1) Keep your colors dark on light. It is easy for people to read when you have for example a white background and a dark text.2) I hear alot about having a plan background, like 1 solid color... fancy background make it hard to read text.3) People view things by color. They will look at the brightest thing first!! This means your headings should be a different color, and the same for links. When there done reading, visitors will want to move on and you want them to see your links. (My website has a white background with black text and dark red for link, and headings.)Layout:1) Keep the nav on the left or the top... having it in a new spot may make your site different but then users have to search around and this is anoying..2) don't have blinky ads by text your reading or have ads over text. This goes for pop-ups or fake pop-ups too... These things distract and make user leave.
  22. YES,body tag <body> is used to define stuff on a page<html><body></body><head></head></html><tbody> is used in a table and only in that tableIt help to define were the body of your page is (like body of a report)
  23. I figered it out... nvm!
  24. So...I have a script that looks like this:$var = "blah";PHP(HTML(JavaScript(HTML($var))))I need " " or \" \" or ' ' or \' \' around where each ( ) is.but it needs to be in the correct order! What is that order??? If it is in the wrong order you will get things like this:source: <img src=\' \="" file : <img src=\' $filePath \' source: width="\'20\'"file : width=\'20\'ALSO These errors are not because of " ' " ' ... or " \" " \" ...
  25. I have a file that looks something like this:ghi |789 | &*(abc | 123 | !@#def | 456 | $%^ghi |789 | &*(I then open the file and read it into a string.Then I break the string into an array (break it by line (\n) and by [space]|[space] )Then I search the 1st and 2nd set of data (abc, def, ghi) and (123, 456, 789)Then once that is found, I replace the data (Example replace 456 with 654)So then the data is replace and I have to write it back into the file...I write the replaced file back into the lineThen writes the lines back into a long stringlike this: abc | 123 | !@# \n def | 654 | $%^ \n ghi |789 | &*(Then I Clear the file and replace it with that above!------Does this sound like what you are looking for?
×
×
  • Create New...