nav33n 472 Purple hazed! Team Colleague Featured Poster

-569

nav33n 472 Purple hazed! Team Colleague Featured Poster
$target_path="/home/install/trial";
$target_path=$target_path.basename($_FILES['uploaded']['name']);

target_path is not correct. You need to have a "/" after trial. Else, target_path will be like this.
home/install/trialfilename.(in short, it will upload (if it does) it in install directory.)
Strangely, It still uploads even if I dont give anything in upload_tmp_dir. I am sorry ! I give up.

nav33n 472 Purple hazed! Team Colleague Featured Poster

But it should be var x = document.form.element.value and not var x=document.form.element.value2 I dont think you can have <option value="something" value2="something">something </option> ! Instead put contents in value2 to value and then try.

nav33n 472 Purple hazed! Team Colleague Featured Poster

ur working in windows n i am in linux.

That was not my point. What I was trying to say was, session.save_path is taking the tmp value, but not upload_tmp_dir. But anyway, Could you post your code that you are using to upload ? Maybe theres a problem with your code ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi, Welcome to Daniweb !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome Dee!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome SteveH66!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Melab !

nav33n 472 Purple hazed! Team Colleague Featured Poster
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.forms.os0.options[document.mygallery.os0.selectedIndex].value2
}

.value2 ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

hmm.. Well, I ll show you what I have in my phpinfo. Notice the changes.

upload_tmp_dir	c:/wamp/tmp	c:/wamp/tmp
....
.....
......
session.save_path c:/wamp/tmp c:/wamp/tmp
....
.....

Your phpinfo says, session.save_path /tmp /tmp . So, there exists a tmp directory and its not configured correctly in your loaded php.ini file :) Thats the conclusion !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Can you post (one last time) what is the output of phpinfo ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

no. Change them all to
url("images/filename.gif");

nav33n 472 Purple hazed! Team Colleague Featured Poster

Nope :( I dont.

nav33n 472 Purple hazed! Team Colleague Featured Poster

No. Just set another environment variable to the temp directory. I have never worked on linux so I dont know how you can set an environment variable in linux, but in windows its pretty simple.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Okay.. I found out your problem. Open css file and change the path of all image urls to images/filename instead of

background-image: url(file:///C|/Documents%20and%20Settings/Azura/Desktop/templete/34/images/nav_on.gif);.

That will solve your problem.
Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

Files will, by default be stored in the server's default temporary directory, unless another location has been given with the upload_tmp_dir directive in php.ini. The server's default directory can be changed by setting the environment variable TMPDIR in the environment in which PHP runs. Setting it using putenv() from within a PHP script will not work. This environment variable can also be used to make sure that other operations are working on uploaded files, as well.

Source: http://alamo.nmsu.edu/computer/references/php_manual_en.html

nav33n 472 Purple hazed! Team Colleague Featured Poster

Whats t1.personal_name ? Is t1 a table name ? If yes, then I would suggest you to use an alias for that column. For example,

$query="select t1.name as name, t2.dept_no as dept from emp t1, dept t2 where t1.dept_id=t2.dept_id";
$result=mysql_query($query);
while($row=mysql_fetch_array($result)){
   $name=$row['name'];
   ...............
}

That ll solve your problem.

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "c:/wamp/tmp"

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Now that's my php.ini file.Look at the complete path and its within double quotes.

nav33n 472 Purple hazed! Team Colleague Featured Poster

$result_join is not a valid resource. Check $query_join by printing it out and executing it in phpmyadmin.

nav33n 472 Purple hazed! Team Colleague Featured Poster

code ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Power of knowledge can never be destroyed !

nav33n 472 Purple hazed! Team Colleague Featured Poster

I guess you have. But then, why is upload temp directory 'empty' if you have made correct changes to php.ini file ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

deal

nav33n 472 Purple hazed! Team Colleague Featured Poster

:S Well, you have 2 php.ini files and have specified the temp directory in both those files. But still when you see phpinfo, temp directory is empty. :) Can you tellme what php.ini file is being used by apache ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

You just reached a milestone of 500 posts ;)

nav33n 472 Purple hazed! Team Colleague Featured Poster

-567

nav33n 472 Purple hazed! Team Colleague Featured Poster

bat
ate
date

Bored

nav33n 472 Purple hazed! Team Colleague Featured Poster

I dont see anything wrong with your script. I even doubt if its a php problem. Try out with simple examples to check if you get mails instantly ! The problem might be with smtp server ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

umm.. have you changed the temp dir path in php.ini file in the host ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

So Many Interesting Lies Entertain Sorcerers !

nav33n 472 Purple hazed! Team Colleague Featured Poster

take
ant
net

karate

nav33n 472 Purple hazed! Team Colleague Featured Poster

-565

nav33n 472 Purple hazed! Team Colleague Featured Poster

Knowledge is the best weapon one can have.

nav33n 472 Purple hazed! Team Colleague Featured Poster
select staff.name, review.date, promotion.date
from
staff
left join review on review.staff_id=staff.id
left join promotion on promotion.staff_id=staff.id group by staff.name

Wouldn't that work ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. I am sorry. I didn't understand. It would be helpful if you post relevant code.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Okay.. The simplest way is, put whatever you want in a variable and print that variable whereever you want. For example,

<?php
$text1="This is some random text ! blah blah blah..<br />I just added a break.";
$text2="One more test.. ";
?>
<html>
<body>
<table>
<tr>
<td>
<?php echo $text1; ?>
</td>
</tr>
<tr>
<td>
<?php echo $text2; ?>
</td>
</tr>
</table>
</body>
</html>

This is just an example. You can do it this way.
Hope that helps.
Cheers,
Naveen

TaoistTotty commented: Great Help +1
nav33n 472 Purple hazed! Team Colleague Featured Poster

okay! now thats a basic html with table and td tags. You forgot to mention "what" you want to update.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Is the news coming from the database ? Do you want to update the news in the database using a frontend ? I am sorry, I still can't understand it. Could you show us the code so that we could understand better ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

It will run the php file present in the IP address(host) you have specified and not the one which is in your local system.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check the path of the images in your template. Maybe its hardcoded. Welcome to Daniweb btw.

nav33n 472 Purple hazed! Team Colleague Featured Poster

What do you mean by update a html page ? Can you be more specific ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

rod
word
dos

Download

nav33n 472 Purple hazed! Team Colleague Featured Poster

How will it execute the script in the local system if you give the IP of a remote machine ? :S

nav33n 472 Purple hazed! Team Colleague Featured Poster

Some Men In Turkey Tricked Little Elephants

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Mohammed Vasim!

nav33n 472 Purple hazed! Team Colleague Featured Poster

him
hip
pic

Register

nav33n 472 Purple hazed! Team Colleague Featured Poster

belt