Author | Message | Time |
---|---|---|
GSX | Yeah, I'm back... I gave up on coding that one gaming site, switched it to CMS... (Hahaha I'm a quitter) But I recently came across something where I have basically the same issue... I've read about 10 PHP tutorials, and have little to no knowledge of it. Most say you don't need PHP knowledge to use the Include() function, but I can't seem to get it to work... Anyways, here's what I got, and yeah, I'm dumb, I just need another set of eyes to tell me what I'm doing wrong, because it's probably something very newb. [code] '\\ From "menu.php" <HTML> <BODY> <A HREF="link1">Link 1</A><BR> <A HREF="link2">Link 2</A><BR> <A HREF="link3">Link 3</A><BR> </BODY> </HTML> [/code] [code] '\\ From "index.php" <HTML> <BODY> <?php include("menu.php"); ?> <p>Yeah... examples suck!</p> </BODY> </HTML> [/code] Yeah, menu.php doesn't show up. I'm sure this is terrible code, as I _SUCK_ with PHP... So yeah, any help appreciated. | November 30, 2006, 1:49 AM |
SNiFFeR | Who is your webhost? | November 30, 2006, 2:30 AM |
GSX | None at the moment... I was thinking I didn't have PHP installed and it was messing it up, but I installed it (I think?) and it still doesn't work... | November 30, 2006, 2:41 AM |
Ersan | I doubt you have php installed. To test you make a file called info.php with the following code: [code]<?php phpinfo(); ?>[/code] | November 30, 2006, 4:12 AM |
GSX | Ok, I don't know what's going on with this now... But, whenever I try to view the PHP files index.php or menu.php, it says I have to download the file... Yeah... Which is funny, because the file is right there. It says it's downloading a PHP Script? I'm viewing it via FireFox... Any ideas there? | November 30, 2006, 4:25 AM |
Ersan | which means there's no mimetype set aside for php, and if the file contents say <?php phpinfo(); ?> then php isn't installed. | November 30, 2006, 4:42 AM |
GSX | Newb Q's - What is a "mimetype"? - How do I fix my downloading PHP script problem? | November 30, 2006, 4:47 AM |
Ersan | 1. ..... 2. INSTALL PHP CORRECTLY | November 30, 2006, 5:37 AM |
GSX | I've uninstalled it and reinstalled it about 6 times, chaning various things each time... And still no workey... Maybe I should just go buy a Mac... | November 30, 2006, 5:59 AM |
Topaz | [quote author=GSX link=topic=16088.msg161996#msg161996 date=1164866368] I've uninstalled it and reinstalled it about 6 times, chaning various things each time... And still no workey... Maybe I should just go buy a Mac... [/quote] Yes, because purchasing a Mac will surely fix your server's PHP problems. man, i hate people like you so much. | November 30, 2006, 6:26 AM |
FrOzeN | GSX. You are not ready for php. Seriously. | November 30, 2006, 6:43 AM |
FrostWraith | Do you have any type of server installed? | November 30, 2006, 6:46 AM |
Topaz | [quote author=FrostWraith link=topic=16088.msg162003#msg162003 date=1164869175] Do you have any type of server installed? [/quote] Probably, since he said he reinstalled PHP several times. | November 30, 2006, 6:56 AM |
rabbit | Doubtfully, given that if he did the PHP installer would add its own mimetype, or it's Apache. | November 30, 2006, 11:47 AM |
GSX | [quote author=topaz link=topic=16088.msg161999#msg161999 date=1164867984] Yes, because purchasing a Mac will surely fix your server's PHP problems. man, i hate people like you so much. [/quote] I was kidding... Don't get your panties all in a bundle... And I installed and uninstalled PHP probably 15 times, and I never installed it with a webserver. I tried to at school today, and I still have the same problem. | December 4, 2006, 6:00 PM |
Ersan | Just give up. | December 5, 2006, 4:34 AM |