home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

HTML -> PHP

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2140
Discussions: 200,947, Posts: 2,379,390, Members: 246,309
Old June 3rd, 2004, 05:41 PM   Digg it!   #1 (permalink)
Member
 
SiLVerBuRn's Avatar
 
Join Date: Jun 2003
Location: West Columbia, SC
Posts: 330
HTML -> PHP

I'm a n00b to php...

What php tags do I need to add to an HTML document to format it for PHP. I plan to include a table with a centered title above for a list of members.
__________________
I have become evil...
24" iMac 2.8
SiLVerBuRn is offline   Reply With Quote
Old June 3rd, 2004, 06:07 PM     #2 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
<?
echo "this is a php";
?>

just liek that

make sure you save the page as php tho
Carl-cox- is offline   Reply With Quote
Old June 3rd, 2004, 06:10 PM     #3 (permalink)
Member
 
SiLVerBuRn's Avatar
 
Join Date: Jun 2003
Location: West Columbia, SC
Posts: 330
you can put any html tags inside the echo quotes?
SiLVerBuRn is offline   Reply With Quote
Old June 3rd, 2004, 06:13 PM     #4 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
yes for example

<?
echo "<img src=\"location.file.gif\" width = \"10\" height=\"10\">";
?>

the backslash cancels the " in php so it can be printed or echoed
Carl-cox- is offline   Reply With Quote
Old June 3rd, 2004, 06:16 PM     #5 (permalink)
Member
 
SiLVerBuRn's Avatar
 
Join Date: Jun 2003
Location: West Columbia, SC
Posts: 330
Also...

Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\los\header.php:32) in c:\apache\htdocs\los\includes\page_header.php on line 532

Does this on Forums page mainly...
SiLVerBuRn is offline   Reply With Quote
Old June 3rd, 2004, 06:22 PM     #6 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
at the top of the page RIGHT AT THE TOP put

<?
ob_start();
?>

or if you have access to the php.ini turn on output buffering
Carl-cox- is offline   Reply With Quote
Old June 3rd, 2004, 06:29 PM     #7 (permalink)
Member
 
SiLVerBuRn's Avatar
 
Join Date: Jun 2003
Location: West Columbia, SC
Posts: 330
You are DA MAN!

You have helped me more in 15 minutes than people have in months...maybe you can answer my last question...

Im trying to get horde working. I have to uncomment the gettext.dll in php.ini to activate gettext. That's the only thing im missing to get Horde to work. When I uncomment it, and restart apache, nothing to do with PHP works. I can't load any php page until I Re-comment the gettext line and reload apache again.

I guess im missing a file but I dont know what.
SiLVerBuRn is offline   Reply With Quote
Old June 3rd, 2004, 06:34 PM     #8 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
have you defined a extentions directory in the php.ini and made sure that the .dll is in that directory ?

if it still doesnt work maybe its a windows permission problem
Carl-cox- is offline   Reply With Quote
Old June 3rd, 2004, 06:37 PM     #9 (permalink)
Member
 
SiLVerBuRn's Avatar
 
Join Date: Jun 2003
Location: West Columbia, SC
Posts: 330
Hmm...let me see what i've got.

Code:
; Directory in which the loadable extensions (modules) reside.
extension_dir = ./extensions
And then down in the extensions are...

Code:
extension=php_gettext.dll
The DLLs are in the folder: c:\apache\php\extensions
SiLVerBuRn is offline   Reply With Quote
Old June 3rd, 2004, 06:39 PM     #10 (permalink)
Member
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 395
try a full path to the extentions directory and i think you have to end with a /

extension_dir = C:/php/extensions/
Carl-cox- is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
html basics BingNess Webmastering and Programming 13 June 7th, 2004 11:19 PM
Where to begin? Buzioid Webmastering and Programming 10 March 27th, 2004 11:19 AM
HTML, SQL... HELP!!! exally Webmastering and Programming 9 June 9th, 2003 01:02 AM
PHP Not working for .html file vass0922 Webmastering and Programming 7 November 10th, 2002 04:16 AM
Bah! Need help! voogru Graphic Design and Digital Photography 5 March 7th, 2002 04:43 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (170)
The disrespect of Obama by Russian .. (22)
Is It Just Me? (2934)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Graphics Card Upgrade Question (2)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Wireless Televisions. (11)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)


All times are GMT -4. The time now is 08:33 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28