13 Topics

Member Avatar for
Member Avatar for James singizi

i am trying to draw an image on to a php page using the imagecreate function but the image is not showing, i cant see the problem with this code, please help me out, the code is as follows: <?php header('content-type: image/jpeg'); $fontSize = 30; $imageHeight = 40; $imageWidth = …

Member Avatar for diafol
0
177
Member Avatar for afrogfx

**i need help in my code !! ** <?php echo $prev.' '.$next;?> **when open this page need make next and prev in link ? how can i do it ? I need my link Like It to show in body (Div ) ! how can i make it ** <?=$prev.' …

Member Avatar for pritaeas
0
155
Member Avatar for afrogfx

**how can i make next page and prev page in my gallery script .. when mid = id of images path = link of images i need 2 button next to get next image and prev to get last image ?? how can i do it ?** $mid=$_GET['mid']; $qur="select * …

Member Avatar for diafol
0
127
Member Avatar for afrogfx

**can help me please .. when i need to remove MAX_SIZE from my code and $dir='upload'; because function create thumbnail in images folder Nd i think error in this code if(move_uploaded_file($t_name,$dir."/".$name)) {** <?php //define a maxim size for the uploaded images define ("MAX_SIZE","1000"); // define the width and height for …

Member Avatar for Squidge
0
231
Member Avatar for afrogfx

how can i create automatically tumbling .. I need when i upload original image automatically create thumb and add thumb ( size 200 x 200 ) in folder and insert path of thumb in database $thumb .. i need help .. any one can help me ? <?php error_reporting(0); if …

Member Avatar for Squidge
0
180
Member Avatar for broj1

Hi all I would like to display several charts on a webpage. I have designed a class that would draw each chart using GD and based on data set by a public method. Unfortunately instead of charts being drawn I get an error message: The image ... cannot be displayed …

Member Avatar for broj1
0
226
Member Avatar for turt2live

Simply enough: Call the function, get the returned filename. Function Variables: $file : The input file (source/background) $destination : Where you want the new watermarked image to go $overlay : The overlay image (foreground), this is default set (if not passed in) to "images/watermark.png" $X : X-Position of overlay (default …

Member Avatar for webatz
1
520
Member Avatar for turt2live

Hello, [[All sample links may not work after the thread is solved, I will keep them up as long as I can though]] I'm trying to make a graph work, which it does, not when CSS is present on a page though... In my setup I use graph.php to create …

Member Avatar for turt2live
0
351
Member Avatar for turt2live

What this script does is take in an image and export a thumbnailed version. Function Arguments: $file : Desired image to create a thumbnail of $destination : End location for the thumbnail $zoom : Setting type, explained later (default: false) $t_width : Thumbnail width (default: 150) $t_height : Thumbnail height …

Member Avatar for turt2live
0
537
Member Avatar for zevo

Hello everybody, i need help from you guys.. I want to split text line into 2-3 lines and put it on image using GD. I know how to write text on image with GD, but i don't know how to split text to get the last line.. Here is what …

Member Avatar for pritaeas
0
338
Member Avatar for gorleone

Hello guys, last time I learn php and make some scripts that work on my localhost, but not in a hosting which I use. Example: checklogin.php: [code]<?php ob_start(); $host=""; $username=""; $password=""; $db_name=""; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername …

Member Avatar for diafol
0
372
Member Avatar for sun-tzu

I am getting the 500 Server Error message when I try to run my captcha script. The script is as follows: [CODE] <?php //Start the session so we can store what the security code actually is session_start(); //Send a generated image to the browser create_image(); exit(); function create_image() { /*//Let's …

Member Avatar for linuxaomi
0
241
Member Avatar for Lolalola

Hi, for example i have this html code: [CODE]<p><strong>Text text.</strong></p> <p><span style="font-size: 14pt;"><span style="background-color: #ff0000;">Text text...</span></span></p> [/CODE] Possible write this text with this style on the image (with php GD)? Thanks

Member Avatar for sourcebits
0
114

The End.