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"); Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/ 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 Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008085 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. Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008089 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? Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008090 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. Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008096 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 Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008101 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. Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008104 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. Link to comment https://forums.phpfreaks.com/topic/191196-help-with-addframe-i-canot-run-this-command-on-my-new-server-help/#findComment-1008107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.