Free Web Hosting Forum
(#1)
Old
millers2010 millers2010 is offline
Junior Member
millers2010 is on a distinguished road
 
Posts: 20
Join Date: Nov 2011
Default phpld help - 11-26-2011, 07:51 PM

Hi i downloaded a directory script for my free host and it's a phpld file how do i add it to my site ?
Reply With Quote
(#2)
Old
d3iti's Avatar
d3iti d3iti is offline
Super Moderator
d3iti is on a distinguished road
 
Posts: 7,443
Join Date: Jul 2009
Location: Spain
Default 11-26-2011, 08:46 PM

Hi,

What is a phpld file?

Usually with the script upload files in public_html folder or any folder within public_html enough to run the script.
It is also good looking in the file install.txt or similar which explains the characteristics and requirements of the script (some scripts require a database).


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3)
Old
millers2010 millers2010 is offline
Junior Member
millers2010 is on a distinguished road
 
Posts: 20
Join Date: Nov 2011
Default 11-26-2011, 09:08 PM

Hi i dont know i downloaded it from here http://www.phplinkdirectory.com/phpLD_version_2.php
Reply With Quote
(#4)
Old
millers2010 millers2010 is offline
Junior Member
millers2010 is on a distinguished road
 
Posts: 20
Join Date: Nov 2011
Default 11-26-2011, 09:22 PM

This is my INSTALL.TXT file

# ################################################## ####################
# Project: PHPLinkDirectory: Version 2.1.3
#
# ************************************************** ********************
# Copyright (C) 2004-2008 NetCreated, Inc. (http://www.netcreated.com/)
#
# ************************************************** ********************
#
# For questions, help, comments, discussion, etc., please join the
# PHP Link Directory Forum http://www.phplinkdirectory.com/forum/
#
# @link http://www.phplinkdirectory.com/
# @copyright 2004-2008 NetCreated, Inc. (http://www.netcreated.com/)
# @projectManager David DuVal <david@david-duval.com>
# @package PHPLinkDirectory
# ################################################## ####################

Read the License Text!!

************************
** BASIC INSTALLATION **
************************

1. Upload the files in the archive to your host.

2. Change permissions on the following file and four folders to 777 (writing permissions):
- include/config.php
- temp/
- temp/adodb
- temp/cache
- temp/templates

If the folders do not exist please create them.

3. Access the installer/updater by trying to go to the directory.
It should forward you to http://www.your-domain.com/install/ ,
if it doesn't try typing in the URL directly.

For example, if you installed the directory in a sub folder
of your domain it may look like this:
http://www.your-domain.com/directory/install/

4. Run through the self explained setup, if you have any questions,
comments or suggestions stop by the forum:
http://www.phplinkdirectory.com/forum/

5. As a security measure, we recommend you change back permissions
to 755 on the file:
- include/config.php

You can also remove the entire "install" folder.
If you want to (re)install/update on a later point, you can upload
the folder again.


***********************************
** UPDATE FROM ANY PRIOR VERSION **
***********************************

1. Replace all files and folders

2. Make sure if you have other PHP files with validation checks to change them accordingly.
In any previous version you will have something like:

------------------------------
SmartyValidate :: register_validator('v_FIELD', 'FIELD', 'notEmpty', false, false, false, 'trim', 'formID');
------------------------------

Because of changes to the SmartyValidate library, you need to remove the 7-th attribute and use always something like:

------------------------------
SmartyValidate :: register_validator('v_FIELD', 'FIELD', 'notEmpty', false, false, 'trim', 'formID');
------------------------------

3. Check your templates for correct validation tags and fields. Validation tags are:

------------------------------
{validate form="formID" id="v_FIELD" message=$smarty.capture.ERROR-MESSAGE}
------------------------------



Thank you for choosing PHP Link Directory!

Kind Regards,
the PHP Link Directory Team!
Reply With Quote
(#5)
Old
Bad Karma[CORE]'s Avatar
Bad Karma[CORE] Bad Karma[CORE] is offline
333 - only half evil
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,851
Join Date: May 2008
Default 11-26-2011, 09:28 PM

Did you follow the install instructions?


Get in touch with me

Reply With Quote
(#6)
Old
millers2010 millers2010 is offline
Junior Member
millers2010 is on a distinguished road
 
Posts: 20
Join Date: Nov 2011
Default 11-26-2011, 09:29 PM

to be honest i don't understand them lol am not very good at php
Reply With Quote
(#7)
Old
millers2010 millers2010 is offline
Junior Member
millers2010 is on a distinguished road
 
Posts: 20
Join Date: Nov 2011
Default 11-26-2011, 09:34 PM

when i try to upload the whole file when it's a .zip i get this

Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 80
STR: </
SQL:
<Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$">
Order deny,allow
Deny from all
</Files>

<Files ~ "^(files|images|include|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?|javascripts(/.+)?)$">
Order deny,allow
Deny from all
</Files>

Options -Indexes

Options +FollowSymLinks

DirectoryIndex index.php

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>


SQL query:

<Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$"> Order deny,allow Deny from all </Files> <Files ~ "^(files|images|include|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?|javascripts(/.+)?)$"> Order deny,allow Deny from all </Files> Options -Indexes Options +FollowSymLinks DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<Files ~ "^(.*)\.(inc|inc\.php|tpl|sql)$">
Order deny,allow
Deny from all
' at line 1
Reply With Quote
(#8)
Old
Bad Karma[CORE]'s Avatar
Bad Karma[CORE] Bad Karma[CORE] is offline
333 - only half evil
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,851
Join Date: May 2008
Default 11-26-2011, 09:41 PM

Step 1 suggests to upload the files IN the archive which means you need to extract it locally on your computer first, then upload the files. Looking at the last message of yours it seems like you tried to import the archive into phpMyAdmin?


Get in touch with me

Reply With Quote
(#9)
Old
millers2010 millers2010 is offline
Junior Member
millers2010 is on a distinguished road
 
Posts: 20
Join Date: Nov 2011
Default 11-26-2011, 09:43 PM

yes i used phpmyadmin
Reply With Quote
(#10)
Old
Bad Karma[CORE]'s Avatar
Bad Karma[CORE] Bad Karma[CORE] is offline
333 - only half evil
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,851
Join Date: May 2008
Default 11-26-2011, 09:46 PM

That's kinda wrong.

1) Extract the archive you downloaded on your computer
2) Upload the files from the archive to your public_html directory (use a FTP client for that)
3) Change the permissions of the files shown in the installation.txt (use a FTP client for that)
4) Go to yoursite.com/install and run the installer (replace yoursite.com with your domain name)


Get in touch with me

Reply With Quote
Reply

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 On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com