Jump to content

discorevilo

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

discorevilo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi, ive just set up my first lamp server with latest version of XAMP ([url=http://www.apachefriends.org/en/xampp-linux.html]http://www.apachefriends.org/en/xampp-linux.html[/url]), and i tryed to run my current project oPanel on it, however when it trys to include a file from olliespage.net it returnes this error [quote]Warning: include() [function.include]: URL file-access is disabled in the server configuration in /opt/lampp/htdocs/oPanel/index.php on line 23 Warning: include(-URL REMOVED-) [function.include]: failed to open stream: no suitable wrapper could be found in /opt/lampp/htdocs/oPanel/index.php on line 23 Warning: include() [function.include]: Failed opening '-URL REMOVED-' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/oPanel/index.php on line 23[/quote] can someone tell me what im looking for in the php config to enable URL file-access Thanks, EvilB
  2. guys i read and did http://www.phpbb.com/kb/article.php?article_id=143 and got my script to have the loged in and login bit right... i had to make a new common.php and other bits removing all the templates bits to get it to work, it does but now when i try to use downloads.php?cat=catname the $cat doent work at all its completely ignored and so it doesnt include the page for that catogory and so the downloads script doesnt work.. can someone help me?
  3. :o lol thanks, i fell like a n00b again  :P
  4. Im trying to code a smilple downloads page and i am getting a MySQL error that i dont understand can someone help me out, my code is this: (please note the database is connected to threw $conn) [code]<? $content = '<br><center><img src="images/downloads.jpg"><br>'; $query = 'SELECT Did,title,name,hits,version,homepage FROM `downloads` WHERE CatID = \'rat\' LIMIT 0, 30'; $result = mysql_query($query, $conn) or die(mysql_error()); $num = mysql_num_rows($result); echo $result; if($num == "0") { $content .= "<br><p align=\"center\">There are no downloads for this category yet"; $content .= "<br>[&nbsp;<a href=\"downloads.php\">Click Here to go back to the main downloads page</a>&nbsp;]</p>"; $content .= "<br><br><br><br>"; // ******NEED TO ASK NABZ ABOUT THE ALL SITE LOGIN******* //if($useradd == "true" && is_user()) { //$content .= "<a href=\"downloads.php?cat=vir_worms&op=add\">Click here</a> to submit a file"; //} } else { echo '<table width="410" height="271" border="0" cellpadding="1" cellspacing="1">'; echo '<tr>'; $count = 0; while(list($Did, $title, $name, $hits, $version, $homepage) = mysql_fetch_array($query)) { echo $name."<br>"; if($cont == "1") { echo '<td width="46">&nbsp;</td>'; } if ($count == "2") { echo '</tr> <tr>'; $count = 0; } echo"<td width=\"177\" height=\"90\"><div align=\"center\"><b style=\"text-align: center\">$name</b><br>         <style type=\"text/css\"><!-- text-align: left; --></style></style><b>Version:</b>&nbsp;$version<br>         <b>Downloads:</b>&nbsp;$hits<br>       <b>Homepage:</b>&nbsp;$homepage/div></td>"; $count++; } echo '</table>'; } //----------[ DO NOT EDIT ]----------------------------------------------   $template->assign_vars(array(                 'CONTENT' => $content, 'DATES' => '2006-2007')         );         $template->pparse('body'); ?> [/code] the error i am getting is: Resource id #7 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in rats.php on line 19
  5. ok UPDATE `nuke_users` SET chall_web=chall_web+1 WHERE user_id= 2; works in the phpMyAdmin but can someone post how it needs to be put so that i can use it from a webpage
  6. i am trying to put a challenges system into my website but i dont know MySQL well enought to make the query... a friend told me that this would work [code]UPDATE `nuke_users` SET `chall_web`=chall_web+1  WHERE `user_id` = `2`[/code] then i could just change user_id = 2 into user_id = '".intval($cookie[0])."' but when i went into phpMyAdmin and tryed to query that it gave me this [code] SQL query: UPDATE `nuke_users` SET `chall_web` = chall_web +1 WHERE `user_id` = `2` MySQL said: Documentation #1054 - Unknown column '2' in 'where clause' [/code] soo does anyone know how i can fix this
  7. right i've sorted that now umm i need help with listing directorys & files... i need to have it spit so that directorys have ... [code]<tr><td width=50 align=left><a href="list.php?dir=<? echo $dirnam; ?>" target="filemain"><img border=0 src="images/i-directory.gif"></a></td><td align=left><a href="list.php?dir=<? echo $dirnam; ?>" target="filemain">      <? echo $dirnam; ?></a></td><td>0 k</td><td><? echo substr(sprintf('%o', fileperms('<? echo $dirnam; ?>')), -4); ?></td></tr>[/code] ($dirnam must be the name of the directory and it must be able to do this for every directory in the folder its in) and then after all the directorys are listed then the files must be listed like so... [code]<tr><td width=50 align=left><a href="select.php?dir=<? echo $filepath; ?>" target=infofr><img border=0 src="images/i-regular.gif"></a></td><td align=left><a href="select.php?dir=<? echo $filepath; ?>" target=infofr>      <? echo $filename; ?></a></td><td>0 k</td><td><? echo substr(sprintf('%o', fileperms('<? echo $filepath; ?>')), -4); ?></td></tr>[/code] ($filepath must be the full and proper path to the file from the root directory [C:/appserv/www/]) can anyone help with a code to do this?
  8. umm where would i have to put it to remove the slashes that are wirten?
  9. i have made a cPanel type File Manager for editing selected pages only however when it saves them it puts a \ by all the " and ' witch i cant have it doing can anyone help... here's the code i am using to save the files [a href=\"http://www.olliespage.net/stuff/stuff2.txt\" target=\"_blank\"]http://www.olliespage.net/stuff/stuff2.txt[/a] (i couldnt post the code so i had to link to it)
×
×
  • 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.