Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Ajax/php rate script..need help please
Old 07-22-2008, 07:42 PM Ajax/php rate script..need help please
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
Here is the link for the script:

http://www.masugadesign.com/the-lab/...ar-rating-bar/

The problem is because the script won't work( won't submit results) whenever you put index.php in another directory rather than the script's directory.

I tried lots of configurations but could not resolve the problem.

Can anyone check this?
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-22-2008, 07:47 PM Re: Ajax/php rate script..need help please
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Just follow the instructions in the readme file, but with one change: Put the full path to the files you're including. For example, if you put all these files in ajax_stars under your root directory then

PHP Code:
<?php require('_drawrating.php'); ?>
would become

PHP Code:
<?php require('ajax_stars'.DIRECTORY_SEPARATOR.'_drawrating.php'); ?>
On most servers you could just

PHP Code:
 <?php require('ajax_stars/_drawrating.php'); ?>
But, for all I know you're on a windows server.

You will need to make this change everywhere you're told to include something that isn't immediately there.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 07-22-2008, 07:59 PM Re: Ajax/php rate script..need help please
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
well I understand, I am experimenting on windows but I intend to put it all on my website remote server.

Well should I do that only for require('_drawing') or for all includes.

So technically where is the problem and why this happens?
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
Old 07-22-2008, 08:05 PM Re: Ajax/php rate script..need help please
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
I tried it is not still working..I think the problem is somewhere else..
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
Old 07-22-2008, 08:10 PM Re: Ajax/php rate script..need help please
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Quote:
Originally Posted by JeremyMiller View Post
You will need to make this change everywhere you're told to include something that isn't immediately there.
I think you missed that admonition. There are quite a few references like that and you need to hunt them all down.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 07-22-2008, 08:21 PM Re: Ajax/php rate script..need help please
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
Trades: 0
Jeremy thanks for answering me, but I am not new to php. I understand how includes work.
I have my index.php file on the root and the script files under the ajax_rate folder( using wamp) .
I used this method for including: require('ajax_rate/_drawrating.php') and the scripts works until I click it to make a rating and then the working.gif picture comes on and never goes until I reload the page.
__________________

Please login or register to view this content. Registration is FREE
scutari is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Ajax/php rate script..need help please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.94100 seconds with 12 queries