Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ Support _ Dynamic signature

Posted by: forger May 21 2006, 05:04 PM

Hello, it looks like my php signature isn't working :\ I have only some/none knowledge of php, I can easily edit what is necessary though. I used the default script and I can't make it work
I have a free webhosting php service by dotgeek, and checked the http://dotgeek.org/phpinfo.php where it looks like it supports what is necessary (I think)

http://forger.dotgeek.org/np/signature.php/sig.png appears blank.

the chmod is done through cpanel:
base_image.jpg 2 k 0644
base_image.png 1 k 0644
impact.ttf 132 k 0644
lucon.ttf 112 k 0644
npvars.txt 0 k 0666
signature.php 4 k 0777

the folder np is:
np 755

I change songs, restart winamp, but the npvars.txt remains the same:

title=Configure AMIP to update the signature
album=Not Configured
bitrate=000
time=00m:00s
mode=None
year=0000
sr=00

secretword is ok,
the amip configurator is working great in mirc, tested it.

In preset #1 i set this (and it's active):
/template:(c:\amipweb\amipweb.conf) c:\amipweb\amipweb.out
/exec:(c:\amipweb\curl.exe) -K amipweb.out

the amipweb.out is changed successfully:
# Configuration file for cURL
# URL of the signature.php script:
url = http://forger.dotgeek.org/np/signature.php
# use HTTP GET
-G
# list of parameters to pass:
-d "title=Andre+-+without+your+love"
-d "album=Armenia+2006"
-d "bitrate=128"
-d "time=03m%3A01s"
-d "mode=Stereo"
-d "year=2006"
-d "sr=44"

the only problem looks like it can't reach the website, or maybe something is not supported.

Thanks in advance for any suggestions/workarounds smile.gif

Posted by: Serge May 22 2006, 05:18 AM

Try running c:\amipweb\curl.exe -K amipweb.out from the command line to see what is the problem.

Posted by: forger May 22 2006, 10:04 AM

QUOTE(Serge @ May 22 2006, 07:18 AM) *

Try running c:\amipweb\curl.exe -K amipweb.out from the command line to see what is the problem.


Thanks for your support, I get this error:
QUOTE

>c:\amipweb\curl.exe -K amipweb.conf
curl: no URL specified!


the config file:
QUOTE

# Configuration file for cURL
# URL of the signature.php script:
url = http://forger.dotgeek.org/np/signature.php
# use HTTP GET
-G
# list of parameters to pass:
-d "title=Fabrizio+Faniello+-+I+Do"
-d "album=Malta+2006"
-d "bitrate=192"
-d "time=02m%3A44s"
-d "mode=Stereo"
-d "year=2006"
-d "sr=44"
# our signature.php script needs action=secretword to save parameters
# Change the 'secretword' to something else for the security reasons
# Make sure that $config['action'] value in signature.php equals the following
# action value ('secretword' by default):
-d "action=changedword"


oh, the ampsig from ampsig.com works fine: http://forger.dotgeek.org/ampsig/amp.php/stars.jpg

Posted by: Serge May 22 2006, 11:21 AM

You need to run it in amipweb directory, otherwise curl will not find the config file. CD to amipweb first, and then run.

Posted by: forger May 22 2006, 12:48 PM

true, silly of me, no error here, i used -v as well

QUOTE

C:\amipweb>curl.exe -v -K amipweb.out
* About to connect() to forger.dotgeek.org:80
* Connected to forger.dotgeek.org (72.29.78.97) port 80
> GET /np/signature.php?title=Fabrizio+Faniello+-+I+Do&album=Malta+2006&bitrate=
192&time=02m%3A44s&mode=Stereo&year=2006&sr=44&action=changedword HTTP/1.1
User-Agent: curl/7.10.3 (win32) libcurl/7.10.3
Host: forger.dotgeek.org
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

* Connection #0 left intact
* Closing connection #0


note that the secretword is not the one displayed here.

Posted by: Serge May 22 2006, 12:56 PM

I have no idea what's wrong, try checking your server logs.

Posted by: forger May 22 2006, 01:13 PM

QUOTE

195.252.*.* - - [22/May/2006:12:46:05 +0000] "GET /np/signature.php?title=Fabrizio+Faniello+-+I+Do&album=Malta+2006&bitrate=192&time=02m%3A44s&mode=Stereo&year=2006&sr=44&action=changedword HTTP/1.1" 200 5 "-" "curl/7.10.3 (win32) libcurl/7.10.3"


It's really weird!

the ampsig works differently, yet it uses the same curl:
QUOTE

195.252.*.* - - [22/May/2006:12:47:34 +0000] "POST /ampsig/amp.php HTTP/1.1" 200 5 "-" "curl/7.10.3 (win32) libcurl/7.10.3"

Posted by: Serge May 22 2006, 02:08 PM

Try changing config file to use POST method instead of GET.

Powered by Invision Power Board
© Invision Power Services