Jump to content

gibigbig

Members
  • Posts

    125
  • Joined

  • Last visited

Everything posted by gibigbig

  1. hey, i figured it out, all i had to do is close the old <?php tah before opening a new one. i removed the top and bottom <?php tags completely and left the little ones in between and the scripts works fine now. thanks for your help guys, couldnt have figured it without u. ps: admins, you can put htis thread as "solved" now
  2. u know i have no idea this was from a premade login/logout script i downloaded and editing to suite my site it works fine, as you can see a my site www.narutoking.com/main.php however, for the life of me i cant figure out why i cant put another <?php tag inside another open <?php tag. i mean, it DOES make sense right?
  3. yes, my server uses php. i'm baffeled at this problem ???
  4. yes madtechie, i know about that. but if u look carefully at my code, you'll see the top and the bottom are already enclosed in php tags, so the include function should work anywhere inside these tags....right?
  5. yes, i'm trying to run a php file but instead in another php file when i go test the script, it just says include ('mangatop.php'); in plain text and the script is not executed. why is this?
  6. <?php include ('protect.php'); echo <<<html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://www.purl.org/dc"><head><title>PHP ADVANCE USER MANAGEMENT</title> <link rel="stylesheet" href="style.css"> <style type="text/css"> <!-- .style4 {font-size: 10px} .style5 {color: #66FF66} .style6 {font-size: 10px; color: #66FF66; } .style7 {color: #FF9900} .style8 { color: #FFFFFF; font-weight: bold; font-size: 16px; } .style10 {color: #66FF66; font-size: 16px; } --> </style> <body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0" text="#000000"> <div align="center"> <!--top row: main navigation--> <!--UdmComment--> <table width="795" height="0" border="0" cellpadding="0" cellspacing="0"> <tbody><tr bgcolor="#ffffff"> <td width="347" height="0" bgcolor="#0F0F0F"><img src="pics/header.gif" width="347" height="131" /></td> <td width="448" background="pics/header_scatter.JPG" bgcolor="#ffffff"><p align="left" class="attribution style7" style="margin: 0.6em 0em; line-height: 1.2em;"><span class="attribution style7" style="margin: 0.6em 0em; line-height: 1.2em;"><span class="style8">WELCOME</span> <span class="style10">$clientname</span></span><span class="style10">,</span> <span class="style4">You are logged in. You can manage your account below. </span></p> <p align="right" class="attribution" style="margin: 0.6em 0em; line-height: 1.2em;"><font face="Arial Black"><span class="style4"><span class="style5"><a href="main.php">[HOME]</a></span></span></font><span class="style6"> [ <font face="Arial Black"><a href="inbox.php">INBOX</a> $tmsgs</font>] <font face="Arial Black"><a href="compose.php">[COMPOSE] [ </a><a href="memberlist.php">MEMBERLIST] </a></font></span></p> <p align="right" class="attribution style4 style5" style="margin: 0.6em 0em; line-height: 1.2em;"><font face="Arial Black"><a href="memberlist.php"> [ </a><a href="edituser.php">SETTINGS] [ </a><a href="uploadpic.php">UPLOAD PIC] [ </a><a href="index.php?id=logout">LOGOUT</a></font>] </p></td> </tr></tbody> </table> <table width="797" height="167" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td width="264" valign="top" background="pics/ok_01.gif"> </p> <div><br />include ('mangatop.php'); </div></td> <!--middle column: main content--> <td width="264" valign="top" background="pics/ok_02.gif"><p> </p> <p> </p> <p> </p></td> <!--right column: navigation--> <td width="263" valign="top" background="pics/ok_03.gif"><p> </p> <!--/UdmComment--></td> <td width="8" valign="top"><img src="pics/ok_04.gif" width="8" height="165" /></td> </tr></tbody> </table> <table border="0" cellpadding="0" cellspacing="0" width="794"> <tbody><tr> <td height="20" colspan="2"> </td> </tr> <tr><td height="1" colspan="2" bgcolor="#ffffff"></td></tr> <tr align="right"> <td width="369" height="93" background="pics/newletter.gif"><div align="left"></div></td> <td width="438" rowspan="3" background="pics/back.jpg"><div align="left"></div></td> </tr> <tr align="right"> <td height="166"><div align="left"><img src="pics/random.gif" width="363" height="218" /></div></td> </tr> <tr align="right"> <td height="114"><div align="left"><img src="pics/adver.gif" width="368" height="114" /></div></td> </tr> <tr><td height="20" colspan="2"><img src="pics/bottom.gif" width="803" height="188" /></td> </tr> </tbody> </table> <p> </p> </div> </body></html> html; ?> heres the code
  7. im trying to "include" a file with a php tag with the following code: <?php [junk code] include ('test.php'); [junk code] ?> i get the " include ('test.php'); " as plain text, is something wrong with my code? ???
  8. NEVERMIND i found out the problem, i was uploading it under wrong settings. it was a stupid mistake yes. can someone close this thread please.
  9. this dumb error keeps coming up whenever i try to protect a page. i used the 'include' function to add the script to protect certain pages and then this error keeps coming up. can someone please explain what it means? Warning: include(protect) [function.include]: failed to open stream: No such file or directory in /www/110mb.com/g/i/b/i/g/b/i/g/gibigbig/htdocs/test.php on line 1 Warning: include() [function.include]: Failed opening 'protect' for inclusion (include_path='.:/usr/share/php') in /www/110mb.com/g/i/b/i/g/b/i/g/gibigbig/htdocs/test.php on line 1 ps: yes all the files a chmod to 777 and yes all the relevant files are in the same directory
  10. hey, im in a bit of a jam here. i've made a login script and integrated it in my website. the home page looks normal with the login box, but when u log in, the layout becomes all distorted and rearranged. I've looked over my layout design and everything seems ok so then something must be wrong with my code. my website is www.narutoking.com and a testing login is username: testing password: testing my code for the login script is <? include("session.php"); ?> <html> <title>Jpmaster77's Login Script</title> <body> <? if($session->logged_in){ echo "<strong>Logged in! </strong>"; echo "Welcome <b>$session->username</b>, you are logged in. <br><br>" ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] " ."[<a href=\"useredit.php\">Edit Account</a>] "; if($session->isAdmin()){ echo "[<a href=\"admin/admin.php\">Admin Center</a>] "; } echo "[<a href=\"process.php\">Logout</a>]"; } else{ ?> <? ?></h1> <form action="process.php" method="POST"> <table align="left" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="68"><font size="2">Username:</font></td> <td width="174"><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td> <td width="138"><font size="2"> <input name="submit" type="image" src="pics/loginbutton.gif"submit" value="Login"> </font><? echo $form->error("user"); ?><font size="2"> <input type="hidden" name="sublogin" value="1"> </font></td> </tr> <tr> <td><font size="2">Password:</font></td> <td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td> <td><? echo $form->error("pass"); ?> <input type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>> <font size="2"><font size="2">Remember me</font></font></td> </tr> <tr> <td colspan="2" align="left"><font size="2">[<a href="forgotpass.php">Forgot Password?</a>] Not registered? <a href="register.php">Sign-Up!</a></font></td> </tr> <tr> <td align="right"></td> </tr> <? } echo "</td></tr><tr><td align=\"center\"><br><br>"; ?> </table> </body> </html> please help
  11. nevermind, i found the problem. the folder "include" where i kept "session.php" on my server was locked on the permission thing. i channged the permissions and the scripts works fine now. thanks for you support though. l8a
  12. oook, the script is on alot of files, thats why i zipped it. too long to post. So can you just explain what the error means?
  13. im having trouble installing a login/logout script on my site. the error Fatal error: Call to a member function on a non-object in /home/www/narutoking.com/include/session.php on line 58 keeps coming up. I dont know what this means and how or how to fix it. can somone help. if u need to look at my scripts, i uploadd it here http://microjo.phpnet.us/script.zip thanx.l
  14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <?php session_start(); ?> <!-- #Layer1 { position:absolute; the first ten lines
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <?php session_start(); ?> <!-- #Layer1 { position:absolute; this is the first ten lines
  16. my code is too long to paste (like 500 lines) my site is www.narutoking.com so you can view the source there. thanks for the help
  17. show the first 10 lines of your index.php file in code tags do you want me to paste my code here?
  18. okay i've added the 'session start' function to the code. I've placed a new layer over the backround image, but now the layout is all messed up. can someone explain whats wrong, my page is: www.narutoking.com please view the source and tell me the mistake i made. thanks a lot
  19. okay i've added the 'session start' function to the code. I've placed a new layer over the backround image, but now the layout is all messed up. can someone explain whats wrong, my page is: www.narutoking.com please view the source and tell me the mistake i made. thanks a lot
  20. thanks a lot , problem solved, script works fine now!
  21. help me, when i try to use the 'include' function in my scripts i get this error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/narutoking.com/index.php:3) in /home/www/narutoking.com/common.php on line 3 can someone please explain what this means. thanks a bunch
  22. help me, when i try to use the 'include' function in my scripts i get this error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/narutoking.com/index.php:3) in /home/www/narutoking.com/common.php on line 3 can someone please explain what this means. thanks a bunch
  23. hey, we're starting a website and we need an experienced php coder to make a dynamic script for us, any one up to the challange, gimme a shout at [removed] l8a PS: you'll be an admin in the site obvously lol
×
×
  • 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.