User Profile

Collapse

Profile Sidebar

Collapse
brettl
brettl
Last Activity: Feb 27 '12, 07:39 PM
Joined: Sep 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Check the file permissions for that file. Give it at least read access.
    See more | Go to post

    Leave a comment:


  • brettl
    replied to PHP coding
    in PHP
    What is the value of $exponent? If it has no value it may be validating it as false that's why only the first case will work.
    See more | Go to post

    Leave a comment:


  • brettl
    replied to How do I add dots to my link?
    in PHP
    You can use a little method like the one attached and concatenate it.

    Code:
    function fivedots(){
    	$dots =  '.....';
    	return $dots;
    }
    Then add this:
    Code:
    <a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84).fivedots(); ?></a>
    See more | Go to post

    Leave a comment:


  • brettl
    replied to PHP page won't update mysql record
    in PHP
    I don't think you need the foreach($HTTP_P OST_VARS as $varname => $value).

    Read here about Predefined Variables .
    See more | Go to post

    Leave a comment:


  • Sounds like the image is being cached by the browser....
    See more | Go to post

    Leave a comment:


  • brettl
    replied to <object> tag is not working in mozilla
    Yes I'm surprised that the <object> isn't working for you.

    I'm not sure it will work but if you want to use the <applet> tag you can try this. Again not sure it will work.
    [CODE=html]
    <applet type ="applicatio n/x-java-applet" code="com.Graph .class" codebase = "/javaplugin/j2re1_3_0-win.exe" archive ="/javaplugin/appletgraphs.ja r" speed = "5" backgroundcolor...
    See more | Go to post

    Leave a comment:


  • I'm not sure if this will help but I think you should want this
    [CODE=php]
    print "<img src=getImg.php? name=" . $name . ">";
    [/CODE]
    to look like this
    [CODE=php]
    echo '<img src="getImg.php ?name='.$name.' " alt="'.$name.'"/>';
    [/CODE]
    See more | Go to post

    Leave a comment:


  • brettl
    replied to giving error
    in PHP
    Well you should at least be using PHP 4.0 for this library to function. Upgrade to PHP 5 if you can.

    If you are using a PC you should see a little gauge type thing in your tool bar. This is the WAMP icon and you and get access to the WAMP GUI from there.

    Left click on the icon and a menu should pop up. Then click on PHP Settings. Then click PHP Extensions. From there scroll down until you find "php_pdf" and...
    See more | Go to post

    Leave a comment:


  • brettl
    replied to Passing secure data with $_SESSION
    in PHP
    You may not want to use SHA hash for this. I guess it all depends on how sensitive the data you are trying to protect is.



    You can find more information on SHA1 and other methods of encryption here:
    MySQL encryption methods
    and
    PHP SHA1
    and
    PHP Hash

    Hope this helps....
    See more | Go to post

    Leave a comment:


  • brettl
    replied to Sending a HTML e-mail message
    in PHP
    You'll have to add the following to your headers variable:
    [CODE=php]
    $headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    [/CODE]

    Then just build your html in your message variable like so:
    [CODE=php]
    $message = '<html><head><t itle>Some Title Here</title></head>';
    $message .= '<body><p>So...
    See more | Go to post

    Leave a comment:


  • brettl
    replied to giving error
    in PHP
    Make sure that pdflib is installed in your version of php.
    See more | Go to post

    Leave a comment:


  • brettl
    replied to separate the string
    in PHP
    You can use str_split and create an array of all the characters.

    [CODE=php]
    <?php
    $someWords = "hello, everyone how are you?";
    $wordseparate = str_split($some Words);
    for($i = 0; $i < count($wordsepa rate); $i++){
    echo "$wordsepar ate[$i] <br />";
    }
    ?>
    [/CODE]

    I hope this helps.
    See more | Go to post

    Leave a comment:


  • I think you could use the Smarty - Template Engine and loop through an array of variables to produce static html pages. Here is the link to get smarty and read up on the documentation.

    Smarty - Template Engine

    Hope this helps.
    See more | Go to post

    Leave a comment:


  • brettl
    replied to php session error
    in PHP
    just add session_start() to the very first line of your page before anything is outputted to the browers.

    php.net session_start - Manual...
    See more | Go to post

    Leave a comment:


  • brettl
    replied to Tables from MySQL query results
    in PHP
    You can always use CSS and add a class to your query result table to set a background color and a border around the table.
    See more | Go to post

    Leave a comment:


  • brettl
    replied to Error in function imagettfbbox()
    in PHP
    O wait your code should look something like this:
    Code:
     
    
    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);
    ...
    See more | Go to post

    Leave a comment:


  • brettl
    replied to Error in function imagettfbbox()
    in PHP
    Your code above should work.. Just make sure that your font and CaptchaSecurity Images.php are in the same directory. Also make sure you have the GD library turned on as well. To include it in your form just use:
    Code:
    <img src="CaptchaSecurityImages.php?width=160&height=80&characters=5" alt="captcha" />
    In this example the CaptchaSecurity Images.php is in the same directory as the files that...
    See more | Go to post

    Leave a comment:


  • I think your input tags should look like this:
    Code:
    <input type="hidden" name="err" value="http://mydiscover.bhistg.beta.hodes.com/New"/>
    See more | Go to post

    Leave a comment:


  • brettl
    replied to GD library installed but not showing up
    in PHP
    Hey There

    You can turn on the GD library in wamp by using its GUI. When wamp is running in xp you should see a little gage type thing in you task bar. Left click on it and you should see a wamp menu come up. Then click on PHP settings and then PHP extentions. From there make sure you have php_gd2 selected. This should turn on the GD library.

    Hope this helps. Let me know....
    See more | Go to post

    Leave a comment:


  • You have to use:
    [CODE=mySQL]
    SELECT max(id), name, address FROM user GROUP BY "some other field that makes sense"
    [/CODE]

    Hope that helps
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...