Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Upload Script On Windows Not Working


I am trying to write an upload script that will upload files to a certain directory. I am testing this on my windows desktop under apache if it makes a difference.

Part of the target path is what the user posts to create a new directory for the uploaded file to be put into: Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Working With Different Windows
I have a user in window A pressing a button that makes window B come up, the user enters some data in window B and once done presses a submit button that processes the input. When all is OK, I want to close window B and refresh window A.

View Replies !
Ssh2_exec On Windows Not Working
i can't seem to get the "ssh2_exec" function working on Windows XP. the
example in the manual (which is obviously linux biased) says:

ssh2_exec($connection, '/usr/local/bin/php -i');

i have tried the windows equivalent:

ssh2_exec($connection, 'c:phpphp.exe c:some_file.php');

.... along with many other variations, but nothing seems to be working.
does anyone know what i could be doing wrong?

View Replies !
Ticks Not Working Under Windows
The code at bottom crashes apache when run on a windows. I have tried
both PHP/4.3.9 with Apache/1.3.27 and PHP/5.0.3 with Apache/2.0.49, same
thing happens.

Same code runs fine under Linux (PHP/4.3.4 with Apache/2.0.48)

On http://bugs.php.net/ there is a couple of bug reports on the same,
but 1 is closed and the others has status "bogus".

Does anybody know what that is all about?

/Bent

<?php
header('Content-Type: text/plain');

function tick_function() {
echo "..tick..
";
}

register_tick_function('tick_function');
declare(ticks=1);

echo "line 1
";
echo "line 2
";
echo "line 3
";
?>

View Replies !
Ftp_size Not Working On Windows IIS 6
I am trying to uplaod a file using ftp_put method. It is working fine but when I use ftp_size method to find file size, it always returns -1. I have tried everything but it always returns -1!!!!!!!!!!! I have heard that this function doesn't work on some server so I am confirming if it works on IIS or not!?

View Replies !
Newline And Tab Not Working In PHP 5.0.3 | Apache 2.0.52 | Windows XP Pro
The following examples (see PHP 5 for Dummies, p. 82)
do not produce the expected results:

$string = "Hello
World";
echo $string;

and

$string = "Line 1
Line 2";
echo $string;

The first instance is for a line break such that the words are stacked:

Hello
World

The second instance is for a line break with a tabbed second line:

Line 1
Line 2

Do I need to change or add something in one of the configuration files?
Otherwise, is there a known fix for this?

View Replies !
System() Function Is Not Working In Windows
I want to encrypt a text file's content using public key of other user. I'm working in windows NT and running my php in apache server. I've installed my gnupg in c:gnupg.
To encrypt the content I used the following code: PHP Code:

View Replies !
Session Functions Not Working With Windows XP, Php 4.3.4
i have two simple pages, test.php and test2.php

test.php contains:

<?php
session_start();
$_SESSION['test']="blah";
?>

and test2.php contains:

<?php
session_start();
print $_SESSION['test'];
?>

in the php.ini file, my session save path is set to /tmp. i dont even know
where to look for the tmp folder. also, when i go to test2.php after
accessing test.php, the page is blank and it doesnt print "blah".

as i mentioned in the title, im using windows xp (home edition) with PHP
4.3.4 and apache 1.3

View Replies !
Mail() Php Function Not Working In Windows Server 2003
I tried the mail() php function and it ends up with error message. I tried different tests with port configuration and Smtp server, though it ended up in error.

Error: Code: Original - Code Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-7wwwmailerman.php on line 19 Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-7wwwmailerman.php on line 19.

View Replies !
Php Session Problems When Working With A Windows Client Program
I am currently involved in a project that involves a windows client
program written in delphi and a web application written in php. I
have made several php pages for the delphi program to do requests via
the http component from INDY. the problems I am having are:

1) the first request from delphi app to php web app is the
authenication. In which user sends username + password to the php app.
If authenication is valid, a session is started and the sid is
returned to the client. All subsequent requests from delphi app to
php web app will have this sid as one of the arguments in the POST
form request (this is one of the function in the INDY component for
delphi). Even the sid is passed to the subsequent pages, the session
global array is still undefined. However if I open up a web browser
and create my own string request to the login page then the next page,
the global array would be defined (using var_dump + echo to see the
array) what is the problem?

2) does the above problem has anything to do with the http referer
field?

