Author Topic: Problem with watermark - Help please  (Read 3815 times)

0 Members and 1 Guest are viewing this topic.

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Problem with watermark - Help please
« on: February 27, 2003, 04:29:50 PM »
Hi there,
 
PHP safemode is off by default.
 
Warning: rename(./data/media/1/sgGirls005_2.jpg,./data/media/1/sgGirls005_2.jpg.shd) [function.rename]: No such file or directory in /home/virtual/site178/fst/var/www/html/4images/includes/annotate.php on line 65
 
This error you are seeing is due to incorrect path settings, rather then safemode settings.
 

This is the reply from my webhost... Can anyone tell me where I went wrong...

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Problem with watermark - Help please
« Reply #1 on: February 27, 2003, 05:01:55 PM »
Since your other thread got moved...

Quote from: tradertt
I have a problem as I do not know my full path in my server although I uploaded the ttf file into my root directory.

Then you can use this:
Code: [Select]
$_SERVER['DOCUMENT_ROOT']."/arial.ttf"

From www.php.net
Quote
'DOCUMENT_ROOT'
The document root directory under which the current script is executing, as defined in the server's configuration file.

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Problem with watermark - Help please
« Reply #2 on: February 27, 2003, 05:52:11 PM »
Thx for that ... I have emailed my host and he has given me the full path. It seems to be working ... but for the error above... Are you using watermark too?

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Problem with watermark - Help please
« Reply #3 on: February 27, 2003, 06:58:41 PM »
Hi anyone knows what is the problem with my watermark? Why it does not appear and the error occurs?