Jump to content

fsxyz

Members
  • Posts

    5
  • Joined

  • Last visited

fsxyz's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. fsxyz

    Websites

    My website : http://simplesmiley.heliohost.org/
  2. ASP, but starting to learn PHP due to ASP.NET.
  3. Request a lock, I finally able to recode my pages in php. Waiting for the cpanel to work again....
  4. Call one two nine one If sick continue, contact your nearest gravedigger....
  5. Guess, I forget to post here after 1st time joining... 27, just trying to create web for my own. Trying to switch from asp to php.
  6. Parse error: syntax error, unexpected T_VARIABLE in /home/fsxyz/public_html/normalsmiley.php on line 16 Still keep having this error.... Is command set unusable with php ?
  7. Well, I'm trying to create a picture gallery. That's the loop for, to keep reading the file in a directory. That mod is for limiting picture number in a row. Uhh... this script is heavily influenced from my asp experience. So, this is my 1st time using php using any reference I can get.... I guess the mod part is wrong. Not sure with the loop.... T_VARIABLE erroe on at line 16. That place will be this line. Set $fs=CreateObject("Scripting.FileSystemObject"); Sorry, I'm really a newbie for php. ( I get those set command reference from any php examples I can get )
  8. Hello, I'm new here, just hosted a web to helio host ( why I need a new username for helio net ? ) Anyway, I need help with PHP script. Always end up with T_VARIABLE error. Here is the script : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Simple Smiley</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="links.css" rel="stylesheet" type="text/css"> </head> <style type="text/css"> <!-- .links { text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000} --> </style> <?php $PictFolder=server.mappath("/picture/normal"); Set $fs=CreateObject("Scripting.FileSystemObject"); Set $f=$fs.$GetFolder[$PictFolder]; Set $fc=$f.$files; $counter=0; ?> <body link="#000000" vlink="#000000" alink="#000000"> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="header.gif" width="800" height="100"></td> </tr> </table> <table width="800" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FF9900"> <tr bgcolor="#FFCC66"> <td height="25" colspan="2"> </td> </tr> <tr> <td width="175" valign="top" bgcolor="#FFCC66"> <table width="175" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="30" background="menu.gif"> </td> </tr> </table> <br> <a href="index.php" class="links"><img src="dot.gif" width="15" height="10" border="0">Home</a><br> <a href="normalsmiley.php" class="links"><img src="dot.gif" width="15" height="10" border="0">Normal smiley</a><br> <a href="boardsmiley.php" class="links"><img src="dot.gif" width="15" height="10" border="0">Board smiley</a><br> <a href="flagsmiley.php" class="links"><img src="dot.gif" width="15" height="10" border="0">Flag smiley</a><br> <a href="zodiacsmiley.php" class="links"><img src="dot.gif" width="15" height="10" border="0">Zodiac smiley</a><br> </td> <td width="625" valign="top"> <br> <table width="600" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <?php For each $fl in $fc; if ($fl.$Type=="GIF Image") { ?> <td><font size="2"><div align="center"><a href="download.php?Loc=picture/normal/<?php =$fl.$Name; ?>"> <img src= "picture/normal/<?php =$fl.$Name; ?>" border="0"></a><br> <?php $nama=$fl.$name; echo strreverse(mid(strreverse($nama),5)); ?> </font></div></td> <?php $counter=$counter+1; if (($counter $mod 7 == 0)) { ?> </tr> <tr> <?php } } } ?> </tr> </table> <br> </td> </tr> </table> <?php set $fs=nothing; set $f=nothing; set $fc=nothing; ?> </body> </html> The error line always at scripting file system object. Can someone help me ? PS : sorry for any typos, English is not my 1st language.
×
×
  • Create New...