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 ?

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

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

This is my INSTALL.TXT file

Project: PHPLinkDirectory: Version 2.1.3

**********************************************************************

Copyright © 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!

Did you follow the install instructions?

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

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

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?

yes i used phpmyadmin

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)

Could the staff here not do it for me because am not good at stuff like this :stuck_out_tongue: thanks for your help so far though

hi i have done all that with file zilla and i went to my site / install and nothing worked :s

If you can’t figure it out follow the script installation link in my signature and submit an installation request.

i have posted on there :slight_smile:

am on it right now

Thanks alot i owe you one :wink: