Jump to content

shadow-x

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

shadow-x's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thats a good script to use met0555 so give it a go. IF you wanted to learn how to do it yourself then just ask and Orio or someone else can explain how it works and why it works that way and how you can write script like that yourself. Can i ask what the script is for though, you said its not for hacking but what [i]is[/i] it for?
  2. It seems fine to me, why do you ask? are you getting an error message or just wanted to check the coding? one way of checking the format and coding of the script is to simply run it on a webserver (either locally on a devlopment environment or on a webhost), If there are any real problems with the code php will give out an error message. Unless its something minor that wont affect the code, in which case it normally isn't worth worrying about anyway.
  3. Hi, i recommend trap17.com im hosted there right now for free, you get tons of space and bandwidth (i cant remember how much now, its been a while since i signed up) plus sql, php, subdomains, ftp for subdomains aswell, email forwarders, Cpanel to help you configure your site complete with logs, network tools, ssl tools phpmyadmin etc... and a URL of mysite.trap17.com  but you can use any other domain name with it, including purchasing one from trap17. The only catch is you need to post on the forums, but its easy! The forums are general including a section for php programming talk, graphics, other programming, website discussion, games, general talk etc... All they ask is that you get 30 credits for the best hosting plan or 10 for the second best. These will take you max 5 days to get and at the moment i have 170+. The hosting is well worth it and they have no ads and completely free. there is also a second version of this at trap17.NET where they offer exactly the same for free but you have to have one banner ad on your website. Trap17 is the best host ive used, they also have paid plans from about $3 per month with 30+gb of bandwidth and 3gb of space. Worth considering if you want paid hosting :)
  4. This might be a silly question but its an easy mistake to make, have you turned on the php proccessor? This is done (at least on windows in every installation Ive seen) by running a batch file or other executable so try any executable you might have with the word "start" in it, it will be in the home folder for the installation like "root/apache/". Ive had this before and it was because i completely forgot to turn apache on ::) Another thing is to make sure that the URL is definitely http://localhost/file.php and make sure it hasn't gone back to root/dir/dir/file.php although as you said the first file worked its likely that apache is on but the script is in the wrong folder. IN my installation i have to go into a few folders until i get to the htdocs folder. I belive on an X server the live directory is var/www  so make sure that the script is in a folder like that or the corresponding folder if its different. If its not in the right place it might not get parsed as php. Thats all i can think of for now. Good luck.
  5. Hi, Ive never had to install GD but i the site where the download of the GD library is http://www.boutell.com/gd/ read the FAQ first just to get some background info. then download the zip or tar file and either extract it then upload all files or upload the archive and extract it when it is on the server, then i assume the installation instructions will be included or be very straightforward. As i said Ive never installed it before so this might not be everything you need to do but it should be good enough to get it running i think.
  6. I havnt got much experience with X servers but ive used GD on windows and found the site where i could download it and find documentation etc... in the FAQ (http://www.boutell.com/gd/faq.html) it says; [quote]How do I install gd on Fedora Linux? Try: yum install gd-devel Note: this might not install the latest, most-cutting edge version of gd, depending on the version of Fedora you are running and how current their gd packages are at the moment. [/quote] I'm not sure if that means download the library first, if you do need to download it it is also on that site, if not then that should give you A version of GD tho as it says not always the latest one but methinks downloading it from that site will help :)
  7. Hi there, Ive made a simple script that will show a text field asking for the number of menus to create then once submitted it will generate that many menus and label them in reverse order, eg the user wants 10 menus they will be created as menu10 menu9 etc... menu1 [code]<? //number will be a variable telling how many times to repeat the code. $number = $_GET['number']; //check to see if the form has been submitted if($number == NULL){ //not subitted so show the form echo "<HTML> <!-- any HTML code the form itself will go here eg... --> <center>Number of menus to create<BR><form action=form.php method=get><input type=text name=number><input type=submit value=Create></form>"; } else { //the form has already been submitted by the user so proccess the info. //first we will set up the top of the HTML page echo "<HTML><head><title>A title!</title><body> <BR> <!-- anything you want to show on the HTML page above the menu section has to go here! -->"; while ($number > 0) { echo " <!-- all html code here for the menus eg <option blah blah name=$number> (name=$number names the fields or other menu with the number it is, eg if the user wants 3 menus they will be called 1, 2 and 3 in REVERSE order.) Only ONE menu here,it will be repeated!--> Menue $number <BR>"; //now take one away from the number variable $number = $number - 1; } //now we end the HTML page here echo "</body></HTML><!-- anything to go at the bottom of the HTML page below the menus goes in this line! -->"; }; ?>[/code] All formatting can be changed, ive called it form.php but that can be changed also to save it as you like but remember to change the action on the form also! Its only basic so use it as you like :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.