3) this problem that I am having has been asked before on google
group, but somehow the person who asked it didnt' put down the
solution for it. (this only involves the web only) when I login on a
page and return with a session id, then I log out.. the user is
redirected to the login page again. However if the user login again
(with a different login account), he would be presented with the same
session ID as before. a different sesson id is presented only if the
user restart the browser. why is that happening?

View Replies !
UPDATE Command Is Not Working On MySQL, Windows 2000 Server
Hi all,

I encountered mysterious problem with MySQL and PHP.

UPDATE command is not working on MySQL configured on Apache 2 with Windows 2000 Server.

It pulled my hairs for atleast 5 hours.

MySQL says Affected rows: 0 (Query took ~ sec) always?

Now, I've decided to move all PHP files and db to remote server.

Can anyone suggest possible reasons for above errors?

View Replies !
PHP Upload In Windows
I have php and apache running in Windows XP. I am trying to use various file upload scripts but none of them work. When I try to use ones that use a copy function I get the following error:

Warning: copy(C:serverxitamiwebpageshivangPhotoGallery empimg3e710f87bf1ed.jpg) [function.copy]: failed to create stream: No such file or directory in C:serverxitamiwebpagesshivangPhotoGallery est.php on line 46
File could not be stored.

Anther script I tried does the following:
// Open the uploaded file
$file = fopen($img1, "r");
// Read in the uploaded file
$fileContents = fread($file, filesize($img1));
// Escape special characters in the file
$fileContents = AddSlashes($fileContents);

The above script fileContents only has half the image. I have the upload_tmp_dir set to c:serverupload and file_uploads to yes.

View Replies !
Max Upload On Windows
I have an upload script for my client. The max upload in the php.ini is set to 2M..as standard. I tested it on a linux server and by editing the .htaccess file I can increase the max upload filesize. That doesn't work on the windows server.

So i tried this

<input type="hidden" name="upload_max_filesize" value="16000" />

and this

<input type="hidden" name="upload_max_filesize" value="16M" />

and this

<input type="hidden" name="post_max_size" value="16M" />
<input type="hidden" name="upload_max_filesize" value="16M" />
<input type="hidden" name="max_execution_time" value="600" />

I can't get anything to work. Is there a set way to increase the max upload on a windows server?

View Replies !
PHP 5 Windows File Upload
I need to define a loaction for file for uploads. I am using Win server 2003 PHP 5. I have edited my php.ini to define a location for uploads.
upload_tmp_dir=/somedir/somesubdir/

I restarted my server and I still get no value for upload_tmp_dir.

Any ideas what's wrong?

View Replies !
File Upload On Windows
This is really the first time I have ever had to work with PHP on Windows. I seem to be running into a problem I never have on linux.

The following code show the correct directory in which the image should be moved to, but it fails. It shows the correct path and is_uploaded_file is a success. Code:

View Replies !
File Upload Mac Os X Fine, Windows Xp Not ?
I've written a simple CMS (the file upload is handled by code I found here) for a site I'm working on and I thought everything was working ok until I tested it on a pc.

I always get the same error on the pc which is something I wrote so that only normal jpg's would be uploaded, not progressive jpgs (this is because the site has a flash front end and flash can't load in progressive jpg's dynamically).

I added some more error checking in the php file, and a very strange thing is occuring. I have tried uploading the EXACT same jpg from both my mac and pc, on the mac it uploads fine, resizes etc etc but on the pc it doesn't and in my error message it says that the file is a 'image/pjpeg'? Does a pc think a normal jpg is a prgressive jpg ??? How can the jpg change file types? this is really weird!

View Replies !
Coding For Windows To Upload To Linux
I'm trying to remember what code I had that would work on a Linux server but not on my apache php mysql install on a Windows machine.

Does anyone know of instances of this? Someone I know doesn't believe that this is the case because they believe that php is truly cross platform. I realize that for most code it does work on Windows and Linux but I think there are exceptions that need to be noted.

View Replies !
Need To Detect Windows Vs Mac Files Upon User Upload
We have a need to ensure a user is uploading an acceptable file format (image artwork). The company only supports Windows and would like to know if it's possible to discern between Windows and Mac. Then let the user know the file was acceptable or not.

Is file platform detection possible with PHP?

