Free Web Hosting Forum

Free Web Hosting Forum (http://www.000webhost.com/forum/index.php)
-   Customer Assistance (http://www.000webhost.com/forum/forumdisplay.php?f=6)
-   -   phpld help (http://www.000webhost.com/forum/showthread.php?t=27211)

millers2010 11-26-2011 07:51 PM

phpld help
 
Hi i downloaded a directory script for my free host and it's a phpld file how do i add it to my site ?

d3iti 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).

millers2010 11-26-2011 09:08 PM

Hi i dont know i downloaded it from here http://www.phplinkdirectory.com/phpLD_version_2.php

millers2010 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!

Bad Karma[CORE] 11-26-2011 09:28 PM

Did you follow the install instructions?

millers2010 11-26-2011 09:29 PM

to be honest i don't understand them lol :p am not very good at php

millers2010 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

Bad Karma[CORE] 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?

millers2010 11-26-2011 09:43 PM

yes i used phpmyadmin

Bad Karma[CORE] 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)


All times are GMT. The time now is 03:24 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.