Jump to content

jbog91

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jbog91's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well, the mysql server is on the same server. It's going to be multiple emails across multiple users. I guess I'll just go with the mysql route. I shouldn't see much difference, I will be using id's to identify them, not full names so that will equal it out I guess. Thanks.
  2. Well, I have a question. I have to store an email. This could be anywhere from 500kb to 5mb in size. (mime parts, headers, and all) I will be getting other information about the email from the database. But where should I store the actual email? In the database or in a file? Which would be more efficient and cause less stress on the server? This email will be accessed 24/7 for a bit. (Until it gets sent to all the newsletter subscribers)
  3. Well, I've done some irc bots but if this gets too tough, I may try doing this in java. I just need it to run on a webserver. I'd have to learn it first though.
  4. Thank you. I will check that stuff out. Any other suggestions are welcome too. No, I currently do not have any code. I'm trying to get the basics down and plan.
  5. I need some help with this. I am creating a poker dealer that will host many tables. I was wondering how I could have multiple instances of a script to manage each table running, kinda like a multithreaded program. Is this possible? The poker dealer is basicaly like a server, the clients will all connect to it to play. It will be a socket server.
  6. Well, what I need to do is take information from a mysql database and put it in an excel file. I have the database part down but the excel part is giving me trouble. I don't think pear is an option so anything other than it would be great. I know how to write to a file but I don't know what to write to do stuff like go to a different cell or something. I've seen where people do it using tables but that doesn't work. I need to be able to do the following things. Go to a new cell. Go to a new row. Make something bold. How can I do this? The file is an excel (.xls or .csv) but it will be opened in Works Spreadsheet by the client.
  7. Thanks. Seems to be working. I'll post back if I have anymore problems.
  8. I've figured that out. Look at the edit I made. What would I need to put in the file to make this: www.mysite.com/profile.php?user=jbog91 turn into this: www.mysite.com/jbog91
  9. I know you don't have to make a directory everytime someone signs up. Doesn't mod_rewrite require you to have access to some apache files that only the server admin has access too? --Edit-- I see. Mod_rewrite doesn't require you to have access to your server's httpd.conf file. You do it through .htaccess files. I found a tutorial here. http://www.workingwith.me.uk/articles/scripting/mod_rewrite But it says that if I have: www.mysite.com/profile.php?user=jbog91 I would need to have this: www.mysite.com/profile/jbog91 What could I do to make it: www.mysite.com/jbog91
  10. I'm working on this site, a community of sort, and I need some help with something I saw on some other sites. I want people to be able to access their profile by typing this is. Instead of this: http://www.mysite.com/profile.php?user=jbog91 I want this: http://www.mysite.com/jbog91 I've seen many things on this but I can't seem to figure it out. I don't own the server, it's going to be shared hosting. :(
  11. Well, no but this might help. [a href=\"http://www.torrenttrader.org/news.php\" target=\"_blank\"]http://www.torrenttrader.org/news.php[/a] Sorry for bringing this post from so far back but I was wondering the same thing and just doing some searching.
  12. [a href=\"http://ffmpeg-php.sourceforge.net/\" target=\"_blank\"]http://ffmpeg-php.sourceforge.net/[/a] Just search it up in google. I'm sure there are more than that. [a href=\"http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2005-09,GGGL:en&q=create+a+thumbnail+of+a+video+file+in+php\" target=\"_blank\"]http://www.google.com/search?sourceid=navc...deo+file+in+php[/a]
  13. I'd be playin with yall but the computer that can run it at my dad's house is on a slow connection with high latency(satelite) and the one that can't is on a good connection.(cable) Hope yall have fun.
  14. Nevermind. I got it to work. My orignial code: [code] if (!in_array($type,$allowed)) {         echo "Error";         exit; } [/code] which was the same basicaly as what kenrbnsn said worked. In my array, I accidently had images/gif when it was supposed to be image/gif. Thanks anyway yall.
  15. [code] <?php // This is the file that handles all of the code for uploading and preparing the image // Setting some variable for handling the file $name = $_FILES['imagefile']['name']; $size = $_FILES['imagefile']['size']; $type = $_FILES['imagefile']['type']; $temp = $_FILES['imagefile']['tmp_name']; $newname = date(njyGs); $allowed = array('images/jpg', 'images/jpeg', 'images/png', 'images/gif', 'images/bmp', 'images/tif', 'images/tiff'); // Check various file parameters before allowing to be hosted if ($type != "image/gif"){     echo "Warning : You cannot upload that type of file.";     exit; } [/code] Hmm, well how shoud this be done?
×
×
  • 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.