1
onionhead
host requires php path as first line--which files do I modify?
  • 2005/10/31 19:56

  • onionhead

  • Just popping in

  • Posts: 5

  • Since: 2005/10/31


I am installing XOOPS for use at an academic site, so I don't have the option of going to a different hosting company.

The IT people require that all php files start with:
#!/usr/bin/php
as the first line.

Without the line the php files won't work. I did a script that added the line to the top of all php files under my XOOPS directory, but that actually made things worse becuase if the line is on included files it causes problems.

What I am looking for is a way to identify which files need the line and which don't. I am installing XOOPS 2.2.2, but would be perfectly happy to go back to 2.0.10 if that makes things easier.

2
onionhead
Re: host requires php path as first line--which files do I modify?
  • 2005/11/1 15:56

  • onionhead

  • Just popping in

  • Posts: 5

  • Since: 2005/10/31


Okay--If anyone else has this problem, here is what I did.

I started with the obvious screens. Things like index.php user.php etc. Any screen that I knew was not an include. I added the #!/usr/bin/php line to those files. Then, I went to every single link on the site, and if I got an error, I went to the file and added the missing line.

Did I miss some? Probably, but I will find them eventually.

Did I change some that I shouldn't have? Yes--and, when I did the #!/usr/bin/php line showed up on the top of the page (and kind of screwed up the theme). In this case you have to figure out which file you changed, but shouldn't have, and then delete the line.

Was it the best method? No, but it got me up and running.

It will also make upgrading a drag (I suspect), but them's the breaks if I want to use XOOPS at this location.

O

Login

Who's Online

336 user(s) are online (222 user(s) are browsing Support Forums)


Members: 0


Guests: 336


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