vbnullchar
-
Posts
428 -
Joined
-
Last visited
Posts posted by vbnullchar
-
-
saving photos in your database is a bad idea.. save it in your file system its much faster..
-
-
try mustache for PHP
https://github.com/bobthecow/mustache.php -
-
try to use filezilla theres a column there that displays the folder permission
-
this is made with php,
you need to set the end time then subtract it from the current. example the difference is 25 days.. just use the 25th image
http://images.play.com/SiteCSS/Play/Live2/2010051801/img/countdown/25.gif
-
what ftp client are you using?
-
did you check the upload folders permission?
-
<pre> <?php $raw = file_get_contents('data.txt'); $delim = explode("\n", $raw); foreach($delim as $k => $d){ if($k%2){ $ident[] = $d; }else{ $user[] = $d; } } print_r($ident); print_r($user); exit(); ?>
-
try to put error_reporting(E_ALL); on top of your script then post the errors here
-
can you post the form here?
-
sid and tid are two diff parameters and & is the separator
-
<?php // start loop $selected = ($user===$id) ? 'selected' : ''; echo "<option value='$id' $selected>$name</option>"; // end loop ?>
-
if($_SERVER['PHP_REFERER'] != '') header("location: somewhere.php");
-
$string = implode(',', $imput); mysql_query("UPDATE users SET category = '$string' WHERE username = '$user'");
-
implode is ok but i prefer json_encode
-
s/b
$name = $result['username'];
-
-
$("#test").empty();
-
<?php function test($n) { if($n == '11' || $n == '12' || $n == '13' ){ $suff = 'th'; } elseif($n == '1'){ $suff = 'st'; } elseif($n == '2'){ $suff = 'nd'; } elseif($n =='3'){ $suff = 'ed'; } else { $suff = 'th'; } return $n . $suff; } ?>
-
try trimming...
if(in_array(trim($_POST['from']), $_SESSION['list'])) {
-
The scope of a variable is the context within which it is defined.
use the global keyword to access variables outside the function..
$result = mysql_query($sql) or die(mysql_error()); function timeCompare() { [b]global $result[/b] while ($row = mysql_fetch_array($result)) { echo "<td>". $row["date"] ."</td>"; } }
-
okay I got it...
<?php $csv1 = array( array(4,5,6), array(99,23,42), array(112,282,131), array(22,282,131), array(42,1282,1131), array(12,282,131), array(14,2,3), array('b1','b2','b3'), array('a','a2','a3') ); function __unset(&$arr){ unset($arr[0]); } foreach($csv1 as $k => $value){ $v[] = array_merge((array) substr($value[0],0,1), $value ); } array_multisort($v); array_walk($v, "__unset"); print_r($v);
-
try the code below.. this is from http://www.php.net/function.mail
<?php // multiple recipients $to = 'aidan@example.com' . ', '; // note the comma $to .= 'wez@example.com'; // subject $subject = 'Birthday Reminders for August'; // message $message = ' <html> <head> <title>Birthday Reminders for August</title> </head> <body> <p><b>Here are the birthdays upcoming in August!</b></p> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n"; $headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n"; $headers .= 'Cc: birthdayarchive@example.com' . "\r\n"; $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); ?>
Watermark And Automatic Resize Image?
in PHP Coding Help
Posted
got it working.. put the water first then resize.