Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by zachary

  1. Alright well maybe I should just explain what I am trying to do.I have three old computers running ubuntu linux w/ apache and all the good stufftheir addresses are: can port forward these to different ports and have apache listen to different portsexampleserver1 could be port 100server2 could be port 200server3 could be port 300now for example I can access each server if i type in or or want to be able to give each ip/port combo its own domainso server1 could be example1.comso server2 could be example2.comso server3 could be example3.comis there a way to do this? I only have one public IP obviously.
  2. Lets say I have a web server running at (notice port 85), can I buy a domain, example.com, and list the DNS server as and when I access example.com, will it resolve correctly?
  3. I know it was incorrect code, but I was trying to show you what I am trying to achieve. I don't have the knowledge to pull off something like that... can someone devise an easier approach? This is built for a help system so it would be getting some serious traffic.
  4. I know it was incorrect code, but I was trying to show you what I am trying to achieve. I don't have the knowledge to pull off something like that... can someone devise an easier approach? This is built for a help system so it would be getting some serious traffic.
  5. Hi,My goal is to make a template system that will display contents when called from a {{template:TEMPNAMEHERE}}... $content = nl2br(file_get_contents($location)); function include_template($name) { return file_get_contents("help-docs/template/" . $name . ".hlp"); } echo preg_replace("\{\{template:(.*?)\}\}", include_template($1), $content); The problem is that I am trying to pass along the $1 variable to a function but there is no way I could do that and I have tried everything, the function basically pulls up the template file and returns it...
  6. I'm sorry but this is free help, I gave him the principle on how to do it, and he hasn't comeback with that error which means he got the principle from my code, and implemented it in a working fashion Also there is no reason to get angry at me since, I don't get that error on PHP 4... So your answer is really only applicable to php 4+..
  7. zachary

    Email To Self

    Could you post the form code and the processor code?
  8. Sorry if you misunderstood the statistics, but it is accounting for this site's users ONLY. So that why it may seem inaccurate, the truth is you can't code very easy on a mac, and coding on linux rocks, but it also does on windows...
  9. sir maybe you should send him the script... and a copy of the SQL
  10. It is not a problem since that data the variable will be containing isn't a quote, I did not have the time to add the slashes so I just changed it to a single quote, insecure & sloppy, Yes, but I was just giving an example.
  11. Thank you for your clarification...I am assuming that you want almost a bbcode to post a video..Well lets take a look at a youtube embed code for this video: :<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/uoP-adqg7P4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/uoP-adqg7P4&hl=en&fs=1" typehttp://w3schools.invisionzone.com/index.php?showtopic=23524&st=0&gopid=130028="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object> We see this referenced twice: That would be the direct location of the SWF and the video player, so to manipulate it we have to understand the URL.../v/uoP-adqg7P4&hl=en&fs=1Okay the green part is the name of the video, the red part is stuff you do not need to worry about, so the video at can be referenced at which means the video's ID is uoP-adqg7P4.So all you need to do is ask for the user's video ID and rebuild the embed code with that video ID number...<?php$vid = "uoP-adqg7P4";echo '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/$vid&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$vid&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>';?>
  12. On youtube for specific there is a option to embed a video, copy the text, it is just html... so paste it where you want it to display...
  13. I'm going to do a table-layout...
  14. I did the min-height thing but my issue is that it will still grow if it gets past the min height and I can't devise a solution so both columns will go to the same height, I might just do a table layout in a second...
  15. If I could have figured it out I wouldn't have posted here Can anyone help me?
  16. Hi,I am having some issues with my template:http://runetomb.com/rsrush/As you can see the left column won't grow with the content column, and I need it to grow with eachother, But I want it to be able to grow down, and not have to have the height of the columns auto set. But I also need to make sure if the left column is taller then the content column that the content column will grow to match the leftcolumn. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Index - RuneScape Rush</title><style type="text/css">body{margin:0;padding:0;line-height: 1.5em;background-image: url('bg.png');background-repeat: repeat-z;}#maincontainer{width: 840px; /*Width of main container*/margin: 0 auto; /*Center container on page*/}#topsection{/* The Height of the header - DO NOT CHANGE */height: 110px;/* Header borders */border: 1px solid #000000;border-top: 0;/* Header Image Must Be (Height: 109px, Width: 838 PX) */background-image: url('blend.png');background-repeat: repeat-x;}#topsection h1{margin: 0;padding-top: 15px;}#contentwrapper{float: left;width: 100%;}#contentcolumn{margin-left: 200px; /*Set left margin to LeftColumnWidth*//* Content Column borders */border-right: 1px solid #000000;border-bottom: 1px solid #000000;background-color: #FFFFFF;}#leftcolumn{float: left;width: 200px; /*Width of left column*/margin-left: -840px; /*Set left margin to -(MainContainerWidth)*/background: #C8FC98;/* Left Column borders */border: 1px solid #000000;border-top: 0;}#footer{clear: left;width: 100%;background: black;color: #FFF;text-align: center;padding: 4px 0;}#footer a{color: #FFFF80;}.innertube{margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/margin-top: 0;}</style><script type="text/javascript">/*** Temporary text filler function. Remove when deploying template. ***/var gibberish=["Demo"]function filltext(words){for (var i=0; i<words; i++)document.write(gibberish[Math.floor(Math.random()*1)]+" ")}</script></head><body><div id="maincontainer"><div id="topsection"></div><div id="contentwrapper"><div id="contentcolumn"><div class="innertube"><script type="text/javascript">filltext(60)</script></div></div></div><div id="leftcolumn"><div class="innertube">GAH HELP ME W3SCHOOLS!</div></div><div id="footer">© 2008 RuneScape Rush. All rights reserved.</div></div></body></html>
  17. zachary


    Sorry if I am bumping this but will it work, because I have a HTTP server already going out of my port 80. Which port does it use?
  18. zachary

    My web site

    Looks better I would center that logo... And I'm not impressed with the fact that your container is one huge white image set as the background..
  19. I'm just thinking might it be simpler to just make it so you can only upload one video at a time? And if you really want to do a second video upload couldn't you just make like another videoprocess-2.php, and the form itself could be made of Iframes I am guessing... so like two iframes for each upload section of the form, you could add a javascript to add more iframes or delete an iframe(and when I say add and delete I mean like just hiding it), to me you guys might be just making it harder than it has to be. If you guys want to do it your way go ahead and ignore this post, I guess...
  20. zachary

    My web site

    Its good for a beginner, but being 13 isn't an excuse you can use, since I started when I was 11, now 13.
  21. The text is fine, but the header image is way to dark.
  22. Those are the original copies.
  23. I kind of agree w/ them, can you chmod, without using PHP? Do you have a file manager, that you can chmod from?
  24. Hi,Is there a way to turn off a css after a point, change to a different css, and then go back to that css in a page?Or if I am getting ahead of myself and you know a fix to my problem, post please.I have the page here:http://www.runetomb.com/site/forum/createtopic.phpThe two css that are conflicting are:Main Template:http://www.runetomb.com/site/forum/images/CoolWater.cssWYSIWYG:http://runetomb.com/site/forum/images/wysiwyg.cssI really need some help, I tried to fix it and the styling went bad.
  25. Theres something odd about that header... hmm
  • Create New...