Author Topic: PHP Scripting Help please~  (Read 6504 times)

0 Members and 1 Guest are viewing this topic.

Thu

  • Newbie
  • *
  • Posts: 34
  • Young & Fluffy
    • View Profile
PHP Scripting Help please~
« on: August 23, 2007, 11:47:24 pm »
So, while I was waiting till xepher is finished with everything, I thought it'd be productive to actually work on a site, just for practice and stuff.
I installed Cutenews, Bellabook, and phpBB forum. Cutenews and Bellabook are going smoothly, except for phpBB Forums. :(
I haven't a clue what's going on with the PHP script. [here]
It says:
Fatal error: Call to undefined function: session_pagestart() in /home/www/izufable.awardspace.com/forum/includes/functions.php on line 756
???
If you could tell me what's wrong or fix it for me, that'd be greatly appreciated. :-\

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,290
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: PHP Scripting Help please~
« Reply #1 on: August 24, 2007, 01:59:17 am »
Sounds like your ISP might not have session support compiled in their PHP. Try a test script like the following...

http://xepher.xepher.net/test.php
Code: [Select]
<?php phpinfo() ?>

You can click the link to see the output of that here on xepher.net Note the "Session" section. See if it's enabled on your current ISP.

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Re: PHP Scripting Help please~
« Reply #2 on: August 26, 2007, 06:41:39 pm »
and if it's not, you can write your own session handler using MySQL and PHP. Frankly the default session stuff is extremely limited anyhow. All a standard PHP session does it take data in an array, serialize it using the php serialize() and stuff it in a file under a unique identifier.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

Desh

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: PHP Scripting Help please~
« Reply #3 on: August 28, 2007, 02:40:02 pm »
session_pagestart() is a created function defined in the sessions.php file in the includes folder (at least in phpbb 2.0.22).  Check if that file is there and if it was damaged somehow.