| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| A little problem; should be easy to solve | |
|---|---|
| Tweet Topic Started: May 2 2005, 10:51 AM (638 Views) | |
| Gimliisadwarf | May 2 2005, 10:51 AM Post #1 |
![]()
Member
![]() ![]() ![]()
|
I am using www.maddog.com and tripod to try fool around with php.. but for some reason i have no idea to even start typing.. i am used to freewebs where i just copy and paste my html files into a space... well yea i am lost with these two hosts... I am using the free versions.. of both tripod and maddog. Thanks allot |
![]() |
|
| Jory | May 2 2005, 11:10 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Huh? So you don't know where to start typing? Well, just get yourself an editor, type the code into there and upload the files. However, if its just for testing, I recommend just getting yourself a program that lets you use the php on your pc. I use dreamweaver (editor) phpdev (for php on your own pc) and ftpvoyager (uploading) but that really doesn't mather. I hope this helps, if not could you rephraze the question? |
![]() |
|
| Gimliisadwarf | May 2 2005, 11:24 AM Post #3 |
![]()
Member
![]() ![]() ![]()
|
Well you know on freewebs you can just go to site managar create a page and edit it?? well i cant seem to find out how to do that.... Thanks |
![]() |
|
| Rory | May 2 2005, 11:46 AM Post #4 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
There is probably instructions on how to FTP files to your space. I know the UK version of tripod used to use FTP, so i'm assuming other countries do as well. |
![]() |
|
| Gimliisadwarf | May 3 2005, 10:20 AM Post #5 |
![]()
Member
![]() ![]() ![]()
|
hmm i think i got it to work.. dont know why but the php doesnt seem to work on it.. i have no idea why it just doesnt.. i know the codes are right so i dont know whats wrong.. i cant find any tutorials either
|
![]() |
|
| Jory | May 3 2005, 10:26 AM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Could you post the code anyway? :/ Did you save it as a .php file? |
![]() |
|
| Gimliisadwarf | May 3 2005, 10:41 AM Post #7 |
![]()
Member
![]() ![]() ![]()
|
yea i did it on notepad i uploaded it onto the server. well this is what i did first
That didnt work so i tried to do the most basic thing i could think of
that should have worked but it didnt... oh by the way i did it on notepad saved it as Php testing.php and uploaded it onto the server.. on the server it changed to .php.txt i left one document like that and the exact same document i renamed to only .php dont know if that helps.. |
![]() |
|
| Das | May 3 2005, 10:48 AM Post #8 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The first code will always return the second choice. You set up $favoritecolor as a constant variable. The reason it isn't working is you are confusing javascript and php. Javascript: print("Text") PHP: echo "text" |
![]() |
|
| Gimliisadwarf | May 3 2005, 10:53 AM Post #9 |
![]()
Member
![]() ![]() ![]()
|
Huh how could it be wrong.. lol i got this stuff from a php tutorial:P... lol geuss i shouldnt use webmonkey.. i will try it out then thanks.. the tutorial said either echo or print would work.. geuss not |
![]() |
|
| Gimliisadwarf | May 3 2005, 11:03 AM Post #10 |
![]()
Member
![]() ![]() ![]()
|
hmm no i changed all of that to.. i still have the same problem |
![]() |
|
| Jory | May 3 2005, 11:13 AM Post #11 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
try saving it like this: File >> Save As >> Save as type (All types) >> something.php (If you did not do Save as type (All types) windows might make it something.php.txt but you don't see it because you most likely have set it so that fileformats it knows have the extention hidden (why the **** did they make that the default option :@ ) ) tip: don't use CAPS in variable names, it will haunt you for the rest of the time you use the file :ph34r: edit: btw, you should edit your posts. (just click on the button next to your post that looks like )
|
![]() |
|
| solinent | May 3 2005, 11:58 AM Post #12 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
actually both print() and echo() functions are valid in php. just that echo is used more often as it's shorter and doesn't requre the function braces
|
![]() |
|
| Das | May 3 2005, 08:58 PM Post #13 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
:$ Sorry |
![]() |
|
| solinent | May 3 2005, 09:29 PM Post #14 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
It's ok..I bow down to you, you have like 2.8k posts lol and I'm only 13 lol :S
|
![]() |
|
| Das | May 3 2005, 09:52 PM Post #15 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
~2.4 I am only 13 aswell.
tecvhnically it does work, but since you defined you variable as a constant there is no way to change it to say or print the else statement. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
4:19 AM Jul 11
|




![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




)

and I'm only 13 lol :S
I am only 13 aswell.
4:19 AM Jul 11