Thanks for the help gregerly! Unfortunately I have to disappoint you because I just can't make it work no matter how much I kludge the code.
A database is out for now because I can't even make this work and the review pages that load may also contain a PHP script for visitor ratings. Combining those things in a DB will crush me at this point.
I have messed up your original script in every way to try and get URL's to...
User Profile
Collapse
-
Thanks for the responses.
The idea is to avoid a long web page or multiple pages to display a lot of content. There are 4 TV shows the site owner wants review extensively and probably will add more in the future. He doesn't want a page for every show and I think a really long page is a bad idea. The first thought were links in the main review page to open a popup for each review. Since pop-ups are not a good idea I thought I can use...Leave a comment:
-
Novice needs help finishing a script...
Hi,
I'm trying to use my limited PHP understanding to write a script but get stuck beyond the basics.
I want to create 1 PHP page that acts as 4 (to avoid pop-up windows) by using PHP to load one of the other pages when a link is clicked for that page like:
page1.html
page2.html
page3.html
page4.html
I know I have to define the variables for each page to be loaded,... -
THANKS jx2!!!
That really helps. And... I really learned something. I made a couple of changes to that last script so that it calls the pages instead of the inserted html. I know that's not much expertise, but it's more than I could do a few days back!
I look forward to learning PHP and maybe one day I can give some help to someone here.Leave a comment:
-
I know... I'm still a novice - in over his head... but I'm trying. I just don't know enough yet...
No matter what I do I can't get the revised version to go past the videoHTML page. I visited way over 3 times but it won't go. Is there a syntax issue or something I just don't see?
Thanks....Leave a comment:
-
Thanks very very much jx2!!!
I learned a lot from this little exercise...
I'm sticking with the no html .php approach for this one. When I learn more about PHP I'll try some simple embedded scripts.
The last issue with this script is still:
If I want the "videoHTML" page to be allowed say 3 times (instead of 1) before switching to "withoutVid eo" what would I have to...Leave a comment:
-
OK. I think I learned something - let me run this by you...
No index.html instead index.php. index.php is just the script with no HTML anything. The script calls one or the other html web page named in the script. In my case the pages are equivalent except for the video I put in each. All links on the site to "home" are linked to index.php
In this way the script sets a new cookie or reads an existing cookie...Leave a comment:
-
Thanks for the script work guys!
One thing though: the video is planned to go on the index.html page. I was hoping to keep visitors there by checking the cookie via PHP, then loading one or the other flash video into the index.html page. Is that possible? Is it too slow? If not, does the index page become a simple redirect to one or the other video pages? If it redirects, I'm concerned with search engines thinking something illegal...Leave a comment:
-
PHP w/cookies to load Flash video????
Hi,
I don't know PHP but it seems like the way to do this:
I need a home page that loads a flash video into the HTML page and auto-plays for 1st time visitors. Repeat visitors (within 15 days) will have to click on the video to play it.
I think a PHP script can be used to set or add to a cookie with a count and then check to see the count. If the count is 1 it calls for the auto-play video to be loaded.... -
I understand the time adjustment: I'm GMT-5 and the server is GMT-6, so if I use time+3600 I effectively adjust the server time to my time zone and the hash arrays schedule is entered based on my local time. But that's not the problem. It's just acting wacky.
I put in the time+3600 adjustment and to test changed the Wed schedule tobecause I'm working on it at 6:15PM on Wed. It didn't work though. I had to back down...Code:Wed => [18,20]
Leave a comment:
-
This is the current script that as far as I know, I have only "modified" by setting the times for each day of the week. Monday should be [10,11] as well, but I changed that to [6,11] to get the open time to work at the actual 11:00AM. The server checks out to be running the correct time in the central time zone.
I'm lost...
Thanks.
[CODE=perl]#!/usr/bin/perl
use CGI::Carp qw/fatalsToBrowser/;...Leave a comment:
-
All of a sudden (I think) I'm getting wacky results. I thought I tested the script during open and closed times, yet now nothing makes sense. The server is GMT-6 . I want the open time for Monday to be between 10 and 11 AM, so I set it that way. The only way I can get it to work and show the "open" graphic is by setting it to 6. The close time doesn't seem to work right at all - like setting it to 7 for 11AM (because of the 6 being 10???)...Leave a comment:
-
Great! This time I got it to run on the 1st try... Thanks!
Donation/compensation... you say tomato I say tomaaato... that's cool.
Give me some details and I'll work on it.Leave a comment:
-
He created the original script, but the new issue (links with the images) is still unanswered.
Thanks.Leave a comment:
-
You all got bent out of shape for nothing... nothing insidious going on...
I said from the start that someone else wrote the script. I couldn't find the bookmark I had for the forum where it originally was posted, so I searched Google and found some new perl forums, so I posted there. KevinADC IS THE AUTHOR of the script and should be credited 110% for his work.
If this is a big offense to you guys and don't want to...Leave a comment:
-
Thanks Miller.
Currently it is a static html page(s). All the "intelligen ce" is in the CGI where the time and day are gathered and the appropriate image selected. The html is:
I know I'm missing something conceptually here, making this more of a project than it really is but... Are you suggesting...Code:<img src="http://www.site_name.com/cgi-bin/open.pl" width="50" height="20">
Leave a comment:
-
Hmmm... does that mean an entirely new script written in a different way can do the job or that a CGI script can't do it at all? And... can a SSI be used in conjunction with the script to achieve what I need; something like redirecting based on the open or closed image? CGI + javascript?
Thanks!Leave a comment:
-
CGI Script - Modify image handler to include hyperlink
Hi,
Someone put together a small perl script for me that uses day and time to determine which of two images to display (open.gif or closed.gif). I need to modify the script to also include a hyperlink to open.html or closed.html so that if the open image is displayed it puts the open.html link on the image and the closed.html link on the closed image. The corresponding web page that loads the image is ultra basic, with a link to the...
No activity results to display
Show More
Leave a comment: