D o   n o t   e d i t   d a t a b a s e / e n _ p a g e s . p h p   f i l e ,   b e   w r o n g 
 
 M o r e   t h a n   a   b a c k u p   d a t a b a s e   f i l e   i n s i d e 
 
 C o n s o l e   t o   r e m o v e   t h e   p i c t u r e   w i l l   b e   a   f o l d e r   p i c t u r e   d e l e t e 
 
 
 
 R e q u i r e m e n t s   a n d   i n s t a l l a t i o n 
 
   
 
 
 
 L i s t   o f   r e q u i r e m e n t s   a n d   p r o c e d u r e   f o r   i n s t a l l a t i o n   o f   A m e r i c a i d c   C m s   o n   y o u r   s e r v e r . 
 
   
 
 R e q u i r e m e n t s 
 
 
 
 
 
   F o r   o u r   s c r i p t s   t o   w o r k   p r o p e r l y ,   y o u r   s e r v e r   s h o u l d   m e e t   t h e   f o l l o w i n g   r e q u i r e m e n t s :   
 
 " h a n d l e   P H P   s c r i p t s   ( P H P   v e r s i o n   5 . 2 . 0   o r   h i g h e r   -   h o w   t o   c h e c k   t h e   p h p   v e r s i o n   o f   m y   s e r v e r ? ) . 
 
 
 
   B a s i c   r e q u i r e m e n t s   f o r   p r o p e r   a d d i n g   o f   p h o t o s :   
 
 " i n s t a l a t e d   g d 2   l i b r a r y   ( h o w   t o   c h e c k   G D   l i b r a r y   a v a i l a b i l i t y ? ) , 
 
 " u p l o a d e d   p h o t o s   s h o u l d n ' t   b e   l a r g e r   t h a n   2 0 0 0 p x   ( l o n g e r   s i d e ) . 
 
 
 
 U p l o a d i n g   s c r i p t s   o n   y o u r   s e r v e r 
 
 
 
 
 
   H o w   t o   u p l o a d   f i l e s   o n   y o u r   s e r v e r   a n d   w h a t   y o u   s h o u l d   d o   a f t e r   u p l o a d i n g :   
 
 " u n p a c k   z i p   a r c h i v e   t h a t   c o n t a i n s   t h e   s c r i p t , 
 
 " u p l o a d   a l l   f i l e s   o n   t h e   s e r v e r .   I t   i s   i m p o r t a n t   t o   u s e   b i n a r y   t r a n s f e r , 
 
 " r e q u a r i e d   s p a c e   o f   y o u r   F T P   a c c o u n t   d e p e n d s   o n   h o w   m u c h   c o n t e n t   a n d   h o w   m a n y   f i l e s   y o u   w a n t   t o   a d d . 
 
 " c h a n g e   p e r m i s s i o n s   ( C H M O D )   t o   7 7 7   ( o r :   r w x r w x r w x )   f o r :   %  d i r e c t o r y   " d a t a b a s e "   i n c l u d i n g   a l l   s u b - d i r e c t o r i e s   a n d   f i l e s   i n   i t , 
 
 %  d i r e c t o r y   " f i l e s "   a n d   a l l   s u b - d i r e c t o r i e s   a n d   f i l e s   i n   i t , 
 
 
 
 
 
   I f   p o s s i b l e ,   a n d   i f   t h e   s c r i p t   w o u l d   r u n   p r o p e r l y   o n   t h e   s e r v e r ,   u s e   p e r m i s s i o n s   ( C H M O D )   7 0 0   i n s t e a d   o f   7 7 7   f o r   t h e   t w o   d i r e c t o r i e s   a n d   t h e i r   s u d - d i r e c t o r i e s   a n d   6 0 0   f o r   t h e   f i l e s .   
 
 
 
 A f t e r   u p l o a d 
 
 
 
 
 
   I f   y o u r   s e r v e r   m e e t s   a l l   o f   t h e   a b o v e   r e q u i r e m e n t s   a n d   y o u   h a v e   u p l o a d e d   a l l   t h e   f i l e s :   
 
 " o p e n   y o u r   s i t e   t o   s e e   h o m e   p a g e , 
 
 " a d d   p h r a s e   " a d m i n . p h p "   t o   y o u r   h o m e   p a g e   a d d r e s s   ( e . g .   w w w . y o u r - a d d r e s s . c o m / a d m i n . p h p )   t o   g o   t o   a d m i n i s t r a t i o n   l o g i n   p a g e , 
 
 " b o t h   l o g i n   a n d   p a s s w o r d   a r e   s e t   b y   d e f a u l t   t o :   a d m i n ;   f o r   s e c u r i t y   r e a s o n ,   c h a n g e   t h e m   i n   c o n f i g u r a t i o n   i m m e d i a t e l y   a f t e r   f i r s t   l o g i n   , 
 
 " n o w   y o u   c a n   m a n a g e   p a g e   c o n t e n t , 
 
 " A f t e r   l o a d i n g   t h e   p a g e   y o u   m u s t   c h a n g e   t h e   f i l e   n a m e   " a d m i n . p h p "   t o   s o m e t h i n g   e l s e ,   l i k e :   " 8 d m 1 n . p h p " .   W h e n   t h i s   c h a n g e   i s   d o n e ,   t h e   a d m i n i s t r a t i o n   p a n e l ' s   a d d r e s s   i n   y o u r   b r o w s e r   w i l l   b e   w w w . y o u r - a d d r e s s . c o m / 8 d m 1 n . p h p .   D o n ' t   s h a r e   t h i s   a d d r e s s   w i t h   o t h e r   p e o p l e   -   i t   w i l l   m a k e   i t   m u c h   h a r d e r   t o   h a c k   y o u r   w e b s i t e . 
 
 
 
 A l s o   c h e c k   o u t   t h e   " S e c u r i t y "   s e c t i o n .   
 
 
 
 M a n u a l   -   h o w   t u   u s e 
 
 
 
 
 
   G o   t o   o u r   m a n u a l   t o   l e a r n   m o r e   a b o u t   t h e   s c r i p t ' s   a d m i n i s t r a t i o n   o p t i o n s   &   m u c h   m o r e .   
 
 
 
 I n i t i a l   c o n f i g u r a t i o n 
 
 
 
 
 
   T h e   " d a t a b a s e / c o n f i g / g e n e r a l . p h p "   f i l e   c o n t a i n s   s o m e   c o n f i g u r a t i o n   v a r i a b l e s ,   t h a t   a r e   n o t   a c c e s s i b l e   f r o m   t h e   a d m i n i s t r a t i o n   p a n e l .   I t ' s   a   g o o d   i d e a   t o   t h i n k   a b o u t   s e t t i n g s   o f   t h o s e   o p t i o n s   b e f o r e   d e v e l o p i n g   a   w e b s i t e .   I t   w i l l   i n f l u e n c e   f u n c t i o n i n g   o f   t h e   s c r i p t ,   i t s   e f f i c i e n c y   e t c .   
 
 
 
 G e t   t o   k n o w   t h e   m o s t   i m p o r t a n t   v a r i a b l e s : 
 
 " $ c o n f i g [ ' l a n g u a g e _ i n _ u r l ' ]   -   i f   y o u ' r e   p l a n n i n g   o n   c r e a t i n g   a   m u l t i l i n g u a l   w e b s i t e ,   t h e n   w e   r e c o m m e n d   s e t t i n g   t h i s   v a r i a b l e   t o   t r u e . 
 
 " $ c o n f i g [ ' p a g e s _ f u l l _ d e s c r i p t i o n _ t o _ f i l e ' ]   -   i f   y o u r   s i t e   w i l l   h a v e   l o t s   o f   t e x t   ( e . g .   2 0 0   a n d   m o r e   p a g e s   a n d   s u b p a g e s ) ,   w e   r e c o m m e n d   s e t t i n g   t h i s   v a r i a b l e   t o   t r u e .   F u l l   d e s c r i p t i o n s   w i l l   b e   s a v e d   i n   f i l e s   i n   t h e   " d a t a b a s e / p a g e s / "   d i r e c t o r y ,   w h a t   w i l l   a c c e l e r a t e   t h e   s c r i p t   s i g n i f i c a n t l y ,   b u t   s e r c h i n g   p a g e s   b y   t h e i r   f u l l   d e s c r i p t i o n s   w i l l   b e   i m p o s s i b l e .   
 
 " $ c o n f i g [ ' i m a g e s _ s i z e s ' ]   -   s e t   t h e   s e i z e   o f   m i n i a t u r e s ,   t h a t   w i l l   b e   d i s p l a y e d   i n   l i s t s   a n d   p a g e   d e t a i l s   .   T h e r e   a r e   3   d e f a u l t   s i z e s   o f   m i n i a t u r e s   i n   t h e   s c r i p t :   1 0 0 ,   1 5 0   a n d   2 0 0   ( i n   p i x e l s   ( p x ) ) .   W h e n   g e n e r a t i n g   a   m i n i a t u r e   t h e   s c r i p t   s h r i n k s   a n   i m a g e   s o   t h a t   i t s   w i d e r   s i d e   h a s   t h e   c h o s e n   l e n g t h .   S o   i f   a   1 0 0   m i n i a t u r e   i s   c h o s e n   f o r   a   8 0 0 x 6 0 0   p i c t u r e ,   i t   w i l l   b e   s h r u n k   t o   t h e   s i z e   o f   1 0 0 x 7 5 . 
 
 " $ c o n f i g [ ' p a g e s _ d e f a u l t _ i m a g e _ s i z e _ l i s t ' ]   -   s e t   t h e   d e f a u l t   m i n i a t u r e   1   s i z e   f o r   p a g e s   ( b y   d e f a u l t   d i s p l a y e d   i n   l i s t s ) 
 
 " $ c o n f i g [ ' p a g e s _ d e f a u l t _ i m a g e _ s i z e _ d e t a i l s ' ]   -   s e t   t h e   d e f a u l t   m i n i a t u r e   2   s i z e   f o r   p a g e s   ( b y   d e f a u l t   d i s p l a y e d   i n   d e t a i l s ) 
 
 " $ c o n f i g [ ' p a g e s _ d e f a u l t _ i m a g e _ l o c a t i o n ' ]   -   s e t   t h e   d e f a u l t   i m a g e   l o c a t i o n   ( 1   -   l e f t ,   2   -   r i g h t ) 
 
 " $ c o n f i g [ ' m a x _ d i m e n s i o n _ o f _ i m a g e ' ]      t h i s   t a b l e   s t o r e s   m a x i m u m   w i d t h   o f   a d d i t i o n a l   i m a g e .   I f   t h e   i m a g e   i s   l a r g e r   t h a n   t h e   v a l u e   i n   t h i s   t a b l e ,   i t   i s   r e s i z e d   t o   f i t   t h i s   v a l u e . 
 
 " $ c o n f i g [ ' t i m e _ d i f f ' ]   -   i f   t h e r e   i s   a   d i f f e r e n c e   b e t w e e n   l o c a l   t i m e   a n d   t i m e   o n   t h e   s e r v e r ,   y o u   h a v e   t o   s e t   i t   i n   m i n u t e s   t o   c o m p e n s a t e ,   f o r   i n s t a n c e   i f   t h e   s e r v e r   i s   1   h o u r   l a t e ,   t h a n   s e t   t h i s   v a r i a b l e   t o   " - 3 6 0 0 " . 
 
 " $ c o n f i g [ ' d i r _ * ' ]   -   t a b l e s ,   w h i c h   k e y s   s t a r t   w i t h   " d i r _ " ,   s t o r e   i n f o r m a t i o n   a b o u t   f o l d e r s   l i k e   d a t a b a s e s   o r   f i l e s .   Y o u   c a n   c h n g e   t h e   n a m e s   b e f o r e   r e l e a s i n g   y o u r   w e b s i t e   t o ,   f o r   i n s t a n c e ,   p r o t e c t   y o u r   s i t e   f r o m   h a c k e r s . 
 
 " $ c o n f i g [ ' s t y l e ' ]   -   t h i s   v a r i a b l e   c o n t a i n s   s t y l e   n a m e .   I f   y o u   w a n t   t o   d e v e l o p   y o u r   o w n   s t y l e ,   c h a n g e   v a l u e   o f   t h i s   v a r i a b l e . 
 
 