Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Dynamic signature, doesn't work, appears blank
forger
post May 21 2006, 05:04 PM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 21-May 06
Member No.: 57



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 22 2006, 05:18 AM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Try running c:\amipweb\curl.exe -K amipweb.out from the command line to see what is the problem.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
forger
post May 22 2006, 10:04 AM
Post #3


Newbie
*

Group: Members
Posts: 4
Joined: 21-May 06
Member No.: 57



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 22 2006, 11:21 AM
Post #4


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



You need to run it in amipweb directory, otherwise curl will not find the config file. CD to amipweb first, and then run.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
forger
post May 22 2006, 12:48 PM
Post #5


Newbie
*

Group: Members
Posts: 4
Joined: 21-May 06
Member No.: 57



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 22 2006, 12:56 PM
Post #6


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



I have no idea what's wrong, try checking your server logs.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
forger
post May 22 2006, 01:13 PM
Post #7


Newbie
*

Group: Members
Posts: 4
Joined: 21-May 06
Member No.: 57



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"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 22 2006, 02:08 PM
Post #8


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Try changing config file to use POST method instead of GET.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: