[PHP] After upload problem!!
i have no problem in uploading my pictures, the problem that i have that after uploading it i can't move or copy the uploaded pictures and it gives me permession denied !! i guess thats because it gives permession only to the apache user, is there anyway i can change that?? thx for ur time guys - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
[PHP] dynamic pop up
i have something like a mail system and i want whenever the user recieves a new message ( and its stored in the databse ) a pop up window appears telling him that he has a new message. so i guess i want something like a daemon but i'm not working on a unix server, i'm working on Windows NT platform. Thx guys - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
[PHP] Full path to download !!!
i have this code working perfect to allow users to download songs from my web site, but the download.php must be in same folder with any song to be downloaded. but i have songs on another server, so i can't make the file name full path like this: http://myserver.com/son1.mp3 any help plz ! ?php $shortname = basename( $filename ); if( file_exists( $filename ) // sanity check !eregi( p?html?, $filename ) // security check !eregi( inc, $filename ) !eregi( php3?, $filename ) ){ $size = filesize( $filename ); header(Content-Type: application/save); header(Content-Length: $size); header(Content-Disposition: attachment; filename=$shortname); header(Content-Transfer-Encoding: binary); $fh = fopen($filename, r); fpassthru($fh); exit; } else { ? file doesn't exsist ? } ? - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
[PHP] Full path to download !!!
i have this code working perfect to allow users to download songs from my web site, but the download.php must be in same folder with any song to be downloaded. but i have songs on another server, so i can't make the file name full path like this: http://myserver.com/son1.mp3 any help plz ! ?php $shortname = basename( $filename ); if( file_exists( $filename ) // sanity check !eregi( p?html?, $filename ) // security check !eregi( inc, $filename ) !eregi( php3?, $filename ) ){ $size = filesize( $filename ); header(Content-Type: application/save); header(Content-Length: $size); header(Content-Disposition: attachment; filename=$shortname); header(Content-Transfer-Encoding: binary); $fh = fopen($filename, r); fpassthru($fh); exit; } else { ? file doesn't exsist ? } ? - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
[PHP] Full path to download !!!
i have this code working perfect to allow users to download songs from my web site, but the download.php must be in same folder with any song to be downloaded. but i have songs on another server, so i can't make the file name full path like this: http://myserver.com/son1.mp3 any help plz ! ?php $shortname = basename( $filename ); if( file_exists( $filename ) // sanity check !eregi( p?html?, $filename ) // security check !eregi( inc, $filename ) !eregi( php3?, $filename ) ){ $size = filesize( $filename ); header(Content-Type: application/save); header(Content-Length: $size); header(Content-Disposition: attachment; filename=$shortname); header(Content-Transfer-Encoding: binary); $fh = fopen($filename, r); fpassthru($fh); exit; } else { ? file doesn't exsist ? } ? - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
[PHP] upload problem, urgent plz guy
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code: // HTMLBODY BGCOLOR=FF ?php $uploadDir = $DOCUMENT_ROOT . /test/; if (isset($submit)) { if ($upload != 'none') { $dest = $uploadDir . $upload_name; if (copy($upload, $dest)) { echo Successfully uploaded $destBR\n; } else { echo FONT COLOR=FFBFile Upload Failed/B/FONTBR\n; $perms = @fileperms($uploadDir); $owner = @fileowner($uploadDir); if (!$perms) { echo Directory does not exist: $uploadDirBR\n; } else { $myuid = getmyuid(); if (!($perms 2) !(($owner == $myuid) ($perms 128))) { echo get_current_user(), doesn't have permission to write in $uploadDirBR\n; } } } } else { echo FONT COLOR=FFBFile2 Upload Failed/B/FONTBR\n; echo Filesize exceeds limit in FORM or php.iniBR\n; } } ? FORM ENCTYPE=multipart/form-data ACTION=test4.php METHOD=POST INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=1 Upload File: INPUT NAME=upload TYPE=FILEBR INPUT TYPE=SUBMIT NAME=submit VALUE=Upload /FORM /BODY/HTML - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
[PHP] upload problem, urgent plz guy
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code: // HTMLBODY BGCOLOR=FF ?php $uploadDir = $DOCUMENT_ROOT . /test/; if (isset($submit)) { if ($upload != 'none') { $dest = $uploadDir . $upload_name; if (copy($upload, $dest)) { echo Successfully uploaded $destBR\n; } else { echo FONT COLOR=FFBFile Upload Failed/B/FONTBR\n; $perms = @fileperms($uploadDir); $owner = @fileowner($uploadDir); if (!$perms) { echo Directory does not exist: $uploadDirBR\n; } else { $myuid = getmyuid(); if (!($perms 2) !(($owner == $myuid) ($perms 128))) { echo get_current_user(), doesn't have permission to write in $uploadDirBR\n; } } } } else { echo FONT COLOR=FFBFile2 Upload Failed/B/FONTBR\n; echo Filesize exceeds limit in FORM or php.iniBR\n; } } ? FORM ENCTYPE=multipart/form-data ACTION=test4.php METHOD=POST INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=1 Upload File: INPUT NAME=upload TYPE=FILEBR INPUT TYPE=SUBMIT NAME=submit VALUE=Upload /FORM /BODY/HTML - Do you Yahoo!? Free online calendar with sync to Outlook(TM).
[PHP] automatic newsletter
hi guys..i wanna make an automatic newsleter; meanings there is no page to force the newsletter to be sent..i wanna server to handle this any ideas??? - Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!