39,323 Topics
| |
okay guys below is my code [code] <?php session_start(); header ("Content-type: image/png"); $img_handle = imageCreateFromPNG("bg2.PNG"); $color = ImageColorAllocate ($img_handle, 100, 100, 100); ImageString ($img_handle, 5, 20, 13, $_SESSION['rkey'], $color); ImagePng ($img_handle); ImageDestroy ($img_handle); ?> [/code] The current output is 134534(example) But i would like the output to be 1[COLOR="Red"]3[/COLOR]45[COLOR="Red"]3[/COLOR]4. Any … | |
hi guys! can you look for my script im required to use php. i have two comboboxes namely cat and sub cat. and i have a textbox. my logic goes to when i select item from cat it will display its sub items in subcat. and then when i select … | |
I am trying to code some advertising banners on my page based on random picks from a table in my DB. I have successfully got my top banner to display and log an impression: [CODE] // Top Banner $query="SELECT * FROM sm_ADS WHERE id_Maze_Category='$Category_ID' and Type='large' and Active='1' ORDER BY … | |
Hello everyone, i am just new in php. I dont really know how to insert a value from a pop up window. I am working it on. But it seems i can't insert the value. Please help me. Thank you. | |
Hi, I'm having a very strange problem. I use lampp on centOS linux. My application has a upload Script (in PHP) which uploads file to file system. after upload and moving file to correct location, uploaded files are getting deleted. I check file upload and moving of file by putting … | |
I have downloaded a lyrics script, and that works, but the author of that script didnt create a file for submiting lyrics... i have tried to create a script but im not a php pro so i ask help from daniweb, to help & create that ""submit.php""... the one who … | |
Hi am working on a project that requires live radio streaming over the internet its a website for an fm radiio station and they need it to stream live. Any one who has an idea on how i should do it pliz help | |
Hi, the problem is that I don't want the code to insert the [B]script name[/B] in the database. So I added this [CODE] basename($path) != basename($file_path) [/CODE] but don't work and the name of the script is then inserted in the database. What this script do is read all the … | |
Hello Is it possible, to set up a system where if someone goes to google and types "test" and then clicks on my link, it automatically saves the string to my database, so i can see what he/she searched. Iv been looking around for a week, so would apericiate some … | |
Hey guys, I'm having a small problem with getting a image map to work when I generate it with PHP. I'm using two separate files. The one is used to display the image which has the image map and the other file is the code I use to retrieve the … | |
is it possible to fetch data from mysql and storing it in javascript array..!!! . . waiting for valid reply.. :) | |
just a small query.. . . i just want to know how to enter fetched data into an array..!!! | |
ok what i have users do is upload files to the server, the files gets renamed for conflicting issues, and then they choose a name they want to call the file. After it uploads it sends that info to the database. now i know that they are going to want … | |
Hi all, I'm currently using XAMPP and I have discovered that it's using PHP 5.2.9. So, I'm attempting to upgrade my PHP. I did the following: [B][U]Attempt #1[/U][/B] 1. Downloaded "php-5.3.0-Win32-VC9-x86.zip" from [url]http://windows.php.net/download/[/url] 2. Backed up current PHP folder 3. Extracted new files to C:\xampp\php\ (overwrote existing files) 4. Renamed … | |
I have my back ground in VC# is desktop application development. In VC# [CODE] if(user.Text == "admin") { form f = new AdminForm(); f.show(); } else if(user.Text == "Facaluty") { form f = new FacForm(); f->show(); } [/CODE] on different user level i can open differnt form according to their … | |
When i type the text myself and click send it Goes to database but when i copy from anyweb and paste in the Text box so as To send. The text is Not Going To Database...And suprisingly its Not giving any Error.Help please,i dont know whats wrong. below is my … | |
hi there guys! how can i add textbox using button? i know that it can be done using javascript but i was required to use php. Is it possible to do it in php? thanks | |
sorry about this noob question, but i am new to PHP. i created a databse in PHPmyadmin to handle IP adresses and was wondering what type should it be ( int,varchar.etc.) i will be using $referrer = $_SERVER['HTTP_REFERER']; to compare the database to this. i was also wondering if there … | |
Okay, I had a thread in the HTML and CSS section, but I'm going to put a new one here with more detail. My friends have created a Cabal private game server, on THEIR computer. Im trying to create a site for it using my computer, but AS OF NOW, … | |
I have googled it so many times, and I still feel clueless about what language I should go with. I feel comfortable in ASP.NET, and I have coded some small stuff here and there in PHP too. 1) I do not have visual studio 2008. I have Visual Studio 2005. … | |
Hi all, I would like to perform a conditional get of a file using PHP and cURL. How can I detect 304 code sent via HTTP headers and avoid to download the entire file? | |
I have searched the web, the PHP manual and checked some reference books, but I can find any satisfactory answer to my question. Perhaps It my poor grasp of the constructor concept and it's proper application? Here is the issue: I have a an existing class constructor definition that I … | |
[COLOR="Green"]How can I block a content from being copied and right clicked ...................................I want to block some images and some text........ please I want it fast[/COLOR] | |
Is it possible to have this scenario... there are many buttons those buttons are the functions in the scientific calculator whereas the numbers are also included in the buttons.... just like the scientific calculator... the numbers must be placed in one text area and the result in another text area … | |
I'm having trouble gaining admin access to user accounts whose names are spelled the same, with the only difference being that one is spelled in lowercase. (ex.: Bill vs bill.) When I try to bring up the lowercase account in the ACP, it always brings up the uppercase account by … | |
Hey guys, I am in the proccess of setting up my server. It is running Windows Server 2003 R, with IIS 6.0 (I think). Now the issue came when installing PHP. First off I got a IIS timeout error whilst running a PHP script containing [b]no[/b] php :@. I managed … | |
Hai, I had a small doubt in my php script. I need to select 10 random numbers from a range ( for eg: 2-88) and stored it in an array. For eg: [ICODE]$number=rand(2,88);[/ICODE] This returns only one value from the range 2-88. I need 15 random numbers from the given … | |
Hai friends, I m gettin error as no such file or directory found,.. Here is my code,.. Can anyone help in resolving this problem,.. [code=php]<?php ?> <form action=" " method="post" enctype="multipart/form-data"> <input type="password" name="pwd" /> <input type="file" name="try"> <input type="submit" value="submit" /> </form> <?php if(isset($_FILES['try'])) { $source_file = $_FILES['try']['name']; $dir … | |
Hi all, I am working on an application in php. Now my client want that when i will send mail from form then in message there should be some html code or template of html. Please tell me how i can send this through mail of PHP. Let me explain: … | |
i have a file sharing script. here is its demo and ther is also zip file of 3 MB in latest uploade [url]http://xtrafile.com/xu/[/url] i want some change in this script i want more then two pages should be displayed to download file one vil only give file information include a … |
The End.