Jump to content

Solar

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by Solar

  1. If you are running apache to you need to edit the ini's in the folder. Then restart your server as well. apache/bin/php.ini
  2. <?php $req_user_info = $database->getUserInfo($req_user); echo "<img src=\"http://URLHERE/photo/".$req_user_info['username']."\"\width=\"400\" height=\"300\" >"; ?> I have this script up and running, it shows the User's Profile Picture IF they have uploaded one, is there a code that could find in my folder "photo" the username's photo "Doesn't even have an extension", but if they don't have a PHOTO, redirect to a photo like called unknown.png. I've got the start and don't know where to be pointed to, I don't ask anyone to write the code for me as to I would like to learn, but is greatly appreciated for help. Solar
  3. Thank you so much! Such a great help!
  4. Okay, This may be a difficult question and I've tried many times and cannot succeed. What I want to do is when a user clicks on a button on my site, they will get credited for.. So.. In order for the points to add up by 1 each time, I want to use the Filesystem Functions. <?php $handle = fopen("c:\\data\\filehere.txt", "r"); ?> For example; Say Steven has 32 points. When he clicks that button, he will then get 33 points. How can I make sure that when using Filesystem Functions calculate the total before and add 1 onto it after? Thanks in advanced! Steven
  5. THanks But. I recieve error. Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\servers.php on line 17 <div align="center"><br><table border="1" cellpadding="5" cellspacing="1" bordercolor="#0099FF" id="tablerounds"> <tbody> <tr> <th>Player</th> </tr> <?php $fp = @fopen("URLHERE", "rb") or die("Couldn't open file"); $data = ""; while(!feof($fp)) { $data .= fgets($fp, 1024); } fclose($fp); $values = explode("\n", $data); $run=(count($values))-1; $x=0; { while($x<100) substr($values[$x],9) == '-=}ID<'. "</td><td style=\"color: rgb(192, 192, 192);\">". substr($values[$x],0,. "</td></tr>"; $x++; } ?>
  6. Hello Everyone, I hope this is possible which probably is 100%. I want to make a quick easy little script that takes the master server list of a game and list certain players. Lets say for Example; 6 people are in a game server, there is.. Noob_Player1, Noob_Player2, Noob_Player3, Person1, Person2, Person3. fopen(); is what I am using to open the simple file which just is the IP of the Server, Name of the Server, Port of the Server, Server Version, and Players in the server. Is there a way to filter players in the server to show only people that start with "Noob_" I've tried searching on the php website for fopen codes and I can't seem to find the right one I am looking for. Heres an example of something I have started, it gets the rank, player, and score. <table border="1" cellpadding="5" cellspacing="1" bordercolor="#0099FF" id="tablerounds"> <tbody> <tr> <th>Rank</th> <th>Player</th> <th>Points</th> </tr> <?php $fp = @fopen("HIGHSCORES.txt", "rb") or die("Couldn't open file"); $data = ""; while(!feof($fp)) { $data .= fgets($fp, 1024); } fclose($fp); $values = explode("\n", $data); $run=(count($values))-1; $x=0; while($x<18){ echo "<tr><td style=\"color: rgb(192, 192, 192);\">" .($x+1). "</td><td style=\"color: rgb(192, 192, 192);\">" . substr($values[$x],9) . "</td><td style=\"color: rgb(192, 192, 192);\">". substr($values[$x],0, . "</td></tr>"; $x++; } ?> </tbody> </table> Thanks In advance!
  7. I went over the tutorial and that tutorial is horrible. The explinations are silly and the coding is wrong, I have many errors.
  8. Hello, I wouldn't mind having a nice little PM form for users to send back and forth to each other on my website. Is there some tutorial out there to help me with a simple PM Form/Messager using php and mysql? My database is simple in mysql, $userid, $username, $email, $password are the main ones.. I don't know the right words to use to search for something like this. Thanks in Advanced.
  9. Since this is an echo, doesn't your code need slashes? <?php echo (empty($theviddetails2)) ? 'Vid2 Details is empty ' : ''; $theviddetails2 = preg_replace\("$keyword", "<a href=\'$link\' target=\'$target\' style=\'text-decoration:none; border-bottom: 1px dotted;\'>$keyword</a>", $theviddetails2); } ?>
  10. Thankyou very much, you've been a great help!
  11. The code I posted works absolutly great, no errors, no nothing. I was just seeing if there were anything I could go by to make an image within an image.
  12. I have a script to import text from a form and insert into a picture. Is it possible to import an image ontop of an image? What would I go by?
  13. ^ Nevermind about my above post, I tried it myself and it works fine for myself. "<?php echo $_SESSION['username']; ?>" So its not displaying because you didn't include.. Check_login.php?
  14. You've allready started the session in your auth.php [session_start();] Do you have a page where it includes the profile.php ?
  15. <?php require 'dbc.php'; if ($logged_in == 0) { ?> <center> You must be logged in to access this area; <a href="http://www.jeanies-poetry.com">Login</a> </center> <?php } else { ?> <center><p>Logged as <?php echo "$_SESSION['username']"; ?> | <a href="http://www.jeanies-poetry.com/settings.php">Account Settings</a> | <a href="http://www.jeanies-poetry.com/logout.php">Logout</a> </p></center> <?php } ?> Does an echo need quotations around itself? Like above?
  16. What you want to do is to name your iframe. <?php echo"<center><iframe name="TheIFrameNameGoesHere" STYLE=' background-color: #3366ff; scrollbar-base-color:#3366ff; scrollbar-face-color:#3366ff; scrollbar-arrow-color:#3366ff;' src='show_profile_on_podcast_page.php' target='_top' width='200px' height='190'> <p>Your browser does not support iframes.</p> </iframe></center>"; ?> </iframe> If you have a link inside the iframe on the iframe's main page, your link would look like this. <a target="TheIFrameNameGoesHere" href="yourlinkhere.php">Testing</a> Hope this helps Edit: Oops you want on the outside of the iFrame? _Parent should work. <a target="_parent" href="yourlinkhere.php">Testing</a>
  17. Oops! Figured it out! Thanks, I had pressed a key on the keyboard that inserted a random character in the php
  18. <?php } /** * The user has submitted the registration form and the * results have been processed. */ else if(isset($_SESSION['regsuccess'])){ /* Registration was successful */ if($_SESSION['regsuccess']){ echo "<h1>Registered!</h1>"; echo "<p>Thank you <b>".$_SESSION['reguname']."</b>, for registering on PasteIt! " ."you may now create your own website! <a href=\"index.php\">log in</a>.</p>"; } ?> I'm having trouble inserting; <?php mkdir("".$_SESSION['reguname']."/", 0700); ?> Into the coding. I've inserted it above the "Thank You" and I get a line of error; Hmmm, is it because of where I am placing it? :/
  19. How would I create a subfolder with there name using this code? So by using ".$_SESSION['reguname']." Make a subfolder name with that. What would the script look like and where can I place it in this script? Oh and inserting a simple like php page as well. That would be similar right?
  20. Solar

    Frames

    <frameset rows="80,*" frameborder="no" border="0" framespacing="0"> <frame src="FILENAME" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> <frameset rows="*,80" frameborder="no" border="0" framespacing="0"> <frameset rows="*" cols="173,*" framespacing="0" frameborder="no" border="0"> <frame src="FILENAME" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" /> <frameset rows="*" cols="*,1252" framespacing="0" frameborder="no" border="0"> <frame src="FILENAME" name="mainFrame" id="mainFrame" title="mainFrame" /> <frame src="FILENAME" name="rightFrame" scrolling="No" noresize="noresize" id="rightFrame" title="rightFrame" /> </frameset> </frameset> <frame src="FILENAME" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" /> </frameset> </frameset> There is a little crack between the left and the right frame. But you get the idea.
  21. If it isn't sending, Do you have a mail server?
  22. IE is fine for me. Make sure you are logging into this URL: http://www.phpfreaks.com/forums/index.php I know I have a friend who made a clan site and short url'd it and It kept asking for me to login..
  23. Never knew you could write them like that! Cool!
  24. $sql = "INSERT INTO User_infoT ( Username, Password, Email, Location, Fav, Quote, Interests, Happy, Sad, Habits, Music, Movie, Website, Aboutme, Whywe) VALUES( '$Username','$Password', '$Email', '$Location', '$Fav', '$Quote', '$Interests', '$Happy', '$Sad', '$Habits' , '$Music', '$Movie', '$Website', '$Aboutme', '$Whywe' )"; Im just wondering See your values? After that you have written VALUES. So I'm just confused.. Which is your Values? This; Username, Password, Email, Location, Fav, Quote, Interests, Happy, Sad, Habits, Music, Movie, Website, Aboutme, Whywe OR This; VALUES
×
×
  • 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.