News:

The anti-spam plugins have stopped being effective. Registration is back to requiring approval. After registering, you must ALSO email me with your username, so that I can manually approve your account.

Main Menu

PHP help?

Started by golden-crystals, June 12, 2006, 11:54:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

golden-crystals

Does this topic belong here?

Anyway, I'm sure this is a common question, and probably very trivial, but so far (to my knowledge) I've loaded PHP and unzipped, sorted, changed, folded, and pressed everything in the right places and everything is pretty much where it should be to work. But I'm hung up on one little detail.

To test if ActiveScript is working, create a new file, named test.wsf
   (the extension is very important) and type:


 



   Save and double-click on the file. If you receive a little window
   saying "Hello World!" you're done.

~ 'Install.txt' for PHP

So my question is this: 'New file' what? And how?

I tried notebook, and after that obvious failiar I had to go to bed because it was 4 in the morning and I was going crazy. Would someone please help me with this? I have no friends that understand computer speak.
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.

Xepher

I don't know what "PHPScript" is, but it's different than regular PHP. PHP is serverside, while whatever you're messing with looks to be client side (and likely to not work for a lot of people.) You shouldn't need to mess with "installing" anything related to PHP. If you install anything, it would be a script package, like Walrus, to help you manage your comic, or a forum like this one, PunBB.

golden-crystals

....so.....all that reading, and rereading of slender font on the bright computer screen giving me headaches...fruitless?! Ugh, I'm beginning to think that I'm a waste of life, lol

How, then, do I make it so my index page is PHP compatable without installing stuff? I found PHPMyAdmin, I assume that's how? Is there something I can read on that or do I have to fiddle with it myself? Or is that it at all. Oh boy, now I'm just so confused, lol, my weekend was a lie, ha ha
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.

Xepher

No... just, as the directions at on the Help & Info page point out, you just have to save your page as a php file. So, instead of "index.html" save it as "index.php" PHP ignores everything outside of it's own tags, so the rest just gets treated like a normal web page. You add the snippet of code for the newsbox (note that it includes php tags) and that's the only bit that will be treated as PHP (unless you add more code on your own.)

Databits

Actually, the , are always available. The other two are short tags and ASP style tags, and can be turned on and off from the php.ini configuration file. As such, while some people find short tags and ASP style tags convenient, they are less portable, and generally not recommended.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

golden-crystals

Quote from: DatabitsMake sure that if you're reading any php documentation, it's for PHP4 and/or PHP5.
The document I was reading from was an installation guide that unzipped with the PHP thing I downloaded. It included directions for 4 and 5 versions of it. But hopefully I won't have to worry anymore about that. ...please oh please oh please don't let me have to worry about that again! lol


Quote from: XepherNo... just, as the directions at on the Help & Info page point out, you just have to save your page as a php file. So, instead of "index.html" save it as "index.php" PHP ignores everything outside of it's own tags, so the rest just gets treated like a normal web page. You add the snippet of code for the newsbox (note that it includes php tags) and that's the only bit that will be treated as PHP (unless you add more code on your own.)
Wow, I'm glad it was so simple. If you couldn't tell already, I tend to make mountains out of molehills. I changed my index to 'index.php', inserted the newsbox, ran it into FTP, fixed privileges and stuff. But when I bring up my page, it gives me a 500 error. Is there another obvious thing I'm missing?
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.

Munerift

You have to RESET THE FILE PERMISSIONS.

You do that by going to the main site (xepher.net) and singing in under the member's section, then once you're logged in you'll see a list of links to the left hand side, one of those will say like "Fix Permissions." When you click on that you'll see a button you'll need to push, and in about 5 minutes your site will be broadcasted.
I'm Home!
MuneRift - DeviantArt - Etsy

Xepher

What Mune said. That tool will set permissions on ALL of your files to what I consider safe (and useful) defaults. In the future though, if you're just uploading/changing one file, sometimes it's easier to change it directly yourself. Most FTP programs let you right click on a file and choose "properties" look for something about permissions. For php files, you want to give full permissions (read, write, and execute) to yourself (owner) and remove all permissions from both group and world (somtimes called "other.") If your FTP client doesn't support that, try winscp instead of FTP. http://winscp.sourceforge.net

If that's too much trouble, then ya, just fall back to what Mune said. Run that "Fix Permissions" tool after you're done uploading. Sometimes it can take a couple minutes before the changes happen, so have patience if it doesn't seem to work right away.

golden-crystals

Quote from: MuneriftYou have to RESET THE FILE PERMISSIONS.

You do that by going to the main site (xepher.net) and singing in under the member's section, then once you're logged in you'll see a list of links to the left hand side, one of those will say like "Fix Permissions." When you click on that you'll see a button you'll need to push, and in about 5 minutes your site will be broadcasted.
I did do that. By 'privileges' I meant 'permissions'. I waited 5 minutes and came up with the error, then proceeded to write my previous post. But, I did it again, and hey, now it works. ^^ I guess the second times a charm, and it's my lucky day!
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.

Munerift

Yeah, it's been finicky on me too before... =P
I'm Home!
MuneRift - DeviantArt - Etsy

golden-crystals

Is that all it is? Just being finicky? Because it did it again, and if it is just finicky, then I'm glad it's not me, lol
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.

Xepher

Finnicky? Hmm... I haven't gotten any error messages. It's designed to email anytime it doesn't make a successful run, and I have recieved no notices. Maybe it's something with the browser, not quite completing the request or some other upstream problem. After you hit the button for "fix permissions" are you getting a page that says the request recieved (or whatever red letter acknowledgement I wrote)?

golden-crystals

Yup. and it says something about being in 5 minutes. The error I recieve is on my actual webpage, a 500
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.

Xepher

Are you sure you ran the fix permissions tool after your last upload or edit on a file? Because the permissions on index.php were not set right. I ran fix permissions, and now it works just fine.

golden-crystals

Yeah, that's how I thought was the only way to see what had been done (beside loading files into FTP)
'In case of stupid, throw a brick'

Golden Crystals - Your journey is before you.