Jump to content

Deserteye

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by Deserteye

  1. im sorry, yes. I don't know how that happened lol thanks.
  2. here is the main variable I use: $time = date("h:m A");
  3. not sure what the problem is but every time I record in my database (in a VARCHAR field or a DATE field) ends in :01. For example, if the time is currently 10:34, the time will log as 10:01. anyone know whats wrong?
  4. [quote author=devnerds link=topic=122301.msg504277#msg504277 date=1168745571] Thats the point. It doesnt work. I dont think you can get what you are trying to do to work in a forum. [/quote] the thing is, I have seen it done, just not sure how to make it work.
  5. I'm really stuck. I have a script that rotates every image in a users directory, when you navigate to it (example: http://www.mysite.com/users/deserteye/index.php). The problem is that I cannot post that link as an image on a phpBB forum. So if I post it as [img]http://www.mysite.com/users/deserteye/index.php[/img] it will post the whole thing as a link and not post the image. Anyone know what to do?
  6. thanks but thats not what I meant. I want to be able to display info from a feed. For example.. I want a section to display a feed of sports scores for football and hockey.
  7. I have a script I am making in PHP and I want the users to be able to see the RSS feeds on the homepage. What would I have to insert into the code so the RSS feed would appear on the page?
  8. [quote author=Destruction link=topic=113159.msg459912#msg459912 date=1162209581] Okay so what you actually mean is to download an image to your server from another site?  Often called transloading (site->site).  You may want to look at the File Handling section of the manual particularly file_get_contents, or the fsockopen etc.  I'm on a bit of a flyby visit but if I get chance in a bit I'll post an example up to get you started if needed. Dest [/quote] yeah thats wut I mean. an example would be great if you could. I'm not to sure how I would do it.
  9. [quote author=Destruction link=topic=113159.msg459697#msg459697 date=1162158988] File uploads require POST method to be used and links use GET.  It cannot be done unless I'm misunderstanding what you're asking. Dest [/quote] you know how you can type in a link to an image on photobucket or imageshack and it will upload it to your gallery.. how would I do that?
  10. how would I upload a file using a link?
  11. I am making a profile script where it displays a users info. what would be the best function to use to extract from the database? How would I extract data from multiple tables?
  12. I have a script where a user has options to choose if he/she wants to recieve emails from other members. but I want the user to be able to edit that. When they go into their user cp, how would I echo either if the checkbox is checked or not by what it is currently set to?
  13. [quote author=thorpe link=topic=111354.msg451201#msg451201 date=1160706552] Take a look at [url=http://au.php.net/manual/en/class.dir.php]dir[/url]. [/quote] so are you suggessting I use this instead of logging them in a database?
  14. I have an upload script and I want to have a File Manager for uploaded files. How would I show the files? Would I store the uploaded file names in a database or could I list all the files in a directory some how..?
  15. [quote author=Deserteye link=topic=110998.msg449614#msg449614 date=1160448366] anyone? [/quote] bump
  16. [quote author=printf link=topic=110998.msg449513#msg449513 date=1160429035] You can't manage bandwidth through PHP, unless you are serving the files through PHP, meaning the files will have no direct access. All the other stuff, like storage limits, file types can be handled via PHP scripting! me! [/quote] thanks but that doesn't help. what language can I manage bandwidth with? how can I manage storage limits with PHP?
  17. I am trying to create a file upload script and I was wondering how I could create a meter of how much space a user has taken up/has left and how much bandwidth a user has used/has left. I would appriciate it if someone could provide sample code or a link. Thanks ;)
  18. [quote author=Hi I Am Timbo link=topic=110551.msg447055#msg447055 date=1160016549] Do you get an error with the new function?  What is it? [/quote] The image “http://www.thesite.com/project.php” cannot be displayed, because it contains errors.
  19. [quote author=Hi I Am Timbo link=topic=110551.msg447049#msg447049 date=1160016179] is it verdana.ttf or Verdana.ttf?  You have said both now. [/quote] what? its verdana.ttf yes
  20. [quote author=brendandonhue link=topic=110551.msg447036#msg447036 date=1160014862] imageloadfont() is expecting a .gdf file. You're probably looking for imagettftext(). [/quote] I tried that as well and I got an error too. Yes the verdana.ttf does exist.
  21. I need help on this script: [code]<?php header ("Content-type: image/png"); $image = imagecreatefrompng("project.png"); $color = imagecolorallocate($image, 255, 255, 255); $font = imageloadfont("verdana.ttf"); $string = "Text here"; imagestring($image, $font, 9, 10, $string, $color); imagepng($image); imagedestroy($image); ?>[/code] It gives me an error saying there is something wrong with it. The problem is that when I try to load the font (imageloadfont()), thats when it gives me an error. But when I take the imageloadfont() function out, its ok but the font looks bad. So how do I load the verdana font?
  22. I am wondering how to show how many users active in the past 15 min. I assume I would enter the current time in a database every page a user visits and subtract 15 from that. I don't know the best way to do this but any help would be appriciated. Could someone please tell me the best way to check for and show the users active in the past 15 min and provide sample code? Thanks (or a link to a tut will be good lol)
  23. If this hasn't been suggessted already.. how about maybe seasonal competitions. So users will have a certain amount of time to complete a project in PHP and submit it. The best project wins and the user (could) get an award or prize.
  24. What language is PHP written in? Or what is done to create PHP? Is it written in C++ or what? If I am way off track plz let me know the answer. I am just curious as to how PHP runs and was created. Thanks
×
×
  • 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.