Jump to content

phpfreak

Members
  • Posts

    507
  • Joined

  • Last visited

About phpfreak

  • Birthday 09/22/1976

Contact Methods

  • Website URL
    http://www.phpfreaks.com

Profile Information

  • Gender
    Male
  • Location
    Everywhere!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

phpfreak's Achievements

Regular Member

Regular Member (3/5)

2

Reputation

  1. I like the new look, not too crazy about the WYSYWIG editor though. I need a bigger "INSERT CODE" button. or disable button... or disable it permanently for myself. Either way, this is a million times better than SMF. I always regretted going to SMF. I think we used IPB before that if I'm not mistaken. They have improved it greatly and I'm stoked about the changes.
  2. I think the problem is you're overwriting $conn within the while loop: #execute the query $conn = @mysql_query($sql2 ) or die(mysql_error()); if ($conn) { echo"<br />Classes Copied"; } Instead, maybe try: #execute the query $conn2 = @mysql_query($sql2 ) or die(mysql_error()); if ($conn2) { echo"<br />Classes Copied"; }
  3. Your call to htmlspecialchars() isn't necessary and shouldn't be there without being used. Check the PHP Manual.. <?php ('includes/db_connect.php'); $result = mysql_query("SELECT * FROM comments ORDER BY id DESC LIMIT 10"); htmlspecialchars () // <--- Why is this even here? It's not being called right, not ending with a ; . while($row = mysql_fetch_array($result)) { echo "<div class='comment'><b><center>".$row['username'] . "</b></center><br><br><center><i>" . $row['comment']."</i></center><>"; echo "<br/>"; } ?>
  4. The simple way would be use empty or a string comparison. if(!empty($_POST['foo'])) { // do something } // or if(strlen($_POST['foo']) > 0) { // do something } You can also use some comparison operators to compare other values like integers, exact matches, and etc.
  5. Yeah, there's nothing wrong with breaking in / out of PHP and popping in HTMl like that. Pretty common! Not everyone needs an uber php template engine to write a single PHP page that outputs HTML.
  6. I think your problem is you're not quoting the 2nd argument in your function call. kyle.jpg Should probably be 'kyle.jpg' makelargeimage('uploads/cars/15/car1/thumbs/' , 'kyle.jpg', 'uploads/cars/15/thumbs/car/1/);
  7. I prefer CentOS. It allows me to get things done quickly, easily, and it's redhat based so it's just what I'm use to. I can do anything I need with CentOS in a server / hosting environment. It's updates are easy, there's tons of repos for different levels of packages (old, new, even cooler than the default). Yum is easy to use, generally easy to prepare for compiling PHP from source I'll use default packages on CentOS and then compile PHP into Apache. It's pretty straight forward.
  8. Check dmesg frequently. It'll tell you if it can't read sectors. If it does, you should get ready and backup your data while you can. Change the drive immediately!
  9. I like to do backups via cron. */5 * * * * * /scripts/mybackup.sh > /dev/null Party!
  10. You could always try to do an NFS mount. Network File System (NFS) allows you to mount remote shares on your system. However, that being said, you'd have to tunnel the NFS ports just like you do with other web services, and it also requires a pretty stable and strong connection, depending on the files. The other option, does your IDE have SFTP? If it does, why wouldn't you use SSH/SFTP instead? Your IDE should show you a file structure and etc, so you can edit / create new files and such. Theres' tons of great IDE's out there, but I prefer UltraEdit and always have. It's fast, simple, has all the features I need. http://UltraEdit.com Good Luck!
  11. Are you able to get anything else installed by apt? Perhaps your apt configuration for the respository is pointing to an old site, or offline.
  12. Hehe... if you have any more problems, check my signature! we can rock you some VPS hosting
  13. Your best bet when you see this happening is to recompile PHP. Try a new version, perhaps something has gone crazy on your setup, or some files were moved, or some depenencies were updated and now causing segfaults. Reinstall if you're on Windows, or recompile if you're on Linux. If it keeps happening, check your RAM. I know this sounds crazy, but I've seen a bad stick of memory in a server cause havoc on applications. Good Luck! Let me know if you have questions!
  14. There are several different types of control panels out there, but indeed the best thing to do is get a RAW server with your flavor of linux on it. CentOS is a good variant of RedHat, while others prefer debian, gentoo and such. I've had great success being a RedHat / Fedora / CentOS user and I prefer CentOS for it's simplicity. cPanel on the other hand is awesome if you have access to it with your hosting. Honestly, despite it's bloatedness (which you can turn off a lot of garabage if you're the only one using the server and don't need a lot of client features such as webalizer, exim mail stats, backups and etc.). We can hook you up with a VPS / Server at http://ServerPowered.com with anything you need. Feel free to hit me up if you have any questions.
×
×
  • 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.