Jump to content

jlp09550

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

About jlp09550

  • Birthday 02/05/1993

Contact Methods

  • AIM
    jpetry677
  • MSN
    neo_lover3@hotmail.com
  • Website URL
    http://www.chibipaws.com/
  • Yahoo
    neo_lover3

Profile Information

  • Gender
    Male
  • Location
    Louisiana

jlp09550's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ah, nevermind. When the topic was moved, I thought about the server's document root--which fixed it. Sorry for having to make this topic.
  2. Okay, so I just installed a new server with lighttpd and PHP5-CGI. All of my site's custom-coded files use $_SERVER['DOCUMENT_ROOT'] to include the required files for the site. Sadly, when I'm using PHP-CGI, it has an ending trailing slash on the document root, while my original PHP did not. This causes my scripts to be thrown off and not work properly. Is there a way to change it so it does NOT include a trailing slash? Examples; With trailing slash: /home/user/public_html/ Without: /home/user/public_html Thanks!
  3. Doesn't move_uploaded_file() only apply to uploaded files rather than those already uploaded?
  4. What is the best/simpliest way to move a file from one directory on the server to another?
  5. You partially did it with the headers to transfer to the invalid login stuff. Just place another header with the URL at the area where it is a successful login to modify the header to another page.
  6. Why using a function? This is something I used which is what you may be looking for: <a href='#' onClick='window.open("smilies.php", "smileys", "resize=0, toolbar=0, menubar=0, resizeable=0, width=250, height=500");'>Smilies</a> Here's one for an image you would have at the end of your coding: echo '<div id="gallery"> while($row = mysql_fetch_array($result)){ echo '<div class="gal"><img title="'.$row["name"].'" src="'.$row["src"].'" onClick=\'window.open("FILENAME", "image_preview", "resize=0, toolbar=0, menubar=0, resizeable=0, width=250, height=500");\'></div>'; } You should customize it, but yeah.
  7. Hmm. Well, for my users online script, I had to group the usernames because they would show up more than once if someone has a [very] dynamic IP, like AOL. The query I used: SELECT `username` FROM `users_online` GROUP BY `username` ORDER BY `lastvisit` DESC Might help a bit if you would understand that. But it does indeed work on this side.
  8. Unless you set an Apache handler to make it parse HTML files through the PHP parser instead, I doubt it's possible. Otherwise, HTML pages will not handle PHP at all.
  9. I use, for example: header("Location: http://a.html"); .. and it works fine.
  10. So, you just want to show the different usernames like this: Username1 Username2 Username3 .. instead of: Username1 Username1 Username2 Username3 Username3? If so, try (not sure if it would work, but you can try): select distinct(userid) from members order by count(comments) group by userid desc
  11. Hello, I've had a code for this before, but have lost it since. Anyways, I'm looking for a code/tutorial on preventing "cookie stealing" scripts from being launched from profiles and stuff. I want to enable HTML in the profile as just using normal coding doesn't allow full personalization. So, can anyone help me out and show me a code/tutorial on preventing such? Thanks, Jared
  12. Hello. I have been experiencing some 'duplicate entry issues' with my MySQL table. First of all, I've tried removing the auto increasement that was on and use a manual PHP addition sentence, but to no avail. The present coding: $get_next_id = mysql_query("SELECT `id` FROM `====` ORDER BY `id` DESC LIMIT 1"); $get_next_id2 = mysql_fetch_array($get_next_id); $getnextid = $get_next_id2['id']+1; mysql_query("INSERT INTO `====` (id, ==,==,==,==) VALUES ('$getnextid', '==','==','==','==')") or die(mysql_error()); The error: Duplicate entry for '127' on key 1 Thanks. P.S. The output from the above coding is 128, yet the query thinks it is 127 for some reason. Not sure why.
  13. I know how to make them, and I don't even understand the tutorial. I just need to have that code fixed.
×
×
  • 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.