thegadgitman Posted February 6, 2010 Share Posted February 6, 2010 I have had some code written for me in PHP on one machine and now trying to run it on another machine. However when I try and run these lines the PHP script stops and does not get passed them. How do I get these commands to run. They add a boarder to a picture, basically combine a .jpg file and a .png file into one. There is more scrip, but these are the lines where the script stops. THANKS. @addframe( "cap1.jpg" , "frame1.png" , "pics/newa.jpg"); @uploadfile("pics/newa.jpg"); @addframe( "cap2.jpg" , "frame2.png" , "pics/newb.jpg"); @uploadfile("pics/newb.jpg"); Quote Link to comment Share on other sites More sharing options...
jl5501 Posted February 6, 2010 Share Posted February 6, 2010 Those are not standard functions, so I suspect there was a file of function in the old install which was 'included' by your page, which is missing, or in the wrong place Quote Link to comment Share on other sites More sharing options...
thegadgitman Posted February 6, 2010 Author Share Posted February 6, 2010 I did not think they were standard, maybe a plugin for PHP, Cannot find where they may be on the other machine. Quote Link to comment Share on other sites More sharing options...
jl5501 Posted February 6, 2010 Share Posted February 6, 2010 does the php file with the error have an include(...) in it? Quote Link to comment Share on other sites More sharing options...
thegadgitman Posted February 6, 2010 Author Share Posted February 6, 2010 No it doesnt. Is no different to any other PHP code, When I take the 4 lines out the code runs perfectly. But does not function as it should as the pictures are not there. Quote Link to comment Share on other sites More sharing options...
jl5501 Posted February 6, 2010 Share Posted February 6, 2010 Whatever code was run for these functions on your old server would not be difficult to replace. look at http://articles.sitepoint.com/article/watermark-images-php where you might get your answers Quote Link to comment Share on other sites More sharing options...
thegadgitman Posted February 6, 2010 Author Share Posted February 6, 2010 I agree, I have just been trying to add the GD package to PHP, that can do the same job. Just trying to get it working now. Quote Link to comment Share on other sites More sharing options...
thegadgitman Posted February 6, 2010 Author Share Posted February 6, 2010 OK that worked. Installed GD and re wrote code. Images are combining. just need to resize them and add new code back into old code and all should be OK. Quote Link to comment 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.