What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Script Question

Pages: (2): « First [ 1 ] 2 » Last »
PHP Script Question
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
O.P. Huh?  PHP Script Question
Hello.

I'm currently making some new signatures & avatars.
I want them to be random, but I dont want for example the random avatar script to show my current avatar and the random sig script to show another signature...
I want the avatar & sig to match...

I was wondering, is it possible to do?

I thought something like this:

When the random avatar script is executed, it will write the avatar number to a file.
When the random sig script is executed, it will read the avatar number and it will display the corresponding signature.

Thank you :)
YouTube closed-captions ripper (also allows you to download videos!)
06-29-2005 08:03 AM
Profile E-Mail PM Web Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: PHP Script Question
Yes it is possible to do it afaik 8-)
quote:
Originally posted by Mike
When the random avatar script is executed, it will write the avatar number to a file.
When the random sig script is executed, it will read the avatar number and it will display the corresponding signature.
Exactly what i was thinking .... make a file to link the sig and the corresponding avy so that they are triggered together .... but it could be tough. Theoretically it can be done ... practically ... not sure but its tough i think :-/
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
06-29-2005 08:19 AM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: PHP Script Question
its easy really

just have one of the scripts writing to a file AFTER the picture is output

and then have both of them reading the file BEFORE the image is output

this is the easiest way to guarantee they both have the corresponding image
06-29-2005 08:25 AM
Profile PM Find Quote Report
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: PHP Script Question
or could could make them random by time, that way there will be no need to write to a file.
06-29-2005 08:29 AM
Profile E-Mail PM Web Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: PHP Script Question
quote:
Originally posted by Veggie
or could could make them random by time, that way there will be no need to write to a file.
U mean .... but then how will the avy and the sig match :S
Actually i thought of this a long time back but since i dont make matching sigs and avy's i dropped it :P
I am making a tech sig right now so mabbe ill make a tech avy too :D
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
06-29-2005 08:49 AM
Profile E-Mail PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: PHP Script Question
quote:
Originally posted by John Anderton
quote:
Originally posted by Veggie
or could could make them random by time, that way there will be no need to write to a file.
U mean .... but then how will the avy and the sig match :S
You obviously have to calculate the timestamp so that they match.

I'm going to sleep now, else I'd do a few tests.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

06-29-2005 09:10 AM
Profile PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: PHP Script Question
[Image: xso_undecided.gif] in sql record the IP and the random set used , then look it up in your sig/avatar then remove that IP , should provide less mismatches then the other mentioned ways because your targetting the user
[Image: dt2.0v2.png]      Happy Birthday, WDZ
06-29-2005 10:51 AM
Profile PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
Status: Online
O.P. RE: PHP Script Question
quote:
Originally posted by -dt-
[Image: xso_undecided.gif] in sql record the IP and the random set used , then look it up in your sig/avatar then remove that IP , should provide less mismatches then the other mentioned ways because your targetting the user
Well, my server allows to make sql dbs but I dont know how to do this...

I might just use the file method... :-/
YouTube closed-captions ripper (also allows you to download videos!)
06-29-2005 02:22 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: PHP Script Question
Do you have phpMyAdmin installed? I believe that allows you to create and manage MySQL DBs.
[Image: spartaafk.png]
06-29-2005 06:42 PM
Profile PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: PHP Script Question
Do you really think it's (MySQL) that necessary for a sig/av script? It could be easily done with a file.

This post was edited on 06-29-2005 at 06:54 PM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

06-29-2005 06:48 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On