Jump to content

tawxic

Member
  • Posts

    35
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by tawxic

  1. Aloha, Okay, so I have this script working: http://www.triviacafe.com/stamps/fonttest-working.php However, there are a FEW things I need help with. 1) I need it to use a multiline box, instead of an input box. a) I need the GD Exported image to MIRROR that of the typed text. So line breaks MUST appear where they are in the multiline box. Example: GD Output: This is a Test Content in the Multiline box: ____________________________________ |This is a |Test | | | | |____________________________________ B) Each individual line must be centered. That means calculating the width of the font (which will be variable, detemined by a dropdown box, I'll add that in myself) and dividing it by half of something or other... I don't understand the math, I'm a designer. That's why I'm here. If anyone can help me, without just spouting a bunch of numbers at me and expecting me to understand, I would greatly appreciate it. If you need to email me, my addy is msfn [at] phazm dot net
  2. I would have an example, but I cannot for the life of my find the site that I saw yesterday :-/ Basically, I want to have a real-time update of a selected font, as you type. I am somewhat familiar with the GD Library + PHP, I mostly need help interfacing it with whatever non-ServerSide language (probably JS) I need to. And if anyone can find the font site that has a text box, and as you type, it outputs an image with that text in it, I would REALLY appreciate it! e: Found it! http://www.abstractfonts.com/font/11912 Anyone know how I can make something like that? Thanks,
  3. As the title and sub-title indicate, I have set up a webcam at home that has an option of sending me an email if it detects motion. However, it requires an smtp server. I have tried two "free smtp" programs (that set up a local smtp server) but they do not work. Does anyone know of a public-access smtp server? I will only be sending like one email a day, really, if that. fake edit: ****, it's been forever since I've logged in! +1 to me for remembering my password!
  4. okay, start -> run -> cmd: opens the console box, black bg, with nothing writting in it, and gives me this error: |[u]16 Bit MS-DOS Subsystem[/u]__________________| |C:\WINDOWS\system32\cmd.com |The NTVDM CPU has encountered an illegal instruction. |CS:055c IP: 0102 OP:ff ff 83 3e 51 Choose 'Close' to teminate the application | [ Close ] [ Ignore ] |_____...| Ignore and close both close it. Then, when I open 'command': I can "dir" and "ipconfig" but I cannot 'ping', it gives me an identical error to the one above. Any ideas?
  5. I have an email forwarder from another domain and I would like it to be moved to a separate folder. I can't find a "where the to/cc/bcc line includes" rule, but it would help a lot... can anyone tell be how to do this?
  6. I want to add a socks5 server on my compueter, so I can proxy my IP to this one from afar... how would I go about doing that?
  7. Well, I just figured out that you can set the tolerance if you right-click and make work path (I was making it from the path tab) and that helped a lot, by setting it to 0.5pixels. However, because I need it in EPS form, I need to export it from photoshop to EPS, which means I han't have a thumbnail preview... Any workarounds?
  8. I'm having a bit of trouble. I have taken over 70 images, cut them out in photoshop (using erase, not a path) and then brought them into illustrator, and seved them out as .EPS. My problem is, when I put them into quark, they are transparent in thre preview, but whe nI print it out on paper or PDF, it makes the background of the box white. The only way I can seem to get around this is to make a clippign path with illustrator or photoshop, then use the quark option for using the path to clip. Is there any way in illustrator to automatically create a path around a raster object, and keep the path clean? I can create a work path in photoshop simple enough, but the path is never any good. Any help would be appreciated. Thank you, Jon Hughes, Linx Tech
  9. MMkay, I switched my ribbon IDE cables with my new pretty round IDE cables, and that is when my problem began. I boot my comp, it goes through the POST all fine, then when it gets to loading windows, it gives me an error, I will paraphrase. "BOOT DISK FAILURE. INSERT SYSTEM DISK AND PRESS ENTER" I tried everythign I could to get that to go away, but alas, it would not. Then I found a VERY TEMPORARY SOLUTION!!!! (:-P) I put in my xp disk, changed boot order to read cd before my sata drive, and then when it says "press any key to boot from disk" I do NOTHING. annd let it boot to my harddrive, and it WORKS! Anyone know why my system would need to have the xp disk in to boot? Very strange, considering I am not actually using the cd. Any help would be appreciated, thanks!
  10. tawxic

    IP Sig

    well, here is the other one I'm working on: And I want to make a random image in the right side of it, cuz it's blank.. I Could just make the background have that image in it, but that would be tedious... actually... I think I will do that.. lol Thanks!
  11. tawxic

    IP Sig

    What's the code for makign a random IMAGE (not background) - I want to be able to position it, also.
  12. tawxic

    IP Sig

    I made a dynamic avatar
  13. tawxic

    IP Sig

    oi, here's my code: <?php Header ('Content-type: image/jpeg'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); Header('Pragma: no-cache'); $textfile ="quotes.txt"; // change to the filename/path of your file with quotes. $quotes = file("$textfile"); $quote = rand(0, sizeof($quotes)-1); $getquote = wordwrap($quotes[$quote], 55, "\n", 1); $ipad = getenv("REMOTE_ADDR"); $dns = strtolower(@gethostbyaddr(getenv("REMOTE_ADDR"))); $today = date("m-d-Y"); // create the image $image = imagecreatefromgif("about-bg.gif"); // set the colours $cool = imagecolorallocate($image, 87, 87, 87); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // counter $viewss = file("views.txt"); $views = $viewss[0]; $views++; $fp = fopen("views.txt", "w"); fwrite($fp, $views); fclose($fp); $info = "$today - You are $dns ($ipad)"; $counter = "$views people informed - © 2003 Phazm Graphics - http://www.phazm.net/"; // define geek code $nerd = $getquote; // line style line $line = "___________________________________________________________"; // set the font and print text $font = 'verdana.ttf'; ImageTTFText ($image, 10, 0, 45, 35, $white, $font, $nerd); ImageTTFText ($image, 8, 0, 27, 126, $white, $font, $info); ImageTTFText ($image, 8, 0, 27, 130, $white, $font, $line); ImageTTFText ($image, 8, 0, 27, 143, $white, $font, $counter); // output and destroy imagepng($image); imagedestroy($image); ?>
  14. tawxic

    IP Sig

    eh - anyone know why it's tellin me: [Fri Dec 12 04:11:40 2003] [error] [client 68.116.78.89] Premature end of script headers: /home/phazm/public_html/sig/siggy.jpg I just got a new host.. they have the latest version of PHP
  15. tawxic

    IP Sig

    what's wrong with this code? it just gives me the red x image box. <?php header ("Content-type: image/png"); header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); header('Pragma: no-cache'); define("OFFSET", 0); define("YSECS", 365*24*60*60); define("DSECS", 24*60*60); define("HSECS", 60*60); define("MSECS", 60); function countdown($detail, $year, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0) { $years = $days = $hours = $minutes = $seconds = 0; $now = mktime() + OFFSET*60*60; $then = mktime($hour, $minute, $second, $month, $day, $year); $cdown = abs($then - $now); if ($detail == 1) $years = round($cdown/YSECS); else $years = floor($cdown/YSECS); $cdown %= YSECS; if ($detail == 2) $days = round($cdown/DSECS); else $days = floor($cdown/DSECS); $cdown %= DSECS; if ($detail == 3) $hours = round($cdown/HSECS); else $hours = floor($cdown/HSECS); $cdown %= HSECS; if ($detail == 4) $minutes = round($cdown/MSECS); else $minutes = floor($cdown/MSECS); $cdown %= MSECS; $seconds = $cdown; $tnums = array($years, $days, $hours, $minutes, $seconds); $ttext = array("year", "day", "hour", "minute", "second"); $shown = 0; for ($i=0;$i<$detail;$i++) { if ($tnums[$i]) { echo "$tnums[$i] $ttext[$i]"; $shown++; if ($tnums[$i] != 1) echo "s"; $count = 0; for ($j=$i+1;$j<$detail;$j++) { if ($tnums[$j]) $count++; } switch($count) { case 0: break 2; case 1: if ($shown>1) echo ","; echo " and "; break; default: echo ", "; break; } } } if ($now > $then) echo " ago"; if ($now == $then) echo "now"; } $tilxmas = countdown(2, 2003,12,25); $image = imagecreatefromgif("xmas.gif"); $white = imagecolorallocate($image, 255, 255, 255); $font = "candycane.ttf"; imagettftext ($image, 24, 0, 5, 5, $white, $font, $tilxmas); imagepng($image); imagedestroy($image); ?> here's the image: Can't figure it out :-/
  16. tawxic

    IP Sig

    howdy again... I have a question.. since we stopped using the imagettftext for text, and went on to imagestring.. maybe the option is available.. how do I center a text string? thanks
  17. tawxic

    IP Sig

    after I get this thing fine tuned, I will make a smaller version.. this will be my version for other pages.
  18. tawxic

    IP Sig

    I updated my script, not it displays a random quote: but is there any way to center the quote vertically? (so it's the same distance from the top to the bar)
  19. tawxic

    IP Sig

    hehe. Well, what do you think it could be then? It works fine on another host, but not this one? obviously something is different that is causing mine to be uncompatible
  20. tawxic

    IP Sig

    lol, I don't plan on keeping the design, don't worry, it's just a placeholder :-P Anyhow, I figured out that my GD version is the one that createimagefromgif doesn't work (d'oh!) so I made it "createimagefrompng" and now it works, but for some odd reason it indents to text: http://www.phazm.net/signature/siggy.php however, I cannot view anything other than .php, (e.g. jpg or png) - so I think my host has htaccess disabled maybe? not sure... I'll email em tonight... Hey, I just want to say I'm greatful for all your help gamehead, I couldn't have gotten close to this far without you!
  21. tawxic

    IP Sig

    got it to work in jpg and png format on my companies host :-/
  22. tawxic

    IP Sig

    okay, it IS somethign with my host, because I have it on my companies website just fine... www.rfstorm.com/sig/siggy.php
  23. tawxic

    IP Sig

    nope! That didn't work either.. this is the error I'm getting in my errorlog(I should've checked this a log time ago) [05-Nov-2003 17:17:33] PHP Fatal error: Call to undefined function: imagecreatefromgif() in /var/www/html/signature/siggy.php on line 9 no idea why that fuction wouldn't be supported...
×
×
  • Create New...