Weekly Rotating Content

May 5, 2005

looking for a simple php script that will rotate html or php pages weekly inside of an <iframe>?


Rotating Content From Db?

Oct 8, 2006

I am using php & sql to display an image and information on a home page. I would like for this image and information to rotate every 5 or 6 seconds, using a different record in teh database. Right now, I am calling a record using RAND() LIMIT 1. I assume this will take two steps:

1. changing my query to build an array with the results

2. Using some sort of script to refresh this object on the page after so many seconds and move to the next record in the array.

View 4 Replies View Related

A Digg-like Rotating Homepage Of Popular Content - Include Date As A Factor?

Apr 26, 2010

I am building an advanced image sharing web application. As you may expect, users can upload images and others can comments on it, vote on it, and favorite it. These events will determine the popularity of the image, which I capture in a "karma" field. Now I want to create a Digg-like homepage system, showing the most popular images. It's easy, since I already have the weighted Karma score. I just sort on that descendingly to show the 20 most valued images.

The part that is missing is time. I do not want extremely popular images to always be on the homepage. I guess an easy solution is to restrict the result set to the last 24 hours. However, I'm also thinking that in order to keep the image rotation occur throughout the day, time can be some kind of variable where its offset has an influence on the image's sorting.

Would you recommend the easy scenario (just sort for best images within 24 hours) or the more sophisticated one (use datetime offset as part of the sorting)? Would it be best to run a scheduled service to mark images for the homepage, or would you advise a direct query (I'm using MySQL) As an extra note, the homepage should support paging and on a quiet day should include entries of days before in order to make sure it is always "filled"

View 4 Replies View Related

Weekly & Bi-weekly In Php

Oct 3, 2007

I'm quite new to php and now working with the popup box that appears for the first person who login to the system daily, weekly and bi-weekly. So,how to check whether the person is the first person who login to the system and popup a message box for him?

View 5 Replies View Related

How Can I Run A Script Say, Weekly?

Jan 22, 2003

I have an online scheduling system that I'm currently producing, and I'd like to be able to have a simple script run once a week to delete entries from the database as they get old. Basically jobs will "remove themselves" 4 weeks after they have passed, since they won't be relevent anymore. Anyone know how to accomplish this? I'm using PHP and mySQL running on an apache server.

I could always just set-up some page that I can go to to tell the database to clean itself up, but it would be nice to have it done automatically.

View 4 Replies View Related

Mysql - Weekly

Apr 6, 2006

I select a different MYSQL record from DB of 15-65 records, to show each week - the DB is updated about every 2 weeks. The record displayed changes each week. :I was doing this finding the first ID number and adding the current week number (1-5) to it, then showing that record, but I now want to be able to delete records.

View 1 Replies View Related

How To Do Weekly Rank?

Nov 16, 2006

I have a top rank system, with users points. How can I add weekly rank?

View 4 Replies View Related

Showing A Weekly Program

Jul 17, 2005

Maybe I haven't been able to find the answer in Google because I didn't know
how it is called exactly but I am still puzzling about an easy solution to
update weekly the services of the local church. It should be done without
mySql. The ideal situation would be that php could read the appropiate data
from a text file, so the text file can be easily edited and uploaded by one
of the church's voluntary workers.
The text file could look like

Zaterdag 25 oktober.
10:00 Pastor P. Jansen
11:00 Pastor W. Dirksen
Zondag 26 oktober.
12:00 Pastor P. Dirks
Zaterdag 1 november
10:00 Pastor J.Hendriks
Zondag 2 november
9:00 Pastor G. de Vries

I would like a function that reads the whole tekst and only publishes the
services for the next weekend. I think I will be able to make a function
that converts the date written in Dutch to an English string and than this
will be converted to a real date, but how can I make php show not only the
date but also the services for that weekend?

If there is info on the web about this,tell me what keywords I
should enter in Google.

View 6 Replies View Related

Send 100.000 Emails Weekly ?

Oct 11, 2010

On my blog, I have 100.000 subscribers and I want to send them an update email weekly. How can I do that with PHP ?

View 7 Replies View Related

Weekly Calendar - How To Achieve This?

Nov 6, 2009

I am looking at creating a weekly calendar. The calendar will read from Monday - Sunday. Does anyone know of any examples or tutorails on how I can achieve this, as I have tried searching without no results.

View 1 Replies View Related

Date Question.. (weekly Formatting)

Oct 23, 2001

I'm working on a form to enter a weekly report. The week begins every sunday. My idea is to select every sunday for the current and next 2 mons, then populate this info in 3 select boxes:
[date] [mon] [year]

For example this mon of October has 4 Sundays in it.
7,14, 21,28. so i will have a drop down list
including the dates the another with the mon and finally the year.

Here is the code i was able to dig out from this forum.
It displays the current month (+2) in the drop down box.
The commented code i have added.

View 2 Replies View Related

Calculating Date Of Weekly Meeting

Jul 15, 2003

Just say I have a chat session on my site at the same time every week (eg - Friday 4pm EST). How can I calculate the time/date of the next meeting. Eg - if the current time is Thursday morning, it'll be the following day. If the current time is Friday afternoon, it needs to calculate the session in 7 days time (eg - that Friday's session has already ended). So is there a way I can calculate the date of the next session based on the current time/date? And how long till the next one? So my output would be "the next meeting is in 3 days, 22 hours and 12 minutes, on Friday 23 May 4pm"

