View Full Version : Banners


abax
05-29-2004, 12:21 AM
I can't upload banners. Whenever I ty, The page just refreshes and to show me the same page. My data directory is set to 777 already. Any clues?

Jafo
05-29-2004, 02:05 PM
I would double check your paths.

abax
05-29-2004, 02:49 PM
Paths are good since everything else works fine. I see the memeberlist, emails, etc. Just that uploading the banners isn't going right.

Any other hints?

Thanks

Actually, you can test it here (http://69.44.16.69/imscripts/admin.php)

Password is test

Beer
05-29-2004, 05:05 PM
Paths are good since everything else works fine. I see the memeberlist, emails, etc. Just that uploading the banners isn't going right.

Any other hints?

Thanks

Actually, you can test it here (http://69.44.16.69/imscripts/admin.php)

Password is test

http://69.44.16.69/imscripts/data/alldata.cgi

This file is present but contains "hello" which tells me that the php was not able to write to it, because the dir is not writable, please double check.

The path is irrelevant here because the path at the top of admin.php is to the java server, not the current folder. Php will always have the relative path to the script as the default.

try this script from the same dir

<?php
$file = fopen('data/test.txt', 'w');
if ($file) {
echo "data dir is writable";
fclose($file);
} else {
echo "data dir is not writable";
}
?>

Place this in a file in the same dir as the admin.php and try it.

abax
05-29-2004, 08:19 PM
Thanks Beer! Much appreciated! I had to upload everthing again. Thanks again

Abner
06-11-2004, 12:47 AM
Banners do not apear on Im, any ideas?what shoul i do after uploading banners?

Thanks,
Abner

Jafo
06-11-2004, 02:10 AM
Make sure the banner info was created correctly in the client creator.

Abner
06-15-2004, 09:58 AM
HI,

i have on Banner URL http://mysite.com/cgi-bin/imbanner.cgi?nembanner
and at Clickthorugh URL http://mysite.com/cgi-bin/imbanner.cgi?newurl

Please check the permissions on the picture i have attached.

I still cant see banners on Im.
Let me know.

Abner

Jafo
06-15-2004, 01:39 PM
Is your domain name mysite.com?

Abner
06-15-2004, 06:58 PM
no is not, i just dont want to post my domain here! so, is the cofig set right?

Jafo
06-15-2004, 07:02 PM
This URL is spelled wrong I believe:

http://mysite.com/cgi-bin/imbanner.cgi?nembanner

Should be:

http://mysite.com/cgi-bin/imbanner.cgi?newbanner

bulkmania
07-15-2004, 01:48 PM
try this script from the same dir

<?php
$file = fopen('data/test.txt', 'w');
if ($file) {
echo "data dir is writable";
fclose($file);
} else {
echo "data dir is not writable";
}
?>

Place this in a file in the same dir as the admin.php and try it.

OK, is located here (http://clienti.dainet.ro/messenger/test.php) & is working good: data dir is writable.

Still the banner page located here (http://clienti.dainet.ro/messenger/admin_sql.php) is not working.
Just a blank page when i want to add a banner.

btw.. pass is test.
10x in advance

Beer
07-15-2004, 03:20 PM
hi, that's odd.

is your pathto script empty in admin_sql.php?

$pathtoscript = "";

try commenting this line out on top of admin_sql.php please

#error_reporting(0);

bulkmania
07-15-2004, 05:02 PM
Now:

$pathtoscript = "";
#error_reporting(0);

I have to mention that the system is FreeBSD & J2SDK 1.4.2 (maybe it helps)

Beer
07-15-2004, 06:05 PM
hi,

go to your php.ini file in the /etc or /etc/httpd folder and make sure uploads are turned on please

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

bulkmania
07-15-2004, 06:16 PM
are on.. the problem is not that (maybe safe_mode ON & register_globals=off) ?

Beer
07-15-2004, 10:23 PM
Well the thing is, that function writes the file alldata.cgi to the data/ folder. That file isn't present on your server. So the script is dying on the file upload, it never completely runs through.

There is no error message so the program flow is being terminated abnormally by php itself. Which means there is a server side problem on file uploading.

Are you sure httpd has read permission on the temporary directory specified in php.ini?

When an upload occurs in php, the data is written to a temporary folder specified in php.ini, and the script reads the data out of that folder and writes it to /data. Since it's dying before the text file alldata.cgi gets written immediately after, the logical conclusion is that either

A. the upload can not occur for some reason on the server side, check php.ini

B. the upload occured, but the temp file directory in php.ini
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir =

is not readable/writable and causes the script to die prematurely.

bulkmania
07-20-2004, 01:31 PM
now is working indeed.
The problem was open_base_dir directive - fixed & working.

thanks.. you helped me.


regards