Phorum.ro
Your Avatar Welcome to Phorum.ro!
If you haven't registered yet, click here!
Attention Visitor:
You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Du-te înapoi   Phorum.ro > Web Design & Web Development > Programare > PHP > Discutii Generale

Discutii Generale Discutii generale despre PHP.

Răspunde
 
Thread Tools Moduri de afișare
Vechi 08.10.2008   #1
Ciolitto
32-Bit Member
 
Data înregistrării: 05.02.2007
Mesaje: 31
Rep Power: 6
Ciolitto is on a distinguished road
Implicit Un mic ajutor daca se poate...!

Am si eu nevoie de un mic ajutor! Am creeat un script care merge excelent pe freehostia.com si pe 110mb.com dar vreau sa caut un host cu plata.
Dar scriptul nu merge pe toate hosturile (am incercat doar pe cele gratuit inclusiv lx.).
O data safe-mode-ul trebuie sa fie OFF;
Am gasit unele hosturi cu safe-mode off dar tot nu a mers scriptul!
Vreau sa stiu cam ce functie imi tre sa aiba hostul respetiv.
Scriptul e urmatoru:

pagina.php:
-----------------------------
if(!is_dir($username)) { mkdir($username, 0755);
chmod($username, 0777);
}

copy("./photo_galery.php", $username."/photo_galery.php" );

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



iar photo_galery.php:
----------------------------
if(!is_dir(photos)) { mkdir(photos, 0755);
chmod(photos, 0777);
}
-----------------------------

Nu scriu tot scriptul pt ca aici e buba.
Problema e ca atunci cand apelez 'photo_galery.php' nu imi creaza directorul 'photos'....
Repet scriptul e testat! pe 110mb si pe freehostia.com si merg perfect dar pe alte hosturi gratuite cu safe-mode off nu merge;

Astept un raspuns! Va multumesc!
________
Gamestop gift card

Last edited by Ciolitto; 27.03.2011 at 01:16:27.
Ciolitto is offline   Reply With Quote
Sponsored Links
Vechi 09.10.2008   #2
Ciolitto
32-Bit Member
 
Data înregistrării: 05.02.2007
Mesaje: 31
Rep Power: 6
Ciolitto is on a distinguished road
Implicit

Chiar nimeni nu poate sa ma ajute?
________
Handjob Ebony

Last edited by Ciolitto; 27.03.2011 at 01:16:37.
Ciolitto is offline   Reply With Quote
Vechi 11.12.2008   #3
Tavicu
Beat in post!
 
Tavicu's Avatar
 
Data înregistrării: 26.11.2005
Vârsta: 21
Mesaje: 321
Rep Power: 7
Tavicu is on a distinguished road
Trimite un mesaj prin Yahoo pentru Tavicu
Implicit

daca nu ma insel ai putea sa faci din htaccess sa dezactivezi sau sa activezi safe mode-ul


Pentru activ:
Cod:
php_value safe_mode "1"

Pentru inactiv:
Cod:
php_value safe_mode "0"


Nu bag mana in foc pentru ca nu am testat ...
Tavicu is offline   Reply With Quote
Răspunde


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Moduri de afișare

Reguli de postare
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 Pornit
emoticoanele sunt Pornit
Codul [IMG] este Pornit
Codul HTML este Pornit



Ora este GMT +3. Ora este acum 02:43:18.


Rulează cu: vBulletin Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

XXXXXXXXXXXXXXXXXXX
Inactive Reminders By Icora Web Design