Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Script help!!!!!!!!!!!!!!!!
Old 06-13-2005, 04:47 PM PHP Script help!!!!!!!!!!!!!!!!
Extreme Talker

Posts: 171
Trades: 0
I am using the below script for my website.
I got a error saying
Quote:
Fatal error: Call to undefined function: session_pagestart() in /home/somplan/public_html/test1.php on line 7
PHP Code:
 <?php
 
 $phpbb_root_path 
'/home/somplan/public_html/forums/';
 
 include(
$phpbb_root_path 'common.php');
 
 
$userdata session_pagestart($user_ipPAGE_INDEX);
 
init_userprefs($userdata);
 
 if ( 
$userdata['session_logged_in'] ) {
 
$username $userdata['username'];
 echo 
"Welcome $username"; } else {
 echo(
'
 Forum Login
 
 <form action="http://www.somplanet.com/forums/login.php" method="post" target="_top">
 
 Username: <input type="text" name="username" size="25" maxlength="40" value="" />
 
 Password: <input type="password" name="password" size="25" maxlength="32" />
 
 <input type="hidden" name="redirect" value="" /><input type="submit" name="login" class="mainoption" value="Log in" />
 
 </form>'
);
 }
 
?>

Last edited by 0beron; 06-13-2005 at 08:09 PM.. Reason: You really don't need that many exclamation marks...
mohamoud is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-14-2005, 01:02 AM
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
There is no function session_pagestart() in php, it must be some external function. So you probably forgot to include the file with this function's definition.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 06-14-2005, 08:06 PM
Extreme Talker

Posts: 171
Trades: 0
By the way this script is for a PHPBB forums. Does anyone know what is wrong.
mohamoud is offline
Reply With Quote
View Public Profile
 
Old 06-14-2005, 09:44 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Either you have erased an include line from the file, or this:

PHP Code:
 $phpbb_root_path '/home/somplan/public_html/forums/';

include(
$phpbb_root_path 'common.php'); 
isn't finding the file it needs.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to PHP Script help!!!!!!!!!!!!!!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26998 seconds with 12 queries