39,320 Topics
| |
Hi everyone, Any ideas how to change this code so I can have a square thumbnails instead of always the same width but not height? Thanks [code] function CreateSiteThumbnail($srcFile, $destFile, $width, $quality = 100) { $thumbnail = ''; if (file_exists($srcFile) && isset($destFile)) { $size = getimagesize($srcFile); $w = number_format($width, 0, … | |
I have two input textbox with the same name, when submiting the page I get only the value of the second textbox. how can i get the value of both fields??? | |
Is there any possibility to do online chatting with php. In clear, if we post our message ,the other person for whom we post will get that message with out inserting that message into the database... Can any one please help me out... Thanks... | |
hi all i problem rotate image (png) code : [CODE] $myimage=imagecreatefromjpeg('test.jpg'); $mypng=imagecreatefrompng('opera.png'); $sizepng= getimagesize('opera.png'); $jpgwidth=imagesx($myimage); $jpghieght=imagesy($myimage); $pngwidth=imagesx($mypng); $pnghieght=imagesy($mypng); $pngwidth1=$sizepng[0] / 10; $pnghieght1=$sizepng[1] / 10; imagerotate(mypng,50,1); imagecopyresized($myimage,$mypng,0,0,0,0,$pngwidth1,$pnghieght1,$sizepng[0],$sizepng[1]); header("Contents-type: image/jpeg"); imagejpeg($myimage); imagedestroy($myimage); imagedestroy ($mypng); [/CODE] | |
hi everyone,i am having a problem with the maximum file upload i have read the forums about the maximum file upload and i went to php.ini to change the maximum file upload from 2mb to 3mb but if i upload 2.6mb file still the upload file doesn't work can you … | |
hi folks.. I downloaded the micro chat in hotscripts.com its working fine in my localhost , but its not working while hosting to any site, that means the message we are sending is disappearing after a second.. you can see the following link to see the problem [url]http://www.apolloinfosystem.com/microchat/index.php[/url] | |
Anyone know how to get a custom layout when sending email's via mail()? At the moment I would just like to start a new line in an email but eventually throw in images and etc. Any information be much appericated. Regards, X | |
I have been trying to find a simple name and password tutorial that works and is easy to follow. Not having much luck. The name and password will be in a text file or mysql database which the user will be given, i do not need forgot password or email … | |
Hello, I want to create my own script like [URL="www.anonym.to"]www.anonym.to[/URL] but with few additional features i want to use database, i believe its very easy to make but the problem i don't know php, i can write in visual basic and c++ but not php, What do i want?? to … | |
Hi All, I have one requirement that, i am displaying results getting from various sites by sending request to their servers using http_client::get method.But it is taking much longer time to get back the response. I am using for loop to send the requests to all the servers(approx 40).So it … | |
hello shanti I also downloaded the micro chat in hotscripts.com its working fine in my localhost , but its not working while hosting to any site, that means the message we are sending is disappearing after a second.. you can see the following link to see the problem [url]http://www.apolloinfosystem.com/microchat/index.php[/url] | |
not sure if this is the correct place to post but here we go anyway. what i am trying to do is put a table inside a div tag held within a php page but it is not working. here is the code [CODE]print "<h4>There are $num_rows records.<P></h4>"; print "<div … | |
[I]n the following program i have the error [COLOR="Red"]Warning: ftp_delete() [function.ftp-delete]: Access is denied. in G:\WEBROOT\wilbourn\ftptest\uploadfunctionpage.php on line 89 could not delete wilbourn/ftptest/t.DOC [/COLOR] [/I] [CODE] <?php //Move or Upload Folder Using PHP FTP Functions function moveFolder($_server, $_user_name, $_user_pass, $local_dir, $remote_dir) { echo"$_user_name <br/>"; echo"$_user_pass <br/>"; echo" directories are : … | |
Hello all, I use a database to extract the title of a url. I want to take save this title in a variable and then check if it is url1 or url2. If it is url1 call url1 javascript function else if url2 call url2 function. My code is : … | |
Hi to all, Did you ever see the Rock solid clone scripts like youtube,facebook,orkut and also social networking software for various segment like hospitals,colleges,schools and also for different communities...?If yes means just share with me too.:ooh: | |
i m doing project for my college and i need a effective menu bar for php. guys help me | |
Hey everybody this is my first post here and just learning PHP and need some help on an infinite loop problem. The code is supposed to find how many ways you can change a $1 dollar bill into coins using dollar coin, half dollars, quarters, dimes, nickels, and pennies. But … | |
Hi everybody, I'm new in this forum, I'm a PHP developer looking for good solutions for changing colors, fonts, styles of a site on the fly. The idea is, the user will be given options to customize his/her web site's font, color of various elements etc. and then the site … | |
Hi! I am using the following code for a file upload- [code=php] <?php if(isset($_POST['b1'])) { if($_FILES['uploadedfile']['name'] !="") { $target_path = "/home/infotech/myhomepage/uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); echo("Temporary Location is: ".$_FILES['uploadedfile']['tmp_name']."<br />"); echo("Target Path is: ".$target_path."<br />"); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; … | |
ive been getting loads of errors on a script that im trying to install.. so far ive fixed a few of them but now im stuck here Parse error: syntax error, unexpected T_RETURN in /home/wwwulti/public_html/network/install/index.php on line 668 [img]http://www.daniweb.com/forums/attachment.php?attachmentid=8340&stc=1&d=1227550169[/img] looks like the same things guna happen on line 670 any … | |
Hi Every Body Any one tell me how i add login form and database in my site <URL SNIPPED> PLz Tell me | |
HI, If anyone could help me it would be great! So I am building a website for some snowboarders and they would like to collect Emails for their newsletter. this is the code i have put in. I know it is simple but when People submit there emails I want … | |
hey people, I want to develop my own social network. Do you think PHP and Mysql plus Javascript can do the magic?........ Thanks in advance..... | |
I'm trying to put together a registration form for little league baseball. I'd like to have a form where the parents can enter their information and the information for up to 5 children. I need a separate record for each player instead to one record for each family. So what … | |
Hello all. I am having some questions about a subject. I am running a small social community using SocialEngine and i want to include phpbb3 with an arcade mod or any arcade board that support high scores. My problem is that i do not want my users to re-register into … | |
I want to fetch data from Mysql database in list box..but it's not happening The code is: [code=php]<?php include("connection.php"); $sql= "select student_age from student_data"; $result= mysql_query($sql); if(!$result) { die('could not connect:'.mysql_error()); } while($row = mysql_fetch_array($result)) { echo "anumita"; ?> <option value="<?=$row[0]?>"> <?=$row[0]?> </option> <?php } ?>[/code] | |
Hello all I need fast answer on this: How i can change(or) reset value ["referalvisits"] to ZERO? let's say that there is some value: for example 23220 I need reset it to zero and count again from zero.. "" [code=php]<th>Referral Visits</th> <td> <? echo $row["referalvisits"]; ?></td>[/code] "" thank you alot I … | |
hope someone can help me with this. i am trying to update records in a mysql db with a new image but i keep gettin errors. i am using a hidden form input to post a variable across to a new page, i can echo the variable out at the … | |
Hi there, So I thought this would be simple and it should be but I can't see what is wrong. Basically I am checking what language has been selected (via a code stored in a constant LANG_CODE) and then loading in a specific swf file. Except that the language code … | |
Ok... I have another problem. I have tryed to split the resultts of my query in to multiple pages with a fixed number of results per page... I used this tutorial for it: [url]http://www.php-mysql-tutorial.com/php-mysql-paging.php[/url] Originally, my page worked as follows: There was a search frame where the user would select … |
The End.