Jump to content

Poi

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Poi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. How might i make ti so with this file viewing code, it does not show the first 2 files listed?(It shows 2 files that arent there.) <? $dir = "uploads/"; if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "Filename- " . $file . "<br><form method='post' action='delete.php'> <input type='hidden' name='file' value='$file'><input type='submit' value='Delete'> <br>\n"; } closedir($dh); } }
  2. Hey, i have made a blog script, just for fun, andn it works great but when i go to the add blog page, and fill it out, it puts it into a file called blog.php, and it adds it to the bottom, is there a way i can add it to a specific location? Blog.php(example): Welcome! to our site yay!(stays here) (New content here) (Old content gets pushed down here)
  3. Try this: [code]<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <iframe src="header.php" name="topFrame" width="100%" height="100%"> <iframe src="index.php" name="mainFrame" width="100%" height="100%"> <iframe src="footer.php" name="bottomFrame" width="100%" height="100%"> <noframes><body> </body></noframes> </html>[/code] Then when you have a link IN a frame make it look like "<a target="[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]mainframe[!--colorc--][/span][!--/colorc--]" href="[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]url[!--colorc--][/span][!--/colorc--]">[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]Your text[!--colorc--][/span][!--/colorc--]</a>" And edit the parts in red Or simply use php: [code] <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <?php   include 'header.php'; include 'index.php'; include 'footer.php'; ?> <noframes><body> </body></noframes> </html>[/code]
  4. OK, i have a script, that creates 2 files, one is counter.txt and the other index.php, but with the index.php is created it seems to think, when i have a variable that needs to go in the other page, it thinks that its just a normal variable and converts it to whatever that variable equals... For Example!: Register.php(Note this is a simple example: <?php create file="index.php" content=" <?php [b]$r="r"; echo $r . "Is r!";[/b] ?>" ?> Index.php: <?php [b]="r"; echo . "Is r!";[/b] ?> Is there a way to bypass this or something?
  5. Poi

    Id=?

    Hey, i was wondering how do i create a a page, but have the url display as [a href=\"http://url.com/index.php?id=<whatever>\" target=\"_blank\"]http://url.com/index.php?id=<whatever>[/a] Or maybe i heard wrong, im not sure, but it makes a site look more "Professional"
  6. Hey, i just got into php alittle today, and i want to make a code.. im having troublews finding the right info.. First, you enter the page, it adds 1 to a # in a different file, and displays it, i know its just a hit counter, but could you please help me.. Thank you! Or, somethign that i can have people enter text in a form and it saves it to a file for me to read later.
×
×
  • 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.