39,326 Topics

Member Avatar for
Member Avatar for innovateuk

I have the exact function with image resize on my site, but I would like to add the watermark to the same function, I tried with many options, but nothing worked. Can someone help me to add watermark function please code as follow function do_resize_image($file, $width = 0, $height = …

Member Avatar for innovateuk
0
291
Member Avatar for subrata_ushasi

Hi all , I want to create a search page like csoft.com . Open the site in a browser and enter "wiseimage" in search option left side of the page Search ,search the site and enter "wiseimage" and see the result. According the result of this site I want to …

Member Avatar for subrata_ushasi
0
351
Member Avatar for cmsc

Hi! I am trying to upload images to teambox.com using curl and php, but I always get the error "Invalid file name", "you can't upload a blank file", and "Invalid Record". Any suggestions on how to fix it? here's my code: $fields = array( 'file' => file_get_contents($_FILES['upload_field_'.$task_id]['tmp_name']) ); $fields_string = …

Member Avatar for pritaeas
0
260
Member Avatar for empror9

Hello, i'm working on a script and I want to make the links such as www.mysite.com/signup. this link for registration www.mysite.com/user/username and this link for user's profile. the links without any extention how can I do that?

Member Avatar for empror9
-1
205
Member Avatar for duneflyingyfz_1

Hi all, ive been researching user management programs on codecanyon.net, and ive got a few programs in mind. the only issue i have is redirecting users of certain groups to a different parts of the website. is it a good idea to have them login and then have them redirect …

Member Avatar for broj1
0
130
Member Avatar for rjony321

Hello,I am starting PHP.So please help me.This code for a simple convertor in php just convert Dollar to local currency.here my **Elseif** not correctly working.here is code: <html> <head> <title>currency Convert</title> </head> <body> <form action="" method="POST"> <table> <tr> <td> <lebel>$</label> <input type="text" name="amount"/> to <select name="form"> <option value="taka">taka</option> <option value="rupe">rupe</option> …

Member Avatar for Bachu
1
216
Member Avatar for Ritesh_4

Hello, am working with the date function in a php file, however the text "at" is not being rendered properly: Initial code: "Online reservation form submitted on " . date ("d/m/y \at\ H:i") . "\n\n" . Rendered value: Online reservation form submitted on 29/09/12 a30 11:52 Where instead of "at" …

Member Avatar for Ritesh_4
0
156
Member Avatar for jeconje

I have a problem on how to be able to tick the checkboxes chosen during registration. If i will update 1 record for example a student, his/her chosen, example his/her interests will be ticked during update.

Member Avatar for Bachu
0
102
Member Avatar for andyy121

i m traying this simples code but nothing is displayed what type of problem showld be. <?php function yourname($name) { echo "Your name is" .$name; } yourname("andi"); ?> another code <?php $age= 18; if ($age>=21) { echo 'alan'; }else{ echo 'bob'; } ?>

Member Avatar for Bachu
0
128
Member Avatar for vishalonne

Hi All See the code give given below. I was fighting with this code since last 5 hours to know why isset() is eveluating the condition as false if value is posted exactly what it shall POST. If I uncomment the line no. - 4,5,6,7,8 and put rest of the …

Member Avatar for LastMitch
0
156
Member Avatar for LastMitch

Hi I'm still having trouble understand arrays since I join Daniweb a few months ago. I thought I got a handle it but it seems I need to practice more and write more arrays correctly. This the issue I'm having I can't `echo` the words <?php $printer_machine = array("Copier", "Inkjet", …

Member Avatar for LastMitch
0
266
Member Avatar for lewashby

I've set up a small php file called phpinfo.php the script is below. <!DOCTYPE html PUBLIC "_//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml-transitional.dtd"> <html xmlns="http://www.w3.org/1999/ xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/tml; charset=utf-8" /> <title>First PHP Script</title> </head> <body> <?php phpinfo(); ?> </body> </html> I've already installed both php5 and apache2, …

Member Avatar for cereal
0
327
Member Avatar for wonderland

Hello, I tried finding something on internet, but it seems that all CMS's that support file sharing are with a lot of additional functions that I don't need this time. I'm looking for a system that would provide dropbox functionality - file exchange between people (No need for pc sync) …

Member Avatar for LastMitch
0
145
Member Avatar for Weliaz

Hey there DaniWeb! I have been working a little bit on a framework, and i've came to a little problem:( I want my URL's to be like CodeIgniters where it'll be: site.com/modulename/function/arg1/arg2/arg3 and so on.. and i was thinking it could be be done with something like this (pseudo-code): $args …

Member Avatar for LastMitch
0
135
Member Avatar for thecameraman

Hi so I'm making a site for sneakers. A person can sign up and say they like Nikes, Vans, Reeboks, etc. I then have it where you can make a group for people who like certain sneakers as well. So the group can say they like Nikes, Vans, Reeboks, etc. …

Member Avatar for thecameraman
0
216
Member Avatar for garyjohnson

I am using wampsever and it allows me to use php function to check if I am logged in but it is ignoring the tags inside of the html which calls a function, here is my code. <?PHP require_once("./include/membersite_config.php"); require_once("./include/fg_membersite.php"); if(!$fgmembersite->CheckLogin()) { $fgmembersite->RedirectToURL("login.php"); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for LastMitch
0
265
Member Avatar for athulram

When I search the name of my website (assumed as WEBSITENAME.in)in google it shows Showing results for WEBSITENAME.*com* Search instead for WEBSITENAME.in What can I do about it ? Thanks!

Member Avatar for athulram
0
261
Member Avatar for ptduran

I know we can add google analytics code to phpbb websites, can you please guide me how to add them? I tried adding them through FTP but the analytic code is not there. Sorry if I posted this in a wrong thread.

Member Avatar for pritaeas
0
80
Member Avatar for shilu2

I have a html code as below through which I give image file as input <input name="photo_file" type="file" /> then anather php file to insert record into database code is as below <?php define('GW_UPLOADPATH', 'images/'); $picture=$_FILES['photo_file']; $target= GW_UPLOADPATH . $picture ; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: …

Member Avatar for jacob.lemelincarrier
0
201
Member Avatar for vijayram

Hi how to make it user post photos and videos on my website ,same link as facebook link. any body plz give me idea.and link

Member Avatar for diafol
0
116
Member Avatar for Stardemos

i'm using php 5.4.3, I'm wondering if it's possible to use function session_start(). my idea is to have a login page, then use the username in all pages of the site, the problem is that the $username is not visible in the second page... index.php <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta …

Member Avatar for Stardemos
0
466
Member Avatar for toleen

hi all i have a drop down list to lets user to select one option then, i want to post this option to another page and display information from my database based on this option how can i do this? hint: the values of the list is stored in my …

Member Avatar for jetkingvinay
0
505
Member Avatar for yahya.erturan

My previous folder tree was (with portable xampp): (for example working on D: drive root) /xampp/htdocs/application /xampp/htdocs/system /xampp/htdocs/themes /xampp/htdocs/index.php etc.. Now I am trying to shift into a structure which I can work with multiple projects so new tree: /xampp/htdocs /web_projects/project-name/codeigniter/application /web_projects/project-name/codeigniter/system /web_projects/project-name/htdocs/themes /web_projects/project-name/htdocs/index.php My htaccess file in htdocs: RewriteCond …

Member Avatar for cereal
0
2K
Member Avatar for hajjo

Hello, I am setting up a website which downloads and stores music. I want on download link to check if user downloaded that music , that is I want to check if file downloading exists on his computer. how can it be done?

Member Avatar for hajjo
0
94
Member Avatar for xNZxAssAssiNx

In my code I have a mysql query: "SELECT `username`,`password` FROM `users` WHERE `username` = 'Tyler'" This query doesn't return anything in codeigniter but it does return username and password if I query in phpmyadmin. Does anyone have any idea what is wrong? I'm guessing it has something to do …

Member Avatar for pritaeas
0
210
Member Avatar for souravbansal89
Member Avatar for souravbansal89
-1
107
Member Avatar for websponge

I have this in my index.php include ('php/config.php'); $connection = new db(); $connection->connect(); the class (in a file called config.php) looks like this: <?php //CONECTION CLASS class db { var $host="localhost"; var $username="root"; Var $password=""; var $database="training"; public function connect() { mysql_connect($this->host,$this->username,$this->password); mysql_select_db($this->database)or die(mysql_error()); $sql = "SHOW TABLES"; $result = …

Member Avatar for broj1
0
158
Member Avatar for ZER09

I created a class that will handle the session_set_save_handler but after executing session_start i will get server error this is my code, <?php defined('protect')||(header("HTTP/1.0 404 Not Found")); require_once INCLUDES . '/query.php'; class MySQL_Session{ private $dbConnect = null; protected $savePath; protected $sessionName; private $sessionTable; private $sessionColumn; public function __construct() { $c …

Member Avatar for ZER09
0
200
Member Avatar for TheHealer

I need to write code that looks for files ending in .jpg in an uploads directory, and adds them as images to the page. I'm not too sure how to go about doing this. I've done the form that allows someone to choose a file to upload: <form method="post" action="image.php" …

Member Avatar for TheHealer
0
129
Member Avatar for narekm

I am experiencing this problem for wordpress multi sites . I have enabled network of blogs . So now I create many blogs in my wp and visit subblog via myblog.com/sublog . But the problem is that resources in the subblog starting with myblog.com/sublog .. dont load like css images …

Member Avatar for LastMitch
0
136

The End.