User Profile
Collapse
-
Check the file permissions for that file. Give it at least read access. -
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.Leave a comment:
-
You can use a little method like the one attached and concatenate it.
Code:function fivedots(){ $dots = '.....'; return $dots; }
Code:<a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84).fivedots(); ?></a>
Leave a comment:
-
I don't think you need the foreach($HTTP_P OST_VARS as $varname => $value).
Read here about Predefined Variables .Leave a comment:
-
-
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...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]Leave a comment:
-
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...Leave a comment:
-
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....Leave a comment:
-
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...Leave a comment:
-
-
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.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.Leave a comment:
-
just add session_start() to the very first line of your page before anything is outputted to the browers.
php.net session_start - Manual...Leave a comment:
-
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.Leave a comment:
-
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);
Leave a comment:
-
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" />
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"/>
Leave a comment:
-
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....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 helpsLeave a comment:
No activity results to display
Show More
Leave a comment: