Questions tagged [php-safe-mode]

20 questions
0
votes
1 answer

PHP Script is creating a folder but cannot create a folder inside

I have searched stack overflow and Google for many hours now and cannot find an answer. I have found things that are related but nothing is working. Here is the code: $oldmask = umask(0); if(!is_dir("play")){ mkdir("play", 0777, true); …
Nedearb
  • 1
  • 1
0
votes
0 answers

Safe Mode Restriction in Effect with Safe Mode Off

I have a problem with the "Safe Mode". In my php.ini is off so i cant undestand the error: PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10003 is not allowed to access /tmp/51bef5d81180e owned by uid 0 in…
kernel_panic
  • 93
  • 1
  • 6
0
votes
1 answer

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access / owned by uid 0 in Unknown on line 0

I have a site on one of those low cost web hosts and I've been having some problems with some files generating the following error: Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access / owned…
magenta placenta
  • 1,461
  • 7
  • 22
  • 34
0
votes
1 answer

Jira API Issue - CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set limited options on shared hosting

Im running some code on Atlassian Jira bug system API, here is the code im using $username = 'xxx'; $password = 'xxx'; $url = 'https://xxx.atlassian.net/rest/api/2/issues/?filter=12202'; //$url =…
user1547410
  • 863
  • 7
  • 27
  • 58
-2
votes
3 answers

PHP force download results in corrupted file

I've got a PHP script that forces a download. Heres my code //$file and $mime have been set earlier $basename = basename($file); $length = sprintf("%u", filesize($file)); header('Content-Description: File Transfer'); header('Content-Type:…
Pranay Prakash
  • 358
  • 4
  • 13
1
2