Jump to content

why has my php script expired


koolplates

Recommended Posts

Hi to all, I have a number plate designer on my website in php.  www.instantgraffix.co.uk/ukplate.php

 

A few days ago it stopped working.

 

I think I have found the php file that is the problem www.instantgraffix.co.uk/plategen.php

 

As you can see it says script expired.

 

Is there a simple solution to this as I know naff all about php.

 

Any help would be greatfully received

 

Barry

Link to comment
Share on other sites

Hi to all, I have a number plate designer on my website in php.  www.instantgraffix.co.uk/ukplate.php

 

A few days ago it stopped working.

 

I think I have found the php file that is the problem www.instantgraffix.co.uk/plategen.php

 

As you can see it says script expired.

 

Is there a simple solution to this as I know naff all about php.

 

Any help would be greatfully received

 

Barry

 

Looks like your script is either unlicensed or the license has expired.

Have a look in the main directory for a file like ****.readme or .txt

 

and it should have the script creators details in.

Contact them and ask to buy it (unless you already bought it?)

Link to comment
Share on other sites

Hi , thanks for the reply.

 

The plate designer was created by a chap in India.

 

He has had a look at it and can't workout what wrong with it.

 

Also the designer is not under any licence.

 

I am on msn if anyone would like to chat and have look at the files

 

msn:  sales@instantgraffix.co.uk

 

Thanks

 

Barry

Link to comment
Share on other sites

I have found these lines of code in the ukplate.php file

 

Do you think this has anything to do with the expired script?

 

<?php

include_once('config.php');

include_once('ukplate_config.php');

include_once('header.php');

?>

<script language="JavaScript" type="text/javascript">

function setCookie(c_name,value,expiredays)

{

var exdate=new Date()

exdate.setDate(exdate.getDate()+expiredays)

document.cookie=c_name+ "=" +escape(value)+

((expiredays==null) ? "" : ";expires="+exdate.toGMTString())

}

Link to comment
Share on other sites

Interesting...I don't know anything about javascript, but it looks like that's the code for the expiration.  I'm confused, though, because the code looks like it gets the current date and adds an expiredays to that, thus setting the sate to a few days from now or something.  You could try modifying that code, removing the part about setting the expiration date.  Or you could see what the script is that's calling the code, and modify it to make expiredays "99999999" or something.

 

Sorry, that's the best I've got...

Link to comment
Share on other sites

Hi, thanks for the reply

 

I just changed the bottom line of the ukplate.php to

 

((expiredays==99999999) ? "" : ";expires="+exdate.toGMTString())

 

as still says plategen.php script expired

 

Please keep the ideas coming as i need to solve this asap as its my living these plates

 

Thanks

 

Barry

 

Link to comment
Share on other sites

Some line of code somewhere in your script is generating that message. I'd suspect that it resides in one of the includes, most likely in ukplate_config.php

 

If there are no lines in any of your scripts that produce that line, it must be produced by something that's included externally.  You're going to have to look through your scripts and find out where the message is generated and that should tell you what you have to do next.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.