View 3 Replies View Related

Using PHP My Admin To Set Up A Database That Updates Weekly? How?

Jan 24, 2005

I am trying to learn how to create a database that is updated on a weekly basis from an HTTP datafeed. The link changes weekly (see sample below...notice the date at the end). I think a CRON task would be the best way (am I right?), but I have never written a CRON task.

Can anyone help with this?

View 1 Replies View Related

Sending Weekly E-Mail Automatically

Jul 17, 2005

I maintain a site for an athletic club, and on it I have a form that people can submit that requests a free guest pass. The form contents are sent to an address at the club, and then the club contacts the person to make an appointment. The club would like to start logging the requests and then get weekly updates sent to them via e-mail of all the guest pass requests submitted.

Logging the requests and creating the e-mail with all the requests is easy enough. What I would like to know is if it possible to have the e-mail created and sent automatically on a weekly basis without any interaction from the user. I've looked through the PHP and MySQL manuals and didn't see any type of reference to this.

View 3 Replies View Related

Tracking Monthly And Weekly Stats

Jun 6, 2005

I have a site where members can host mp3's. I am trying to track total play stats for each song in monthly, weekly, and all-time form.

My current setup is working but extremely slow. Basically what I have is one table for monthly stats, one for weekly, and the song table itself has a column for all-time, weekly and monthly stats.

When a member clicks play on a song,..it inserts the songid, bandid, and playdate (now()) into the monthly and weekly charts. It then adds one to the alltime play column in the song table. Code:

View 4 Replies View Related

Email Text File Weekly

Jan 27, 2010

I have a site with a php login control that writes the login information (username/password/time stamp) to a text file after a successful login. I am trying to figure out how to have that text file emailed to me every week so I can keep track of who has been to the site. The site is on a linux server, so I thought about a cron job but I am not sure how to go about it.

View 1 Replies View Related

Use Crontab For Sending Weekly Email?

Mar 10, 2011

i am new to php... and i dont know how to use crontab widget. how to send weekly emails...

View 2 Replies View Related

Contact Form With Weekly Limit?

Sep 30, 2010

Multiple contact forms on blog that basically send questions to different email accounts, but also have a limit of say 5 emails per week to each account.After the limit of 5 has been sent for that can display a message stating the weekly limit has been reached.an experts Q&A section but the experts only agree to 5 emails every week and don't want any more emails than that.using the Contact Form 7 plugin for Wordpress for the multiple email accounts bit but don't really know how to do the weekly limit.

View 1 Replies View Related

Send Out A Weekly Email Of Updates?

Feb 29, 2008

I was trying to figure out how to send out a weekly mailer of items updated to customers. Let's say sme eople purchase computer books from me, and upon registration, they opted in to receive emails on new computer books that we receive. I want an email sent to them once a week on any new computer books we received in, if there were any new books. If no new books, then they don't need the email. It doesn't matter what day they get sent the email, as long as it's just once a week.

View 8 Replies View Related

How To Show Weekly Monthly Data In A Report.

May 15, 2007

Currently I display the data in a daily format. I have a form that the
users submits the date range (from say 20061224 to 20070530) and the
data is displayed daily.

I like to know how I can show the data in weekly and monthly way.so
that for the range shown above I would have the monthly or weekly

Unfortunatly the date format in the db has the type text and is stored
as yyyymmdd.

i.e table.

date, sales, product and I can show daily only.

View 1 Replies View Related

Display Days Weekly By Giving 2 Dates?

