1
kapsat
using a php include
  • 2005/10/15 17:28

  • kapsat

  • Just popping in

  • Posts: 12

  • Since: 2005/9/26


i am trying to use a php include on XOOPS 2.0.13.1 and can't seem to get it to work...

can this be used with xoops?

2
WarDick
Re: using a php include
  • 2005/10/15 17:44

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Yes it can.

I usually find it to be a path problem. Paths are not consistent throughout xoops.
Urging XOOPS to be the Best It Can Be.
Richard......

3
smdcom
Re: using a php include

where? and when?

SMD

4
kapsat
Re: using a php include
  • 2005/10/15 18:48

  • kapsat

  • Just popping in

  • Posts: 12

  • Since: 2005/9/26


i started off trying to get a php script to work

"phpGiggles"

Could not get it to print so i tried a little geo-ip script that i use with other sites.

This is the statement i normally use to get the geo-ip script to work



i placed it in different placed with-in the template theme... as of right now i have it in the bottom of the html just before the tags. I have updated the system module and when i look at the page in my browser and check the source code i see the statement sitting there.

5
Lance_
Re: using a php include
  • 2005/10/15 19:14

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


I use the following code style in the theme since it is a html file and not a php file.

<{include file="gdl-web/flash-header.php"}>


Note that the file called is within the theme's folder, you might need to play a bit with the statement to have it work otherwise.

Cheers.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

6
kapsat
Re: using a php include
  • 2005/10/15 20:44

  • kapsat

  • Just popping in

  • Posts: 12

  • Since: 2005/9/26


I'm wore out....

i have tried every variation i can think of , single quotes, double quotes relative path, absolute path, include, include file, include once, all with and without under_scores and other possibilities i can't remember.

The difference now is before i could see the statement in the source code and now by using <{ }> the statement is not visible in the source and that's what is supposed to happen. but it still does not print anything.

However, one of the variations i tried, It printed the geo1.php script in the source code, but it was not visible in the browser.

Any other thoughts would be appreciated as were the previous ones.

Oh yea, i also moved the geo1.php script to the same folder as the template and still no difference.

Thanks,
dave

Login

Who's Online

363 user(s) are online (283 user(s) are browsing Support Forums)


Members: 0


Guests: 363


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits