Current location: Hot Scripts Forums » Programming Languages » PHP » Competition form


Competition form

Reply
  #1 (permalink)  
Old 01-27-05, 10:56 AM
dee19802000 dee19802000 is offline
New Member
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Competition form

hey,

I have downloaded a competition script for a web site i am doing. it works fine apart from when it comes to e-mailing the results to me and the the user. I keep on getting the following errors:
-------------------------------------------------------------------------


Warning: popen() has been disabled for security reasons in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 114

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 115

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 116

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 117

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 118

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 119

Warning: pclose(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 120

Warning: popen() has been disabled for security reasons in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 121

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 122

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 123

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 124

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 125

Warning: fputs(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 126

Warning: pclose(): supplied argument is not a valid stream resource in /home/fhlinux194/2/2b-creative.com/user/htdocs/blue/quizhandler.php on line 127

--------------------------------------------------------------------------

I have attached the script if anyone can tell me whats wrong.

if you wana test it out for yourself go to http://www.2b-creative.com/blue/comp.php

Any help would be greatly appreciated.

thanks

Damian
Attached Files
File Type: zip files.zip (7.9 KB, 112 views)
Reply With Quote
  #2 (permalink)  
Old 01-27-05, 01:58 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
you have safe mode enabled in your server and popen() is sensitive to safe mode..
if the script uses popen() alot, you will have to search for another script or try to contact your host and ask them to disable safe mode.. and I doubt them doing so
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #3 (permalink)  
Old 01-27-05, 02:48 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by NeverMind
you have safe mode enabled in your server and popen() is sensitive to safe mode..
if the script uses popen() alot, you will have to search for another script or try to contact your host and ask them to disable safe mode.. and I doubt them doing so
I'm not 100% positive, but I believe you can control safe-mode on a directory-by-directory basis through .htaccess files.

I use "php_flag register_globals 0" in an basic .htaccess file to turn off "GLOBALS" when I'm testing to make sure stuff runs under a GLOBALS_OFF setting. I think you can do the same with most PHP settings.

Errr...nope. I just checked (I was going to post some links). Apparently you can't override the safe mode settings in .htaccess. (That makes sense, actually.)

Never mind, lol.

UPDATE:

Well, you can actually do this, but only if you've set some admin params in the PHP configuration file. So it looks like the answer in this case is still 'no'.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]

Last edited by End User; 01-27-05 at 02:52 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Competition entry form / random entry draw script with PHP? Tim Smith PHP 0 08-12-04 01:45 AM
Limit the form submission according to time bionicsamir PHP 7 05-09-04 11:10 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 03:49 AM


All times are GMT -5. The time now is 05:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.