Jump to content

inferium

Members
  • Posts

    58
  • Joined

  • Last visited

    Never

Everything posted by inferium

  1. Ah, I found the problem. The syntax just wasn't set up right. I ended up making the action of the form "contactform.php", and then the top of the page looks like this: <?php session_start(); if( isset($_POST['submit'])) { //check the captcha if(($_SESSION['sc'] == $_POST['sc']) && (!empty($_SESSION['sc'])) ) { unset($_SESSION['sc']); include 'FormToEmail.php'; } else { echo 'Sorry, you have provided an invalid security code. <a href="contactform.php">click here to try again</a>'; } } else { ?> Guess I'll know better than to trust someone else's coding next time.
  2. I am still having trouble with this. Could somebody help me please?
  3. I keep getting an error that says "Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/a6079442/public_html/rebuild/includes/csi.php on line 48 Error in imagettfbbox function" I am trying to include a captcha image in this form, and it just doesn't seem to be working. I've got csi.php included on FormToEmail.php url: http://inferium.site11.com/rebuild/contactform.php Here is my code for the form page: <?php print_r($_POST); session_start(); //check the captcha if(!empty($_SESSION['sc'])&&$_SESSION['sc']==$_POST['sc']){unset($_SESSION['sc']); print 'captcha is right';} else {$valCheck=false;$appMessage='Sorry, you have provided an invalid security code';} ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html class="embed firefox" xmlns="http://www.w3.org/1999/xhtml"> <head> <title> want to advertise? contact us! </title> <!-- Meta Tags --> <meta name="robots" content="noindex, nofollow, noarchive"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- CSS --> <link rel="stylesheet" href="contactform/dynamic.css" type="text/css"> <link rel="stylesheet" href="contactform/theme.css" type="text/css"> <link rel="stylesheet" href="contactform/wufoo.css" type="text/css"> <!-- JavaScript --> <script type="text/javascript" src="contactform/dynamic.js"></script> </head><body id="public"> <div id="container"> <form class="wufoo topLabel page1" autocomplete="off" enctype="multipart/form-data" method="post" action="FormToEmail.php"> <div class="info"> <h2>want to advertise? contact us!</h2> <div></div> </div> <ul> <li id="fo1li108" class=" "> <label class="desc" id="title108" for="Field108"> your name: </label> <div> <input id="name" name="name" class="field text medium" maxlength="255" tabindex="1" type="text"> </div> </li> <li id="fo1li6" class=" "> <label class="desc" id="title6" for="Field6"> your email: </label> <div> <input id="email" name="email" class="field text large" maxlength="255" tabindex="2" type="text"> </div> <p class="instruct" id="instruct6"><small>We won't share this with strangers.</small></p> </li> <li id="fo1li112" class=" "> <label class="desc" id="title112" for="Field112"> your phone: </label> <div> <input id="phone" name="phone" class="field text medium" maxlength="255" tabindex="3" type="text"> </div> </li> <li id="fo1li109" class=" "> <label class="desc" id="title109" for="Field109"> name of your mgmt: </label> <div> <input id="management" name="management" class="field text medium" maxlength="255" tabindex="4" type="text"> </div> </li> <li id="fo1li110" class=" "> <label class="desc" id="title110" for="Field110"> cities your properties are located in: </label> <div> <input id="property_locations" name="property_locations" class="field text medium" maxlength="255" tabindex="5" type="text"> </div> </li> <li id="fo1li1" class=" "> <label class="desc" id="title1" for="Field1"> specific questions or needs: <span id="req_1" class="req">*</span> </label> <div> <textarea id="questions" name="questions" style="border:0px;background-color:#FFFFFF;" rows="2" cols="50" tabindex="6"></textarea> </div> <p class="instruct" id="instruct1"><small>This field is required.</small></p> </li> <li class=" "> <img src="includes/csi.php?w=100&h=40&chr=5" alt="" /> <label class="desc"> please enter the code from above: </label> <input type="text" name="sc" id="sc" style="border:0px;background-color:#FFFFFF;" maxlength="255" /> </li> <li class="buttons"> <input name="currentPage" id="currentPage" value="GI0jR8qooTIIfP2hij1KYssRL4qyfwuBe5cnwuBewqGlzjUSE=" type="hidden"> <input id="saveForm" name="saveForm" class="btTxt submit" value="submit your inquiry" type="submit"> </li> <li style="display: none;"> <label for="comment">Do Not Fill This Out</label> <textarea name="comment" id="comment" rows="1" cols="1"></textarea> <input id="idstamp" name="idstamp" value="VuXFID/UrijtCYffVp7xRB3O98Q+v/DvyIxYt88ZyXM=" type="hidden"> </li> </ul> </form> </div><!--container--> <img id="bottom" src="contactform/bottom.png" alt=""> <script type="text/javascript"> __EMBEDKEY = "false" </script></body></html> Also, here is the code to csi.php: <?php session_start(); class csi { public $font = 'mf.ttf'; public function generateCode($characters) { /* list all possible characters, similar looking characters and vowels have been removed */ $possible = '23456789bcdfghjkmnpqrstvwxyz'; $code = ''; $i = 0; while ($i < $characters) { $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1); $i++; } return $code; } public function csi($width='120',$height='40',$characters='6') { $code = $this->generateCode($characters); /* font size will be 75% of the image height */ $font_size = $height * 0.75; $image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream'); /* set the colours */ $background_color = imagecolorallocate($image, 255, 255, 255); $text_color = imagecolorallocate($image, 20, 40, 100); $noise_color = imagecolorallocate($image, 100, 120, 180); /* generate random dots in background */ for( $i=0; $i<($width*$height)/3; $i++ ) { imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color); } /* generate random lines in background */ for( $i=0; $i<($width*$height)/150; $i++ ) { imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color); } /* create textbox and add text */ $textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function'); $x = ($width - $textbox[4])/2; $y = ($height - $textbox[5])/2; imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font, $code) or die('Error in imagettftext function'); /* output captcha image to browser */ header('Content-Type: image/jpeg'); imagejpeg($image); imagedestroy($image); $_SESSION['sc'] = $code; } } $width = isset($_GET['w']) ? $_GET['w'] : '120'; $height = isset($_GET['h']) ? $_GET['h'] : '40'; $characters = isset($_GET['chr']) && $_GET['chr'] > 1 ? $_GET['chr'] : '6'; $captcha = new csi($width,$height,$characters); ?> Any help with this would be much appreciated
  4. Hey all, So I have this problem. I've got a program set up that sends out data to another system, and we have to convert it a certain way to where theirs will accept it. Now, the only piece of information that isn't sending correctly is the 'dob'. I need the dashes in the birthdate (it's in our system as mm-dd-yyyy) to be replaced with dashes. How could I alter the following code to allow me to do this. Thanks in advance!!! 'work_phone' => preg_replace('/[^0-9]/i','',$value['leadWorkPhone']), 'email' => $value['leadEmail'], 'ssn' => preg_replace('/[^0-9]/i','',$value['leadSSN']), 'dob' => preg_replace('/[^0-9]/i','',$value['leadBirthdate']),
  5. does that work for input fields in a form as well? or just pre-determined text?
  6. Ah thanks guys The reason is that it mysql errors when I try to submit the app. I'm using a csv database that this form feeds into. Do you think escaping it would be the best method? I've seen a few javascripts that disable commas and apostrophes, but apparently it's not cross-browser compatible all the time.
  7. Heya everyone, I'm having a slight problem. I have a form that I want to disable apostrophes in when users input in a text box. Can anybody help me please? Thanks a bunch!!
  8. Sweet thanks! Also, I finally got the rawurlencode function to work. I'm not sure exactly what I did, but for some reason it seems to function just right now. I'll look into wysiwyg editors promptly though, thank you for the tip
  9. Well, what I've been trying to do is make the html code copy/paste-able so that we can post the advertisements on craigslist and such. Just to save the hassle of view:source every single ad. Is there a more efficient way to achieve this effect through php?
  10. Ah, my bad. Here's the full code of the textarea (which is just a repeat of what's on the page). <TEXTAREA ROWS="20" COLS="70" ID="textarea" READONLY="yes"> <CENTER> <TABLE> <TR> <TD ALIGN="CENTER"> <A HREF="http://www.directbankcredit.com/apply/index.php"><IMG SRC="http://i428.photobucket.com/albums/qq2/onebigredfish/dbcbannerbadcred.gif" BORDER="0"></A> </TD> </TR> <TR> <TD> <TABLE WIDTH="600" STYLE="border:solid 4px #000000;background-color:#f8f8f8"> <TR> <TD> <TABLE WIDTH="600" HEIGHT="20" BORDER="0" CELLPADDING="0"> <TR> <TD style="color:#f0f0f0;background-color:#000000"> <FONT SIZE="5"><b>'.$row['ctitle'].'</b></FONT></TD> </TR> <TR> <TD> <FONT SIZE="4"><b>'.$row['cslogan'].'</b></FONT> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD> <TABLE> <TR> <TD WIDTH="310" ALIGN="center"> '; if($row['cphoto'] == '') { echo '<img src="http://dbc.eliteautoweb.com/nophoto.gif" />'; } elseif($row['cphoto'] != '') { echo '<img src="http://dbc.eliteautoweb.com/cars/'.rawurlencode($row['cphoto']).'" style="width: 300px;" />'; } echo ' </TD> <TD VALIGN="top" WIDTH="290"> <TABLE width="100%" HEIGHT="1" style="background-color:#000000;color:#f0f0f0"><TR><TD><CENTER><b>Features:</b></CENTER></TD></TR></TABLE> <table> <tr> <td style="width: 120px"><b>Make:</b></td> <td><b>'.$row['cmake'].'</b></FONT></td> </tr> <tr> <td style="width: 120px"><b>Year:</b></td> <td><b>'.$row['cyear'].'</b></FONT></td> </tr> <tr> <td style="width: 120px"><b>Model:</td> <td><b>'.$row['cmodel'].'</b></td> </tr> <tr> <td style="width: 120px"><b>Body Style:</td> <td><b>'.$row3['btype'].'</b></td> </tr> <tr> <td style="width: 120px"><b>Exterior Color:</td> <td><b>'.$row['cextcol'].'</b></td> </tr> <tr> <td style="width: 120px"><b>Interior Color:</td> <td><b>'.$row['cintcol'].'</b></td> </tr> <tr> <td style="width: 120px; height: 22px;"><b>Condition:</td> <td style="height: 22px"><b>'.$row['ccondition'].'</b></td> </tr> <tr> <td style="width: 120px; height: 7px;"><b>Drive Type:</td> <td style="height: 7px"><b>'.$row4['dtype'].'</b></td> </tr> </table> </TD> </TR> </TABLE> <TD> </TR> <TR> <TD> <TABLE> <TR> <TD VALIGN="top"> <TABLE> <TR> <TD><b>Location:</TD><TD><b>'.$row['clocation'].'</b></TD> </TR> <TR> <TD><b>Asking Price:<b></TD><TD><b>'.$row['cprice'].'</b></TD> </TR> </TABLE> <table width="305"> <tr> <td HEIGHT="18" ALIGN="center" style="background-color:#000000;color:#f0f0f0"><B>Contact Information:</B></td> </tr> <tr> <td valign="top" HEIGHT="100%"><B>'.$row['caddress'].'</B><br /><FONT COLOR="black"><B>Phone: '.$row['cphone'].'</B></FONT><br /> <br /><A HREF="http://www.directbankcredit.com/apply/index.php"><IMG SRC="http://i428.photobucket.com/albums/qq2/onebigredfish/dbcbannerbadcred.gif" WIDTH="300" HEIGHT="45" BORDER="0"></A> </td> </tr> </table> </TD> <TD><table height="320" VALIGN="top" BORDER="0"> <tr> <td HEIGHT="1" align="center" VALIGN="top" BGCOLOR="black" style="background-color:#000000;color:#f0f0f0"><b>Attributes:</b></FONT></td> </tr> <tr VALIGN="top"> <td valign="top" VALIGN="top" style="height: 292px"><b>Special Financing:</b> <table style="width: 100%" VALIGN="top"> <tr> <td bgcolor="#C0C0C0"><small>'.$row['cext'].'</small></td> </tr> </table> <table style="width: 100%"> </table> <br /><b>Accessories:</span></b> <table style="width: 100%"> <tr> <td bgcolor="#C0C0C0"><small>'.$row['caccess'].'</small></td> </tr> </table> </td> </tr> </table> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </CENTER></TEXTAREA>
  11. Hi everyone, I've got a slight problem: When I use rawurlencode as such echo '<img src="http://dbc.eliteautoweb.com/cars/'.rawurlencode($row['cphoto']).'" style="width: 300px;" />'; It works on the actual outputted html, but in the textarea I have at the bottom of the page it only shows up as a space. Does anyone know of a way to fix this? http://clearfrontmarketing.com/createflyer/dbc/index.php
  12. Ah sweet, that is exactly what we need I guess it's not that shady as long as the information only passes through us and the other company. Thanks a bunch, I'm going to go look into this :D
  13. You could even just use javascript, that onsubmit it runs a function that sends an ajax request to the page you want the data, that way the user never knows you are sniffing it (unless they view source) and it posts just fine and you get a log of what was entered. Hehe, we're actually using the form internally for our company. The server we're sending to is another company, and they won't let us access their server. As we're submitting finance lead information to the server, I can understand that But yeah, javascript might actually be the way to go. I'm pretty much a php nooblet, so I'm not familiar with curl(). Do you know what kind of function that would be for javascript?
  14. Ah sweet So if I made this php file, would I still be able to submit the data to https://pwlss.com/ ?
  15. Hi all. I've been google searching for a little while now and I can't find anything that I understand that can help me do this. Basically, I have an HTML form that uses POST to send to an external server. I need to be able to capture the string data that is sent, so that we can debug a problem we're having with the information not submitting correctly. The tech at the other company suggested using a server-side script that would allow us to do this, but I have no clue where to begin. The code I am using for the post is as follows: <HTML> <HEAD> </HEAD> <BODY> <center> <H2><U>PartnerWeekly Lead Form</U></H2> <form name="partnerweeklyform" action="https://pwlss.com" method="POST"> <input type=hidden id="process_page" maxlength="50" name="process_page" value="auto_loan_post" /> <input type=hidden name="zoneid" value="240185"> <input type=hidden name="source_url" value="http://eliteautoweb.com"> <input type=hidden name="client_ip" value=""> <TABLE align="center" WIDTH="600"> <TR> <TD> <TABLE> <TR> <TD>Ping App ID:</TD> <TD><input id="ping_app_id" name="ping_app_id" type="text" length="20"></TD> <TD> </TD> <TD></TD> <TD></TD> </TR> <TR> <TD width="120"><label for="name_first">First Name:</label></TD> <TD><input id="name_first" maxlength="40" name="name_first" size="20" type="text" /></TD> <TD width="50">&nbsp</TD> <TD width="160><label for="name_last">Last Name:</label></TD> <TD width="200"><input id="name_last" maxlength="80" name="name_last" size="20" type="text" /></TD> </TR> <TR> <TD><label for="address_1">Address 1:</label></TD> <TD><input id="address_1" maxlength="40" size="20" name="address_1" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="address_2">Address 2:</label></TD> <TD><input id="address_2" maxlength="40" name="address_2" size="20" type="text" /></TD> </TR> <TR> <TD><label for="city">City:</label></TD> <TD><input id="city" maxlength="20" name="city" size="20" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="state">State:</label></TD> <TD><input id="state" maxlength="20" name="state" size="20" type="text" /></TD> </TR> <TR> <TD><label for="zip">Zip:</label></TD> <TD><input id="zip" maxlength="40" name="zip" size="20" type="text" /></TD> <TD>&nbsp</TD> <TD> <label for="phone_home">Home Phone:</label></TD> <TD><input id="phone_home" maxlength="10" name="phone_home" size="20" type="text" /></TD> </TR> <TR> <TD> <label for="monthly_rent">Monthly Rent:</label></TD> <TD><input id="monthly_rent" maxlength="10" name="monthly_rent" size="20" type="text" /></TD> <TD>&nbsp</TD> <TD> <label for="phone_mobile">Cell Phone:</label></TD> <TD><input id="phone_mobile" maxlength="10" name="phone_mobile" size="20" type="text" /></TD> </TR> <TR> <TD><label for="birthdate">Birthdate:</label></TD> <TD><input id="dob_month" maxlength="2" name="dob_month" size="1" type="text" /> / <input id="dob_day" maxlength="2" name="dob_day" size="1" type="text" /> / <input id="dob_year" maxlength="4" name="dob_year" size="1" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="rent_or_own">Rent or Own:</label></TD> <TD><select id="rent_or_own" name="rent_or_own"><option value ="Rent">Rent</option><option value ="Own">Own</option></select></TD> </TR> <TR> <TD><label for="address_length">Time@Address:</label></TD> <TD>Yrs: <input id="address_length_years" maxlength="2" name="address_length_years" size="1" type="text" /> Mos:<input id="address_length_months" maxlength="2" name="address_length_months" size="1" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="social_security_number">SS#:</label></TD> <TD><input id="social_security_number" maxlength="9" name="social_security_number" size="20" type="text" /></TD> </TR> <TR> <TD><label for="employer">Employer:</label></TD> <TD><input id="employer" name="employer" size="20" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="job_title">Job Title:</label></TD> <TD><input id="job_title" maxlength="80" name="job_title" size="20" type="text" /></TD> </TR> <TR> <TD><label for="timeemployer">Time@Employer:</label></TD> <TD>Yrs: <input id="employer_length_years" name="employer_length_years" maxlength="2" size="1" type="text" /> Mos: <input id="employer_length_months" name="employer_length_months" maxlength="2" size="1" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="income_monthly">Income (monthly):</label></TD> <TD><input id="income_monthly" maxlength="80" name="income_monthly" size="20" type="text" /></TD> </TR> <TR> <TD><label for="phone_work">Work Phone:</label></TD> <TD><input id="phone_work" name="phone_work" size="20" type="text" /></TD> <TD>&nbsp</TD> <TD><label for="phone_work_ext">Extension:</label></TD> <TD><input id="phone_work_ext" maxlength="80" name="phone_work_ext" size="20" type="text" /></TD> </TR> <TR> <TD><label for="bankruptcy">Bankruptcy:</label></TD> <TD><select id="bankruptcy" name="bankruptcy"><option value ="Yes">Yes</option><option value ="No">No</option></select></TD> <TD>&nbsp</TD> <TD><label for="cosigner_available">Cosigner:</label></TD> <TD><select id="cosigner_available" name="cosigner_available"><option value ="Yes">Yes</option><option value ="No">No</option></select></TD> </TR> <TR> <TD>Price:</TD> <TD><input id="price" name="price" length="20" type="text"></TD> <TD>&nbsp</TD> <TD><label for="email">Email:</label></TD> <TD><input id="email" name="email" length="20" type="text"></TD> </TR> <TR> <TD>Pref. Monthly Pymnt:</TD> <TD><input id="preferred_monthly_payment" name="preferred_monthly_payment" type="text" length="20"></TD> <TD> </TD> <TD></TD> <TD></TD> </TR> </TABLE> </TD> </TR> <TR> <TD align="center"> <HR> </TD> </TR> <TR> <TD> <TABLE valign="bottom" align="center" BORDER="0"> <TR> <TD> <input type="submit" value="Accept" name="submit">&nbsp &nbsp <input name="cancel" value="Cancel" class="stdButton" onclick="JavaScript:GetLayout();" id="Button2" type="button"> </form> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </center> </BODY> </HTML> What would be the best way to capture the string data that is sent in this form? Thanks in advance
  16. Ah sweet, I understand now. Thank you very much! I was sitting there messing with the code for a while and kept getting errors, but that example clears up everything
  17. Ah, sweet. So how would I use that in this phrase? EDIT: namely, the part where cphoto is being used. '; if($row['cphoto'] == '') { echo '<img src="http://www.clearfrontmarketing.com/createflyer/or/images/nophoto.gif" />'; } elseif($row['cphoto'] != '') { echo '<img src="http://www.clearfrontmarketing.com/createflyer/or/images/cars/'.$row['cphoto'].'" style="width: 300px;" />'; } echo '
  18. I'm using the following code to generate a flyer-template output on the page based on values in a table. The actual page is at http://clearfrontmarketing.com/createflyer/or/ So, when I select one of these flyers from the dropdown list, the image name sometimes has a space in it. This makes it a bit tough to use the flyer on sites such as craigslist without going in and manually putting a %20 in every post. Is there a way to autofill the spaces with %20 on the output code? Or, better yet, is there a way I can have the spaces taken out of the image filename when it is uploaded? <?php include('common/dbconnect.php'); $theID = $_POST['cID']; if($theID != '') { $sql = mysql_query("SELECT * FROM tblcars WHERE cID = $theID"); $row = mysql_fetch_array($sql); $cbody = $row['cbody']; $sql3 = mysql_query("SELECT btype FROM tblbody WHERE bID = $cbody"); $row3 = mysql_fetch_array($sql3); $cdrive = $row['cdrive']; $sql4 = mysql_query("SELECT dtype FROM tbldrive WHERE dID = $cdrive"); $row4 = mysql_fetch_array($sql4); } echo '<!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"> <head> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Car Website</title> <link rel="stylesheet" href="common/style.css" type="text/css" /> </head> <body> <------------snipsnipsniplet'sskipsomeofthis-----------> <TABLE WIDTH="600" HEIGHT="20" BORDER="0" CELLPADDING="0"> <TR> <TD style="color:#f0f0f0;background-color:#000000"> <FONT SIZE="5"><b>'.$row['ctitle'].'</b></FONT></TD> </TR> <TR> <TD> <FONT SIZE="4"><b>'.$row['cslogan'].'</b></FONT> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD> <TABLE> <TR> <TD WIDTH="310" ALIGN="center"> '; if($row['cphoto'] == '') { echo '<img src="http://www.clearfrontmarketing.com/createflyer/or/images/nophoto.gif" />'; } elseif($row['cphoto'] != '') { echo '<img src="http://www.clearfrontmarketing.com/createflyer/or/images/cars/'.$row['cphoto'].'" style="width: 300px;" />'; } echo ' </TD> Thanks a bunch
  19. Nevermind, I figured out that I could just add the details of the font into the recall information.
  20. Is it possible to have multiple fonts while adding text to an image as described here: http://www.phpfreaks.com/forums/index.php/topic,232716.msg1079919.html ??? I know that I can have multiple fields now, but I'd really like to be able to have a couple of different fonts used as well. If this is possible, could someone help me out? I've tried looking all over for a tutorial or anything of the like and I'm not finding anything. Thanks
  21. Ah sweet, this is just what I needed. Thanks a bunch!!!
  22. I've made a script based on a tutorial, and I have the basice function working. It's just a basic script to put text over an image from my server. My question is this: how can I put multiple strings of text positioned across the image? <?php $image = ImageCreateFromPNG("image.png"); $color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66); $font = 'arial.ttf'; $fontSize = "12"; $fontRotation = "0"; $str = "Example of GD in PHP. Date: " . date("m-j-Y g:i:s (a)"); /* Shadow */ ImageTTFText($image, $fontSize, $fontRotation, 7, 22, $colorShadow, $font, $str); /* Top Level */ ImageTTFText($image, $fontSize, $fontRotation, 5, 20, $color, $font, $str); header("Content-Type: image/PNG"); ImagePng ($image); imagedestroy($image); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.