Chit-Chat Chit-chat is for random, off-topic discussions that don't belong in the other forums.
Please, no car topics here.
Sponsored by:
Sponsored by:

anyone good with php?? (Need Help)

Thread Tools
 
Search this Thread
 
Old 29-Apr-2005, 12:32 AM
  #1  
Senior Member
Thread Starter
 
elistian's Avatar
 
Join Date: Oct 2003
Location: Ajax, Ontario
Posts: 1,877
Question anyone good with php?? (Need Help)

anyone good with php?? i cant figure out how to put a javascript from an html page into a php page i have... the javascript is actually for the google ads... i want to place them on the php page as well... can anyone help?? if so pm me or add me on msn... ill send you the script if need be to put it in...


thanks in advance to anyone that can do this...
elistian is offline  
Old 29-Apr-2005, 10:56 AM
  #2  
Senior Member
 
0xffff's Avatar
 
Join Date: Mar 2005
Posts: 160
insert it into the same place as an html page, in the <head> tag.

at some point your php page must output the necessary html right?

so just find that section in the php page and embed the javascript there.
0xffff is offline  
Old 29-Apr-2005, 02:17 PM
  #3  
Senior Member
Thread Starter
 
elistian's Avatar
 
Join Date: Oct 2003
Location: Ajax, Ontario
Posts: 1,877
Originally posted by 0xffff
insert it into the same place as an html page, in the <head> tag.

at some point your php page must output the necessary html right?

so just find that section in the php page and embed the javascript there.
there is no head tag... ive inserted it in php pages before but this one is different... cant explain it... like there no head or html tags anywhere... if you can help pm me or add me on msn or email me and ill send you the script... thanks in advance...
elistian is offline  
Old 29-Apr-2005, 02:34 PM
  #4  
Registered User
 
imported_jaysi's Avatar
 
Join Date: Apr 2002
Location: Cambridge
Posts: 676
at the top of your php script you could try:

Code:
print <<<END
<head>
javascript...
...
...
..
</head>
END;
PM me with the script and I can help you out further.
imported_jaysi is offline  
Old 29-Apr-2005, 03:22 PM
  #5  
Senior Member
 
0xffff's Avatar
 
Join Date: Mar 2005
Posts: 160
Originally posted by elistian


there is no head tag... ive inserted it in php pages before but this one is different... cant explain it... like there no head or html tags anywhere... if you can help pm me or add me on msn or email me and ill send you the script... thanks in advance...
is this script called by a super script, i.e. is it included by a template? or is it a standalone page?
0xffff is offline  
Old 29-Apr-2005, 09:23 PM
  #6  
Senior Member
Thread Starter
 
elistian's Avatar
 
Join Date: Oct 2003
Location: Ajax, Ontario
Posts: 1,877
Heres the script and what i wanted inserted... also included is the address to the script up and working so you can see what it looks like now... and the location where i wanted the script (google ads) placed on the page... thanks in advance...

http://www.elistiansserver.com/script.zip (Taken Down)
elistian is offline  
Old 29-Apr-2005, 11:21 PM
  #7  
Registered User
 
imported_jaysi's Avatar
 
Join Date: Apr 2002
Location: Cambridge
Posts: 676
Originally posted by elistian
Heres the script and what i wanted inserted... also included is the address to the script up and working so you can see what it looks like now... and the location where i wanted the script (google ads) placed on the page... thanks in advance...

http://www.elistiansserver.com/script.zip
If you want the google ad to appear at the end, simply paste the script after the ?> in the php file.

Anyhting within the <? and ?> is PHP code, so you dont want to out it in there. Before or after is treated as HTML.
imported_jaysi is offline  
Old 30-Apr-2005, 04:19 AM
  #8  
Senior Member
Thread Starter
 
elistian's Avatar
 
Join Date: Oct 2003
Location: Ajax, Ontario
Posts: 1,877
Originally posted by jaysi


If you want the google ad to appear at the end, simply paste the script after the ?> in the php file.

Anyhting within the <? and ?> is PHP code, so you dont want to out it in there. Before or after is treated as HTML.
thanks alot man... works
http://www.elistiansserver.com/upload.php
elistian is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
yousef
Honda Civics (+ other) for sale
0
22-Feb-2007 11:06 AM
imported_~ILLEST CIV~
Chit-Chat
2
10-Mar-2006 11:39 PM
civic_integra
Interior - Audio - Security
11
01-Aug-2005 12:53 PM
imported_DT80
Chit-Chat
2
27-Feb-2004 08:59 PM
imported_Cablerat
Chit-Chat
11
08-Dec-2003 08:52 PM



Quick Reply: anyone good with php?? (Need Help)



All times are GMT -4. The time now is 06:03 PM.