View Replies !
PHP Exec() And Zipping Upload File In Windows
I have the following code. What I need is to zip the file
(c:webuploadsomeFile) to d:websomeFile.zip.

$cmd = 'c:zipzip.exe '. $movedFile. ' '. $finalFile;
exec( $cmd, $cmd_output );

File is being uploaded by the apache server, but it's not being zipped.
My guess "", escaping, is causing problem in windows path. Do I also
have to escape the $movedFile content? Forexample $movedFile=
"c:webuploadsomeFile".

View Replies !
Php Upload Not Working !
I cant get a file to upload on my local machine running apache and php (both are installed and configured correctly). My form looks as follows, the hidden input is so the php section is only ran after the form is submitted - Code:

View Replies !
Image Upload Not Working Why?
I am using the below code even when I use the right file type I get the error wrong file type and it does not upload what am I doing wrong? PHP Code:

View Replies !
File Upload Not Working Right
after a file upload, $_FILES is not populated but $_POST is. what's going
on here?

$_POST[image][tmp_name]=C
$_POST[image][error]=C
$_POST[image][size]=C
$_POST[image]=C:wwwjimmimagesg1.jpg
$_FILES[image][tmp_name]=
$_FILES[image][error]=
$_FILES[image][size]=
$_FILES[image]=

View Replies !
File Upload Not Working
I'm having trouble uploading files via post method. I'm using this code for the form:

<form enctype="multipart/form-data" method="POST" action="run_dodaj_alb.php">
<p>Naziv albuma:<br><input type="text" name="naziv" size="35" value="<?php if (isset($row->naziv)) echo $row->naziv; ?>"></p>
<p>Godina izdanja: <input type="text" name="godina" size="4" value="<?php if (isset($row->godina)) echo $row->godina; ?>"></p>
<p>Slika:<br><input type="file" name="fajla"><br>
<?php if (isset($_POST['edit'])) { ?><input type="submit" name="Submit" value="Samo makni trenutacnu sliku"><?php } ?>
<input type="hidden" name="MAX_FILE_SIZE" value="500000"></p>
<?php
if (isset($_POST['edit'])) { ?>
<input type="hidden" name="edit" value="<?php echo $_POST['edit']; ?>">
<p><input type="submit" value="Uredi album"></p>
<?php } else { ?>
<p><input type="submit" value="Dodaj album"></p>
<?php }
?>
</form>

And this code for handling upload:
if ($_FILES['fajla']['name']!="") {
$slika="slike/" . $_FILES['fajla']['name'];
echo $_FILES['fajla']['tmp_name'] . "<br>";
move_uploaded_file($_FILES['fajla']['tmp_name'], "/home/users/n/nick/public_html/umzpa/rokeri/" . $slika);
//print_r($_FILES);
$slika="'" . $slika . "'";
} else $slika="NULL";

Now, the file doesn't get uploaded. Not to the $slika place, anyway. I searched
for the $_FILES['fajla']['tmp_name'] file, but it doesn't seem to be there. Where
do I start searching for the problem?

View Replies !
Image Upload Not Working!
I've got the following code to upload an image file, and when you upload to a single location (without the 'thumb' upload it works fine, but as I want the image to be uploaded twice, it won't work. it fails at the point of checking whether the thumbs directory is writable, and it definitely is but it fails! Code:

View Replies !
File Upload Not Working But No Error...
I have a file upload page, and I've had it working fine, it was
beautiful :-) Anyway, the powers that be moved hosts... and it doesn't
work now.

The file name is correct, the directory where it's going on the
server is correct (checked through prints etc.). I've changed the dir
to 777 (is that right?) and this is what I get on the
print_r($_FILES); line:

Array
(
[userfile] => Array
(
[name] => amy.txt
[type] => text/plain
[tmp_name] => /tmp/phpccPHUE
[error] => 0
[size] => 39
)

)

And the file is not uploading - I'm getting an error on the line:

