🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.golive.dynamic.content
Article #141

Re: Picture path is not being added to MySQL DB

#141
From: Jeremy_M._Cox
Date: Sun, 15 Aug 2004 06:30
27 lines
1818 bytes
raf,
OK I used your method and the path is being uploaded to the database. So thank you for that. Then I was having the same problem with the photo not being deleted. So I deleted the "@" symble in front of the "unlink" function. This symbols supresses error messages which made it hard to figure out what was wrong. This led to the following solution

Change line 81, which looks like this

// $del_p = "../../".$_POST[$df];

to this

$del_p = "../".$_POST[$df];

at least it worked for me I hope this helps. It seems the unlink function was looking for the wrong directory. For instance after your fixes, my directory

"../../images/photos/story_photos (the images photo was at the root level) "

was being uploaded to the data base. When I wanted to delete the file the script was looking for the photo at

"../../../images/photos/story_photos"

so in the photo_upload script I just erased one "../" now it looks for the photo at the correct directory which is

"../../images/photos/story_photos"

I hope this helps. Thank you very much for the initial help.

ciao right back,
Jeremy
Technical Details
Message-ID: <3bb51bf4.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!easynet-monga!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb51bf4.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11ffd2,9bda70f14b81d8e3
X-Google-Attributes: gid11ffd2,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jeremy_M._Cox@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!easynet-monga!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.golive.dynamic.content
Subject: Re: Picture path is not being added to MySQL DB
Message-ID: <3bb51bf4.1@webx.la2eafNXanI>
Date: Sat, 14 Aug 2004 23:30:28 -0700
References: <3bb51bf4.-1@webx.la2eafNXanI>
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit