help...php in html
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Home
Download Test
Test Your Download Speed
Test Download AND Upload
Upload Test
Test Your Upload Speed
Test Upload AND Download
Community Forum
Community Forum Home
» Log-In
» Register
Internal Search
Google Powered Search
Computer & Net Guides
ISP Discussion
Forum Sitemap
Member List
Forum Stats
Forum Help and Info
Calendar & Birthdays
Database Stats
Host Stats
Member Stats
Share Score
Misc Tools
Conversion Calc.
Speed Chart
Conversion Table
Create a Test
Share Score
Automatic Test
Forum Archive
RSS and Blog Feeds
Score Database
trace/ping/whois/DNS
Wallpapers
Tweak Guide
!! Forum Search !!
!! Google Search !!
TMN Detailed Sitemap
News
News Home
Join
Theme
See Theme List
America the Beautiful
Blacken
Dark Blood Red
Blue
Blue Black Box
Blue Gray
Brown
Christmas
Dark Blue
ekaf
GL Series (default)
Gray Shades
Original Feel
Green
Greenhouse
Greenhouse Gray
Halloween Theme
Orange
Purple Darkness
Red/pink
Red 'n Black
TurkeyDay!
» Neuron (Default)
Neuron Black
Rise (New!)
Click to read why...
News
:
Don't look stupid, make sure you keep up-to-date with our rules,
please read rules, click here
November 07, 2009, 10:16:29 AM
testmy.net Broadband
|
Main Forum
|
General Discussion
| Topic:
help...php in html
Recommended Tests
TIP:
Test how fast your system is really running
Free Performance Scan
TIP:
Test how many system errors your PC has
Free PC Error Scan
Note: The links above are sponsored links
0 Members and 1 Guest are viewing this topic.
« previous
next »
Topic Tools
Search this topic
Pages
1
2
All
Author
Topic: help...php in html (Read 3294 times)
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
help...php in html
«
on:
April 04, 2008, 04:30:32 PM »
I'm just now learning some php.
I'm getting some basic ideas of how it works and its going well...but I just cannot figure out why echo-ing php in html doesn't work....
If I have a php file with this contents:
echo "test echo";
$blah="display blah";
echo $blah;
and I run the file, it works great.
However, if I put in the same code inline with html code by:
<?php
echo "test echo";
$blah="display blah";
echo $blah;
?>
....nothing. Empty. Nothing gets displayed.
Why is this? Also, because of this I cannot figure out how to use variables from php in html...same issue I believe.
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
mudmanc4
Ɠξξ₭ òƒ Ɠξξ₭z
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 6464
Re: help...php in html
«
Reply #1 on:
April 04, 2008, 04:46:01 PM »
You need to enable error reporting and/or display errors in php.ini.
Logged
Don't do what others say - listen to them, but do what you feel good doing. ~ Warren Buffet
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #2 on:
April 04, 2008, 04:56:05 PM »
tried that....made a php.ini and put it in the same folder as my script....still the same outcome
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
mudmanc4
Ɠξξ₭ òƒ Ɠξξ₭z
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 6464
Re: help...php in html
«
Reply #3 on:
April 04, 2008, 04:58:12 PM »
Quote from: disturbed on April 04, 2008, 04:56:05 PM
tried that....made a php.ini and put it in the same folder as my script....still the same outcome
Create a php.ini in your cgi-bin directory right?
Logged
Don't do what others say - listen to them, but do what you feel good doing. ~ Warren Buffet
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #4 on:
April 04, 2008, 05:04:33 PM »
I tried both the location where my .html file is that I am trying to run and now the cgi-bin as well. Nothing.
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
mudmanc4
Ɠξξ₭ òƒ Ɠξξ₭z
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 6464
Re: help...php in html
«
Reply #5 on:
April 04, 2008, 05:08:08 PM »
Do you have " display_errors " turned on?
Since it is a syntax error , nothing will execute there fore no errors, did you check the logfile?
Logged
Don't do what others say - listen to them, but do what you feel good doing. ~ Warren Buffet
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #6 on:
April 04, 2008, 05:12:10 PM »
Yes, I did both:
error_reporting(E_ALL);
ini_set('display_errors', '1');
No errors within the erorr log. It's empty.
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
mudmanc4
Ɠξξ₭ òƒ Ɠξξ₭z
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 6464
Re: help...php in html
«
Reply #7 on:
April 04, 2008, 05:20:21 PM »
Quote from: disturbed on April 04, 2008, 05:12:10 PM
Yes, I did both:
error_reporting(E_ALL);
ini_set('display_errors', '1');
No errors within the erorr log. It's empty.
Shouldn't the ini_set('display_errors', '1'); look like ini_set('display_errors', 'on' " , or does "1" represent on ?
Logged
Don't do what others say - listen to them, but do what you feel good doing. ~ Warren Buffet
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #8 on:
April 04, 2008, 05:23:18 PM »
yes, 1 is on....
Wierd thing is...within html when I use the <?php ....
not even the print "something"; works
.......argh....
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
mudmanc4
Ɠξξ₭ òƒ Ɠξξ₭z
Global Moderator
TMN Seasoned Veteran
Offline
Gender:
Posts: 6464
Re: help...php in html
«
Reply #9 on:
April 04, 2008, 05:31:33 PM »
Quote from: disturbed on April 04, 2008, 05:23:18 PM
yes, 1 is on....
Wierd thing is...within html when I use the <?php ....
not even the print "something"; works
.......argh....
Is apache running? hahahaa
Logged
Don't do what others say - listen to them, but do what you feel good doing. ~ Warren Buffet
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #10 on:
April 04, 2008, 05:39:23 PM »
lol...everything is up and running
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #11 on:
April 04, 2008, 05:39:47 PM »
.....i can echo and print all I want from within php scripts....just not html....
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
nanobot
News Anchor
TMN Friend
Offline
Gender:
Posts: 327
Re: help...php in html
«
Reply #12 on:
April 04, 2008, 05:44:12 PM »
See if this helps:
http://www.desilva.biz/php/phpinhtml.html
Logged
92% of the teenage population has switched to rap. If you are in the 8% who ROCKS, copy & paste this in your signature
disturbed
News Anchor
TMN Veteran
Offline
Posts: 2099
I am and always will be disturbed.
Re: help...php in html
«
Reply #13 on:
April 04, 2008, 05:59:35 PM »
Well, when I do that I get:
Premature end of script headers ERROR in the log.
Logged
Are you down with the sickness !?
[
http://hackaday.com
]
nanobot
News Anchor
TMN Friend
Offline
Gender:
Posts: 327
Re: help...php in html
«
Reply #14 on:
April 04, 2008, 06:02:24 PM »
Try:
<?php echo "test echo"; ?>
With all the edits the page said to do.
Logged
92% of the teenage population has switched to rap. If you are in the 8% who ROCKS, copy & paste this in your signature
Pages
1
2
All
testmy.net Broadband
|
Main Forum
|
General Discussion
| Topic:
help...php in html
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Main Forum
-----------------------------
=> General Discussion
=> New Members
=> PC Security
===> Antivirus & Firewalls
===> Spyware & Malware
===> Viruses & Scams
===> Security Threats
=> Show off your scores!
=> Make it Faster...
=> HELP!
===> HELP! With Other Stuff
===> HELP! With Tests
===> HELP! With Forum
===> Programming and Website Help
=====> HTML
=====> PHP
=====> PERL
=====> Server Help
===> Networking and Hardware
===> Overclocking
===> Linux Help
=> News
===> testmy.net News and Updates
===> Off Topic Headline News
=> Online Gaming Discussion
===> Requests
===> America's Army
===> Battlefield
===> Call Of Duty 4
===> Counter-Strike 1.6
===> Counter-Strike : Source
===> Day of Defeat : Source
===> Diablo
===> F.E.A.R
===> Ghost Recon
===> Halo 2
===> Lineage 2
===> Quake
===> Rainbow Six 3
===> World of Warcraft
===> Tribes 2
===> Unreal Tournament
=> Graphics, Sigs and Pictures
===> Test Board
=> Guides
=> Got any ideas to make testmy.net better?
=> Off Topic Discussion
===> Politics & More
-----------------------------
Provider Discussion and Reviews
-----------------------------
=> Add a Provider
=> All Dial-up
=> North American Providers (Including Canada)
===> Canadian Providers
=====> teksavvy.com Canada
=====> xplornet.com Canada
=====> Persona Internet
=====> Rogers Communications
=====> Shaw Communications
=====> Sympatico (Bell Canada)
===> Adelphia Communications
===> ALLTEL Communications
===> AOL
===> AT&T
=====> SBC Global
=====> BellSouth
===> Cable One
===> Cavalier Telephone cavtel.net
===> cebridge.net
===> CenturyTel
===> Charter Communications
===> Clearwire
===> Comcast Cable Communications
===> Country Cablevision
===> Covad communications
===> Cox Communications
===> DMAX Puerto Rico
===> EarthLink
===> EMBARQ
===> Frontier Online
===> HughesNet (DIRECWAY)
=====> DW4000 Information
=====> DW6000 Information
=====> DW7000 Information
===> Insight Broadband
===> Magtel Wireless
===> Mediacom Communications
===> Midcontinent Communications
===> mycingular.net
===> Namesco/NDO (ndo.com)
===> onelinkpr.net Puerto Rico
===> Optimum Online
===> Qwest Communications
===> RCN
===> RoadRunner (Time Warner Cable)
===> seidata.com
===> sigecom.net
===> SkyWay USA
===> Speakeasy
===> Sprint Nextel Corporation
===> Starband
===> Suddenlink
===> SureWest Communications
=====> SureWest Communications FIOS
===> SusCom - Susquehanna Communications
===> TDS - Telephone and Data Systems, Inc
===> Transedge.com
===> Verizon Online
===> Verizon Online FIOS
===> Wave Broadband
===> Wide Open West
===> Wildblue Communications, Inc
=> World Providers (Non-North American)
===> African Providers
===> Asian and Middle Eastern Providers
=====> Asian Providers
=====> Centennial
=====> Digitel
=====> PLDT myDSL
=====> Sify Broadband
=====> Streamyx
=====> Smart Bro (Wi-fi)
===> Australian Providers
=====> Digiplus
=====> Optusnet
=====> Telstra Bigpond
===> UK and European Providers
=====> Bredbandsbolaget
=======> Bredbandsbolaget Fiber
=======> Bredbandsbolaget ADSL, VDSL
=====> Virgin.net (old NTL)
=====> Tiscali
===> Central/South American Providers
-----------------------------
Miscellaneous
-----------------------------
=> Archives
===> Announcements
=> Public Polls
===> Not on index
Print
Advanced search
Loading...
testmy.net's forum is proudly
Powered by SMF
|
SMF © 2006-2007, Simple Machines LLC
© 1999-2009 testmy.net -
Contact
-
Legal
-
Facts & FAQs
Page Loading Stats: This forum Page created in 0.115 seconds with 54 queries.