Jan 15, 2011

I'd like display dates by week number between giving 2 dates like example below. Is this possible in PHP? if the dates are 2010-12-01 thru 2010-12-19, it will display it as follows.



View 5 Replies View Related

Point Of Interfaces In A Weekly-typed Language?

May 3, 2010

I've never been able to figure this out. If your language doesn't type-check, what benefits do interfaces provide you?

View 9 Replies View Related

Image Switcher Change From Microtime To Show Weekly Pic

May 22, 2007

I have a section on my site that I want to show a particular image each week. I currently have a randomize function using shuffle but this seems to change the image every time you change the page. I want it to actually change weekly if possible. Any idea how I can do that? Code:

View 8 Replies View Related

Create Graphs From Using Data In The Database On Weekly Basis?

Apr 11, 2011

Im developing Health site using PHP and mysql. I want to create graphs from using data in the database on weekly basis.

View 5 Replies View Related

Rotating Image

Jul 23, 2005

Is anyone aware of a method to rotate images using PhP GD library? (I mean: Landscape to portret orientation rotating). I am at a loss, and cannot really find anything good? am I missing something here?

View 3 Replies View Related

Rotating Sig With Matching Ava Help

Jul 31, 2006

im trying to get a script to work that has a rotating sig and then the ava to match it but i could only get the sig to rotate dunno how i shud aproche getting the avatar to match any ideas? Code:


$extList = array();
$extList['gif'] = 'image/gif'
$extList['jpg'] = 'image/jpg'
$extList['jpeg'] = 'image/jpeg'
$extList['png'] = 'image/png'

