473,320 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

safe mode problem

Hey guys.
I have a script that builds up galleries of pictures and then let people
vote on them.
the script admin is in a folder named: /admin and includes all db
connections.

Then each galleries generated by the script goes into
/galleries/name1.2.3.etc...

So I used to connect to my db for the voting using
include("../admin/db_func.php");
but now that safe mode is on I cant make it work anymore. Anyone has
suggestions has to make this work ?

Thank you very much

Yang

Apr 12 '06 #1
1 1220
Yannick Benoit wrote:
Hey guys.
I have a script that builds up galleries of pictures and then let people
vote on them.
the script admin is in a folder named: /admin and includes all db
connections.

Then each galleries generated by the script goes into
/galleries/name1.2.3.etc...

So I used to connect to my db for the voting using
include("../admin/db_func.php");
but now that safe mode is on I cant make it work anymore. Anyone has
suggestions has to make this work ?

Thank you very much

Yang


Hi Yang,

Why do you think safemode is the problem?

I checked the reference:
http://nl2.php.net/manual/en/features.safe-mode.php

and didn't find any reason to believe that safemode is causing this, unless
you managed to give the files different owners (combined with safe_mode_gid
to 'on')

If that is the case, the solution is simple too: make all owners of the
files the same user.

Regards,
Erwin Moller
Apr 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Giobibo | last post by:
Hi. I want to send mail with the function mail(). I am on a shared server in SAFE MODE. When I send a mail I get the message: "SAFE MODE Restriction in effect. The fifth parameter is...
0
by: Yemi | last post by:
Hi There. I seem to be getting some inconsistent results when using passthru() in safe mode. They appear to be related to the fact that passthru should treat all command arguments as one single...
3
by: Jeremy Shovan | last post by:
What do I need to change to use the opendir() function when safe mode is in affect?? I have root access to the server and can make any changes neccessary except turn safe mode off Thanks in...
2
by: md | last post by:
hi! I have a problem with my php script. In this script I create a directory. When I then try to enter this directory (for example read its contens) I get an error like: Warning: SAFE MODE...
2
by: Paul Schmidinger | last post by:
Hi, I created a directory with PHP mkdir (mode 0777). Then I try to move_ulpoaded_file() to move a file into this directory. I get an error: Warning: move_uploaded_file(): SAFE MODE...
2
by: Joseph S. | last post by:
Hi all, Consider this case: I have a free php hosting account (a LAMP host) with an account name (also the name of my directory) 'sample'. Under 'sample', I have php scripts which can create...
0
by: Chris | last post by:
I used mkdir() to create a directory, then use chmod() to change the mode to 0777 in one script. When I try to create a file using touch() in another script, I get the SAFE MODE error about the...
1
by: Sephi | last post by:
Hello, I'm trying to disable safe mode from my php installation. First because this functionality will be removed in PHP6, and because it's very restrictive and it's giving me headaches when...
7
by: bvdp | last post by:
I'm finding my quest for a safe eval() quite frustrating :) Any comments on this: Just forget about getting python to do this and, instead, grab my set of values (from a user supplied text file)...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.