Jump to content

zachary

Members
  • Content Count

    120
  • Joined

  • Last visited

Community Reputation

0 Neutral

About zachary

  • Rank
    Member

Previous Fields

  • Languages
    HTML, CSS, PHP, MySQL, JavaScript

Contact Methods

  • Website URL
    http://
  • ICQ
    0
  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:192.168.1.100192.168.1.101192.168.1.102I 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 123.123.123.123:100 or 123.123.123.123:200 or 123.123.123.123:300I 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 99.88.77.66:85 (notice port 85), can I buy a domain, example.com, and list the DNS server as 99.88.77.66:85 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. zachary

    Os Statistics

    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?
×
×
  • Create New...