Jump to content

vchris

Members
  • Posts

    1,529
  • Joined

  • Last visited

Posts posted by vchris

  1. All I get is:

    Warning: mysql_connect() [function.mysql-connect]: User '16592' has exceeded the 'max_connections_per_hour' resource (current value: 1500) in /var/www/hotserv.dk/users/andersmoen/cms/config/db.php on line 2Could not connect: User '16592' has exceeded the 'max_connections_per_hour' resource (current value: 1500)
  2. This is a script I am trying to create for my portfolio. I already part of it working. I can go get the images from the image folder no problem. I want to go a bit further than that. Here is an example of what is in that folder:site1_small.jpgsite1_large.jpgsite2_small.jpgsite2_large.jpgAnd so on...My php page contains something like this: <a href="site1_large.jpg"><img src="site1_small.jpg" alt="description" /></a>My problem is how can I be sure the href and src will be the corresponding small and large image? What about the description? I currently have it looping through all the images in that folder. I was thinking of having an array to store the small images, large images and the image description.Here's what I got:

    <?php			//Open images directory			$dir = @ dir("../images/websites");						//List files in images directory			while (($images = $dir->read()) !== false) {				if(strstr($images, "_small")) {					echo "<li><a href=\"/images/websites/site1_large.jpg\"><img src=\"/images/websites/" . $images . "\" alt=\"desription\" /></a></li>";				}			}			$dir->close();			?>

    I'd want to avoid using a db for this. Any ideas?

  3. OMG! That is some messy code and site rip it seems. You almost have the same domain name.I say be original and design something nicer than their site or else what's the point of having an identical site which doesn't the same thing?

  4. just do this on a page:<cfdump var="#server#">That will tell you everything (and a little more) than you need to know.
    Is there other variables for cfdump? Is there one to view all data sources?
  5. I'm converting some docs at the moment with lots of math equations. For those that are simple (x = y + z), I simply type them in but for the complex ones I have to use images since typing them could confuse some people. I use Photoshop to crop them out.

  6. You mean posting site online?First, you need to find a web host to host your website or you can host your own website on a computer you own. Then you get a domain name which points to your server/web host and there you go. Start the coding part! Some web hosters will allow multiple site hosting for the same price. I think usually it's 1 site, 1 price.

  7. If it's your portfolio, I would design it with something I like. For example, I like spacey designs. So one of my designs included planets and was hot! Whatever suits you. If find the hardest thing is designing a site for yourself. Try maybe doing a couple templates.

  8. You should contact them about your first question since I have no idea. I don't see any options for my DNS so I guess I can't manage it. Email them, they reply pretty fast usually.

×
×
  • Create New...