if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile))
{.....

View Replies !
File Upload Not Working With SSL (https)
Ave,
Apache 1.33 / PHP 5.01 / mySQL 5 / Mac OS X 10.3 Platform I have a File Manager application in place for over 2 years now designed with PHP/mySQL. Everything’s been working groovy!

Until yesterday. Yesterday we purchased and installed an SSL Certificate on the Apache Web Server. Now the uploads are not working anymore! Gets the “Page cannot be displayed” error. Tried the same application without SSL and it’s working fine!

What’s the workaround? How do I get this to work on SSL?

View Replies !
Working Directory For Upload Purposes
in my case its the address: www/localhost/music/ . how do I get the address from the default path to my folder dynamically?

View Replies !
Upload Script: Failed To Open Stream: Permission Denied In Windows NT

i've put an upload script on my site, hosted on a Windows NT Version
5.0 server. When i try to upload something i get an error:

copy(files/file.txt): failed to open stream: Permission denied in
d:sitesmatita.bewebsiteuploaded.php on line 20
Could not copy

The problem is that i am not able to change the permissions, since
it's a windows server. CHMOD is not supportes, CACLS neither.

Is there a way out, or is it up to the server admin to install some
'permission system'?

View Replies !
File Upload Script Is Not Working Correctly
Hello, I have a File Upload script that is not working correctly. The File Upload field is on a form with many other fields. When submitted, the form is posted to a MySQL database and then the File Upload script is run to put a file on the server. I can tell that the file is being uploaded, but when I look for it on the server, it is not in the directory I specified, or anywhere else as far as I can tell. I have the directory CHMOD to 777. Below is a rough example of my code:

View Replies !
Multiple Upload - Move_uploaded_file Function Is Not Working
Plz find herewith the attached file "multi.php" with multiple file upload coding which has got some problem as the move_uploaded_file function is not working here.

View Replies !
File Upload :: Good Working Examples?
I want to make a file upload using php, but everytime i get an error
"File name not given". Any hints why this is happening? I used a sample
from php.net, and other php sites, but all samples are basically the
same. Maybe someone from you has a good and working example?

View Replies !
Multi-file Upload - $_POST Not Working...
I have a multi-file upload form... Please looks at my code below. It's
in an initial stage. I'm trying to display the values of each text box
when I press "upload" but it doesn't seem to work... i don't know
what's the problem.. I'm using PHP5.

<html>
<head>
</head>
<body>
<?php
function ifcond($i) {
if ($i > 9) {
return $i;
}
else {
return &#390;'.$i;
}
} //end function ifcond()
for ($i=1; $i < 11; $i++) {
$image[$i - 1] = $_POST[`echo 'image'.ifcond($i);`];
}
print_r($image);
?>

<form action="<?php echo $_SERVER['../PHP_SELF']; ?>"
method="post">
<?php
for ($i=1; $i < 11; $i++) { ?>
Image<?php echo ifcond($i); ?>:
<input type="file" name="image"<?php echo ifcond($i); ?> /><br /><br
/>
<?php } ?>
<input type="submit" value="Upload" /></p></form>
</form>
</body>
</html>

View Replies !
Image Upload Script Is Slow And Not Working.
I've had this script and its worked before and now its extremely slow if i upload images and then doesn't place them in the folder or give me the die message. Code:

View Replies !
Upload Files Working With Firefox But With IE Dont
I have a script for upload and resize a files (photos). Its workinf fine, upload the files BUT with IE cant work. Can anyobody tell me why? Code:

View Replies !
File Upload Stopped Working On Other Host
I developed a site for one of my client. The site was working fine on one host but when he moved to another host, file upload feature stopped working. I am using simple file upload code as below: Code:

View Replies !
Simple Image Upload Isnt Working?
im working on a simple image upload script (my first try) well i noticed that for some reason its not even recognizing a file being uploaded...ive tried using the phpfreaks simple image upload tutorial but that wont seem to work for me. Code:

View Replies !
Register Globals Have Been Turned Off, Upload Form Not Working
Register globals have been turned OFF and now my upload form is not working.

I can request all other information from the form apart from the actual filename?

<input type="file" name="picture" size="30">

How do I pass the variable picture on to the other page when register globals are off?


View Replies !
New Server, Upload Script Stops Working.. Chmod() Not Permitted
I have a private video upload script but it isnt working any longer? Php globals are on. I end up getting this error:

Warning: chmod() [function.chmod <http://*****.com/admin/function.chmod> ]: Operation not permitted in /home/v****/public_html/admin/upload_sub.php on line 49

I had hostgator move my files, and nothing in the scripts was changed. How do i fix this??

View Replies !
System(); Command Not Working On Remote System. Windows.
My server is a windows machine, on the same domain as python(also a windows machine). Apache is running as a service as an administrator. This is a test only environment to whom it may concern(I hate people telling me how insecure my system is) I'm just trying to run:

$last_line = exec('dir pythonc$', $retval, $g);
print_r($retval);
echo '<br>'.$g.'<br>';
echo '$last_line= '.$last_line.'<br>';
Which outputs:

Array ( )
1
$last_line=

The command from the command line works fine. And apache can access directories that only administrators can access on the local machine.

View Replies !
File Upload Not Working When "Document Root" Changed
I am using a LINUX server here for development. When the server is configured the space allocated to "/var/" volume was too less.

Initially, I was working inside the "/var/www/html" folder and all my website are working fine there with uploading function.:)

Then because of the less space, I have moved the projects to "/usr/PHP/" folder. The project is working fine there without upload function:( .

ie, when trying to upload it showed the following error: Code:

View Replies !
"copy()" Function Not Working With File Upload
Below is a multiple-file upload script. The form input part works ok. The variables $FileType, $FileName, $FileSize, $TempName, and $FileError work fine. But just after $FileError (which does not output an error message) the script just stops. The problem appears to be with the "copy()" function. I can simplify the script, make it just a single file upload script, use the variable $userfile for the first part of the "copy() function, and it uploads the file just fine.

The problem is when I try to make it a multiple-file upload script like the one below - then the copy function won't work.

I would appreciate if anyone could spot the problem.

PHP Code:

$Admin[UploadNum] = "10";
if($FileUpload) {
for ($Number = 1; $Number <= $Admin[UploadNum]; $Number++){
if ($FileUpload) {
$FileType = $_FILES["userfile"."$Number"]["type"];
$FileName = $_FILES["userfile"."$Number"]["name"];
$FileSize = $_FILES["userfile"."$Number"]["size"];
$TempName = $_FILES["userfile"."$Number"]["tmp_name"];
$FileError = $_FILES["userfile"."$Number"]["error"];
echo "File Type: $FileType<p>"; // $FileType prints out fine.
echo "File Name: $FileName<p>
"; // $FileName prints out fine.
echo "File Size: $FileSize<p>
"; // $FileSize prints out fine.
echo "Temporary Name: $TempName<p>
"; // $TempName prints out fine.
echo "Error Message: $FileError<p>
"; // Does not output error message - appears to work fine.
// ------------ The script stops working right here ------------
if (copy ($_FILES['userfile'.'$Number']['name'], "users/".$_FILES["userfile"."$Number"]["name"]."")) {
echo "Your file was successfully uploaded!<p>
";
} else {
echo "Your file could not be copied.<p>
";
}
}
}
unlink ($userfile);
}else{
echo "<form action="$PHP_SELF" enctype="multipart/form-data" method="post">
";
for ($Number = 1; $Number <= $Admin[UploadNum]; $Number++){
echo "<input name="userfile"."$Number" type="file" size="25">
";
}
echo "<input name="FileUpload" type="submit" value="Upload Files"></form>
";
}

View Replies !
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !
Working Connection... Not Working? (Advanced)
It has tons of modules, and obviously a config file which opens the db connection. But there is one, and only one, module having strange troubles.

$query is just a simple INSERT INTO command. But it does not inserts anything. I only obtain... nothing. Neither an error from the server! Code:

View Replies !
Use PHPs Upload Feature To Upload Files To My Server Via A Webpage
I'm trying to use PHPs upload feature to upload files to my server via a webpage. Is there a max file size that can be uploaded? Right now my app seems to freeze on anything bigger then 20k. Here is the form I'm using to submit:

<form action="index.php?viewBy=uploadEmail" method="post" enctype="multipart/form-data">
<input type=file name=cdFile>
<input type=hidden name=MAX_FILE_SIZE value=24000><br><br>
<input type=submit value=" Upload Email List ">
</form>

I'd like to be able to upload files of around 200k in size.. is this possible?

View Replies !
Upload_tmp_dir - Upload Files Stored In The Same Directory With Upload Script
I have a problem when I upload files: if try to upload files stored in
the same directory whith upload script it is ok, it uploads them on the
ftp. IF I select a file from another directory than the one with tha
php script I get an error: uploadPHP Warning:
ftp_put(langtxt-update.sql) [function.ftp-put]: failed to open stream:
No such file or directory in D:Atlanticmooncollaudiftp_upload.php on
line 35. I tried to set the upload_tmp_dir in the php.ini to
c/Windows/Temp/ - that is the default. I tried phpinfo() and it is set.
Trying $_FILES["file"]["tmp_name"] I get the correct path. After many
tryes to understand why I get an error, I changed again upload_tmp_dir,
hit an phpinfo() and it changed. At $_FILES["file"]["tmp_name"] in the
script I get the default: windows/temp. What is the problem?

View Replies !
Upload Script Stores Reference To Image And Upload To Directory
I have a php upload script that stores a reference to an image in a mysql database and uploads the image to a specified directory. I am hosting a site on yahoo and the script uploads the image successfully and stores the appropriate data in the database without a problem. However, when I go to view the image, i get an "unauthorized" error returned from the webserver.

If I upload an image with yahoo's online file manager, I have no problems. Forcing users to use the yahoo file manager is not acceptable. Yahoo is blaming my script stating that my script is the problem. If that is true, what could the problem with the script be? I personally think this is a permissions issue on their side.

View Replies !
Upload Script That Allows People To Upload Images And Display Them In A Gallery
I am running an upload script that allows people to upload images and display them in a gallery, the script creates the thumbnails and resizes the original image. The problem I am having is that on one of my servers it seems that the images do not upload and get resized every other time, I run the exact same script on my localhost and on another server but one server seems to be having issues.

I was thinking maybe there is some sort of problem with caching of the temp upload, or could it be because I run the upload script and the HTML upload select file to upload script on one page and just have it post back to itself. If anyone has had this problem before please let me know what you did to fix it or if there is a way to clear delete the tmp uploaded file after I am done moving it around.

View Replies !
File Upload Problem - Upload Multiple Files
I'm trying to upload multiple files. I'm using the chm file from
php.net to help me figure it out. I also checked online and say theres a
problem with the file. Anyway My html looks like this:

View Replies !
Modify Image Upload Scripy To MP3 Upload Script
I am using the following script to upload images to a database. I am pretty new to PHP, but what I would like to do is, modify the script so that it handles MP3 uploads instead of image uploads. Is that possible with this script? If so, has anyone got any ideas how I would go about it? Code:

View Replies !
Image Resize On Upload - Upload Multiple Files
I need to upload multiple files but the code im currently working with (I didn't start it) is giving me a hard time. What i need is that every image selected is uploaded as is and resized to fit my needs. I do not want to show messages to the user (unless they are sending mp3's and such)... I really need some help, been trying to get this done for hours and hours now Code:

View Replies !
Upload Jpg With Ftp -fine, Upload With Php Wrong File Type!
i've scripted a file uploader, about as basic as you can get, and works on all accounts except that it tells me every single jpg is the wrong file type - BUT i can ftp all these same images and they all behave correctly.

echo filetype($type_file);

//got this warning
Warning: filetype() [function.filetype]: Lstat failed for image/pjpeg
any ideas?

View Replies !
Upload Error - Upload A Thum_anne.jpg From Images Folder
I have created a folder call 'uploads' inside of add_record folder:www/charlton/icccon/add_record/uploads directory, would like to upload a thum_anne.jpg from images folder where is www/charlton/icccon/member/images diretory,

but it failed and found the warning sentence below, I don't have much hairs before this problem, and has a quite few less now, can you please help me to solve this problem? Code:

View Replies !
Sessions Working, Then Not Working?
I wrote a login script (one that I have used on quite a few sites previously) and have found that it was working, then not working, then working again now not working - all without me changing any code. Here is the process:

1) l/p gets sent to login.php to query the db

2) if login successful, set $sid = session_id, and other session variables, register them in the session, and redirect to main.php

3) first thing on main.php is check_login function, all this does is see if $sid is set and equal to the current session_id(). If succeed continue to display data on main.php based on registered user data. If fail, redirect to error.php with the appropriate error code. this all takes place on a shared ssl server if that matters.

The trouble I'm having is the check_login function is failing because no session variables are present, including $sid. I'm 99.9 percent certain it's not a code issue because 1) I have done this same script many times before with no trouble, and 2) this particular one was working before So I am really looking for php configuration issues to check on, or things like that.

View Replies !

Copyright 2005-08 www.BigResource.com, All rights reserved