tarun
-
Posts
321 -
Joined
-
Last visited
Never
Posts posted by tarun
-
-
Thank You
-
It Would Look Something Like This
$Messages = array(); $Messages["1"] = "Message 1"; $Messages["2"] = "Message 2"; $Messages["3"] = "Message 3"; $Messages["4"] = "Message 4"; $Messages["5"] = "Message 5";
-
I Want To Create A PM System Using Arrays
The Data Is Accessed Using
include '/users/$username.php';
And For Example "users/accounts/tarun.php" Would Contain An Array With All The PMs
And In "inbox.php" All The Messages Would Display Probably Using "foreach"
And How Would I Do All Of This AND I Would Also Like To Know How I Could Add A Message (Compose A New Message) And How To Delete A Message
Thnx,
Tarun
-
Right Ive Found Both Of These (Both Are Untested By Me)
1.
<? //calculate thumb size $ow = imagesx($im); $oh = imagesy($im); $maxh = 100; $maxw = 150; $new_h = $oh; $new_w = $ow; if($oh > $maxh || $ow > $maxw){ $new_h = ($oh > $ow) ? $maxh : $oh*($maxw/$ow); $new_w = $new_h/$oh*$ow; } //create dst image $dst_img = ImageCreateTrueColor($new_w,$new_h); //resize and copy image ImageCopyResized($dst_img, $im, 0,0,0,0, $new_w, $new_h, ImageSX($im), ImageSY($im)); $function_image_new($dst_img,$galdir.$file); ?>
<?php $file = "test.txt"; //FILEADDRESS $size = "100"; //IMAGE SIZE $data = file($file); $im = @ imagecreate($size, $size) or die(); $bc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); $lines = (int) $size / 10; for ($t = 0; $t < $lines; $t++) { imagestring($im, 3, 4, 4, $data[$t], $tc); imagestring($im, 3, 4, 4 + ($t * 10), $data[$t], $tc); } header("Content-type: image/png"); imagepng($im); imagedestroy($im); ?>
Thnx,
Tarun
-
Thnx But...
Im Looking For Something Thats Free
-
Okay I've Got PHP Demo Files For Users To Download
But Is There A Source Code Encryption Tool Or Something
So That Users Can't Edit Or Change The Demo Script
Thnx,
Tarun
-
I Dont Think There Is A Way Of Styling The Actual Browse Button But
You Can Try These If You Want:
<style> <!-- .browse{ border : 1px #88A0C8; font-family: Arial font-size: 11px; color: #003068; text-decoration: none; background-color: #E9EDF0 } //--> </style> <input class="browse" name="uploadedfile" size="32" type="file" />
<script type="text/javascript"> function buttonPush (buttonStatus) { if (buttonStatus == "depressed") document.getElementById("pseudobutton").style.borderStyle = "inset"; else document.getElementById("pseudobutton").style.borderStyle = "outset"; } </script> <style type="text/css"> input.hide { position:absolute; left:-137px; -moz-opacity:0; filter:alpha(opacity: 0); opacity: 0; z-index: 2; } input.red { background-color:#cc0000; font-weight:bold; color:#ffffff; z-index:1; width:75px; height:20px; font-size:10px; } </style> <!--[if IE]> <style type="text/css"> input.hide { position:absolute; left:10px; -moz-opacity:0; filter:alpha(opacity: 0); opacity: 0; z-index: 2; width:0px; border-width:0px; } </style> <![endif]--> <input type="button" class="red" id="pseudobutton" value="Open File"> <input type="file" class="hide" id="openssme" onmousedown="buttonPush('depressed');" onmouseup="buttonPush('normal');" onmouseout="buttonPush('phased');">
-
Ever consider HTML?
<a href="link.ext"><img src="thumb.ext" border="0" width="20" height="30"></a>
Or if you wanted to echo it
echo "<a href='link.ext'><img src='thumb.ext' border='0' width='20' height='30'></a>";
I Think He Meant How To Create A Thumbnail Image Of A File Using PHP...
-
You Must Have Done Something Right Because It Seems To Be Working Now
-
Thnx Every One
But A Simple Character Replacing System Was All I Could Do MySelf
Your Help Was Greatly Apprecited
Thnx,
Tarun
-
-
Personaly I Think Frames Are UGLY
But Im Sorry I Cant Think Of Anything Else That Can Help You...
-
In My IE7 You Just Get The Stats Section
Can We Have A Look At The Source Code Please?
-
I Need To Make An Encryption System
I've Had An Idea Using str_replace
Which Is Pretty Basic Just Replace Characters With Different Charchters
Eg.
a --> y
b --> h
ETC...
Any Ideas On A More Advanced System
Thnx,
Tarun
-
It's Beacuse You've Saved The PHP File As A HTML File
Open The File Up In Notepad And Click File>Save As
And Save It As test.php -
Okay Thnx
-
How Do You Get Pages With No File Extensions
For Example Look At This...
http://www.google.co.uk/search?hl=en&ie=ISO-8859-1&q=phpfreaks&meta=
See No File Extension
How Do I Get My Site To Have Something Similar To This?
Thnx,
Tarun
-
I Get This Error In IE07
Internet Explorer cannot display the webpage
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.
What you can try:
Diagnose Connection Problems
More information
-
No I Don't Get That Error Any More
But There Are Lots In Invalid Images Links And Stuff
-
Errmm... Just To Let You Know
Is The Error I Get When Accessing Your Site
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/runnerse/public_html/require/config.php on line 28
Unable to connect to SQL server
-
Change The Name - Sorry I Just DOnt Like Sukip
-
WoW HOT STUFF
1 Thing Though - Maybey Allow Stuff Like Fonts And Colours
Thnx,
Tarun
-
The Website's Pretty Slick
Only Thing Is When Registering I Personally Wouldn't Want To State All The Fields On The SignUp Page - But Then Again Im Just Like That LOL
-
HotScripts Is Good For Stuff Like This
Line 2
in PHP Coding Help
Posted
New Code