Author Topic: NOOB Question - How do I make a .PHP file?  (Read 3163 times)

Offline McDaZzA

NOOB Question - How do I make a .PHP file?
« on: October 20, 2008, 02:36:23 am »
Theres plenty of items on these boards that I DESPERATELY want/NEED for my shop, but I cant seem to save the .PHP files to work correctly once uploaded to the forum.

I use Adobe Dreamweaver CS3, select code at the top, then paste the item code (from these boards) then save as NAME.php upload it to my forum, but then when I go to add item, it says "Cannot create instance of XXX " or similiar.

Any ideas on what Im doing wrong? Any help is REALLY REALLY appreciated!!!

Yes Im a noob at .PHP if you havent guessed by now. lol  :P

Offline mike dijital

Re: NOOB Question - How do I make a .PHP file?
« Reply #1 on: October 21, 2008, 07:22:26 am »
I basically copy this code to msnotepad and save as whateverfile.php


now if you are copying a mod from this forum, sometimes WHAT you name the file is crucial, read the post and see what they suggest you name it. sometimes the code depends on that

if there is no reccomended file name in athe post on this forum, look in the code itself, alot of times it will say  // reducekarma.php  or  // stealcredits.php


I was getting the same error untill i started using the recomended names for the file itself

Offline dshsshdsagsdsa

Re: NOOB Question - How do I make a .PHP file?
« Reply #2 on: October 31, 2008, 04:44:34 pm »
its easy to do, to convert to PHP, put it in notepad, do your edits, upload to FTP server, get rid of .txt and put .php (If not added already)