farsiscript
Jul 31 2006, 09:03 PM
| | Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one script for example you can post many image in one post at once case . so its very good and very easy but we have some problems . if you can plz help me to fix this problems
for example : we need change image size for page speed ( we dont want show 16 image in one page ) * we need GD functions to change image size to smaller and then show smaller image at page if you know source or tutorial about change image size plz post here . thankx we know we can change image size (w . H ) in html <image> tag but if we use this algorithm we load real image in real size and our page goes to slow to loading
thanks all
|
Reply
truefusion
Aug 1 2006, 04:41 AM
The function imagecopyresized is what you're looking for. In the PHP manual, it gives you an example code that is for resizing images. http://us2.php.net/manual/en/function.imagecopyresized.php
Reply
farsiscript
Aug 2 2006, 03:53 PM
hi Dear truefusion its very nice sample , thanks anyone if you have idea for this image gallery plz write here to we do it thanks
Reply
Recent Queries:--
extreme php gd examples - 156.75 hr back. (1)
-
html body php gd image - 161.15 hr back. (1)
-
gd function - 25.36 hr back. (2)
-
gd function php short question - 395.97 hr back. (1)
-
cache:w4upuxxxakoj:www.trap17.com/index.php/wappys-php-snippets_t38482.html >> enter your keyword - 727.64 hr back. (1)
-
functions questions - 616.14 hr back. (2)
-
how to include gd function - 894.09 hr back. (1)
-
gd functions - 923.56 hr back. (1)
-
gd rewrite image tag - 1094.44 hr back. (1)
Similar Topics
Keywords : gd, functions, questions
- Functions
??? (9)
Questions?!
PHP (4) What is the standard code for PHP to add articles to your databse, for instance.....
Php Questions?!
From: alex1985 (19) Listen, as I'm novice in PHP, I will ask certain questions in this topic hoping on your
contribution. $dbhost='.....'; //The Database Information//
$dbhost='localhost'; $dbname='alex1985_test';
$dbusername='alex1985_admin'; $dbuserpass='0505009127'; //Creating
Connection To The Database// mysql_connect ($dbhost, $dbusername, $dbuserpass);
//Select The Certain Database// mysql_select_db ($dbname) or die ('Can Not Select
Database'); //Start The Session// //Always Must....
Php Email Validation
A PHP data validation class with many functions (1) I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found....
Php Functions To Send Mail
(9) Which other methods to send mail from a form? I just know mail function, like: mail(string to,
string subject, string message) Has anyother?....
Arrays Outside A Function
Need to have arrays available to all functions. (3) I've got a bunch of arrays that i want to use for more then 1 function. when i declear the
arrays outside a function i cant use it in a function. This code was originally written in
javascript by another person but since I plan to use it and extend it with php I had to change it
from javascript to php code. In the javascript code the arrays were decleared outside the functions
with 'var arrayname' I read somewhere that declearing javascript variables with
'var' gives it global access. Any ideas on how I can go about declearing 1 set of these
arrays t....
Encrypt Functions
(0) Here is my 3rd Code: By this code you can encrypt your text: CODE <?php $a =
md5("hello"); $b = base64_encode("hello"); $c =
base64_decode("hello"); print "md5 = ".$a." base64_encode =
".$b." base64_decode = ".$c; ?> EASY!....
[php](simple) Using Functions To Combine Values In A Form
Really simple example on how to combine values with function (2) I just learned this simple method on how to use functions to combine two values from a form. First
we create ourselves a simple POST form CODE <form method="POST"> Name:
<input type="text" name="nickname"> Location: <input
type="text" name="location"> <input type="submit"
value="Input"> </form> Now we add this php to that same file CODE
<?php $nick = $_POST['nickname']; $location =
$_POST['location' ....
Wappy's Php Snippets
I will place here usefull php snippets and functions that i learn/use (13) Here is a function you can use to generate a simple random password for whatever use ;-) CODE
<? function rand_pass($numchar){ $string = str_shuffle
("abcdefghijklmnopqrstuvwxyz1234567890"); $password = substr ($string,
1, $numchar); return ($password); } //example echo
rand_pass('8'); // will return an 8 character long random password of numbers and
letters like c8k4ss42 ?> CODE tags added. Here is an extremly usefull search function
that will search a directory and....
Some Php Functions Explaination Required
(2) Can some one please tell me what is the purpose of the following functions , although there's a
little explaination with everyline but i cant understand, can some one exaplin it bit clearly and
tell me that why it is needed in config.inc.php.. what is its purpose and will it work if i dont
include these files in config.inc.php thanks QUOTE ### Url were Website has been installed, not
'/' in end! define('C_URL','http://www.test.com/Website'); ### Internal
path to Website directory define('C_PATH','Z:/home/www.test.com/www/....
Javascript To Php - A Few Questions
(1) I am rewriting a Javascript into PHP, but I have two questions: How can I write these functions in
PHP? Math.floor Math.ceil I'm sure the answer is obvious, but I really can't find it...
/laugh.gif' border='0' style='vertical-align:middle' alt='laugh.gif' /> ....
Globals Inside Functions
(4) I've got the following function, that has a function inside of it, when I run it I get the
followin error: PHP Code: CODE Fatal error: Call to a member function on a non-object in
See the code below where I get the error message. I'm guessing the scope of my varaibles is
messed up, but I'm not sure how to fix it. I've abbreviated the code so as to make it easier
to read. PHP Code: CODE function getMemberRegistrationForm( &$tpl, &$db ) {
function displayRegistrationForm( $action, &$db, $defaults =....
2 Questions
(7) i have 2 questions about PHP...please don't answer like "use google"...or something...because i
tried and didn't find anything..so 1. example..i have a varible called $var and it
contains 50 characters..so how can i write only part of them (1,2,3,20)? 2. example like the one
before... i have a varible called $var with 50 characters..how can i write the first /second
/third.. charachter from the $var tnx;)....
Using The Image Editing Functions Of Php
Specifically, lines or regular polygons. (4) I've been experimenting a little with PHP's image functions and I was trying to see if I
could make something that looked 3D, so I started with a cube because it's simple. To make an
isometric picture of a cube, you need to start with a regular hexagon. However, making a regular
hexagon isn't the easiest thing. Is there a function to create a regular polygon, or specify an
angle and magnitude for a vector?....
Writing Your Own Functions In Php
how do i write php functions that takes arguments in php? (2) I'll set up the background for the question: I have a separate file that I include on all the
webpages on my site which I call with PHP using the include() function, so everything will be much
easier to maintain and update. Well, I have three include files for each page: header.php (includes
stuff like meta tags, googlebot/spider info), footer.php (the footer/copyright thing), leftnav.php
(includes the navigation bar). I also like the titles of my pages to be as descriptive as possible
so I try to include the path of a page (how the user got to that page: "Excite Y....
Wap Forum
several questions on WAP forums (9) /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> Right i want to set up a
wap forum for rap battling. I think i need to use php, although i might need wml not sure. so
questions: 1) WML or PHP? 2) Can i get a forum/message board script? 3) Where can i get it? Thanks
in advance Not making helpful thread topics and titles results in warnings, or in extreme cases, a
ban. Don't fall into the crack. ....
A Lot Of Php Questions Part 2
(8) Ok, here's another. After looking at many PHP codes, I will call it "PHP Shortcuts". Do you
still know any other "PHP Shortcuts"? Example, to "print" the visitor's IP address, I use CODE
<html><head></head><body><?php print
$_SERVER['REMOTE_ADDR']; ?></body></html> After seeing
someone's codes, I saw an easy way CODE
<?=$_SERVER['REMOTE_ADDR'];?> So, you know any more of that? And for
MySQL, I know there are many ways to retrieve the results. ....
Confused...
some php functions that i am confused (5) First of all, if you have answers to the following QUOTE
http://www.trap17.com/forums/A-Lot-Of-Php-...ions-t7653.html
http://www.trap17.com/forums/A-Lot-Of-Html...ions-t7651.html Feel free to answer them all. Now,
in PHP i know there's microtime, srand, float, array_rand, arrays, foreach, or any other loop
functions. i'm really confused . Please help me!....
A Lot Of Php Questions
please do help me (3) First , i'm planning to use preg_match, ereg_match, etc.. I think "preg" and "ereg" uses
something like in the Apache's RewriteModule the " " something like that... Do you know a
tutorial that will easily teach me on how to do that? Second , I'm planning to use Apache
Rewrite. But I really don't know how to use. Do you know a tutorial that will easily teach me on
how to do that? Third , while openning some php scripts, I didn't get the meaning of example:
CODE <?php $sample1->//some string here ?> What does it mean? I di....
Html To Php Questions
(3) Hi, I would like to know if it is safe to change HTML files to PHP files by just changing the
dotHTML extension to dotPHP?? I tried it to a single html file because i used a php code of blog,
and it worked. I'm using Internet Explore version 6 and it's working fine. I would like to
know if the PHp files would work for other browsers after changing dotHTML to dotPHP extension.
Thanks....
Looking for gd, functions, questions
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for gd, functions, questions
*MORE FROM TRAP17.COM*
|
advertisement
|
|