• Welcome to Autism Forums, a friendly forum to discuss Aspergers Syndrome, Autism, High Functioning Autism and related conditions.

    Your voice is missing! You will need to register to get access to the following site features:
    • Reply to discussions and create your own threads.
    • Our modern chat room. No add-ons or extensions required, just login and start chatting!
    • Private Member only forums for more serious discussions that you may wish to not have guests or search engines access to.
    • Your very own blog. Write about anything you like on your own individual blog.

    We hope to see you as a part of our community soon! Please also check us out @ https://www.twitter.com/aspiescentral

PHP questions.

Daniela

Well-Known Member
I´m learning Php and in the manual that im using it says that echo our print should print something to your screen but even after I instaled Xampp and Wamp i cant print anithing, now i do know that php dosent show stuff like it html does, but i got the impression that with echo our print it would...
Can someone explain it to me ?
 
I would't install Xampp and WAMP at the same time. Running two severs at once can cause conflict with each other. I have used both product before. Let me know which server software you want to use and I can help you from there.
 
I don't know hardly anything about php but I have loads of ebooks so I thought that I would look it up.
One of the books that I have shows the following example.

<?php
echo "<h1>Hello Web!</h1>";
?>
I read that the echo and print statements do the same thing and I guess that in this case they output the <h1> tag for the browser to read.
 
I don't know hardly anything about php but I have loads of ebooks so I thought that I would look it up.
One of the books that I have shows the following example.

<?php
echo "<h1>Hello Web!</h1>";
?>
I read that the echo and print statements do the same thing and I guess that in this case they output the <h1> tag for the browser to read.
Based on me reading what Daniela wrote, I don't think the PHP service is running correctly which is why the echo, or any PHP commands is not doing anything.
 
I would't install Xampp and WAMP at the same time. Running two severs at once can cause conflict with each other. I have used both product before. Let me know which server software you want to use and I can help you from there.

I think Xampp is bether :)

I don't know hardly anything about php but I have loads of ebooks so I thought that I would look it up.
One of the books that I have shows the following example.

<?php
echo "<h1>Hello Web!</h1>";
?>
I read that the echo and print statements do the same thing and I guess that in this case they output the <h1> tag for the browser to read.

hmmm dont know , i can try thogh XD
 
Been so long coding in C and hey, cheating is not aloud :)
As long as you can read hex you can cheat at any game (with the old consoles they sold game sharks to hack the games with hex cheats) Cheat engine even makes it super easy for pc games, as long as it is single player nobody really cares what you break, heck the borderlands games had online mplayer and did not even detect the cheating!
 
As long as you can read hex you can cheat at any game (with the old consoles they sold game sharks to hack the games with hex cheats) Cheat engine even makes it super easy for pc games, as long as it is single player nobody really cares what you break, heck the borderlands games had online mplayer and did not even detect the cheating!
I see. Everyone different. I like challenges.
 
Google is my bestest friend :D I use it a lot to search for programming errors and to see if anyone else has came across similar problems as well and if they had fixed it.
 
I've worked a lot with websevers in general. My previous job I worked in web hosting for two years. What is the page doing when you open it in a web browser. You say it doesn't work, but what about it doesn't work; for example, is it showing an error message just showing the code or not showing anything at all?
 
I've worked a lot with websevers in general. My previous job I worked in web hosting for two years. What is the page doing when you open it in a web browser. You say it doesn't work, but what about it doesn't work; for example, is it showing an error message just showing the code or not showing anything at all?
It dosent show anithing at all, only the html toght but if i put echo in php it should show on the page, right ?
 
You make me feel old, the last languages I learned on were C and C++, I only know enough html to cheat at browser games :(
Well if it makes you feel bether i still have to learn c becouse if i want to make the webprogramer course I have to learn it :)
 
I did had Daniela send me the code and there was PHP syntax errors. I told her the first line of her PHP error and shared tips how to debug code and display error reporting.
 
Supposedly Print is supposed to work like Echo. I don't know. I use the $thing="stuff here will display"; and then put $thing wherever I want "stuff here will display" to pop up. And I never use the shortcut <? ?> tags, I type the whole thing out because mine always broke otherwise.

I honestly know very little PHP. I use Include and $stuff so I have a base template for my webpages and I can plug and play on the individual content files. All the fancy footwork for my contact forms has been racooned and squirreled away from around the internet.
 
Google is great as is Youtube

Better yet, StackOverflow and Tuts+.

Daniela, what are you using to write the code? If you're just using Notepad, I highly recommend at least going to Notepad++ or, better yet, something like Netbeans. At the very least, Notepad++ has syntax highlighting capabilities (so you know you typed something wrong if it doesn't color it properly), and Netbeans (an IDE) will provide you with indication and descriptions of syntax errors, as well as having the potential to provide code completion, which can make it easier to get the syntax right in the first place.
 

New Threads

Top Bottom