Unstoppable Domains โ€” Get your daily AI drops report

Scripts!!!

SpaceshipSpaceship
Watch
Impact
13
I am learning php, i know quite a bit of php and how to use mysql with it, what script shall i make? Im not sure what to make first thats simple but is gonna challenge me a bit so i learn.

Any ideas appreciated thanks!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
i started off making a random banner script, then a user autentication script.
 
0
•••
hmm i might do a random banner script, dont need to use mysql for that i think, I want to do stuff with mysql quite a lot because i think it will help me out more.

Ill think how to code the random banner script then ill give it a go Cheers.


Keep the ideas coming.
 
0
•••
make a PPC search engine script.... Ill test it for ;) (serioulsy, I really need one)
 
0
•••
lol bit outa my leauge for the minute i think, I might do one once i get a bit more into php tho. Keep ideas coming.
 
0
•••
make a random banner rotating script, i need one lol
 
0
•••
I would concentrate on some of the newer stuff emerging on the web at the moment, there are a hatful of banner scripts out there but only a handful that parse xml or rss feeds for your website, these will be popular in the future so you may as well ride on that wave than concentrate on a saturated / fading advertising method.

:imho:

If you want to work with Mysql you could try and make a script to pull data from your tables to create RSS feeds for your site. I have noticed a few tutorials on this topic on the web that may get you started. :tu:
 
Last edited:
0
•••
what does rss mean exactly?
i can pull data from the table easily, then i take it id have to make a script to collect the data from a site? then save in the data base then move to my site?


I started a banner roator script but im havin some problems with the codin (in other words i messed up) ill post it here wen i get it workin

PHP:
<?

srand(time());
$rand = (rand()%4);


switch ($rand)
{
case 1:
	echo 'banner 1<img src = "ban1.jpg" width="150" height="150"  />';
	break;
case 3: 
	echo 'banner 3<img src = "ban3.jpg" width="150" height="150"  />';
	break;
case 2:
	echo 'banner 2<img src = "ban2.jpg" width="150" height="150"  />';
	break;

}
?>

Whats wrong with that? it should work

o wait i got it, the double quotes in the html are stoppin the echo ill use single see if that works

It works with single quotes wooo im a happy chappy!!


Thats the correct code, shows a random banner. For some reason everynow and then it shows a blank page i dunno how i can resolve it.
 
Last edited:
0
•••
Rss

It started of as Rich Site Summarry, now it seems to be Really Simple Syndication.

I am afraid I cannot give many programming hints, recently learning it myself. It has been picked up by the big news sites and portals now like CNN, BBC and Yahoo etc so its here to stay and not simply a flash in the Pan.
 
0
•••
ahh okay, Ill have a look around on google. Dunno if ill do rss rite now, after doin that first script new ideas are forming in my head,bigger then i could of imagined before, but im thinkin of them simply if you know what i mean :)
 
0
•••
Why not a forum or a cms?
 
0
•••
wat does cms stand for again?

I thought about a forum, I think thats a bit to advanced, I dunno how to make all the different catergories. unless i added each one in a diff table....could work im gonna have to think about it for a long time. Not sure im there yet
 
0
•••
ammo said:
I am learning php, i know quite a bit of php and how to use mysql with it, what script shall i make? Im not sure what to make first thats simple but is gonna challenge me a bit so i learn.

Any ideas appreciated thanks!
well if u want to make money while learning php .. contact me in pm..

i have a great idea for a script.. but dont know php thats problem

regards
 
0
•••
Pm sent. Thanks!
 
0
•••
Here is the banner rotation script I made. Feel free to use it, or use it as a guide to making your own. This will also help out xtreme-forums. Here it is. I commented the hell out of it so its easily understandable

PHP:
<?php
//Random Image Generator
//By Joe Tito ([email protected])
//DesignersPark.com

//*****How to work the script*******
//The <div style="text-align:center;"> tag aligns your image to the middle of the page. It can be changed to "left" or "right" if you wish to change the alignment of the image
//Fill the <a href="...."> field in with the location you want the image to link to
//Fill out the <img src="...."> field with the path to the image that you want to display
//Fill in the alt="...." with the text that you wanted to popup when you scroll over the image

//Replace the "3" with the total number of ads that you have to rotate
$numbanners=3;
srand((double)microtime()*1000000);
$ad = rand(1,$numbanners);

switch($ad) {
	case 1:
		echo'<div style="text-align:center;"><a href="http://www.google.com"><img src="http://www.designerspark.com/images/colourburst/finaltwotone.jpg" style="border:1px solid #000000;text-decoration:none;" alt="The text that will popup when you scroll over the image"></a></div>';
		break;
		
	case 2:
		echo'<div style="text-align:center;"><a href="http://www.yoursite.com/images/imagename.jpg"><img src="http://www.designerspark.com/images/colourburst/afterblur.jpg" style="border:1px solid #000000;text-decoration:none;" alt="The text that will popup when you scroll over the image"></a></div>';
		break;
		
	case 3:
		echo'<div style="text-align:center;"><a href="http://www.yoursite.com/images/imagename.jpg"><img src="http://www.designerspark.com/images/colourburst/final.jpg" style="border:1px solid #000000;text-decoration:none;" alt="The text that will popup when you scroll over the image"></a></div>';
		break;
}

//Please do not remove the following code from this script. Since we offer these scripts to you for free, we would appreciate
//you advertising where you got the script.

echo('<div style="text-align:center;margin-top:10px;">
<a href="http://www.designerspark.com"><img style="border:1px solid #000000;text-decoration:none;" src="http://www.designerspark.com/images/button1.png" /></a>
</div>'); 
?>
 
0
•••
Nice script bit more complicated then mine but along the same lines so im not doing to bad, can i ask what one line means

srand((double)microtime()*1000000);

i dont get what the microtime bit means
 
0
•••
ammo said:
wat does cms stand for again?

I thought about a forum, I think thats a bit to advanced, I dunno how to make all the different catergories. unless i added each one in a diff table....could work im gonna have to think about it for a long time. Not sure im there yet

cms = content managment system

good challenge for me learning asp.net was to build either
a) a guestbook
b) an address book
c) shoutbox

after studying asp.net for one week im learning how to build an asp.net / mssql powered forum
 
0
•••
Try making a blog (or any of the 3 things mentioned by adam_uk :gl:
 
Last edited:
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back