$fileList = array();
$handle = opendir("./");
while ( false !== ( $file = readdir($handle) ) ) {
$file_info = pathinfo($file);
if (
isset( $extList[ strtolower( $file_info['extension'] ) ] )

View 7 Replies View Related

Php Rotating Images

Nov 25, 2005

I need to have a script that rotates images very simple script that just rotates picture what would be the best way to go about that. i have looked on google and found that either imagemagick or gd2library.

View 2 Replies View Related

Rotating Images

Dec 1, 2005

im using php 4.3.8 witch is bundled with gd2 lib running with apach1.3 ..i am using a template with php and i am trying to have a function or some sort of code rotate an image from a button through my template and then submitting my rotated image on my page....any ideas?

View 10 Replies View Related

How To Set Up Rotating Images

Jul 9, 2011

So I've been looking around for a way to rotate my background image, Probably every 7 or 8 seconds. The problem is that it seems to me unclear how I would go about using the javascript of php code. Would I put it under the tag or does it go in the body? Or do I upload it to my server? Sorry if this seems like a basic question, I am just a begginer.

View 1 Replies View Related

Rotating Webpage Headline

Jul 31, 2001

I have a webpage that looks like a sales letter. To test different headlines for their sales pulling power, I want to rotate several headlines.

Ideally, they should be sequential. i.e. i would have 4 headlines, for example, and would appear Headline 1, 2, 3 and then 4. On the 5th visitor, Headline 1 would then appear. Get my drift?

What is the best way to achieve this?

View 14 Replies View Related

Lossless Rotating With Imagemagick

Sep 20, 2003

I have a photoalbum where one can upload files and then put a title and comment to the image. I also have added the feature to rotate images 90 and -90 degrees.

Each time (why would you rotate it more than once?) you rotate the image, it gets saved with jpeg-compression and it will damage the file. How do I make a non-lossy rotation with either Imagemagick or possibly the GD-library?

View 2 Replies View Related

Php Image Rotating Problem

May 20, 2007

i have a simple php script that rotates a php image every time the page is visted or refreshed. on my non-rotating png images I have a behavoir iepngfix.htc applied to them so they work in ie6. I am trying to do the same wiht the images that are rotated by the php script.

View 4 Replies View Related

FPDF Rotating Text

Mar 2, 2006

Does anyone know how to rotate text by 90degrees using FPDF.org?

View 4 Replies View Related

Rotating In Order, Not Random

Jun 15, 2006

I'm using a small script that randomly rotates words/html through a single line from a text file. I'm trying to rotate the list in order so the next refresh would go down the list.

<? $textfile ="qoutes.txt";
$items = file("$textfile");
$item = rand(0, sizeof($items)-1);
echo $items[$item];

View 12 Replies View Related

Simple Rotating Ad Script

Apr 30, 2005

having a bit of a problem with my simple php ad script. The thing is i want to rotate the ads randomly.

This is my layout

Country ¦ Ad1 ¦Ad2 ¦ Ad3

however i ran into a bit of a problem, when suppose one of the ad space is blank say for example it is ad2 that is blank, how do i implement a loop to see ad1 or ad3 (randolmy), and if one of them is not blank then randomly display the corresponding ad.

gotten this far



View 1 Replies View Related

Rotating Images And Text?

Jun 23, 2011

I want to have an image with it's corresponding block of text rotating every few seconds on my website. Just like these guys [URL]

I know I can get a javascript to rotate the images but I haven't found where I can have the block of text alongside rotating to suit the images.

View 4 Replies View Related

Rotating Background In Wordpress?

Apr 6, 2010

how to rotate a background image on our site atlantic surf company

the one with the mountain at the top i would like that to change between a few images every 30 sec or so as i have just been hired here as the web admin im trying to get this sorted for them and dont really know the structure of everything in here

View 1 Replies View Related

Banner Rotating Image Script

Nov 17, 2006

how to make rotating image banner,but i would like to know how to load on remote place like forums and similar.For example,i would like to someone who load site with my signature or whatever each time see different image on different link.Since forums and similar services allow linking on images directly only,is that possible to do?

View 3 Replies View Related

Passing Variable In A Rotating Script

Oct 27, 2005

I have a PHP page, that generates a variable i.e. $var = xyz This page also has code on it that uses a ROTATING script that pulls text files from another directory and displays them at the appropriate places on my page where the code is inserted. What I want is for my $var to be available to the TEXT files that are included and rotated with my rotating script. $Var is used in the text files as a word in a paragraph, right now I get nothing so I know my echo "$var"; is working in my text file but the variable is empty.

View 2 Replies View Related

Black Background When Rotating Image?

Jul 6, 2011

Im trying to rotate a PNG image with PHP. The image rotates but a black background appears. This is my code:


View 1 Replies View Related

Can't Make The Background Of A Png Transparent After Rotating It?

Nov 11, 2010

I tried literally all day yesterday trying to figure this out. I rotate an image via imagerotate(). I get a black background where the image isn't covering anymore. I have tried everything i cant think of to make that background transparent.. here is my current code..

function rotate($degrees) {
$image = $this->image;
imagealphablending($image, false);
$color = imagecolorallocatealpha($image, 0, 0, 0, 127);
$rotate = imagerotate($image, $degrees, $color);

I am really starting to get ticked off. Can someone show me some working code? Could it be something wrong with my WAMP server and dreamweaver? because i even tried this.. [URL] and it still puts out either a black or white background..

View 1 Replies View Related

Rotating An Array Leftwards X Times?

Apr 20, 2011

Is there a more concise way of rotating an array leftwards X times than this?

PHP Code:

View 1 Replies View Related

Rotating Proxies Lists And Applications?

Jan 15, 2010

Set up a rotating proxy for an application i am building.I have a cURL script that reads a page, but i need to seem like its not being called from the same IP address each time.I would like to have a list of proxies that i can rotate between each call i make.I have looked at Glype and PHPproxy but both i cannot get to work correctly.Does anybody have any suggestions, script examples or good info web pages they can provide.I would be interested in using Glype or PHPproxy if someone can point me in a good direction to use them correctly.

View 1 Replies View Related

Randomly Rotating Images From Folder?

Jan 20, 2011

I'm trying to write code that will let me pull 10 out of 15 images out of a folder and display them on my site. The images are all different, and I don't want dupes to show. So far, I have the following code figured out:

$s = array ("image.jpg", "image2.jpg"); // as many images as you want
$n = rand(1,len($s)); // randomly pick a number between 1 and the
length of the array
echo "<img src='". $s[$n] .'">"; // create an image tag for the randomly selected imagine (value of the randomly defined key)
array_pop($s, $n); // This piece isn't right, it needs to EXTRACT and delete the $n array element.
// Next random image


Any ideas what array_pop should be to work properly?

View 1 Replies View Related

Image Quality Issue On Rotating And Merging?

Jan 26, 2011

When i merge two images as one background and the other as target image. I m using pngs. When I rotate the target image and then merge, yes everything is fine except that the edges of rotated image becomes zigzag i means not smooth. How to make the edges smooth using php GD???

The code I am using:

// Create image instances
$dest = imagecreatefrompng('bg.png');
$src = imagecreatefrompng('text.png');[code]....

View 1 Replies View Related