koolplates Posted August 4, 2007 Share Posted August 4, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/ Share on other sites More sharing options...
AndyB Posted August 4, 2007 Share Posted August 4, 2007 This script is expired. The implication is that the script has a time-limited licence, in which case you need to renew (or pay for) the licence. Where did the script come from? Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315500 Share on other sites More sharing options...
and1c Posted August 4, 2007 Share Posted August 4, 2007 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?) Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315510 Share on other sites More sharing options...
koolplates Posted August 4, 2007 Author Share Posted August 4, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315538 Share on other sites More sharing options...
koolplates Posted August 4, 2007 Author Share Posted August 4, 2007 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()) } Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315545 Share on other sites More sharing options...
pyrodude Posted August 4, 2007 Share Posted August 4, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315547 Share on other sites More sharing options...
koolplates Posted August 4, 2007 Author Share Posted August 4, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315548 Share on other sites More sharing options...
Crew-Portal Posted August 4, 2007 Share Posted August 4, 2007 Yes that is java to expire, but the set days is NULL which by the script appears as if it never expires? Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315551 Share on other sites More sharing options...
dbo Posted August 4, 2007 Share Posted August 4, 2007 Disable javascript (not java... there's a difference!) and see if you get the same error. If you do you can rule out javascript. You should probably look into the contents of those config files. Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315565 Share on other sites More sharing options...
Crew-Portal Posted August 4, 2007 Share Posted August 4, 2007 oops mean javascript! Set NULL or something like 9999999999 Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315573 Share on other sites More sharing options...
pyrodude Posted August 4, 2007 Share Posted August 4, 2007 would exdate.setcookie() overwrite any existing cookies? try deleting your cookies and trying the website again Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315592 Share on other sites More sharing options...
koolplates Posted August 4, 2007 Author Share Posted August 4, 2007 Hi, there are a few people with the same plate designer as me. And none of theres are working either Barry Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315593 Share on other sites More sharing options...
AndyB Posted August 4, 2007 Share Posted August 4, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315598 Share on other sites More sharing options...
koolplates Posted August 4, 2007 Author Share Posted August 4, 2007 Ok Andy thanks I'll download them all now and go through them with a fine tooth comb Thanks Barry Quote Link to comment https://forums.phpfreaks.com/topic/63309-why-has-my-php-script-expired/#findComment-315601 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.